/* WillowTome Studios — site styles */
:root {
  --bg: #f5efe2;
  --surface: #fffaf0;
  --ink: #1f2a24;
  --muted: #5a6560;
  --accent: #2f5d4a;
  --accent-ink: #fffaf0;
  --gold: #9c7a33;
  --line: #e2d7c1;
  --shadow: 0 1px 2px rgba(31, 42, 36, .06), 0 8px 24px rgba(31, 42, 36, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111714;
    --surface: #18201c;
    --ink: #ece6d8;
    --muted: #a2aba5;
    --accent: #8fbfa6;
    --accent-ink: #111714;
    --gold: #d4b06a;
    --line: #2a3530;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 1.25rem; letter-spacing: .01em;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; color: var(--accent); flex: none; }
.brand small { color: var(--muted); font-family: var(--sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 56px; }
.eyebrow {
  color: var(--gold); font-size: .8rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); max-width: 18ch; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); }
h3 { font-size: 1.3rem; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 56ch; margin: 0 0 28px; }

.buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid var(--accent);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--accent-ink); }
.btn-ghost { color: var(--accent); }
.btn-ghost:hover { border-color: var(--gold); }

/* Sections */
section { padding: 48px 0; }
.section-intro { color: var(--muted); max-width: 60ch; margin: 0 0 28px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; box-shadow: var(--shadow);
}
.card .tag {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.card p { color: var(--muted); margin: 0 0 16px; }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 600; padding: 4px 10px;
  border-radius: 999px; border: 1px solid var(--gold); color: var(--gold);
}

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; box-shadow: var(--shadow);
}

/* Prose pages */
.page { padding: 56px 0 40px; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; font-size: 1.4rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.muted { color: var(--muted); }
.email-big { font-family: var(--serif); font-size: 1.5rem; word-break: break-all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; padding-bottom: 32px; color: var(--muted); font-size: .9rem;
}
.site-footer a { color: var(--muted); }
.site-footer nav { gap: 16px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 48px 0 36px; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
}
