/* Scale While Sleeping — ListSprout green on cream */
:root {
  /* Warm paper + warm (olive-leaning) ListSprout greens */
  --cream: #f4eee2;
  --paper: #ece4d3;
  --ink: #26261f;
  --muted: #6b6456;
  --line: #ddd2bc;
  --deep: #20402c;
  --green: #3c7a48;
  --green-700: #2f6238;
  --mint: #e2e6cf;
  --mint-200: #c9d6ad;
  --display: "Fraunces", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; background: var(--cream); }
/* The page is a centred column with a thin rule down each side (like a printed page's margins). */
body {
  margin: 0 auto;
  max-width: 1600px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--deep); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 12px; }

/* Type */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 18px;
}
.eyebrow--light { color: var(--mint-200); }
.display {
  font-family: var(--display); font-weight: 400; letter-spacing: -0.025em; line-height: 1.02;
  font-variation-settings: "opsz" 144;
}
.display em, .hero__title em { font-style: italic; color: var(--green); font-weight: 400; }
.display--xl { font-size: clamp(40px, 6.2vw, 84px); }
.display--lg { font-size: clamp(36px, 5vw, 64px); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.fineprint { font-size: 12.5px; color: var(--muted); margin-top: 14px; max-width: 34ch; }
.fineprint a { color: var(--green-700); }

/* Links & buttons */
.textlink {
  display: inline-flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 500;
  text-decoration: none; padding-bottom: 8px; border-bottom: 1px solid var(--ink);
}
.textlink span { font-size: 18px; line-height: 1; transition: transform .2s; }
.textlink:hover span { transform: translate(2px, -2px); }
.button {
  display: inline-flex; align-items: center; gap: 22px; background: var(--deep); color: #fff;
  font-size: 14px; font-weight: 500; text-decoration: none; padding: 16px 22px;
  transition: background .2s;
}
.button span { font-size: 18px; line-height: 1; }
.button:hover { background: var(--green-700); }
.button--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--cream); }
.buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* Nav: measurements follow the reference layout (108px header, 5% side padding, 47px wordmark) */
.nav { position: relative; z-index: 10; }
.nav__inner {
  height: 108px; padding: 0 5%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px;
}
.nav__left, .nav__right { display: flex; gap: 29px; align-items: center; font-size: 12px; }
.nav__right { justify-content: flex-end; }
.nav__left a, .nav__right a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav__left a:hover, .nav__right a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav__pill { position: relative; }
.nav__pill::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; border-bottom: 1px solid var(--ink); }
.wordmark {
  font-family: var(--display); font-size: 47px; letter-spacing: -2px; line-height: 1; text-decoration: none; white-space: nowrap;
}
.wordmark em { color: var(--green); }
.nav__toggle {
  display: none; justify-self: end; background: none; border: 0; font: 500 12px var(--sans); color: var(--ink);
  padding: 10px 0 10px 15px; min-height: 44px; cursor: pointer;
}
.mobile-menu {
  position: absolute; top: 84px; left: 0; right: 0; z-index: 10; background: var(--cream);
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 6%;
  border-bottom: 1px solid var(--line); font-size: 13px;
}
.mobile-menu a { text-decoration: none; }

/* Hero: 690px tall, 18px in from the side rules, heading 77px down / 6% in, bottom row 65px up */
.hero__frame { position: relative; overflow: hidden; height: 690px; margin: 0 18px; background: #2f3a2a; color: var(--cream); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 58%; }
/* The sunset makes the left side bright: a warm wash keeps the headline readable,
   fading out before the chair and coffee on the right. */
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(95deg, rgba(38,30,18,.70) 0%, rgba(38,30,18,.52) 30%, rgba(38,30,18,.18) 54%, rgba(38,30,18,0) 66%),
    linear-gradient(0deg, rgba(30,26,16,.50) 0%, rgba(30,26,16,0) 40%);
}
.hero__heading, .hero__lede { text-shadow: 0 2px 24px rgba(30,22,10,.55), 0 1px 3px rgba(30,22,10,.35); }
.hero__heading { position: absolute; left: 6%; top: 77px; z-index: 1; }
.hero__heading .eyebrow { font-size: 9px; letter-spacing: .2em; margin: 0; }
.hero__title {
  font-family: var(--display); font-weight: 400; font-size: clamp(110px, 11.9vw, 182px);
  line-height: .82; letter-spacing: -0.05em; font-variation-settings: "opsz" 144; margin-top: 33px;
}
.hero__title em { display: inline-block; margin-top: 17px; color: var(--mint-200); }
.hero__bottom {
  position: absolute; z-index: 1; left: 6%; right: 6%; bottom: 65px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
}
.hero__lede { font-size: 14px; line-height: 1.8; max-width: 440px; color: rgba(244,238,226,.94); }
.hero__cta {
  display: inline-flex; justify-content: space-between; gap: 22px; align-items: center; min-width: 245px;
  background: var(--cream); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; padding: 18px 22px;
}
.hero__cta span { font-size: 18px; line-height: 1; }
.hero__cta:hover { background: var(--mint); }
@media (max-width: 1100px) {
  .nav__inner { gap: 20px; }
  .nav__left, .nav__right { gap: 20px; font-size: 11px; }
  .wordmark { font-size: 40px; }
  .hero__frame { height: 650px; }
  .hero__heading { top: 95px; }
  .hero__title { font-size: 13vw; }
  .hero__lede { font-size: 12.5px; }
  .hero__cta { min-width: 210px; }
}

/* Statement */
.statement { text-align: center; padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(60px, 8vw, 100px); }
.statement .muted { max-width: 52ch; margin: 26px auto 0; font-size: 15px; }

/* About */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center;
  padding-top: 40px; padding-bottom: clamp(80px, 10vw, 130px);
}
.about__art { position: relative; margin: 0; padding: 40px 30px 30px; }
.about__hello {
  position: absolute; top: 0; left: 18px; font-family: var(--display); font-style: italic;
  font-size: 26px; color: var(--green); transform: rotate(-4deg); z-index: 2;
}
.print {
  background: #fbf7ee; padding: 14px 14px 46px; box-shadow: 0 24px 50px -24px rgba(60,48,28,.45);
  transform: rotate(-3deg); max-width: 420px; margin: 0 auto;
}
.print img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.sticker {
  position: absolute; right: clamp(0px, 4vw, 40px); bottom: 10px; width: 116px; height: 116px; border-radius: 50%;
  background: var(--deep); color: var(--cream); display: grid; place-content: center; text-align: center;
  transform: rotate(10deg); box-shadow: 0 0 0 5px var(--cream), 0 0 0 6px var(--deep);
}
.sticker b { font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1; }
.sticker span { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin-top: 4px; }
.about__text p:not(.eyebrow):not(.signature) { color: var(--muted); font-size: 15px; max-width: 46ch; margin-top: 18px; }
.about__text h2 { margin-bottom: 8px; }
.about__text .textlink { margin-top: 26px; }
.signature { font-family: var(--display); font-style: italic; font-size: 32px; color: var(--green); margin-top: 26px; }

/* Bands */
.band { padding: clamp(70px, 9vw, 110px) 0; }
.band--deep { background: var(--deep); color: var(--cream); }
.band--deep .display em { color: var(--mint-200); }
.band--mint { background: var(--mint); }
.band__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.band__inner--center { display: block; text-align: center; }
.band__inner--center .muted { max-width: 56ch; margin: 22px auto 0; }
.band__inner--center .small { margin-top: 12px; }
.band__note { margin-top: 22px; font-size: 14px; color: rgba(244,238,226,.75); max-width: 30ch; }

/* Topic rows */
.topics { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(226,230,207,.25); }
.topics li { border-bottom: 1px solid rgba(226,230,207,.25); }
.topics a { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 28px 0; text-decoration: none; }
.topics__num { font-family: var(--display); font-style: italic; font-size: 18px; color: var(--mint-200); align-self: start; padding-top: 8px; }
.topics__title { display: block; font-family: var(--display); font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.02em; line-height: 1.1; }
.topics__desc { display: block; font-size: 14px; color: rgba(244,238,226,.75); margin-top: 8px; }
.topics__arrow { font-size: 26px; color: var(--mint-200); transition: transform .2s; }
.topics a:hover .topics__arrow { transform: translate(3px, -3px); }
.topics a:hover .topics__title { color: var(--mint-200); }
.soon {
  display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(201,214,173,.5); color: var(--mint-200); border-radius: 999px; padding: 1px 8px; vertical-align: 1px;
}

/* Featured guide */
.feature {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 90px); align-items: center;
  padding-top: clamp(80px, 10vw, 130px); padding-bottom: clamp(60px, 8vw, 100px);
}
.feature__text .muted { margin: 22px 0 30px; max-width: 40ch; font-size: 15px; }
.feature__art { position: relative; display: block; padding: 40px 20px 40px 40px; }
.feature__art::before {
  content: ""; position: absolute; inset: 0 0 10% 18%; background: var(--paper); border: 1px solid var(--line);
  transform: rotate(5deg);
}
.feature__art img {
  position: relative; transform: rotate(-4deg);
  box-shadow: 0 30px 60px -28px rgba(60,48,28,.6); transition: transform .3s;
}
.feature__art:hover img { transform: rotate(-2deg) translateY(-4px); }
.ticket {
  position: absolute; z-index: 2; left: 4px; top: 6px; display: inline-flex; flex-direction: column; align-items: center;
  background: var(--cream); border: 1.5px dashed var(--green); border-radius: 6px; padding: 8px 14px; transform: rotate(-8deg);
}
.ticket__label { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.ticket__num { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--deep); }

/* Latest guides list */
.latest { padding-bottom: clamp(80px, 10vw, 130px); }
.latest__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.guides { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guides li { border-bottom: 1px solid var(--line); }
.guides a { display: grid; grid-template-columns: 70px 1fr auto; gap: 14px; align-items: center; padding: 26px 0; text-decoration: none; }
.guides__num { font-family: var(--display); font-style: italic; font-size: 28px; color: var(--green); opacity: .8; }
.guides__tag { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.guides__title { display: block; font-family: var(--display); font-size: clamp(22px, 2.8vw, 34px); letter-spacing: -0.02em; line-height: 1.15; }
.guides__arrow { font-size: 26px; transition: transform .2s; }
.guides a:hover .guides__title { color: var(--green); }
.guides a:hover .guides__arrow { transform: translate(3px, -3px); }

/* Newsletter */
.newsletter {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center;
  padding-top: clamp(80px, 10vw, 120px); padding-bottom: clamp(80px, 10vw, 120px);
}
.newsletter__text .muted { margin-top: 22px; max-width: 40ch; font-size: 15px; }
.newsletter__form iframe { width: 100%; max-width: 480px; height: 320px; border: 1px solid var(--line); background: #fbf7ee; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: 40px; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__row .eyebrow { margin: 0; }
.footer__links { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; font-size: 13px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--green); }
.footer__mark {
  font-family: var(--display); font-size: clamp(48px, 12.5vw, 190px); letter-spacing: -0.045em; line-height: 1;
  text-align: center; padding-top: 40px; padding-bottom: 20px; white-space: nowrap;
}
.footer__mark em { color: var(--green); }
.footer__base {
  display: flex; justify-content: space-between; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 28px;
}
.footer__base a { text-decoration: none; }

/* Guide library page */
.page-guides .nav__inner { height: 88px; }
@media (max-width: 760px) { .page-guides .nav__inner { height: 76px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--green); }
.lib-intro { padding-top: clamp(20px, 3vw, 40px); padding-bottom: clamp(20px, 3vw, 34px); }
.lib-intro h1 { font-size: clamp(48px, 7vw, 96px); }
.lib-intro h1 em { font-style: italic; color: var(--green); }
.lib-controls {
  display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 30px;
}
.lib-search { display: flex; align-items: center; gap: 10px; flex: 0 1 320px; min-width: 200px; border-bottom: 1px solid #bdb29a; min-height: 46px; }
.lib-search__icon { font-size: 22px; color: var(--green); line-height: 1; }
.lib-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 14px/1.5 var(--sans); color: var(--ink); padding: 10px 0; }
.lib-search input::placeholder { color: #827a69; }
.lib-search input:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.lib-search button { border: 0; background: none; font: 12px var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: var(--ink); min-height: 40px; }
.lib-toolbar { display: flex; align-items: center; gap: 18px; flex: 1; justify-content: flex-end; flex-wrap: wrap; }
.lib-filters { display: flex; gap: 4px; flex-wrap: wrap; }
.lib-filters button {
  background: none; border: 0; border-bottom: 1px solid transparent; font: 13px var(--sans); color: var(--ink);
  padding: 9px 10px; min-height: 42px; cursor: pointer;
}
.lib-filters button:hover { color: var(--green); }
.lib-filters button[aria-pressed="true"] { color: var(--green); border-color: var(--green); }
.lib-sort select {
  appearance: none; background: transparent; border: 1px solid var(--line); border-radius: 999px; font: 12.5px var(--sans);
  color: var(--ink); padding: 7px 28px 7px 12px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}
#guide-count { font-family: var(--display); font-style: italic; font-size: 19px; white-space: nowrap; }

.lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 26px; }
.card { min-width: 0; }
.card__cover {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 260px;
  padding: 26px 24px; text-decoration: none; border-left: 6px solid; transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 3px 6px 10px rgba(60,48,28,.06);
}
.card__cover::after { content: ""; position: absolute; inset: 10px; border: 1px solid currentColor; opacity: .22; pointer-events: none; }
a.card__cover:hover { transform: rotate(-2deg) translateY(-3px); box-shadow: 6px 14px 22px rgba(60,48,28,.14); }
.card__cover h3 {
  position: relative; z-index: 1; font-family: var(--display); font-weight: 400; font-size: clamp(27px, 2.5vw, 34px);
  line-height: 1.07; letter-spacing: -0.02em; overflow-wrap: anywhere;
}
.card__edition { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.card__edition span { font-family: var(--display); font-style: italic; font-size: 19px; }
.card__edition b { font-weight: 400; font-size: 24px; transition: transform .2s; }
a.card__cover:hover .card__edition b { transform: translate(3px, -3px); }
.card--mint .card__cover { background: var(--mint); border-color: var(--mint-200); color: var(--deep); }
.card--green .card__cover { background: var(--green); border-color: var(--green-700); color: var(--cream); }
.card--deep .card__cover { background: var(--deep); border-color: #162e1f; color: var(--cream); }
.card.is-pending .card__cover { opacity: .78; }
.card__body { padding-top: 14px; }
.card__topic { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.card__desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 8px 0 6px; }
.card__body .textlink { font-size: 13px; margin-top: 4px; }
.card__soon { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--green); margin-top: 6px; }
.lib-empty { padding: 50px 0; border-top: 1px solid var(--line); }
.lib-empty h2 { font-size: 48px; }
.lib-empty h2 em { font-style: italic; color: var(--green); }
.lib-empty p { font-size: 14px; color: var(--muted); margin: 14px 0 20px; }
.lib-empty button { background: var(--deep); color: var(--cream); border: 0; padding: 13px 20px; font: 500 13px var(--sans); cursor: pointer; }
.lib-note { margin: 46px 0 clamp(70px, 9vw, 110px); font-size: 14px; color: var(--muted); max-width: 60ch; }
.lib-note a { color: var(--green-700); }

/* Responsive */
@media (max-width: 960px) {
  .about, .feature, .newsletter, .band__inner { grid-template-columns: 1fr; }
  .about__art { max-width: 460px; margin: 0 auto; }
  .feature__art { max-width: 640px; }
  .lib-grid { grid-template-columns: repeat(2, 1fr); }
  .lib-toolbar { flex-basis: 100%; justify-content: space-between; }
}
@media (max-width: 560px) {
  .lib-grid { grid-template-columns: 1fr; }
  .lib-search { flex-basis: 100%; }
  .lib-filters { gap: 0 8px; }
  .lib-filters button { padding: 8px 2px; font-size: 12.5px; }
  .card__cover { min-height: 210px; }
}
@media (max-width: 760px) {
  .nav__inner { height: 85px; padding: 0 6%; display: flex; justify-content: space-between; }
  .nav__left, .nav__right { display: none; }
  .nav__toggle { display: inline-flex; align-items: center; }
  .wordmark { font-size: 30px; letter-spacing: -1.2px; }
  .hero__frame { height: 670px; margin: 0 10px; }
  .hero__img { object-position: 52% center; }
  .hero__heading { top: 89px; left: 7%; right: 4%; }
  .hero__heading .eyebrow { font-size: 9px; letter-spacing: .13em; }
  .hero__title { font-size: clamp(64px, 18.2vw, 130px); line-height: .88; margin-top: 28px; letter-spacing: -0.04em; }
  .hero__title em { margin-top: 9px; }
  .hero__bottom { left: 7%; right: 7%; bottom: 43px; display: block; }
  .hero__lede { font-size: 13px; line-height: 1.9; max-width: 330px; }
  .hero__cta { margin-top: 24px; padding: 15px 20px; font-size: 12px; min-width: 240px; }
  .guides a { grid-template-columns: 44px 1fr auto; }
  .guides__num { font-size: 22px; }
  .footer__mark { white-space: normal; font-size: clamp(44px, 15vw, 80px); }
  .footer__links { gap: 18px; flex-wrap: wrap; }
  .buttons .button { width: 100%; justify-content: space-between; }
}
@media (max-width: 360px) {
  .hero__frame { height: 640px; }
  .hero__heading { top: 100px; }
  .hero__title { font-size: 16.9vw; }
  .hero__cta { min-width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
