/* ============================================================
   A.J. LARK — design system
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  font-display: swap;
  src: local("Fraunces");
}

:root {
  /* palette — pulled from the lark painting + book cover lettering */
  --cream:        #F4ECD8;
  --cream-deep:   #E8DDC2;
  --paper:        #FAF6EC;
  --ink:          #16243F;   /* deep navy from cover skies */
  --ink-soft:     #2E3F5C;
  --ink-mute:     #5A6B85;
  --sage:         #5C7A53;   /* lark-leaf green dad loved in the header */
  --sage-deep:    #3F5B45;
  --sage-soft:    #B0BFA4;
  --gold:         #C89B5A;   /* echoes the cover lettering */
  --gold-deep:    #A57C3A;
  --gold-soft:    #E8CD9A;
  --terracotta:   #B5563A;   /* lark belly — used sparingly */

  /* type */
  --display: "Fraunces", "Recoleta", "Iowan Old Style", Georgia, serif;
  --body:    "Spectral", "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --mono:    ui-monospace, SFMono-Regular, Menlo, monospace;

  /* rhythm */
  --max-w:    1180px;
  --pad-x:    clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 8vw, 6.5rem);
  --radius:   14px;
  --radius-sm: 8px;

  /* shadows */
  --shadow-cover: 0 1px 2px rgba(22,36,63,.08),
                  0 16px 36px -8px rgba(22,36,63,.25),
                  0 32px 64px -16px rgba(22,36,63,.18);
  --shadow-card: 0 1px 2px rgba(22,36,63,.06), 0 12px 30px -10px rgba(22,36,63,.15);
}

/* ============================================================
   Web fonts (variable Fraunces + Spectral)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,300..900,30..100,0..1;1,9..144,300..900,30..100,0..1&family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(17px, 1.05vw + 12px, 19px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
a:hover { color: var(--terracotta); }

/* ============================================================
   Type
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
}
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 2vw + .8rem, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1vw + .9rem, 1.65rem); }
p  { margin: 0 0 1.1em; }
p + p { margin-top: -.2em; }

/* "ABOUT THE LARK …" — dad's signature pattern */
.eyebrow {
  font-family: var(--display);
  font-size: clamp(1.05rem, .8vw + .8rem, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--sage-deep);
  margin: 0 0 1.25rem;
}
.eyebrow::after { content: " …"; color: var(--gold-deep); letter-spacing: 0; }

/* book titles always italicised (dad asked for bold — italic+bold reads as a title) */
.btitle, em { font-style: italic; }
.btitle { font-weight: 600; }

.lede {
  font-size: clamp(1.1rem, .6vw + .9rem, 1.35rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

blockquote {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 1.8vw + .8rem, 2rem);
  line-height: 1.25;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2rem, 5vw, 4rem); }

.bg-cream { background: var(--cream); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-paper { background: var(--paper); }
.bg-sage { background: var(--sage); color: var(--cream); }
.bg-sage h1, .bg-sage h2, .bg-sage h3 { color: var(--cream); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  background: var(--sage);
  color: var(--cream);
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
  color: inherit;
}
/* show the painting in its natural oval shape — no circle crop */
.brand__lark {
  height: 92px;
  width: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.15));
}
.brand__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "WONK" 0;
}
.brand__tag {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-soft);
  margin-top: 4px;
}
/* footer can go larger still — more room to show the painting */
.site-footer .brand__lark { height: 108px; }
.site-footer .brand__name { font-size: 1.85rem; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.nav a {
  color: var(--cream);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  position: relative;
  padding: .25rem 0;
}
.nav a::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-soft); }
.nav a[aria-current="page"]::after,
.nav a:hover::after { transform: scaleX(1); }

@media (max-width: 640px) {
  .site-header .container { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .nav { flex-wrap: wrap; gap: 1.1rem; }
  .brand__lark { height: 72px; }
  .site-footer .brand__lark { height: 84px; }
  .brand__name { font-size: 1.4rem; }
}

/* ============================================================
   Buttons / CTAs
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 2px 0 var(--gold-deep), 0 12px 24px -10px rgba(22,36,63,.4);
}
.btn--primary:hover { background: var(--gold-deep); color: var(--cream); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--cream); }

.btn--small { padding: .65rem 1.1rem; font-size: 0.9rem; }

.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 75% 25%, rgba(200,155,90,.18), transparent 55%),
    radial-gradient(ellipse at 25% 75%, rgba(92,122,83,.12), transparent 55%),
    var(--paper);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
/* big watermark — sits behind the title text on the left side,
   so the book cover on the right doesn't obscure it */
.hero__lark {
  position: absolute;
  left: -6%;
  top: 4%;
  width: 58%;
  max-width: 720px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.hero__copy { position: relative; z-index: 1; }
.hero__title {
  font-variation-settings: "opsz" 144, "SOFT" 80, "WONK" 1;
}
.hero__title em {
  font-style: italic;
  color: var(--sage-deep);
  font-weight: 400;
}
.hero__lede { max-width: 32ch; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__cover {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__cover img {
  max-width: 360px;
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow-cover);
  transform: rotate(-2deg);
  transition: transform .4s ease;
}
.hero__cover:hover img { transform: rotate(0deg) scale(1.02); }

@media (max-width: 800px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__cover { order: -1; margin-bottom: 1rem; }
  .hero__cover img { max-width: 260px; }
  .hero__lark { display: none; }
}

/* ============================================================
   Latest book / book card
   ============================================================ */
.book-feature {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.book-feature__cover img {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--shadow-cover);
}
.book-feature__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 3vw + 1rem, 3rem);
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
  margin: .25em 0 .75em;
  line-height: 1;
}
.book-feature__quote {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--gold);
}
.book-feature__ctas { margin-top: 1.5rem; display: flex; gap: .9rem; flex-wrap: wrap; }

@media (max-width: 720px) {
  .book-feature { grid-template-columns: 1fr; }
  .book-feature__cover { max-width: 280px; margin: 0 auto; }
}

/* Books page — multiple feature blocks stacked, alternating side */
.book-feature + .book-feature { margin-top: clamp(4rem, 8vw, 6rem); }
.book-feature:nth-of-type(even) {
  grid-template-columns: 1fr minmax(220px, 360px);
}
.book-feature:nth-of-type(even) .book-feature__cover { order: 2; }
@media (max-width: 720px) {
  .book-feature:nth-of-type(even) {
    grid-template-columns: 1fr;
  }
  .book-feature:nth-of-type(even) .book-feature__cover { order: -1; }
}

/* ============================================================
   Reviews — editorial pull-quote stack (back-of-book endorsement feel)
   ============================================================ */
.reviews-stack {
  max-width: 780px;
  margin: 3rem auto 0;
}
.pull-quote {
  position: relative;
  margin: 0;
  padding: clamp(2rem, 3.5vw, 2.75rem) 0 clamp(2rem, 3.5vw, 2.75rem) clamp(2.75rem, 5vw, 4.5rem);
  border-top: 1px solid rgba(200,155,90,.4);
}
.pull-quote:first-of-type { border-top: 0; padding-top: 0; }
.pull-quote:last-of-type  { padding-bottom: 0; }
.pull-quote::before {
  content: "“";
  position: absolute;
  left: -0.25rem; top: clamp(.4rem, 1.5vw, 1rem);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3.5rem, 5vw, 5rem);
  line-height: 1;
  color: var(--gold);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.pull-quote:first-of-type::before { top: -.5rem; }
.pull-quote__text {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.3rem, 1.5vw + .7rem, 1.75rem);
  line-height: 1.32;
  color: var(--ink);
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
}
.pull-quote__source {
  display: block;
  margin-top: .75rem;
  font-family: var(--body);
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
}
.pull-quote__source::before { content: "— "; }

/* ============================================================
   About — lark + sections
   ============================================================ */
.about-lark {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}
.about-lark img {
  width: 100%;
  filter: drop-shadow(0 18px 30px rgba(22,36,63,.18));
}
.about-section + .about-section { margin-top: clamp(2.5rem, 5vw, 4rem); }
.about-section h2 { margin-bottom: 1rem; }

.faq dt {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--sage-deep);
  margin-top: 1.75rem;
}
.faq dd {
  margin: .35rem 0 0;
  padding: 0;
}

@media (max-width: 720px) {
  .about-lark { grid-template-columns: 1fr; }
  .about-lark img { max-width: 280px; margin: 0 auto; }
}

/* ============================================================
   Ideas page — numbered tips
   ============================================================ */
.tips {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: 2.5rem;
}
.tip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem clamp(1.5rem, 3vw, 2.5rem);
  align-items: baseline;
}
.tip__num {
  font-family: var(--display);
  font-weight: 700;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 1;
  color: var(--gold);
  grid-row: span 2;
}
.tip__title {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sage-deep);
  margin: 0 0 .5em;
}
.tip__title::after { content: " …"; color: var(--gold-deep); letter-spacing: 0; }
.tip__body { margin: 0; }

/* ============================================================
   Newsletter / CTA strip
   ============================================================ */
.cta-strip {
  background: var(--sage);
  color: var(--cream);
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x);
  text-align: center;
}
.cta-strip h2 {
  color: var(--cream);
  font-variation-settings: "opsz" 144, "SOFT" 70, "WONK" 1;
}
.cta-strip p { color: var(--sage-soft); max-width: 50ch; margin: 0 auto 1.5rem; }
.cta-strip__form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  max-width: 480px;
  margin: 0 auto;
}
.cta-strip__form input {
  flex: 1 1 220px;
  padding: .95rem 1.1rem;
  font-family: var(--body);
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: 999px;
  outline: none;
}
.cta-strip__form input:focus { border-color: var(--gold); }
.cta-strip small { display: block; margin-top: 1rem; color: var(--sage-soft); font-size: .85rem; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--sage-deep);
  color: var(--cream);
  padding: clamp(2.5rem, 5vw, 4rem) var(--pad-x) clamp(1.5rem, 3vw, 2rem);
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 0;
  align-items: start;
}
.site-footer a { color: var(--gold-soft); }
.site-footer a:hover { color: var(--cream); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: flex-end;
}
.footer-nav a {
  font-family: var(--display);
  font-size: 1rem;
  text-decoration: none;
}
.footer-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 0.85rem;
  color: var(--sage-soft);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
@media (max-width: 640px) {
  .site-footer .container { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
}

/* ============================================================
   Tiny utilities
   ============================================================ */
.center { text-align: center; }
.muted { color: var(--ink-mute); }
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  border: 0;
  margin: clamp(2rem, 4vw, 3rem) auto;
  max-width: 200px;
}
.lego-illustration {
  max-width: 220px;
  margin: 1rem 0;
  opacity: 0.9;
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
