/* Wispy as a Willow — one-page book site */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/source-sans-3-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #f7f1e4;
  --cream-deep: #efe4cf;
  --paper: #fffbf5;
  --ink: #2c2a24;
  --ink-soft: #534e44;
  --willow: #3e5a32;
  --willow-deep: #2c4124;
  --sage: #4a6436;
  --gold: #b8873a;
  --gold-soft: #e8c882;
  --sunset: #e8a15c;
  --sky: #f0d3b0;
  --link: #2c4124;
  --focus: #b8873a;
  --shadow: 0 18px 40px rgba(70, 50, 20, 0.18);
  --radius: 1.15rem;
  --measure: 40rem;
  --content: 70rem;
  --font-display: "Fraunces", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Calibri, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 80% -80px, rgba(232, 161, 92, 0.28), transparent 60%),
    radial-gradient(900px 500px at -10% 8%, rgba(125, 168, 196, 0.18), transparent 55%),
    linear-gradient(180deg, #f3d7b4 0%, var(--cream) 28%, var(--cream) 100%);
  background-attachment: scroll;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--willow-deep);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--willow);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--willow-deep);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 241, 228, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(62, 90, 50, 0.12);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--willow-deep);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--willow);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--willow-deep);
  text-decoration: underline;
}

/* Hero */

.hero {
  display: grid;
  gap: 2.4rem;
  padding: 2.4rem 0 3.4rem;
  align-items: center;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: minmax(16rem, 24rem) 1fr;
    gap: 4rem;
    padding: 3.5rem 0 4.5rem;
  }
}

.cover-frame {
  justify-self: center;
  width: min(100%, 24rem);
  filter: drop-shadow(0 22px 36px rgba(70, 50, 20, 0.28));
}

.cover-frame img {
  width: 100%;
  border-radius: 0.4rem;
  background: var(--cream-deep);
}

.hero-copy {
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
}

.hero h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-optical-sizing: auto;
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.tagline {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--ink-soft);
}

.lede {
  margin: 0 0 1.6rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--willow-deep);
  color: #fbf8f0;
  box-shadow: 0 8px 18px rgba(44, 65, 36, 0.22);
}

.btn-primary:hover {
  background: var(--willow);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--willow-deep);
  border: 1.5px solid rgba(44, 65, 36, 0.45);
}

.btn-secondary:hover {
  background: rgba(62, 90, 50, 0.08);
  color: var(--willow-deep);
}

.coming-soon {
  margin: 1.15rem 0 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* Sections */

.panel {
  background: var(--paper);
  border: 1px solid rgba(62, 90, 50, 0.1);
  border-radius: var(--radius);
  padding: 1.7rem 1.4rem;
  box-shadow: 0 10px 28px rgba(80, 60, 30, 0.05);
}

@media (min-width: 700px) {
  .panel {
    padding: 2.4rem 2.6rem;
  }
}

.section {
  padding: 0 0 2rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  color: var(--willow-deep);
}

.kicker {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--sage);
}

.story p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.story p:last-child {
  margin-bottom: 0;
}

/* Book facts */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem 1.5rem;
}

@media (min-width: 640px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

.facts li {
  margin: 0;
  padding: 0.7rem 0 0.7rem 0;
  border-top: 1px solid rgba(62, 90, 50, 0.12);
}

.facts strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.facts span,
.facts a {
  color: var(--ink);
}

/* Readings + contact */

.readings p,
.contact p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

.email {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--willow-deep);
  word-break: break-word;
}

.email-plain {
  font-weight: 700;
  color: var(--ink);
}

/* Divider */

.divider {
  display: block;
  width: min(14rem, 50%);
  margin: 0.4rem auto 2.1rem;
  color: var(--sage);
}

/* Footer */

.site-footer {
  margin-top: 1rem;
  padding: 2.2rem 0 2.6rem;
  border-top: 1px solid rgba(62, 90, 50, 0.14);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.site-footer .wrap {
  display: grid;
  gap: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.footer-links a {
  color: var(--willow-deep);
}

.legal {
  margin: 0;
}
