/* Isla, Island Calm. Tokens from the master plan, section 2.A (light theme only for this page). */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #faf6f0;          /* warm off-white */
  --sand: #f3ece1;        /* sand band */
  --ink: #22302c;         /* deep warm ink */
  --ink-soft: #5c6b64;    /* secondary text */
  --accent: #2e7d6b;      /* sea-glass, the single accent */
  --accent-deep: #256858; /* sea-glass, pressed */
  --accent-soft: #dcede6; /* fills, rings */
  --hairline: #e7dfd2;
  --amber: #b97e1e;       /* information only: used for the review placeholders */
  --serif: "Newsreader", "Iowan Old Style", "Georgia", serif;
  --sans: "Source Sans 3", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --measure: 34rem;
  --radius: 16px;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;   /* 19px */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 3rem);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top line: the name, nothing else */
.site-head {
  padding: 2rem 0 0;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

/* Each section is one idea, separated by space */
section { padding: 4.5rem 0; }

.hero { padding: 4.5rem 0 3.5rem; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0;
}
h1 {
  font-size: clamp(2.25rem, 8vw, 3.4rem);
  line-height: 1.12;
  max-width: 15ch;
}
h2 {
  font-size: clamp(1.6rem, 5vw, 2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.sub {
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: 1.1875rem;
}

/* The shoreline: the single quiet line motif */
.shoreline {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin: 2.75rem 0 0;
  color: var(--accent);
  opacity: 0.55;
}

/* Waitlist form */
.waitlist { margin-top: 2.5rem; }
.waitlist label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.waitlist input[type="email"] {
  width: 100%;
  font: inherit;
  font-size: 1.125rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  min-height: 56px;
}
.waitlist input[type="email"]::placeholder { color: #8a958f; }
.waitlist button {
  font: inherit;
  font-weight: 600;
  font-size: 1.125rem;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.75rem;
  min-height: 56px;
  cursor: pointer;
}
.waitlist button:hover { background: var(--accent-deep); }
.waitlist .note {
  margin: 0.9rem 0 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

@media (min-width: 40rem) {
  .field-row { flex-direction: row; }
  .waitlist input[type="email"] { flex: 1; }
}

/* Track, Learn, Belong */
.pillar p { margin: 0; color: var(--ink); }
.pillar + .pillar { padding-top: 0; }

/* The founding letter: a sand band, still no boxes */
.letter {
  background: var(--sand);
  padding: 5rem 0;
}
.letter .eyebrow {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
}
.letter-body {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.75;
}
.review-placeholder {
  border: 2px dashed var(--amber);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fbf5ea;
}
.review-placeholder strong { color: #7a5413; }

/* Money line */
.money p { margin: 0; }

/* Footer */
.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 3rem 0 3.5rem;
  font-size: 1rem;
  color: var(--ink-soft);
}
.site-foot p { margin: 0 0 1rem; }
.site-foot .built {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink);
}
.site-foot .privacy { max-width: var(--measure); }

/* Disclosure page */
.doc { padding: 3.5rem 0 4.5rem; }
.doc h1 { max-width: none; margin-bottom: 2rem; }
.doc p { margin: 0 0 1.5rem; }
.doc .lead { font-weight: 600; }
.back { display: inline-block; margin-top: 1rem; }

/* A gentle fade, and nothing more */
@media (prefers-reduced-motion: no-preference) {
  main { animation: fade 900ms ease-out both; }
  @keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}
