/* Coming-soon page + privacy.html. Full pre-redesign site is in /reference.
   Colours, type roles, the field and the CTA mirror the iOS app's design
   system (an-absurd-stone/design.md). Light only, like the app. */

@font-face {
  font-family: "Sorts Mill Goudy";
  src: url("fonts/sorts-mill-goudy-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* design.md §2.1 */
  --bg: #ffffff;          /* pure white (the app uses stoneBg #F5F3EF) */
  --ink: #1a1915;         /* stoneTextPrimary */
  --ink-soft: #a09a90;    /* stoneTextSec */
  --error: #b85c38;       /* stoneError */
  --line: #d4cfc8;        /* stoneFieldLine */
  --cta-off: #c8c3bb;     /* stoneCTAOff */

  --serif: "Sorts Mill Goudy", "Iowan Old Style", Palatino, Georgia, "Songti SC", serif;
  --sans: "Inter", -apple-system, "PingFang SC", "Helvetica Neue", Arial, sans-serif;

  /* AppMotion.ease */
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);

  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink-soft); }

/* ---------- coming soon ---------- */
.wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 20px 40px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* serifBody 16, stoneTextSec — like the counter on the app's Landing */
.wordmark {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-soft);
}

/* A random stone from the app's library, turning slowly; drag to spin it.
   .stone is the stone's place in the layout. The canvas is the same width
   but 25% taller above and below, so the shadow has room and is never cut
   off. The camera sits at 125% of the auto distance, so every stone shows
   at 80% of the size that would fill the box, centred on it. The extra canvas sits behind the wordmark and
   headline, which stay on top. */
.stone {
  position: relative;
  z-index: 0;
  width: min(360px, 86vw);
  aspect-ratio: 1;
  margin: 16px auto 8px;
}

.wrap > :not(.stone) {
  position: relative;
  z-index: 1;
}

.stone model-viewer {
  position: absolute;
  left: 0;
  top: -25%;
  width: 100%;
  height: 150%;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-height: 0;
  outline: none;
  opacity: 0;
  transition: opacity 1s var(--ease);
}

.stone model-viewer.ready { opacity: 1; }

/* display 56, tight like the Landing title */
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 9.4vw, 56px);
  line-height: 1.02;
  margin: 0 0 16px;
}

/* lead 20, stoneTextSec */
.tagline {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  color: var(--ink-soft);
  margin: 0 0 40px;
}

/* ---------- signup: UnderlineField + SerifCTA ---------- */
.signup {
  width: 100%;
  max-width: 380px;
  text-align: left;
}

.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

/* heading 24 */
.field-label label {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
}

/* caption 12, stoneError — errors sit on the right of the label */
.field-error {
  font-size: 12px;
  color: var(--error);
}

/* body 16 on a 1pt stoneFieldLine, no box */
.signup input {
  display: block;
  width: 100%;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.signup input::placeholder { color: var(--ink-soft); opacity: 1; }
.signup input:focus-visible { border-bottom-color: var(--ink-soft); }

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

/* SerifCTA: cta 28 + 12 gap + StoneArrow; grey until the email is valid */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.cta svg { width: 18px; height: 18px; flex: none; }
.cta:disabled { color: var(--cta-off); cursor: default; }
.cta.loading { opacity: 0.5; }
.cta:focus-visible { outline: 1px solid var(--ink-soft); outline-offset: 6px; }

/* callout 14 hint / confirmation */
.form-note {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

.form-note.ok { color: var(--ink); }

/* ---------- staggered reveal (design.md §5.4) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: reveal 0.9s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 120ms + 100ms);
}

@keyframes reveal {
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .stone model-viewer { transition: none; }
}

/* ---------- footer ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-soft);
}

.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

@media (max-width: 480px) {
  .footer { justify-content: center; text-align: center; }
}

/* ---------- privacy.html ---------- */
.section {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px;
}

.section h1 { font-size: 40px; }

h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin: 32px 0 8px;
}
