/* Sunbeam — sunbeamcoloring.com
   Palette and type roles follow Sunbeam/Design/Palette.swift.
   No external requests: no webfonts, no scripts, no embeds. The privacy
   page promises that, so the stylesheet has to keep it true. */

:root {
  --gold:       #E9A433;
  --honey:      #F9D073;
  --amber-deep: #B26A10;

  --cream:      #FFFAF0;
  --paper:      #F6F1E6;
  --paper-edge: #EAE3D4;
  --ink:        #241F1A;

  --morning-blue: #2F6D9E;
  --olive-leaf:   #4C8459;
  --clay:         #B4553C;

  --ground:  var(--paper);
  --surface: var(--cream);
  --edge:    var(--paper-edge);
  --text:    var(--ink);
  --muted:   #6B6157;
  --accent:  var(--amber-deep);
  --rule:    var(--gold);
  --wash-a:  rgba(249, 208, 115, 0.55);
  --wash-b:  rgba(246, 241, 230, 0);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --shell:   58rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground:  #191512;
    --surface: #221D18;
    --edge:    #332C24;
    --text:    #F3EADC;
    --muted:   #A8998A;
    --accent:  var(--honey);
    --rule:    var(--gold);
    --wash-a:  rgba(233, 164, 51, 0.20);
    --wash-b:  rgba(25, 21, 18, 0);
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--rule);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--surface); color: var(--text);
  padding: 0.75rem 1rem; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

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

.site-head {
  padding: 1.75rem 0 1.25rem;
}
.site-head .shell {
  display: flex; align-items: center; gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; display: block; border-radius: 50%; }

.site-nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline; }

/* ---- hero ---- */

.hero {
  position: relative;
  padding: 3.5rem 0 3rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -40% -20% auto -20%;
  height: 130%;
  background: radial-gradient(ellipse at 30% 20%, var(--wash-a), var(--wash-b) 62%);
  pointer-events: none;
}
.hero .shell { position: relative; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 6.5vw, 3.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
  max-width: 18ch;
}
.hero .lead {
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 40ch;
  margin: 0 0 1.75rem;
}

.mark-large {
  width: 96px; height: 96px;
  display: block;
  margin: 0 0 1.75rem;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(36, 31, 26, 0.14);
}

.status {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
}

/* ---- page title (interior pages) ---- */

.page-head { padding: 2rem 0 0.5rem; }
.page-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}
.stamp {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ---- prose ---- */

/* The shell stays full width so prose lines up with the page title and the
   wordmark; the measure is applied to the children instead of the column. */
.prose { padding: 1.5rem 0 3rem; }
.prose > * { max-width: var(--measure); }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }

.prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--rule);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

.prose h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  margin-top: 1.9rem;
}

.prose ul { padding-left: 1.15rem; }
.prose li + li { margin-top: 0.5rem; }
.prose strong { font-weight: 650; }

.statement {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.05rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
}
.card > * + * { margin-top: 0.9rem; }

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- index feature grid ---- */

.panels {
  padding: 1rem 0 3rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.panel {
  background: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
}
.panel h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}
.panel p { margin: 0; color: var(--muted); font-size: 0.98rem; }

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

.site-foot {
  border-top: 1px solid var(--edge);
  padding: 2rem 0 3.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-foot .shell > * + * { margin-top: 0.85rem; }
.foot-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.foot-nav a { color: var(--muted); }
.disclaimer { max-width: 46ch; }

@media (max-width: 30rem) {
  .site-head .shell { gap: 0.9rem; }
  .brand { margin-right: 0; width: 100%; }
}
