/* =================================================================
   Inkline — playpalapps.github.io/Inkline
   Production-polish sumi-e website. Pure CSS, no build step.

   Design principles:
     • Restraint over richness. Whitespace does most of the work.
     • Three letter-spacing values, three weights, two type sizes per role.
     • Vermillion only as a single accent — never as fill.
     • Movement only where it carries meaning (petals drift, enso breathes).
     • Long-form pages get a sticky TOC on desktop, collapsing on mobile.
   ================================================================= */

/* ── Tokens ── */
:root {
  --paper:        #ede0c0;
  --paper-cream:  #f6ecd2;
  --paper-warm:   #e8d8b0;
  --paper-deep:   #d9c79a;
  --paper-edge:   #c8b07a;

  --ink:          #1c1410;
  --ink-soft:     rgba(28, 20, 16, 0.74);
  --ink-mute:     rgba(28, 20, 16, 0.55);
  --ink-faint:    rgba(28, 20, 16, 0.34);
  --ink-ghost:    rgba(28, 20, 16, 0.14);
  --ink-line:     rgba(28, 20, 16, 0.18);

  --vermillion:        #a32d2d;
  --vermillion-deep:   #842323;
  --vermillion-soft:   rgba(163, 45, 45, 0.5);
  --vermillion-faint:  rgba(163, 45, 45, 0.22);

  --serif: "Hiragino Mincho ProN", "Songti SC", "Noto Serif JP",
           "Source Serif Pro", "Source Serif 4", Georgia,
           "Times New Roman", Times, serif;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);

  /* Locked letter-spacing system — three values only */
  --tr-body:    0.06em;
  --tr-title:   0.16em;
  --tr-eyebrow: 0.32em;

  /* Type scale — golden-ratio leaning */
  --t-display: clamp(56px, 10vw, 104px);
  --t-h1:      clamp(38px, 7vw, 58px);
  --t-h2:      clamp(26px, 4.5vw, 36px);
  --t-h3:      clamp(22px, 3.5vw, 28px);
  --t-body:    17px;
  --t-small:   15px;
  --t-meta:    13px;
  --t-eyebrow: 12px;

  /* Spacing rhythm (8-pt grid plus generous section spacing) */
  --s-section-y: clamp(56px, 9vw, 96px);
  --s-block-y:   clamp(32px, 5vw, 48px);

  /* Shadows */
  --shadow-card-soft:
      0 1px 2px rgba(60, 40, 20, 0.05),
      0 8px 22px rgba(60, 40, 20, 0.10);
  --shadow-card-lift:
      0 2px 4px rgba(60, 40, 20, 0.07),
      0 14px 36px rgba(60, 40, 20, 0.18);
  --shadow-screen:
      0 18px 44px rgba(60, 40, 20, 0.26),
      0 4px 0 rgba(60, 40, 20, 0.04),
      inset 0 0 0 1px rgba(28, 20, 16, 0.10);

  --radius-soft: 6px;
  --radius-card: 16px;
  --radius-screen: 32px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

/* Solid cream on the root element so iOS Safari's overscroll area and the
   safe-area zones (status bar / home indicator) show paper, not white. */
html {
  background-color: var(--paper);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--serif);
  color: var(--ink);
  /* IMPORTANT: split background-color from background-image. Using the
     `background:` shorthand twice silently nukes the color, leaving white
     under iOS Safari chrome when overscrolling. */
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 16% 8%,  rgba(176, 138, 60, 0.07) 0%, transparent 35%),
    radial-gradient(circle at 86% 86%, rgba(120, 80, 40, 0.08) 0%, transparent 42%),
    radial-gradient(circle at 64% 28%, rgba(120, 80, 40, 0.04) 0%, transparent 40%),
    radial-gradient(ellipse at center, var(--paper-cream) 0%, var(--paper) 50%, var(--paper-deep) 100%);
  background-attachment: fixed;
  background-size: cover;
  font-size: var(--t-body);
  line-height: 1.7;
  letter-spacing: var(--tr-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Atmosphere: horizontal fibers + distant mountains ── */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(180deg,
      rgba(120, 80, 40, 0) 0%,
      rgba(120, 80, 40, 0.035) 50%,
      rgba(120, 80, 40, 0) 100.1%);
  background-size: 100% 260px;
  opacity: 0.7;
}

body::after {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 22vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 100' preserveAspectRatio='none'><path d='M 0 80 L 60 50 L 110 64 L 180 28 L 240 56 L 320 32 L 390 60 L 460 36 L 540 60 L 600 38 L 600 100 L 0 100 Z' fill='rgba(28,20,16,0.10)'/></svg>") no-repeat bottom / 100% 70%,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 80' preserveAspectRatio='none'><path d='M 0 64 L 50 40 L 130 56 L 220 22 L 300 50 L 380 28 L 460 48 L 540 30 L 600 42 L 600 80 L 0 80 Z' fill='rgba(28,20,16,0.18)'/></svg>") no-repeat bottom / 100% 44%;
}

/* ── Cherry blossom branch — top-left decoration (fixed) ── */
.atmosphere-branch {
  position: fixed;
  top: -10px;
  left: -10px;
  width: clamp(180px, 32vw, 320px);
  height: clamp(140px, 24vw, 240px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.atmosphere-branch svg { width: 100%; height: 100%; display: block; }

/* Mirrored branch for the bottom-right */
.atmosphere-branch.bottom-right {
  top: auto; left: auto;
  bottom: 18vh; right: -10px;
  transform: scaleX(-1) scaleY(-1);
  opacity: 0.4;
  z-index: 0;
}

/* ── Drifting petals ── */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.petal {
  position: absolute;
  top: -24px;
  width: 9px; height: 7px;
  background:
    radial-gradient(ellipse at 30% 30%,
      rgba(252, 218, 226, 0.96),
      rgba(248, 197, 211, 0.78) 60%,
      rgba(248, 197, 211, 0) 100%);
  border-radius: 60% 40% 60% 40% / 50% 50% 50% 50%;
  opacity: 0.9;
  animation: petal-drift linear infinite;
  filter: drop-shadow(0 1px 1px rgba(120, 60, 80, 0.10));
}
@keyframes petal-drift {
  0%   { transform: translate(0, -24px) rotate(0deg);   opacity: 0; }
  10%  { opacity: 0.9; }
  90%  { opacity: 0.9; }
  100% { transform: translate(72px, 110vh) rotate(540deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .petal { animation: none; display: none; }
  html { scroll-behavior: auto; }
}

/* =================================================================
   Layout
   ================================================================= */

.page {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) clamp(22px, 4vw, 40px) 80px;
}
.page-narrow {
  max-width: 720px;
}
.page-with-toc {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr min(720px, 100%) 1fr;
  gap: 0;
}
.page-with-toc > * { grid-column: 2; }
.page-with-toc > aside.toc { grid-column: 1; }

/* ── Top navigation ── */
nav.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(22px, 4vw, 40px);
  background: rgba(237, 224, 192, 0.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(28, 20, 16, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(60, 40, 20, 0.18),
    inset 0 0 0 1px rgba(28, 20, 16, 0.08);
}
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: var(--tr-title);
}
nav.topbar .nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 28px);
  font-size: var(--t-meta);
  letter-spacing: var(--tr-body);
}
nav.topbar .nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-style: italic;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: color 200ms, border-color 200ms;
}
nav.topbar .nav-links a:hover {
  color: var(--ink);
  border-color: var(--vermillion-soft);
}
nav.topbar .nav-links a.is-active {
  color: var(--ink);
  border-color: var(--vermillion);
}

/* =================================================================
   Brush rules and seals
   ================================================================= */

.brush-rule {
  width: 96px;
  height: 1px;
  margin: clamp(28px, 5vw, 44px) auto;
  background: linear-gradient(90deg,
    rgba(28,20,16,0) 0%,
    rgba(163,45,45,0.85) 50%,
    rgba(28,20,16,0) 100%);
  position: relative;
}
.brush-rule::after {
  content: "·";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  color: var(--vermillion);
  font-size: 22px;
  background: var(--paper);
  padding: 0 8px;
  line-height: 1;
}

.seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--vermillion);
  color: var(--paper-cream);
  font-family: var(--serif);
  font-size: 11px;
  border-radius: 2px;
  transform: rotate(-4deg);
  margin-right: 8px;
  font-style: normal;
  box-shadow:
    inset 0 0 3px rgba(120, 30, 30, 0.55),
    inset 0 0 0 1px rgba(247, 238, 212, 0.20),
    0 1px 1px rgba(120, 30, 30, 0.15);
}
.seal-large {
  width: 38px; height: 38px;
  font-size: 18px;
}
.seal-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: clamp(48px, 8vw, 72px) auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-meta);
  color: var(--ink-faint);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
}

/* =================================================================
   HERO
   ================================================================= */

.hero {
  text-align: center;
  padding: clamp(28px, 5vw, 56px) 0 clamp(12px, 3vw, 24px);
  position: relative;
}
.hero .eyebrow {
  font-family: var(--serif);
  font-size: var(--t-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero .enso {
  /* The SVG path uses viewBox 0 0 100 100, but the wet-halo stroke (width 22)
     paints to y≈103 — beyond the viewBox. We do TWO things to keep the bottom
     of the brush visible: */
  /* 1. The .enso box is a touch taller than wide, giving the halo room. */
  width: clamp(140px, 22vw, 196px);
  height: clamp(150px, 24vw, 212px);
  margin: 0 auto 12px;
  position: relative;
  animation: enso-breath 7s ease-in-out infinite;
  filter: drop-shadow(0 6px 18px rgba(60, 40, 20, 0.22));
  /* 2. Allow the SVG to paint outside the box (some browsers respect this
        even when overflow is the default 'hidden' for SVG). */
  overflow: visible;
}
@keyframes enso-breath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
.hero .enso svg {
  width: 100%;
  height: 100%;
  display: block;
  /* Critical: allow the brush-halo stroke to spill out of the SVG's
     declared viewBox so the bottom of the ring isn't clipped. */
  overflow: visible;
}
.hero h1 {
  font-family: var(--serif);
  font-size: var(--t-display);
  font-weight: 400;
  letter-spacing: var(--tr-title);
  margin: 4px 0 14px;
  line-height: 1;
  /* Soft ink-wash glow */
  text-shadow:
    0 0 24px rgba(247, 238, 212, 0.7),
    0 0 4px rgba(247, 238, 212, 0.4);
}
.hero .tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 2.4vw, 19px);
  color: var(--ink-soft);
  margin: 0 0 36px;
  letter-spacing: var(--tr-body);
  line-height: 1.4;
}
.hero .tagline .dot {
  color: var(--vermillion);
  margin: 0 10px;
}

/* ── Store badges (Apple/Google style outlines) ── */
.store-badges {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 12px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-cream);
  font-family: var(--serif);
  text-decoration: none;
  transition: transform 160ms, opacity 200ms;
  min-width: 200px;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: scale(0.98); }
.store-badge svg {
  width: 26px; height: 26px;
  flex: 0 0 auto;
}
.store-badge svg path,
.store-badge svg polygon { fill: var(--paper-cream); }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.05; }
.store-badge-eyebrow {
  font-size: 10px;
  font-style: italic;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  opacity: 0.7;
}
.store-badge-label {
  font-size: 18px;
  letter-spacing: var(--tr-title);
  margin-top: 1px;
}
.store-badge.coming {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-line);
  cursor: default;
}
.store-badge.coming svg path,
.store-badge.coming svg polygon { fill: var(--ink); }
.store-badge.coming:hover { transform: none; }
.coming-note {
  margin-top: 16px;
  font-style: italic;
  font-size: var(--t-meta);
  color: var(--ink-faint);
  letter-spacing: var(--tr-body);
}

/* =================================================================
   Sections
   ================================================================= */

section {
  position: relative;
  z-index: 2;
  padding: var(--s-section-y) 0;
}
section h2 {
  font-family: var(--serif);
  font-size: var(--t-h2);
  font-weight: 400;
  letter-spacing: var(--tr-title);
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.2;
}
section .section-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-meta);
  color: var(--ink-faint);
  text-align: center;
  margin: 0 0 var(--s-block-y);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
}

p { margin: 0 0 18px; color: var(--ink); }
p.lede {
  font-size: clamp(17px, 2.3vw, 21px);
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 auto 24px;
  max-width: 680px;
  line-height: 1.6;
}
p.lede.muted { color: var(--ink-faint); font-size: clamp(15px, 2vw, 18px); }

/* =================================================================
   Six scrolls — hanging-scroll style cards
   ================================================================= */

.scrolls {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.scrolls li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 22px 18px;
  background:
    linear-gradient(180deg, rgba(247, 238, 212, 0.65) 0%, rgba(232, 216, 176, 0.55) 100%);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-soft);
  transition: transform 240ms, box-shadow 240ms;
}
.scrolls li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-lift);
}
.scrolls li::before {
  /* Faint bamboo-rod top accent */
  content: "";
  position: absolute;
  top: 6px; left: 22px; right: 22px;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(120, 80, 40, 0) 0%,
    rgba(120, 80, 40, 0.35) 30%,
    rgba(120, 80, 40, 0.35) 70%,
    rgba(120, 80, 40, 0) 100%);
}
.scrolls li .glyph {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink);
  flex: 0 0 auto;
  width: 40px;
  text-align: center;
  line-height: 1;
  margin-top: 4px;
}
.scrolls li .body {
  flex: 1;
}
.scrolls li .body strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: var(--tr-title);
  margin-bottom: 2px;
}
.scrolls li .body em {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-small);
  color: var(--ink-mute);
  letter-spacing: var(--tr-body);
}

.scrolls-foot {
  text-align: center;
  font-style: italic;
  color: var(--ink-faint);
  margin-top: 28px;
  font-size: var(--t-meta);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
}

/* =================================================================
   Screenshot showcase — phone-frame mockup
   ================================================================= */

.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 3vw, 36px);
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}
.shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.phone-frame {
  position: relative;
  width: 100%;
  max-width: 248px;
  aspect-ratio: 1320 / 2868;
  border-radius: var(--radius-screen);
  padding: 8px;
  background: linear-gradient(150deg, #2a201a 0%, #0e0905 60%, #1c1410 100%);
  box-shadow: var(--shadow-screen);
  transition: transform 280ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.phone-frame:hover { transform: translateY(-6px); }
.phone-frame .screen {
  width: 100%; height: 100%;
  border-radius: calc(var(--radius-screen) - 8px);
  overflow: hidden;
  background: var(--paper-cream);
}
.phone-frame .screen img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.phone-frame::before {
  /* Subtle bezel highlight */
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-screen) - 1px);
  background: linear-gradient(180deg, rgba(247, 238, 212, 0.10) 0%, transparent 30%);
  pointer-events: none;
  z-index: 1;
}
.shot-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-meta);
  color: var(--ink-mute);
  letter-spacing: var(--tr-body);
  text-align: center;
  max-width: 220px;
  line-height: 1.5;
}

/* =================================================================
   Featurettes
   ================================================================= */

.featurette {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  margin: clamp(40px, 6vw, 72px) auto;
  max-width: 1000px;
}
.featurette.right { direction: rtl; }
.featurette.right > * { direction: ltr; }
.featurette-art {
  position: relative;
  display: flex;
  justify-content: center;
}
.featurette-art .phone-frame { max-width: 240px; }
.featurette-text h3 {
  font-family: var(--serif);
  font-size: var(--t-h3);
  font-weight: 400;
  letter-spacing: var(--tr-title);
  margin: 0 0 14px;
  line-height: 1.25;
}
.featurette-text p {
  color: var(--ink-soft);
  margin: 0 0 14px;
  font-size: var(--t-body);
  max-width: 460px;
}
.featurette-text .featurette-pull {
  font-style: italic;
  color: var(--ink-mute);
  font-size: var(--t-small);
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--vermillion-soft);
}
@media (max-width: 760px) {
  .featurette { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .featurette.right { direction: ltr; }
  .featurette-text p { margin-left: auto; margin-right: auto; }
  .featurette-text .featurette-pull { text-align: left; max-width: 380px; margin-left: auto; margin-right: auto; }
}

/* =================================================================
   Quiet promises
   ================================================================= */

.promises {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 940px;
  margin: 0 auto;
}
.promise {
  text-align: center;
  padding: 26px 18px 20px;
  background:
    linear-gradient(180deg, rgba(247, 238, 212, 0.5) 0%, rgba(232, 216, 176, 0.4) 100%);
  border: 1px dashed rgba(28, 20, 16, 0.20);
  border-radius: var(--radius-card);
  transition: transform 240ms, border-color 240ms;
}
.promise:hover {
  transform: translateY(-3px);
  border-color: var(--vermillion-soft);
  border-style: solid;
}
.promise .glyph {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--vermillion);
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}
.promise h3 {
  font-family: var(--serif);
  font-size: var(--t-body);
  font-weight: 400;
  letter-spacing: var(--tr-title);
  margin: 0 0 6px;
}
.promise p {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-meta);
  color: var(--ink-mute);
  margin: 0;
  letter-spacing: var(--tr-body);
}

/* =================================================================
   Prose pages (Privacy, Support, Terms)
   ================================================================= */

.prose {
  position: relative;
  z-index: 2;
}
.prose .page-header {
  text-align: center;
  padding: clamp(32px, 5vw, 56px) 0 clamp(12px, 2vw, 20px);
}
.prose .page-header .eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-meta);
  letter-spacing: var(--tr-eyebrow);
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.prose h1 {
  font-family: var(--serif);
  font-size: var(--t-h1);
  font-weight: 400;
  letter-spacing: var(--tr-title);
  margin: 0 0 8px;
  line-height: 1.05;
}
.prose .lede {
  margin: 30px auto 8px;
}
.prose section {
  padding: clamp(24px, 4vw, 36px) 0;
}
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 400;
  letter-spacing: var(--tr-title);
  margin: 8px 0 14px;
  color: var(--ink);
  text-align: left;
  position: relative;
  padding-left: 16px;
}
.prose h2::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  background: var(--vermillion);
  border-radius: 50%;
}
.prose p, .prose li {
  font-size: var(--t-body);
  color: var(--ink);
  line-height: 1.8;
}
.prose ul {
  padding-left: 26px;
  margin: 0 0 18px;
}
.prose ul li {
  margin-bottom: 8px;
  list-style: none;
  position: relative;
}
.prose ul li::before {
  content: "·";
  position: absolute;
  left: -18px;
  color: var(--vermillion-soft);
  font-size: 18px;
  line-height: 1;
  top: 6px;
}
.prose strong { font-weight: 600; }
.prose em.signoff {
  display: block;
  margin: 52px auto 24px;
  font-style: italic;
  color: var(--ink-faint);
  text-align: center;
  font-size: var(--t-meta);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
}
.prose .meta-stamp {
  text-align: center;
  font-size: var(--t-eyebrow);
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 36px;
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
}

/* ── Inline links ── */
a.email,
a.inline-link,
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--vermillion-soft);
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 200ms, color 200ms;
}
a.email:hover,
a.inline-link:hover,
.prose a:hover {
  color: var(--vermillion);
  text-decoration-color: var(--vermillion);
}

/* =================================================================
   Sticky TOC for long pages
   ================================================================= */

aside.toc {
  position: sticky;
  top: 80px;
  align-self: start;
  max-width: 220px;
  padding-right: 16px;
  font-size: var(--t-meta);
  z-index: 5;
}
aside.toc .toc-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  color: var(--ink-faint);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink-line);
}
aside.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
aside.toc a {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 10px;
  margin-left: -2px;
  transition: color 200ms, border-color 200ms;
  line-height: 1.5;
  display: block;
}
aside.toc a:hover {
  color: var(--ink);
  border-color: var(--vermillion-soft);
}
@media (max-width: 980px) {
  .page-with-toc {
    grid-template-columns: 1fr;
    max-width: 720px;
  }
  .page-with-toc > * { grid-column: 1; }
  aside.toc {
    position: static;
    max-width: none;
    margin-bottom: 24px;
    padding: 14px 18px;
    background: rgba(247, 238, 212, 0.45);
    border: 1px solid var(--ink-line);
    border-radius: var(--radius-card);
  }
  aside.toc ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 6px;
  }
  aside.toc a {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
}

/* =================================================================
   FAQ accordion
   ================================================================= */

.faq {
  max-width: 720px;
  margin: 28px auto;
  position: relative;
  z-index: 2;
}
.faq-item {
  border-top: 1px solid var(--ink-line);
  transition: background 200ms;
}
.faq-item:last-child { border-bottom: 1px solid var(--ink-line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: var(--tr-body);
  color: var(--ink);
  transition: color 200ms;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--vermillion);
  font-size: 22px;
  line-height: 1;
  transition: transform 240ms;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item:hover summary { color: var(--vermillion-deep); }
.faq-item:hover { background: rgba(247, 238, 212, 0.3); }
.faq-item .answer {
  padding: 0 12px 22px;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.75;
  max-width: 640px;
}
.faq-item .answer p { margin: 0 0 12px; color: inherit; font-size: var(--t-small); }
.faq-item .answer p:last-child { margin-bottom: 0; }

/* =================================================================
   Quick-contact callout (top of Support)
   ================================================================= */

.contact-card {
  max-width: 580px;
  margin: 28px auto 36px;
  padding: 28px clamp(20px, 4vw, 36px);
  background:
    radial-gradient(circle at 80% 20%, rgba(176,138,60,0.06) 0%, transparent 60%),
    linear-gradient(180deg, rgba(247, 238, 212, 0.65) 0%, rgba(232, 216, 176, 0.55) 100%);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-card);
  text-align: center;
  box-shadow: var(--shadow-card-soft);
  position: relative;
}
.contact-card::before {
  content: "";
  position: absolute;
  top: -3px; left: -3px;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='%231c1410' stroke-width='1.4' stroke-linecap='round' opacity='0.75'><path d='M 4 16 Q 6 8 16 4'/><path d='M 4 16 L 2 22 M 16 4 L 22 2'/></g></svg>") no-repeat center / contain;
}
.contact-card::after {
  content: "";
  position: absolute;
  bottom: -3px; right: -3px;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='%231c1410' stroke-width='1.4' stroke-linecap='round' opacity='0.75'><path d='M 20 8 Q 18 16 8 20'/><path d='M 20 8 L 22 2 M 8 20 L 2 22'/></g></svg>") no-repeat center / contain;
}
.contact-card .contact-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-eyebrow);
  color: var(--ink-faint);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-card .contact-email {
  font-family: var(--serif);
  font-size: clamp(20px, 3.5vw, 26px);
  display: inline-block;
  margin: 6px 0 12px;
}
.contact-card .contact-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-meta);
  color: var(--ink-mute);
  margin: 0;
  line-height: 1.6;
}

/* =================================================================
   Footer
   ================================================================= */

footer.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(72px, 10vw, 120px);
  padding: 36px 24px clamp(40px, 8vh, 60px);
  text-align: center;
}
footer .footer-rule {
  width: 80px;
  height: 1px;
  margin: 0 auto 28px;
  background: linear-gradient(90deg,
    rgba(28,20,16,0) 0%,
    rgba(163,45,45,0.7) 50%,
    rgba(28,20,16,0) 100%);
  position: relative;
}
footer .footer-rule::after {
  content: "墨";
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 13px;
  color: var(--vermillion);
  background: var(--paper);
  padding: 0 8px;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 3vw, 24px);
  font-family: var(--serif);
  font-size: var(--t-meta);
  letter-spacing: var(--tr-body);
  margin: 0 0 18px;
  flex-wrap: wrap;
}
footer .footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-style: italic;
  transition: color 200ms;
}
footer .footer-links a:hover { color: var(--ink); }
footer .copyright {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-eyebrow);
  color: var(--ink-faint);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
}

/* =================================================================
   Fade-in on load
   ================================================================= */

main, .topbar { animation: fade-up 600ms cubic-bezier(0.2, 0.7, 0.3, 1) both; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  main, .topbar, .hero .enso { animation: none; }
}

/* =================================================================
   Print
   ================================================================= */
@media print {
  body::before, body::after, .petals, .atmosphere-branch { display: none; }
  nav.topbar, footer.site-footer { display: none; }
  .page { padding: 12px; max-width: none; }
  .faq-item, .faq-item[open] { background: transparent !important; }
  .faq-item .answer { display: block !important; }
  a { color: var(--ink) !important; text-decoration: underline !important; }
}
