/* ============================================================
   Peregrine · Personal Website
   ------------------------------------------------------------
   1. Design tokens
   2. Base & utilities
   3. Header / navigation
   4. Hero
   5. Shared section layout
   6. About
   7. Projects
   8. Blog
   9. Footer
   10. Motion & responsive
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  color-scheme: light;

  --header-h: 68px;
  --container: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 10px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --bg: #f0eee6;
  --surface: #faf9f5;
  --ink: #141413;
  --ink-strong: #141413;
  --ink-soft: #6b6861;
  --ink-muted: #6b6861;
  --line: #e3dacc;
  --line-strong: #d5c9b8;

  /* --accent paints marks and filled buttons; --accent-ink is the
     darker warm orange used for small text so it stays readable. */
  --accent: #d97757;
  --accent-ink: #a64e2e;
  --accent-soft: rgba(217, 119, 87, 0.1);
  --accent-line: rgba(217, 119, 87, 0.32);
  --focus-ring: var(--accent-ink);

  --btn-bg: var(--accent);
  --btn-bg-hover: #e28c6d;
  --btn-ink: #141413;

  --shadow-card: 0 1px 2px rgba(20, 20, 19, 0.04);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #141413;
  --surface: #20201e;
  --ink: #faf9f5;
  --ink-strong: #faf9f5;
  --ink-soft: #b0aea5;
  --ink-muted: #b0aea5;
  --line: #343c43;
  --line-strong: #46525b;

  --accent: #6a9bcc;
  --accent-ink: var(--accent);
  --accent-soft: rgba(106, 155, 204, 0.1);
  --accent-line: rgba(106, 155, 204, 0.4);

  --btn-bg-hover: #8cb4da;

  --shadow-card: none;
}

/* ---------- 2. Base & utilities ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent-line);
  color: var(--ink-strong);
}

/* Theme changes fade the copy as well as the surfaces. */
h1,
h2,
h3,
p,
.focus__list,
.focus__label,
.brand,
.section__index,
.focus__num,
.card__num,
.card__domain,
.card__tags,
.blog-panel__hint,
.hero__domain,
.footer__bottom {
  transition: color 0.3s var(--ease);
}

.focus__list li {
  transition: color 0.3s var(--ease);
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--ink-strong);
  color: var(--bg);
  font-size: 14px;
  transform: translateY(-160%);
  transition: transform 0.16s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
  outline-offset: 2px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s var(--ease);
}

.icon--xs {
  width: 12px;
  height: 12px;
  stroke-width: 1.8;
}

/* ---------- 3. Header / navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(4px);
  transition: background-color 0.3s var(--ease);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease), background-color 0.3s var(--ease);
}

.nav__link:hover {
  color: var(--accent-ink);
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}

.nav__link.is-active {
  color: var(--accent-ink);
}

.nav__link .icon--xs {
  opacity: 0.55;
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  transition: border-color 0.2s var(--ease), background-color 0.3s var(--ease);
}

.lang-switch__btn {
  appearance: none;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.lang-switch__btn:hover {
  color: var(--accent-ink);
}

.lang-switch__btn[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

.icon-btn:hover {
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.icon--sun {
  display: none;
}

[data-theme="dark"] .icon--sun {
  display: block;
}

[data-theme="dark"] .icon--moon {
  display: none;
}

.menu-btn {
  display: none;
}

.icon--close {
  display: none;
}

.menu-btn[aria-expanded="true"] .icon--menu {
  display: none;
}

.menu-btn[aria-expanded="true"] .icon--close {
  display: block;
}

.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 51;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 4px var(--gutter) 18px;
  max-height: calc(100svh - var(--header-h));
  overflow-y: auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 52px;
  padding: 6px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.01em;
  transition: color 0.18s var(--ease);
}

.mobile-menu__nav a:hover {
  color: var(--accent-ink);
}

.mobile-menu__nav a:last-child {
  border-bottom: 0;
}

.mobile-menu__nav .icon--xs {
  color: var(--ink-muted);
}

/* ---------- 4. Hero ---------- */
.hero {
  display: flex;
  flex-direction: column;
  min-height: min(840px, calc(100vh - var(--header-h)));
  min-height: min(840px, calc(100svh - var(--header-h)));
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(64px, 12vh, 136px);
  padding-bottom: clamp(48px, 8vh, 88px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow__line {
  width: 32px;
  height: 1px;
  background: var(--accent);
  transition: background-color 0.3s var(--ease);
}

.hero__eyebrow {
  margin-bottom: clamp(26px, 4vh, 40px);
  animation: rise 0.7s var(--ease) both;
}

.hero__title {
  color: var(--ink-strong);
  font-size: clamp(2.75rem, 7.5vw, 6.75rem);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -0.048em;
  text-wrap: balance;
  animation: rise 0.75s 0.05s var(--ease) both;
}

.hero__greeting,
.hero__name {
  display: block;
}

.hero__name {
  padding-bottom: 0.04em;
}

.hero__period {
  color: var(--accent-ink);
}

.hero__subtitle {
  margin-top: clamp(24px, 4vh, 34px);
  color: var(--ink);
  font-size: clamp(1.18rem, 2.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.018em;
  animation: rise 0.75s 0.12s var(--ease) both;
}

.hero__intro {
  max-width: 46ch;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 1rem;
  animation: rise 0.75s 0.18s var(--ease) both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(30px, 5vh, 44px);
  animation: rise 0.75s 0.24s var(--ease) both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.btn--primary:hover {
  background: var(--btn-bg-hover);
}

.btn--primary:hover .icon {
  transform: translate(2px, -1px);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.btn--ghost:hover {
  color: var(--accent-ink);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.btn--lg {
  height: 48px;
  padding-inline: 22px;
  font-size: 14.5px;
}

.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 28px;
  animation: fade 0.9s 0.4s var(--ease) both;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.18s var(--ease);
}

.scroll-cue:hover {
  color: var(--accent-ink);
}

.scroll-cue__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.18s var(--ease);
}

.scroll-cue:hover .scroll-cue__icon {
  border-color: var(--accent-line);
}

.scroll-cue__icon .icon {
  width: 14px;
  height: 14px;
}

.scroll-cue:hover .scroll-cue__icon .icon {
  transform: translateY(2px);
}

.hero__domain {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

/* ---------- 5. Shared section layout ---------- */
.section {
  padding-block: clamp(72px, 11vw, 128px);
  border-bottom: 1px solid var(--line);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section__index {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.section__title {
  color: var(--ink-strong);
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.028em;
  white-space: nowrap;
}

.section__line {
  flex: 1;
  min-width: 24px;
  height: 1px;
  align-self: center;
  margin-top: 2px;
  background: var(--line);
  transition: background-color 0.3s var(--ease);
}

.section__note {
  max-width: 36ch;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: right;
}

/* ---------- 6. About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: start;
}

.about__text p {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.about__text p + p {
  margin-top: 18px;
}

.about__text .lede {
  margin-bottom: 28px;
  color: var(--ink);
  font-size: clamp(1.18rem, 2.2vw, 1.4rem);
  line-height: 1.65;
  letter-spacing: -0.017em;
}

.focus {
  padding-top: 4px;
}

.focus__label {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.focus__list li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.5;
}

.focus__num {
  flex: none;
  padding-top: 3px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* ---------- 7. Projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 256px;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s var(--ease), background-color 0.3s var(--ease),
    transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
}

.card--linked:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
}

.card--linked:focus-within {
  border-color: var(--accent-line);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.card__icon .icon {
  width: 20px;
  height: 20px;
}

.card__num {
  padding-top: 4px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.card__title {
  color: var(--ink-strong);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.card__desc {
  margin-top: 9px;
  margin-bottom: 26px;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.7;
  text-wrap: pretty;
}

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--accent-ink);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.18s var(--ease);
}

.card__link .icon {
  width: 14px;
  height: 14px;
}

.card__link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent-line);
}

.card__link:hover .icon {
  transform: translate(2px, -2px);
}

.card__domain,
.card__tags {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

/* ---------- 8. Blog ---------- */
.blog-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px 48px;
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: background-color 0.3s var(--ease), border-color 0.2s var(--ease);
}

.blog-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.75;
  transition: background-color 0.3s var(--ease);
}

.blog-panel__eyebrow {
  margin-bottom: 16px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.13em;
}

.blog-panel__title {
  max-width: 22ch;
  color: var(--ink-strong);
  font-size: clamp(1.45rem, 3.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.blog-panel__desc {
  max-width: 56ch;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.blog-panel__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.blog-panel__hint {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

/* ---------- 9. Footer ---------- */
.site-footer {
  padding-top: clamp(40px, 6vw, 56px);
  padding-bottom: 30px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.footer__name {
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.footer__tagline {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.6;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  color: var(--ink-soft);
  font-size: 13px;
  transition: color 0.18s var(--ease);
}

.footer__nav a:hover {
  color: var(--accent-ink);
}

.footer__nav .icon--xs {
  opacity: 0.6;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

/* ---------- 10. Motion & responsive ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease),
    background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.25s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.projects .card:nth-child(2) {
  --reveal-delay: 60ms;
}

.projects .card:nth-child(3) {
  --reveal-delay: 60ms;
}

.projects .card:nth-child(4) {
  --reveal-delay: 120ms;
}

@media (max-width: 920px) {
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .focus {
    max-width: 520px;
  }

  .focus__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 32px;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .controls {
    margin-left: auto;
  }

  .menu-btn {
    display: inline-grid;
  }

  .header__inner {
    gap: 16px;
  }
}

@media (max-width: 760px) {
  .projects {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }

  .blog-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
  }

  .blog-panel__action {
    align-items: flex-start;
  }

  .section__head {
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .section__line {
    display: none;
  }

  .section__note {
    flex-basis: 100%;
    max-width: none;
    text-align: left;
  }

  .hero__title {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }
}

@media (max-width: 600px) {
  :root {
    --header-h: 64px;
  }

  .lang-switch__btn {
    min-width: 32px;
    height: 32px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
  }

  .hero__inner {
    padding-top: clamp(56px, 9vh, 90px);
    padding-bottom: 56px;
  }

  .hero__title {
    font-size: clamp(2.55rem, 13vw, 3.6rem);
  }

  .hero__meta {
    padding-bottom: 22px;
  }

  .hero__domain {
    display: none;
  }

  .focus__list {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__nav {
    gap: 2px 20px;
  }
}

@media (max-width: 360px) {
  .header__inner {
    gap: 10px;
  }

  .controls {
    gap: 4px;
  }

  .lang-switch__btn {
    min-width: 28px;
    padding-inline: 5px;
  }

  .card__foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn--primary:hover .icon,
  .card__link:hover .icon,
  .scroll-cue:hover .scroll-cue__icon .icon {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
