/* ---------------------------------------------------------------------------
   Gabriel Moro — personal site
   Deep forest canvas, sage ink, and a botanical green accent. Self-hosted fonts.
   --------------------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Montaga";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montaga-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --paper: #0b1510;
  --paper-tint: #0e1b14;
  --surface: #13231a;
  --ink: #e9f3e7;
  --ink-soft: #c5d4c8;
  --muted: #98ad9c;
  --faint: #7d937f;
  --line: #20382a;
  --line-strong: #34503d;
  --accent: #6fca9b;
  --accent-strong: #9fe3c1;
  --accent-ink: #06110b;
  --accent-soft: #173826;
  --accent-bright: #82d9ad;
  --accent-glow: rgba(111, 202, 155, 0.18);
  --accent-line: rgba(111, 202, 155, 0.34);
  --forest: #14301f;
  --on-forest: #edf5ec;
  --on-forest-muted: rgba(237, 245, 236, 0.7);
  --on-forest-faint: rgba(237, 245, 236, 0.58);
  --on-forest-line: rgba(237, 245, 236, 0.16);
  --on-forest-glass: rgba(237, 245, 236, 0.06);
  --glass: rgba(19, 35, 26, 0.72);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 880px;
  --gutter: 28px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Montaga", Georgia, "Times New Roman", serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Reset ------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  font-size: 106.25%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-optical-sizing: auto;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Layout ------------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Masthead ---------------------------------------------------------------- */

.masthead {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(760px 360px at 50% 0%, rgba(111, 202, 155, 0.16), transparent 70%),
    linear-gradient(180deg, #0b1d13 0%, #0e2117 60%, var(--paper) 100%);
}

.masthead-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.masthead-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.masthead-cover::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(56% 56% at 50% 40%, rgba(8, 18, 13, 0.74), rgba(8, 18, 13, 0.26) 74%, transparent 100%),
    linear-gradient(
      180deg,
      rgba(11, 21, 16, 0.24) 0%,
      rgba(11, 21, 16, 0.36) 46%,
      rgba(11, 21, 16, 0.88) 90%,
      var(--paper) 100%
    );
  content: "";
}

.masthead-inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(40px, 6vw, 70px);
  padding-bottom: clamp(34px, 5vw, 54px);
  text-align: center;
}

.masthead-mark {
  display: block;
  width: auto;
  height: clamp(192px, 16vw, 248px);
  margin: 0 auto clamp(16px, 2vw, 24px);
  border: 3px solid var(--line-strong);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 18px 40px rgba(2, 8, 4, 0.6);
}

.masthead-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 9vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
}

.masthead-title a {
  color: var(--on-forest);
  text-decoration: none;
}

.masthead-title a:hover {
  color: #ffffff;
}

.masthead-tagline {
  max-width: 32ch;
  margin: 16px auto 0;
  color: var(--on-forest-muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.45;
  text-wrap: balance;
}

.masthead-tabs {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--on-forest-line);
}

.masthead-tabs-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 58px;
  overflow-x: auto;
  scrollbar-width: none;
}

.masthead-tabs-inner::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--on-forest-muted);
  font-size: 0.71875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab:hover {
  background: var(--on-forest-glass);
  color: var(--on-forest);
}

.masthead-tabs .btn {
  flex-shrink: 0;
  height: 36px;
  margin: 0 10px;
  border-radius: 12px;
  font-size: 0.71875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tab--lang {
  margin-left: auto;
  color: var(--on-forest-faint);
}

.lang-switch {
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.lang-switch:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

/* Buttons and links ------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn--small {
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 0.8125rem;
}

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

.btn--primary:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  border-color: var(--accent);
  background: var(--glass);
  color: var(--accent-strong);
}

.btn--light {
  background: var(--on-forest);
  color: var(--forest);
}

.btn--light:hover {
  background: #ffffff;
  color: var(--forest);
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 0.9375rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

.btn:hover .btn-icon {
  transform: translateX(2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 1px;
  border-bottom: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 0.84375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  border-color: var(--accent-strong);
  color: var(--accent-strong);
}

.text-link-icon {
  font-size: 0.6875rem;
  line-height: 1;
}

/* Intro ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(52px, 7vw, 78px) 0 0;
  background: var(--paper);
}

.hero-inner {
  max-width: 760px;
}

.kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.availability {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 9px;
  margin-bottom: 26px;
  padding: 7px 14px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--ink-soft);
  font-size: 0.78125rem;
  font-weight: 500;
}

.availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.availability-divider {
  color: var(--faint);
}

.availability-note {
  color: var(--muted);
}

.hero-lede {
  max-width: 62ch;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 1.1875rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 14px;
  color: var(--faint);
  font-size: 0.78125rem;
  letter-spacing: 0.01em;
}

.stats {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.stat {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.stat dt {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
  letter-spacing: -0.008em;
  line-height: 1;
}

.stat dd {
  max-width: 60ch;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.portrait {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-caption {
  text-align: left;
}

.portrait-role {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.portrait-education {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.75rem;
}

.portrait-education + .portrait-education {
  margin-top: 2px;
}

.portrait-education a {
  border-bottom: 1px solid var(--line-strong);
  color: inherit;
  text-decoration: none;
}

.portrait-education a:hover {
  border-color: currentColor;
  color: var(--accent);
}

/* Sections ---------------------------------------------------------------- */

.section {
  padding: 108px 0;
}

.section--tight {
  padding: 88px 0;
}

.section--tint {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-tint);
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.55;
}

h2 {
  max-width: 21ch;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.12;
  text-wrap: balance;
}

.section-lede {
  max-width: 62ch;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.03125rem;
  line-height: 1.7;
}

.section-foot {
  margin-top: 36px;
}

.body-large {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.bullet-list {
  display: grid;
  gap: 14px;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 0.90625rem;
  line-height: 1.6;
}

.bullet-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  opacity: 0.6;
}

/* About ------------------------------------------------------------------- */

.about-content {
  max-width: var(--container);
}

.about-content .section-head {
  margin-bottom: 36px;
}

.about-content .body-large {
  max-width: 66ch;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.about-media {
  position: sticky;
  top: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.about-body {
  min-width: 0;
}

.about-intro {
  max-width: 66ch;
}

.currently {
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
}

.currently-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.65625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.currently-role {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.currently-company {
  color: var(--accent);
}

.currently-period {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78125rem;
}

.currently-item + .currently-item {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.currently-role a {
  border-bottom: 1px solid var(--line-strong);
  color: inherit;
  text-decoration: none;
}

.currently-role a:hover {
  border-color: currentColor;
  color: var(--accent);
}

.about-topic {
  margin-top: 36px;
}

.about-topic-title {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.about-topic p + p {
  margin-top: 16px;
}

.about-contact {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.about-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}

/* Articles ---------------------------------------------------------------- */

.articles-block > h3,
.channels-block > h3,
.topics-block h3 {
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.008em;
  line-height: 1.15;
}

.article-list {
  display: grid;
  gap: 18px;
}

.article-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.article-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.article-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.article-thumb {
  display: block;
  width: 100%;
  height: clamp(200px, 30vw, 280px);
  overflow: hidden;
  background: var(--paper-tint);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.article-item:hover .article-thumb img {
  transform: scale(1.035);
}

.article-link:focus-visible .article-thumb {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 24px 24px;
  min-width: 0;
}

.article-meta {
  color: var(--faint);
  font-size: 0.65625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-title {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.article-link:hover .article-title {
  color: var(--accent);
}

.articles-all {
  margin-top: 20px;
}

.channels-block {
  margin-top: 56px;
}

.channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.channel-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.channel-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.008em;
  line-height: 1.15;
}

.channel-description {
  flex-grow: 1;
  color: var(--muted);
  font-size: 0.90625rem;
  line-height: 1.6;
}

.channel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.topics-block {
  margin-top: 56px;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.78125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.recognition {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
}

.recognition-label {
  color: var(--accent);
  font-size: 0.65625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.recognition-text {
  flex: none;
  min-width: 0;
  max-width: 66ch;
  color: var(--muted);
  font-size: 0.84375rem;
  line-height: 1.55;
}

.recognition .text-link {
  white-space: nowrap;
}

.cta-band {
  display: block;
  margin-top: 56px;
  padding: 36px clamp(24px, 5vw, 48px);
  border-radius: var(--radius);
  background: var(--forest);
}

.cta-title {
  color: var(--on-forest);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.12;
}

.cta-text {
  max-width: 46ch;
  margin-top: 10px;
  color: var(--on-forest-muted);
  font-size: 0.90625rem;
}

.cta-band .btn--primary {
  margin-top: 24px;
  background: var(--on-forest);
  color: var(--forest);
}

.cta-band .btn--primary:hover {
  background: #ffffff;
  color: var(--forest);
}

/* Experience -------------------------------------------------------------- */

.roles {
  border-top: 1px solid var(--line-strong);
}

.role {
  display: block;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.role-period {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.role-company {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.role h3 {
  margin-bottom: 16px;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.role .bullet-list {
  gap: 9px;
}

.role .bullet-list li {
  color: var(--muted);
  font-size: 0.875rem;
}

/* Toolkit ----------------------------------------------------------------- */

.toolkit {
  border-top: 1px solid var(--line-strong);
}

.toolkit-group {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.toolkit-group dt {
  margin-bottom: 8px;
  color: var(--faint);
  font-size: 0.65625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.toolkit-group dd {
  color: var(--ink-soft);
  font-size: 0.90625rem;
  line-height: 1.6;
}

/* Work -------------------------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.work-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.work-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.008em;
  line-height: 1.15;
}

.work-description {
  flex-grow: 1;
  color: var(--muted);
  font-size: 0.90625rem;
  line-height: 1.6;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.65625rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.work-card .text-link {
  align-self: flex-start;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  padding: 88px 0 32px;
  background: var(--forest);
  color: var(--on-forest-muted);
}

.footer-top {
  padding-bottom: 48px;
  border-bottom: 1px solid var(--on-forest-line);
}

.footer-meta {
  margin-bottom: 0;
}

.footer-copy h2 {
  max-width: 17ch;
  margin-top: 18px;
  color: var(--on-forest);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.1;
}

.footer-text {
  max-width: 50ch;
  margin-top: 20px;
  color: var(--on-forest-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}

.footer-email {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--on-forest-line);
  color: var(--on-forest-muted);
  font-size: 0.8125rem;
  text-decoration: none;
}

.footer-email:hover {
  border-color: var(--on-forest);
  color: var(--on-forest);
}

.availability--footer {
  border-color: var(--on-forest-line);
  background: var(--on-forest-glass);
  color: var(--on-forest);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-top: 26px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--on-forest-faint);
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--on-forest-muted);
  font-size: 0.78125rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--on-forest);
}

.lang-switch--footer {
  border-color: var(--on-forest-line);
  color: var(--on-forest-muted);
}

.lang-switch--footer:hover {
  border-color: var(--on-forest);
  color: var(--on-forest);
}

.site-footer :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--on-forest);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-media {
    position: static;
  }

  .portrait {
    width: min(320px, 76vw);
  }
}

@media (max-width: 760px) {
  .section {
    padding: 78px 0;
  }

  .section--tight {
    padding: 68px 0;
  }

  .section-head {
    margin-bottom: 38px;
  }

  .masthead-tabs-inner {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent 100%);
  }

  .article-thumb {
    height: clamp(180px, 46vw, 240px);
  }

  .footer-legal {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
  }

  .masthead-inner {
    padding-top: 60px;
  }

  .masthead-tagline {
    font-size: 1rem;
  }

  .tab {
    padding: 10px;
    font-size: 0.6875rem;
    letter-spacing: 0.07em;
  }

  .masthead-tabs .btn {
    margin: 0 6px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .portrait {
    width: min(280px, 78vw);
  }

  .cta-band {
    padding: 30px 22px;
  }

  .cta-band .btn {
    width: 100%;
  }

  .article-body {
    padding: 18px 20px 22px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
