/* Akari Pathways
   Layout idea: night outside, a lit room inside. The dark header is the street;
   the page below it is the room with the light on. Left-aligned, a heading rail
   beside a reading column, wide quiet margins. */
:root {
  --night: #17131f;       /* the dark she lit up */
  --dusk: #2a2130;
  --amber: #f3b55b;       /* lamplight */
  --amber-deep: #85540f;  /* lamplight, dark enough to read on white */
  --fawn: #c8a27e;        /* her coat */
  --fawn-soft: #f1e7da;
  --white: #faf7f2;       /* the stripe on her chest */
  --glow: #fff0d4;
  --ink: #2b2330;
  --ink-soft: #5f5561;
  --on-night: #f4ecdf;
  --on-night-soft: #cdbfb0;

  --display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Segoe UI", system-ui, sans-serif;

  --measure: 35rem;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --space: clamp(4rem, 9vw, 7.5rem);
  --wide: 70rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 60rem) { body { font-size: 1.125rem; } }

h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 5.25rem); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); line-height: 1.25; }
h3 { font-size: 1.3rem; line-height: 1.35; font-weight: 600; }
p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }

a { color: var(--amber-deep); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--night); padding: 0.6rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

/* ---------- header, over the night ---------- */
.site-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 0.6rem 2rem;
  padding: 1.4rem var(--gutter);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.01em;
  color: var(--on-night); text-decoration: none;
}
.brand::before {
  content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(243, 181, 91, 0.22), 0 0 18px 4px rgba(243, 181, 91, 0.55);
}
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.35rem 1.6rem; }
.site-nav a {
  color: var(--on-night); text-decoration: none; font-size: 0.98rem; font-weight: 500;
  padding: 0.3rem 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--fawn); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--amber); }

/* ---------- the night, with light coming from the room below ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: var(--on-night);
  padding: clamp(8.5rem, 17vw, 12.5rem) var(--gutter) clamp(4.5rem, 10vw, 8rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 64% 44% at 70% 100%, rgba(255, 226, 176, 0.7) 0%, rgba(243, 181, 91, 0.38) 30%, rgba(243, 181, 91, 0.1) 62%, transparent 80%),
    radial-gradient(ellipse 34% 88% at 76% 100%, rgba(243, 181, 91, 0.16), transparent 72%),
    radial-gradient(ellipse 130% 30% at 50% 100%, rgba(243, 181, 91, 0.22), transparent 74%),
    linear-gradient(180deg, var(--night) 0%, var(--night) 48%, var(--dusk) 100%);
  animation: lamp-on 2.6s ease-out both;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.14; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes lamp-on { from { opacity: 0.3; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
  html { scroll-behavior: auto; }
}
.hero-in { max-width: var(--wide); margin-inline: auto; }
.hero h1 { max-width: 15ch; }
.hero--sub { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.hero--sub h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); max-width: 19ch; }
.lede { margin-top: 1.6rem; max-width: 33rem; font-size: 1.2rem; line-height: 1.65; color: var(--on-night); }
.actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; }
.hero .quiet { color: var(--on-night); font-size: 1rem; }

.btn {
  display: inline-block; background: var(--amber); color: var(--night);
  font-family: var(--body); font-weight: 700; font-size: 1.02rem; line-height: 1.2;
  padding: 0.95rem 1.5rem; border: 0; border-radius: 4px; text-decoration: none; cursor: pointer;
  transition: box-shadow 0.2s ease;
}
.btn:hover { box-shadow: 0 0 0 6px rgba(243, 181, 91, 0.22), 0 0 26px 2px rgba(243, 181, 91, 0.45); }

.name-mark {
  position: absolute; right: var(--gutter); bottom: clamp(1.5rem, 5vw, 3.5rem); z-index: -1;
  font-family: var(--display); font-weight: 500; font-size: clamp(3.5rem, 13vw, 9.5rem); line-height: 1;
  color: rgba(255, 233, 196, 0.34); user-select: none;
}

/* ---------- the room ---------- */
main { background: linear-gradient(180deg, var(--glow) 0, var(--white) 16rem); }
.band { padding: var(--space) var(--gutter); }
.band + .band { padding-top: 0; }
.band--tint { background: var(--fawn-soft); padding-top: var(--space); }
.band + .band--tint { padding-top: var(--space); }
.band--tint + .band { padding-top: var(--space); }
.split {
  max-width: var(--wide); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.5rem clamp(2rem, 6vw, 6rem); align-items: start;
}
@media (max-width: 52rem) { .split { grid-template-columns: minmax(0, 1fr); } }
.prose { display: grid; gap: 1.15rem; max-width: var(--measure); }
.prose h3 { margin-top: 0.8rem; }

/* the steps: a path with a lamp at each stop */
.path { border-left: 1px solid var(--fawn); margin-left: 0.45rem; max-width: var(--measure); }
.path li { position: relative; padding: 0 0 2.2rem 2rem; }
.path li:last-child { padding-bottom: 0; }
.path li::before {
  content: ""; position: absolute; left: -0.4rem; top: 0.5rem; width: 0.75rem; height: 0.75rem;
  border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(243, 181, 91, 0.28);
}
.path p { margin-top: 0.35rem; }

/* three ways in */
.ways { max-width: var(--wide); margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem clamp(1.5rem, 4vw, 3.5rem); }
@media (max-width: 52rem) { .ways { grid-template-columns: minmax(0, 1fr); } }
.ways li { border-top: 1px solid var(--fawn); padding-top: 1.3rem; display: grid; gap: 0.7rem; align-content: start; }

/* plain lists */
.facts { max-width: var(--measure); }
.facts li { padding: 1.05rem 0; border-top: 1px solid rgba(43, 35, 48, 0.16); }
.facts li:last-child { border-bottom: 1px solid rgba(43, 35, 48, 0.16); }
.terms { max-width: var(--measure); display: grid; }
.terms div { padding: 1.05rem 0; border-top: 1px solid rgba(43, 35, 48, 0.16); }
.terms div:last-child { border-bottom: 1px solid rgba(43, 35, 48, 0.16); }
.terms dt { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.terms dd { margin-top: 0.25rem; color: var(--ink); }

/* the story */
.story { max-width: 36rem; margin-inline: auto; display: grid; gap: 1.5rem; font-family: var(--display); font-size: clamp(1.15rem, 1.9vw, 1.35rem); line-height: 1.85; }
.story .said { font-size: clamp(1.8rem, 4.4vw, 2.9rem); line-height: 1.25; font-weight: 500; color: var(--amber-deep); margin-block: 1rem; text-wrap: balance; }
.hers { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; margin-top: 0.6rem; }
.hers li { display: flex; align-items: center; gap: 0.7rem; font-size: 0.98rem; }
.hers i { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid rgba(43, 35, 48, 0.18); }

/* contact */
.reach { display: grid; gap: 1.6rem; max-width: 26rem; }
.reach .big { font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 600; overflow-wrap: anywhere; }
.form { display: grid; gap: 1.3rem; max-width: 34rem; background: #fff; border: 1px solid #e5d9c9; border-radius: 6px; padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: 0 18px 50px -30px rgba(133, 84, 15, 0.45); }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.98rem; }
.field .hint { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.5; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid #cdbfae; border-radius: 4px; padding: 0.75rem 0.85rem; width: 100%;
}
.field textarea { min-height: 7rem; resize: vertical; }
.form-status { font-weight: 500; color: var(--ink); background: var(--glow); border-left: 3px solid var(--amber); padding: 0.9rem 1rem; }
.form-status[hidden] { display: none; }
.note { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- footer: back out into the night, light still on ---------- */
.site-foot {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night); color: var(--on-night);
  padding: var(--space) var(--gutter) 2.5rem;
}
.site-foot::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 55% at 22% 0%, rgba(255, 224, 170, 0.42) 0%, rgba(243, 181, 91, 0.18) 34%, transparent 70%);
}
.foot-in { max-width: var(--wide); margin-inline: auto; display: grid; gap: 3rem; }
.foot-call { display: grid; gap: 1.1rem; justify-items: start; }
.foot-call h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.foot-call p { max-width: 30rem; }
.site-foot a { color: var(--on-night); }
.site-foot .btn { color: var(--night); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 6rem); border-top: 1px solid rgba(244, 236, 223, 0.2); padding-top: 2rem; font-size: 0.95rem; line-height: 1.65; color: var(--on-night-soft); }
@media (max-width: 52rem) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.foot-grid ul { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-bottom: 1rem; }
.foot-grid p + p { margin-top: 0.8rem; }
.foot-grid strong { color: var(--on-night); font-weight: 700; }

@media (max-width: 40rem) {
  .hero { padding-top: 10.5rem; }
  .site-nav a { font-size: 0.93rem; }
  .site-nav ul { gap: 0.2rem 1.2rem; }
}
