/* Painted Diary pages: the app's Day palette (misty base, forest brand, blush touches); Evening (deep forest) in dark mode. */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #EDF1F4;
  --bg-top: #EDF1F4;
  --paper: #FFFFFF;
  --ink: #1E2D3C;
  --muted: #4E5E6D;
  --line: #DCE3E9;
  --accent: #1E3A2C;        /* forest */
  --button: #1E3A2C;
  --button-ink: #FFFFFF;
  --soft: #FBE8E4;          /* blush wash */
  --on-soft: #1E3A2C;
  --blush-line: #F3C4BE;    /* decoration only, never text */
  --tape: #E7DEC8;
  --tape-2: #E3D9C1;
  --shadow: 0 1px 2px rgba(30, 58, 44, .06), 0 12px 32px -12px rgba(30, 58, 44, .24);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1511;
    --bg-top: #15241C;
    --paper: #17261E;
    --ink: #EEF2EF;
    --muted: #A9B8AF;
    --line: #243A2F;
    --accent: #F3C4BE;      /* blush */
    --button: #F3C4BE;
    --button-ink: #12301F;
    --soft: #33262E;
    --on-soft: #F3C4BE;
    --blush-line: rgba(243, 196, 190, .45);
    --tape: #CFC4AA;
    --tape-2: #C6BA9F;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg) linear-gradient(180deg, var(--bg-top), var(--bg) 70vh) no-repeat;
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Figtree", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
main { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: .2em; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* top bar */
.top { display: flex; align-items: center; gap: .6rem; padding-bottom: 1.25rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.top picture { display: flex; }
.top img { width: 32px; height: 32px; border-radius: 8px; }
.top > a { font: 400 1.25rem/1 "Newsreader", Georgia, serif; text-decoration: none; color: var(--accent); }
.top nav { margin-left: auto; display: flex; gap: 1.1rem; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--muted); padding: .5rem 0; }
.top nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-decoration-color: var(--blush-line); text-decoration-thickness: 2px; }

h1, h2 { font-family: "Newsreader", Georgia, serif; font-weight: 300; letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 7vw, 3.25rem); line-height: 1.08; margin: 0 0 .75rem; }
h2 { font-size: 1.6rem; line-height: 1.2; margin: 2.5rem 0 .5rem; }
h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.75rem 0 .25rem; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
li { margin-bottom: .35rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.muted { color: var(--muted); font-size: .95rem; }
.eyebrow { font-variant: all-small-caps; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 0 0 .5rem; }

/* landing */
.hero { text-align: center; padding: 1.5rem 0 .5rem; }
.hero picture { display: inline-block; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: .25rem; }
.hero .tagline { font: italic 300 1.5rem/1.3 "Newsreader", Georgia, serif; color: var(--muted); margin-bottom: 1.5rem; }
.hero .lead { max-width: 32rem; margin: 0 auto 1.75rem; }
.badge { text-decoration: none; display: inline-block; padding: .8rem 1.4rem; border-radius: 999px; background: var(--button); color: var(--button-ink); font-weight: 600; font-size: .95rem; }

.prints { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 3vw, 1.5rem); margin: 3.5rem 0 1rem; padding: 0 .25rem; }
.print { position: relative; margin: 0; padding: 6px; background: var(--paper); box-shadow: var(--shadow); }
.print:nth-child(1) { transform: rotate(-2deg); }
.print:nth-child(2) { transform: translateY(-14px); }
.print:nth-child(3) { transform: rotate(1.6deg); }
.print img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.print::before, .print::after { content: ""; position: absolute; top: -9px; width: 42%; height: 20px; background: var(--tape); opacity: .92; }
.print::before { left: -6%; transform: rotate(-8deg); }
.print::after { right: -6%; transform: rotate(7deg); background: var(--tape-2); }
.caption { text-align: center; margin-top: 1.25rem; }

.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.25rem; margin: 0; }
.steps b { display: block; font: 400 1.25rem/1.3 "Newsreader", Georgia, serif; margin-bottom: .15rem; }
.steps span { color: var(--muted); }
@media (min-width: 40rem) { .steps { grid-template-columns: repeat(3, 1fr); } }

.facts { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; list-style: none; padding: 0; margin: 2rem 0 0; }
.facts li { background: var(--soft); border: 1px solid var(--blush-line); border-radius: 999px; padding: .4rem .9rem; font-size: .95rem; color: var(--on-soft); margin: 0; }

/* support */
details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 .6rem; }
summary { cursor: pointer; padding: .9rem 2.75rem .9rem 1.1rem; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font: 300 1.5rem/1 "Figtree", sans-serif; color: var(--accent); }
details[open] summary::after { content: "\2013"; }
details > div { padding: 0 1.1rem .4rem; color: var(--muted); }
.contact { background: var(--soft); border: 1px solid var(--blush-line); border-radius: 16px; padding: 1.25rem; margin-top: 2.5rem; }
.contact p:last-child { margin: 0; }

footer { margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
footer a { color: var(--muted); }
footer span { flex-basis: 100%; }
