/* Three Hives Honey. The brand lives in :root: change a value here and the whole site follows. */
:root {
  --bg: #F3ECD9;          /* cream, matches the label */
  --bg-soft: #EADFC4;     /* deeper cream for quiet panels */
  --ink: #2A2118;         /* body text, matches the label */
  --muted: #5B4F46;       /* secondary text */
  --heather: #4B3B54;     /* heather purple */
  --heather-deep: #3A2D42;
  --amber: #C6872B;       /* amber: fills, rules, markers */
  --amber-deep: #82540F;  /* amber dark enough for small text on cream and soft cream */
  --green: #37432E;       /* label green, used in the logo mark */
  --line: #D8C8A0;
  --on-dark: #F3ECD9;
  --field: #FBF7EA;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--heather); text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--heather-deep); text-decoration-color: var(--heather); }
:focus-visible { outline: 3px solid var(--amber-deep); outline-offset: 3px; }
p { margin: 0; }

h1, h2, h3 { font-family: var(--serif); color: var(--heather); margin: 0; text-wrap: balance; }
h1 { font-weight: 600; font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.1; letter-spacing: -0.015em; }
h2 { font-weight: 600; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.12; letter-spacing: -0.01em; }
h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.2; }

.wrap {
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; top: 0; background: var(--heather); color: var(--on-dark); padding: 0.6rem 1rem; z-index: 20; }
.skip:focus { left: 0; }

/* Bands: each page section is one band with one inner .wrap */
.band { padding-block: clamp(3rem, 7vw, 5.5rem); }
.band--soft { background: var(--bg-soft); }
.band--dark { background: var(--heather); color: var(--on-dark); }
.band--dark h2, .band--dark h3 { color: var(--on-dark); }
.band--dark a:not(.btn) { color: var(--on-dark); }
.band--dark a:not(.btn):hover { color: #fff; }

/* Header */
.site-header { padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 45px; flex: none; }
.brand b { display: block; font: 700 1.55rem/1 var(--serif); letter-spacing: -0.01em; }
.brand small { display: block; margin-top: 0.4rem; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.4em; color: var(--amber); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.5rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.975rem; padding-block: 0.2rem; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--amber); }
.nav a[aria-current="page"] { border-bottom-color: var(--amber); }

/* Buttons and forms */
.btn {
  display: inline-block; background: var(--heather); color: var(--on-dark); text-decoration: none;
  font: 600 1rem/1.2 var(--sans); padding: 0.85rem 1.4rem; border: 0; border-radius: 3px; cursor: pointer;
}
.btn:hover { background: var(--heather-deep); color: var(--on-dark); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn--small { padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn--light { background: var(--bg); color: var(--heather); }
.btn--light:hover { background: #fff; color: var(--heather-deep); }

input, textarea {
  font: inherit; color: var(--ink); background: var(--field);
  border: 1.5px solid var(--heather); border-radius: 3px; padding: 0.75rem 0.9rem; width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
.field { display: grid; gap: 0.35rem; }
.field label, .signup > label { font-weight: 600; font-size: 0.95rem; }
.signup { display: grid; gap: 0.5rem; max-width: 31rem; }
.signup-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.signup-row input { flex: 1 1 14rem; width: auto; min-width: 0; }
.form-stack { display: grid; gap: 1rem; max-width: 34rem; }
.fine { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.form-msg { font-weight: 500; min-height: 1.5em; }
.hp { position: absolute; left: -9999px; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem clamp(2rem, 6vw, 5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; }
.lead { font: 400 clamp(1.15rem, 2.2vw, 1.4rem)/1.5 var(--serif); max-width: 34rem; }
.hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: 40% center; border-radius: 6px; }
.split-lead { display: grid; gap: 1.5rem; }
.band-photo { display: block; width: 100%; max-width: 20rem; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%; border-radius: 6px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.4rem; }
.page-body .hero-actions { margin-bottom: 1.5rem; }

/* Three pillars */
.intro { display: grid; gap: 2.2rem; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem 2.5rem; }
.pillars > div { border-top: 2px solid var(--heather); padding-top: 0.9rem; display: grid; gap: 0.4rem; align-content: start; }
.pillars p { color: var(--muted); }

/* The year in the hive */
.year { display: grid; gap: 2.5rem; }
.year-head { display: grid; gap: 0.8rem; max-width: 40rem; }
.year-head p { color: var(--muted); }
.season { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.5rem; }
.season li { position: relative; padding-top: 2.3rem; display: grid; gap: 0.4rem; align-content: start; }
.season li::before { content: ""; position: absolute; top: 0.55rem; left: 0; right: -1.5rem; height: 2px; background: var(--line); }
.season li:last-child::before { display: none; }
.season li::after { content: ""; position: absolute; top: 0; left: 0; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--bg-soft); border: 2px solid var(--amber); }
.season li[aria-current="step"]::after { background: var(--amber); box-shadow: 0 0 0 5px var(--bg-soft), 0 0 0 7px var(--amber); }
.season p { color: var(--muted); font-size: 0.975rem; }
.season .here { display: none; font-size: 0.85rem; font-weight: 600; color: var(--amber-deep); }
.season li[aria-current="step"] .here { display: block; }

/* Story teaser */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: start; }
.split-text { display: grid; gap: 1.2rem; }
.split-text p { font-size: 1.125rem; }

/* Journal rows and posts */
.entries { display: grid; }
.entries-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.5rem; }
.entry-row {
  display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 0.3rem 2rem;
  padding-block: 1.3rem; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink);
}
.entry-row:last-child { border-bottom: 1px solid var(--line); }
.entry-row time { color: var(--muted); font-size: 0.95rem; padding-top: 0.25rem; }
.entry-row h3 { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.entry-row:hover h3 { text-decoration-color: var(--amber); }
.entry-row p { color: var(--muted); margin-top: 0.3rem; }
.post { display: grid; gap: 0.9rem; padding-block: 2.2rem; border-top: 1px solid var(--line); max-width: 42rem; }
.post figure { margin: 0.5rem 0; display: grid; gap: 0.5rem; justify-items: start; }
.post figure img { display: block; width: 100%; max-width: 20rem; height: auto; border-radius: 6px; }
.post figcaption { color: var(--muted); font-size: 0.9rem; }
.post figure.figure--wide img { max-width: 100%; }
.figure-row { display: grid; grid-template-columns: repeat(2, minmax(0, 20rem)); gap: 1rem; margin: 0.5rem 0; }
.figure-row figure { margin: 0; }
.figure-row img { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 760px) { .figure-row { grid-template-columns: 1fr; } }
.post time { color: var(--muted); font-size: 0.95rem; }

/* Inner pages */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1.5rem; }
.page-head .wrap { display: grid; gap: 1.2rem; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.page-body { padding-block: 1rem clamp(3rem, 7vw, 5rem); }
.prose { display: grid; gap: 1.1rem; max-width: 42rem; }
.prose h2 { margin-top: 1.4rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.prose .todo { background: #F6D98E; color: var(--ink); padding: 0 0.25rem; }
.photo {
  aspect-ratio: 3 / 2; width: 100%; max-width: 42rem; display: grid; place-items: center; text-align: center; padding: 1rem;
  background: var(--bg-soft); border: 1.5px dashed var(--line); color: var(--muted); font-size: 0.9rem;
}
img.photo { display: block; aspect-ratio: auto; height: auto; max-width: min(100%, 26rem); padding: 0; border: 0; border-radius: 6px; }
@media (min-width: 900px) {
  .prose--photo { max-width: none; grid-template-columns: minmax(0, 42rem) minmax(0, 22rem); column-gap: 4.5rem; align-items: start; }
  .prose--photo > * { grid-column: 1; }
  .prose--photo > img.photo { grid-column: 2; grid-row: 1 / span 8; position: sticky; top: 2rem; }
}
.toc, .side-card { display: grid; gap: 0.5rem; align-content: start; }
.toc a { text-decoration: none; color: var(--ink); padding-block: 0.15rem; }
.toc a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 0.2em; }
.toc-title { font: 600 1.1rem/1.2 var(--serif); color: var(--heather); margin-bottom: 0.2rem; }
.side-card { justify-items: start; background: var(--bg-soft); border-top: 2px solid var(--heather); padding: 1.2rem; }
@media (min-width: 900px) {
  .page-cols { display: grid; grid-template-columns: minmax(0, 42rem) minmax(0, 18rem); justify-content: space-between; gap: 2rem 4.5rem; align-items: start; }
  .page-cols > .toc, .page-cols > .side-card { position: sticky; top: 2rem; }
  .follow-cols { display: grid; grid-template-columns: minmax(0, 42rem) minmax(0, 18rem); justify-content: space-between; gap: 0 4.5rem; align-items: start; }
  .follow-cols > .hero-actions { grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-start; position: sticky; top: 2rem; margin: 0; }
  .follow-cols > .faq { grid-column: 1; grid-row: 1; margin-top: 0; }
  .prose--hives { max-width: none; grid-template-columns: minmax(0, 42rem) minmax(0, 22rem); justify-content: space-between; column-gap: 4.5rem; align-items: start; }
  .prose--hives > * { grid-column: 1; }
  .prose--hives > .hives { grid-column: 1 / -1; }
  .prose--hives > .photo { grid-column: 2; grid-row: 2 / span 7; position: sticky; top: 2rem; }
}
@media (max-width: 899px) { .toc { display: none; } }
.hives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-block: 0.5rem 1rem; }
.hives > div { display: grid; gap: 0.5rem; align-content: start; border-top: 2px solid var(--heather); padding-top: 1rem; }
.hives svg { width: 44px; height: 44px; }
.hives p { color: var(--muted); }
.cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2.5rem 4.5rem; align-items: start; }
.perks { display: grid; gap: 1.4rem; margin: 0; }
.perks > div { border-top: 2px solid var(--heather); padding-top: 0.8rem; }
.perks dt { font: 600 1.25rem/1.2 var(--serif); color: var(--heather); }
.perks dd { margin: 0.3rem 0 0; color: var(--muted); }
.qa { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 3rem; margin-top: 1.5rem; }
.qa dd { color: var(--ink); }
.faq { display: grid; max-width: 46rem; margin-top: 1rem; }
.faq details { border-top: 1px solid var(--line); padding-block: 1rem; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 1.15rem/1.35 var(--serif); color: var(--heather); }
.faq details p { margin-top: 0.6rem; color: var(--muted); }

/* Call to action band */
.cta { display: grid; gap: 1.2rem; justify-items: start; max-width: 40rem; }

/* Footer */
.site-footer { background: var(--heather-deep); color: var(--on-dark); padding-block: 3rem 2.5rem; }
.site-footer a { color: var(--on-dark); text-decoration-color: var(--amber); }
.site-footer a:hover { color: #fff; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.foot-brand { display: grid; gap: 0.8rem; align-content: start; }
.foot-brand b { font: 700 1.6rem/1 var(--serif); }
.foot-brand small { display: block; margin-top: 0.4rem; font: 600 0.75rem/1 var(--sans); letter-spacing: 0.4em; color: var(--amber); }
.tagline { font: italic 400 1.1rem/1.4 var(--serif); }
.foot-col { display: grid; gap: 0.5rem; align-content: start; }
.foot-title { font: 600 1.1rem/1.2 var(--serif); margin-bottom: 0.2rem; }
.legal { grid-column: 1 / -1; border-top: 1px solid rgba(243, 236, 217, 0.25); padding-top: 1.2rem; font-size: 0.875rem; }

@media (max-width: 760px) {
  .site-header { padding-block: 0.7rem; }
  .site-header .wrap { gap: 0.3rem 1rem; }
  .brand svg { width: 28px; height: 37px; }
  .brand b { font-size: 1.35rem; }
  .brand small { margin-top: 0.3rem; }
  .nav { gap: 0 1.1rem; }
  .nav a:not(.btn) { padding-block: 0.45rem; }
  .nav .btn { display: none; }
  .hero .wrap, .split, .cols, .site-footer .wrap { grid-template-columns: 1fr; }
  .hive { max-width: 150px; justify-self: start; }
  .pillars, .hives { grid-template-columns: 1fr; }
  .qa { grid-template-columns: 1fr; }
  .entry-row { grid-template-columns: 1fr; }
  .season { grid-template-columns: 1fr; gap: 1.8rem 0; }
  .season li { padding-top: 0; padding-left: 2.4rem; }
  .season li::before { display: block; top: 0.55rem; bottom: -1.8rem; left: calc(0.55rem - 1px); right: auto; width: 2px; height: auto; }
  .season li:last-child::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

/* Text for screen readers and search engines only */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Journal list and entry pages (built by _journal/build.py) */
.journal-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 2.5rem 2rem; }
.entry-card { display: grid; gap: 0.5rem; align-content: start; text-decoration: none; color: var(--ink); }
.entry-card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin-bottom: 0.4rem; }
.entry-card time { color: var(--muted); font-size: 0.95rem; }
.entry-card h2 { font-size: 1.45rem; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.entry-card:hover h2 { text-decoration-color: var(--amber); }
.entry-card p { color: var(--muted); }
.post--single { border-top: 0; padding-top: 0.5rem; }
.crumbs { font-size: 0.95rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.entry-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.entry-nav a { display: grid; gap: 0.2rem; max-width: 22rem; text-decoration: none; font: 600 1.1rem/1.3 var(--serif); color: var(--heather); }
.entry-nav a span { font: 500 0.85rem/1 var(--sans); color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.entry-nav a:hover { text-decoration: underline; text-decoration-color: var(--amber); }
.entry-nav__older { margin-left: auto; text-align: right; }
