/* Shoshin — marketing & legal site. Gold-on-black, one quiet voice.
   Palette mirrors the app's Theme.swift: sand #D8C39A on near-black. */

/* Self-hosted Cormorant Garamond (SIL OFL 1.1 — see /fonts/OFL.txt). Variable upright file
   covers 400–500; no third-party font requests leave this site (privacy page promise). */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-upright-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-upright-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0b0a08;          /* page ground — warm near-black */
  --ink-raise: #12100c;    /* cards / footer */
  --sand: #d8c39a;         /* the app's sand gold */
  --sand-dim: #a8946c;
  --text: #e9e2d3;         /* warm off-white body */
  --text-dim: #8f8878;
  --hair: rgba(216, 195, 154, 0.18);
  --measure: 42rem;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", "Seravek", ui-sans-serif, "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* faint radial warmth behind everything — atmosphere, not decoration */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(60rem 40rem at 50% -10%, rgba(216, 195, 154, 0.07), transparent 60%),
    radial-gradient(40rem 30rem at 85% 110%, rgba(216, 195, 154, 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main, header.site, footer.site { position: relative; z-index: 1; }

/* ---------- header ---------- */

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem clamp(1.25rem, 5vw, 3rem);
}

.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--sand);
  text-decoration: none;
}
.wordmark .jp {
  font-size: 0.8em;
  color: var(--text-dim);
  margin-left: 0.55em;
  letter-spacing: 0.1em;
}

nav.lang { font-size: 0.8rem; letter-spacing: 0.14em; }
nav.lang a { color: var(--text-dim); text-decoration: none; padding: 0.25rem 0.3rem; }
nav.lang a:hover { color: var(--sand); }
nav.lang .here { color: var(--sand); border-bottom: 1px solid var(--hair); }

/* ---------- landing ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(3rem, 10vh, 7rem) 1.5rem 4rem;
}

.enso {
  width: clamp(120px, 22vw, 180px);
  height: auto;
  margin-bottom: 2.6rem;
}
.enso path {
  fill: none;
  stroke: var(--sand);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 560;
  stroke-dashoffset: 560;
  animation: draw 2.4s cubic-bezier(0.55, 0, 0.3, 1) 0.3s forwards;
  opacity: 0.9;
}
@keyframes draw { to { stroke-dashoffset: 40; } }
@media (prefers-reduced-motion: reduce) {
  .enso path { animation: none; stroke-dashoffset: 40; }
}

.hero .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}

h1.thesis {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.18;
  max-width: 21ch;
  color: var(--text);
}
h1.thesis em {
  font-style: italic;
  color: var(--sand);
}

.hero .sub {
  margin-top: 1.4rem;
  max-width: 34rem;
  color: var(--text-dim);
  font-size: 1rem;
}

.store-badge {
  margin-top: 2.8rem;
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  text-decoration: none;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  transition: border-color 0.3s, background 0.3s;
}
.store-badge:hover { border-color: var(--sand-dim); background: rgba(216, 195, 154, 0.06); }

.hero .laws {
  margin-top: 4.5rem;
  display: flex;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 52rem;
}
.hero .laws div {
  max-width: 14rem;
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.6;
}
.hero .laws strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

/* ---------- article pages (privacy / terms / support) ---------- */

article {
  width: min(var(--measure), 100% - 2.5rem);
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) 0 5rem;
  flex: 1;
}

article h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}
article .updated {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2.6rem;
}

article h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--sand);
  margin: 2.4rem 0 0.6rem;
}

article p { margin: 0.8rem 0; }
article ul { margin: 0.8rem 0 0.8rem 1.2rem; }
article li { margin: 0.35rem 0; }
article a { color: var(--sand); text-decoration-color: var(--hair); text-underline-offset: 3px; }
article a:hover { text-decoration-color: var(--sand); }

.lede {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--text);
  border-left: 2px solid var(--sand-dim);
  padding-left: 1.1rem;
  margin: 0 0 2rem;
}

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--hair);
  background: var(--ink-raise);
  padding: 1.8rem clamp(1.25rem, 5vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-dim);
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
footer.site a { color: var(--text-dim); text-decoration: none; }
footer.site a:hover { color: var(--sand); }
