/* =========================================================
   tasheen.me — personal site
   ========================================================= */

:root {
  /* Palette (SITE_SPEC.md §B1) */
  --bg: #faf8f2;            /* warm cream */
  --paper: #fffdfa;         /* card paper */
  --ink: #283a32;           /* deep ink */
  --green: #426954;         /* primary accent */
  --sage: #e8ede4;          /* sage surface */
  --sage-2: #e9eee7;
  --mist: #eef2f0;
  --warm: #f6f4e9;          /* paper note */
  --green-02: #2d4637;      /* section 02 */
  --green-06: #273c32;      /* section 06 */
  --light: #f8f9f1;         /* headings on deep green */
  --muted-deco: #718077;    /* decorative only */
  --muted: #5d6b63;         /* body text, AA on cream & sage */
  --line: #dfdfd5;
  --line-strong: #cfd3c7;
  --rust: #b47858;
  --rust-text: #9a5f40;     /* same hue, AA contrast for small text */
  --sage-ring: #c9d5c4;

  /* Type */
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1130px;
  --gutter: 42px;
  --section-y: clamp(72px, 9vw, 104px);
  --radius: 14px;
  --header-h: 84px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--ink); }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.section-dark :focus-visible,
.section-darker :focus-visible { outline-color: var(--light); }

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

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

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--green-02);
  color: var(--light);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Shared typography ---------- */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1.4;
  margin-bottom: 18px;
}
.eyebrow-light { color: #bccdbb; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.4vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-wrap: balance;
}

.section-intro {
  margin-top: 24px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.br-desktop { display: none; }
@media (min-width: 720px) { .br-desktop { display: inline; } }

.section { padding-block: var(--section-y); position: relative; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, .9);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--green);
  text-decoration: none;
  margin-right: auto;
}
.logo-dot { color: var(--rust); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-nav ul {
  display: flex;
  gap: 34px;
}
.site-nav ul a {
  position: relative;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  padding-block: 6px;
  transition: color .2s;
}
.site-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.site-nav ul a:hover,
.site-nav ul a[aria-current="true"] { color: var(--ink); }
.site-nav ul a:hover::after,
.site-nav ul a[aria-current="true"]::after { transform: scaleX(1); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: transparent;
  color: var(--green);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.btn-pill:hover {
  background: var(--green);
  color: var(--light);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle-bar {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .logo { font-size: 26px; }

  /* Without JS the nav simply wraps below the brand. */
  .header-inner { flex-wrap: wrap; row-gap: 4px; padding-block: 10px; }
  .site-nav { flex-wrap: wrap; gap: 8px 22px; }
  .site-nav ul { flex-wrap: wrap; gap: 4px 20px; }

  .js .header-inner { flex-wrap: nowrap; padding-block: 0; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 4px var(--gutter) 24px;
    display: none;
    box-shadow: 0 18px 30px -24px rgba(40, 58, 50, .35);
  }
  .js .site-nav.is-open { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a {
    display: block;
    padding-block: 13px;
    font-size: 18px;
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav ul a::after { display: none; }
  .js .site-nav .btn-pill { margin-top: 22px; }
}

/* ---------- Hero ---------- */
.hero {
  overflow-x: clip; /* decorative rings may extend past narrow viewports */
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(64px, 8vw, 96px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(40px, 5vw, 64px);
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  border: 1px solid #d3dccf;
  border-radius: 999px;
  background: var(--sage);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(66, 105, 84, .14);
}

.hero-title {
  margin-top: 30px;
  font-family: var(--serif);
  font-size: clamp(3.1rem, 6.6vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero-title em {
  font-style: italic;
  color: var(--green);
}

.hero-lead {
  margin-top: 30px;
  max-width: 32ch;
  font-size: clamp(1.2rem, 1.9vw, 1.45rem);
  line-height: 1.55;
  color: var(--ink);
}

.hero-body {
  margin-top: 20px;
  max-width: 50ch;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--green);
  color: var(--green);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
}
.text-link .arrow-down { transition: transform .25s ease; }
.text-link:hover .arrow-down { transform: translateY(3px); }

/* Hero visual: rings, arched portrait frame, notes */
.hero-visual {
  --frame-w: min(360px, 76%);
  position: relative;
  width: 100%;
  max-width: 470px;
  justify-self: end;
  padding: 44px 0 40px;
}

.hero-rings {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 118%;
  height: auto;
  transform: translate(-50%, -50%);
  stroke: var(--sage-ring);
  pointer-events: none;
}

.portrait-frame {
  position: relative;
  width: var(--frame-w);
  aspect-ratio: 360 / 435;
  margin-inline: auto;
  padding: 10px;
  background: var(--sage);
  border: 1px solid #d3dccf;
  /* semicircular top: vertical radius = half the width (180 / 435 of the height) */
  border-radius: 50% 50% 18px 18px / 41.4% 41.4% 18px 18px;
  box-shadow: 0 30px 50px -36px rgba(40, 58, 50, .55);
}
.portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Adjustable focal point — keeps the face centred in the arch. */
  object-position: var(--portrait-focus, 44% 50%);
  border-radius: 50% 50% 10px 10px / 41% 41% 10px 10px;
  background: var(--sage-2);
}

.scribble {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--rust-text);
  transform: rotate(-6deg);
  white-space: nowrap;
}
.scribble-arrow {
  width: 42px;
  height: 28px;
  fill: none;
  stroke: var(--rust);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(18px) scaleX(-1);
}

.note-card {
  position: absolute;
  right: 0;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  padding: 18px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  transform: rotate(3deg);
  box-shadow: 0 18px 36px -22px rgba(40, 58, 50, .5);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 420px; }
}
@media (max-width: 380px) {
  .badge { font-size: 14px; padding: 8px 14px; gap: 9px; }
}
@media (max-width: 480px) {
  .hero-visual { --frame-w: 78%; padding-top: 40px; }
  .scribble { font-size: 17px; }
  .note-card { font-size: 17px; padding: 14px 18px; bottom: 12px; }
}

/* ---------- Divider band ---------- */
.ticker {
  background: var(--sage);
  border-block: 1px solid var(--line);
}
.ticker-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: clamp(14px, 3.4vw, 34px);
  row-gap: 4px;
  padding-block: 28px;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--green);
  line-height: 1.3;
}
.ticker-star {
  color: var(--rust);
  font-family: var(--sans);
  font-size: .75em;
}
@media (max-width: 480px) {
  .ticker-list { flex-wrap: nowrap; column-gap: 2.4vw; font-size: 4vw; padding-block: 22px; }
}

/* ---------- 01 Interests ---------- */
.interest-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.interest-card {
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card-paper { background: var(--paper); }
.card-sage  { background: var(--sage); }
.card-warm  { background: var(--warm); }
.card-mist  { background: var(--mist); }

.icon {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.interest-card h3 {
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.interest-card p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.85;
}

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

/* ---------- Split layouts ---------- */
.split {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.split-perspectives { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.split-experiences  { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.split-questions    { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; }

.split-copy > p + p,
.split-copy > .section-title + p { margin-top: 24px; }
.split-copy > p { max-width: 48ch; line-height: 1.9; }

@media (max-width: 900px) {
  .split-perspectives,
  .split-experiences,
  .split-questions { grid-template-columns: 1fr; }
}

/* ---------- 02 Perspectives (dark) ---------- */
.section-dark {
  background: var(--green-02);
  color: #dfe6dc;
}
.section-dark .section-title { color: var(--light); }
/* Keep the approved two-line break inside the narrower text column. */
.split-perspectives .section-title { max-width: none; font-size: clamp(2rem, 3.6vw, 2.95rem); }
.section-dark .split-copy > p { color: #dfe6dc; }

.perspective-wrap { position: relative; }

.perspective-card {
  position: relative;
  background: var(--warm);
  color: var(--ink);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 44px);
  transform: rotate(1.4deg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
}

.card-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-strong);
}
.perspective-card h3 {
  margin-top: 26px;
  font-family: var(--serif);
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.perspective-sub {
  margin-top: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 16px;
}
.perspective-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.45;
}
.perspective-list .num,
.question-list .num,
.value-num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted-deco);
}
.perspective-list .num { font-size: 19px; line-height: 1.45; color: var(--rust); }
.perspective-foot {
  margin-top: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--green);
}

@media (max-width: 900px) {
  .perspective-card { transform: rotate(.8deg); }
}

/* ---------- 03 Beyond a single track ---------- */
.xp-panel { grid-column: 1; grid-row: 1; }
.xp-copy  { grid-column: 2; grid-row: 1; }

.xp-panel {
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
}
.xp-panel-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  color: var(--green);
  margin-bottom: 20px;
}

.xp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.xp-card {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.xp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -22px rgba(40, 58, 50, .5);
}
.xp-icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  box-sizing: content-box;
  border-radius: 10px;
  background: var(--sage);
  fill: none;
  stroke: var(--green);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.xp-card h4 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
}
.xp-card p {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.xp-card-wide { grid-column: 1 / -1; }
.xp-wide-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.xp-wide-head h4 { margin-top: 0; }
.xp-wide-head p { margin-top: 2px; }

.medals {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.medal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.medal-silver { background: #f1f2f0; }
.medal-bronze { background: #f7eee6; }
.medal-badge { flex: none; width: 34px; height: 41px; }
.medal-badge text {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
}
.medal-silver .medal-ribbon { fill: #8fa3b5; }
.medal-silver .medal-disc   { fill: #c5cacd; stroke: #8e979c; stroke-width: 1.2; }
.medal-silver .medal-ring   { fill: none; stroke: #f4f6f7; stroke-width: 1.2; }
.medal-silver text          { fill: #4d575c; }
.medal-bronze .medal-ribbon { fill: #a36b4a; }
.medal-bronze .medal-disc   { fill: #d39a6d; stroke: #9a6038; stroke-width: 1.2; }
.medal-bronze .medal-ring   { fill: none; stroke: #f3d9c2; stroke-width: 1.2; }
.medal-bronze text          { fill: #5e3720; }

.medal-text { display: flex; flex-direction: column; line-height: 1.3; }
.medal-text strong { font-size: 15px; font-weight: 700; color: var(--ink); }
.medal-text span { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .xp-panel, .xp-copy { grid-column: auto; grid-row: auto; }
}
@media (max-width: 520px) {
  .xp-panel { padding: 18px 14px; }
  .xp-grid { gap: 10px; }
  .xp-card { padding: 14px 12px; }
  .xp-icon { width: 24px; height: 24px; }
  .xp-card h4 { margin-top: 10px; font-size: 17px; }
  .xp-card p { font-size: 14px; }
  .medals { gap: 8px; }
  .medal { padding: 10px; gap: 8px; }
  .medal-badge { width: 28px; height: 34px; }
}
@media (max-width: 359px) {
  .xp-grid, .medals { grid-template-columns: 1fr; }
}

/* ---------- 04 Values ---------- */
.section-sage { background: var(--sage); }

.values-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.value {
  border-top: 1.5px solid var(--green);
  padding-top: 28px;
}
.value-num {
  display: block;
  font-size: 20px;
  line-height: 1;
  color: var(--green);
}
.value h3 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  line-height: 1.25;
}
.value p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.85;
}

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

/* ---------- 05 Questions ---------- */
.questions-intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.questions-intro .section-title { max-width: 12ch; }

.question-list { border-top: 1px solid var(--line); }
.question-list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.45;
  color: var(--ink);
}
.question-list .num {
  font-size: 18px;
  line-height: 2;
  color: var(--rust);
}

@media (max-width: 900px) {
  .questions-intro { position: static; }
  .question-list li { grid-template-columns: 40px 1fr; padding-block: 22px; }
}

/* ---------- 06 Elsewhere ---------- */
.section-darker {
  background: var(--green-06);
  color: #d8e0d5;
}
.section-darker .section-title { color: var(--light); max-width: 20ch; }

.link-card {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 620px;
  padding: 30px 32px;
  border: 1px solid rgba(232, 237, 228, .3);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
  text-decoration: none;
  color: var(--light);
  transition: background .25s, border-color .25s;
}
.link-card:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(232, 237, 228, .6);
}
.link-card-text { display: flex; flex-direction: column; gap: 6px; }
.link-card-title { font-family: var(--serif); font-size: 24px; line-height: 1.3; color: var(--light); }
.link-card-sub { font-size: 16px; line-height: 1.5; color: #c4d0c2; }
.link-card-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(232, 237, 228, .35);
  font-size: 22px;
  line-height: 1;
  color: var(--light);
  transition: transform .25s;
}
.link-card:hover .link-card-arrow { transform: translate(2px, -2px); }

@media (max-width: 560px) {
  .link-card { padding: 24px 22px; }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 56px 48px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--green);
}

/* Tagline (left) · Back to top (middle) · © (far right) on one row. */
.footer-row {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: 40px;
}
.footer-tagline { justify-self: start; }
.footer-top {
  justify-self: center;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  padding-block: 6px;
  white-space: nowrap;
}
.footer-top:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-copy { justify-self: end; white-space: nowrap; }

.footer-rule {
  margin: 30px 0 26px;
  border: 0;
  border-top: 1px solid var(--line);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-block: 8px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.social-links a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.social-links svg,
.copy-btn svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social-links svg { color: var(--green); }

.discord-card {
  margin-top: 22px;
  max-width: 560px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.discord-icon {
  width: 26px; height: 26px;
  padding: 8px;
  box-sizing: content-box;
  border-radius: 10px;
  background: var(--sage);
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.discord-body { min-width: 0; }
.discord-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.discord-link:hover { color: var(--green); text-decoration-color: currentColor; }
.discord-user {
  margin-top: 2px;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.discord-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.copy-btn:hover { border-color: var(--green); color: var(--green); }
.copy-btn.is-copied { background: var(--sage); border-color: var(--green); color: var(--green); }
.copy-btn[hidden] { display: none; }
.copy-status {
  font-size: 13px;
  line-height: 1.4;
  color: var(--green);
  text-align: right;
  max-width: 30ch;
}
.copy-status:not(:empty) { margin-top: 6px; }

@media (max-width: 720px) {
  .footer-row {
    grid-template-columns: auto auto;
    justify-content: space-between;
    row-gap: 6px;
  }
  .footer-tagline { grid-column: 1 / -1; }
  .footer-top { justify-self: start; }
}
@media (max-width: 520px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .discord-card { grid-template-columns: auto minmax(0, 1fr); }
  .discord-actions { grid-column: 1 / -1; align-items: flex-start; margin-top: 10px; }
  .copy-status { text-align: left; }
  .perspective-list li { font-size: 17px; grid-template-columns: 34px 1fr; }
}
@media (min-width: 521px) and (max-width: 900px) {
  :root { --gutter: 28px; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .xp-card:hover { transform: none; }
}
