/* ONE MORE… site styles
   Colors and type live in :root so the whole look can be tuned in one place. */

:root {
  /* Neutrals */
  --sand: #f3ede2;
  --paper: #fbf8f2;
  --line: #ddd2bf;
  --ink: #1f2420;
  --ink-soft: #4d544c;

  /* Outdoors */
  --forest: #2c4a3a;
  --forest-deep: #1d3328;
  --river: #2f6577;
  --earth: #8b6b4a;

  /* The splash of fun: sunrise orange, used for the dots, buttons and highlights */
  --sun: #e2683a;
  --sun-deep: #c4532a;
  --sun-soft: #f8d9c2;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

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

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--river); text-underline-offset: 3px; }
a:hover { color: var(--sun-deep); }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 60, "WONK" 0;
}
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Wordmark ---------- */

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  color: inherit;
}
.wordmark .dots { color: var(--sun); letter-spacing: 0.02em; }
.wordmark .dots span { display: inline-block; transition: transform 0.25s ease; }
.wordmark:hover .dots span:nth-child(1) { transform: translateY(-3px); }
.wordmark:hover .dots span:nth-child(2) { transform: translateY(-3px); transition-delay: 0.06s; }
.wordmark:hover .dots span:nth-child(3) { transform: translateY(-3px); transition-delay: 0.12s; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .wordmark { font-size: 1.35rem; color: var(--ink); }

/* On the home page the header floats over the photo until you scroll */
.home .site-header {
  position: fixed; left: 0; right: 0;
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.home .site-header .wordmark, .home .site-header .nav-toggle { color: #fff; }
.home .site-header.is-solid {
  background: rgba(251, 248, 242, 0.94); border-bottom-color: var(--line);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.home .site-header.is-solid .wordmark, .home .site-header.is-solid .nav-toggle { color: var(--ink); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 0.98rem; font-weight: 500; text-decoration: none; color: var(--ink);
}
.site-nav a:hover { background: var(--sand); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.site-nav .nav-wmf::after { content: " ↗"; color: var(--sun); }

.home .site-header:not(.is-solid) .site-nav a { color: #fff; }
.home .site-header:not(.is-solid) .site-nav a:hover { background: rgba(255,255,255,0.16); }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--ink);
  width: 48px; height: 48px; margin-right: -10px; cursor: pointer; border-radius: 10px;
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--paper);
    padding: 24px var(--gutter);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .site-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 6px; }
  .site-nav a, .home .site-header:not(.is-solid) .site-nav a {
    color: var(--ink); font-family: var(--font-display); font-size: 1.8rem; font-weight: 600;
    padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line);
  }
  .site-nav a[aria-current="page"] { background: none; color: var(--sun-deep); }
  body.nav-open { overflow: hidden; }
  body.nav-open.home .site-header { background: var(--paper); }
  body.nav-open.home .site-header .wordmark, body.nav-open.home .site-header .nav-toggle { color: var(--ink); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 1.02rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-sun { background: var(--sun); color: #fff; }
.btn-sun:hover { background: var(--sun-deep); color: #fff; }
.btn-ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--forest); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff; background: var(--forest-deep); overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,20,0.45) 0%, rgba(20,24,20,0) 28%, rgba(20,24,20,0.15) 52%, rgba(20,24,20,0.78) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(48px, 10vh, 110px); padding-top: calc(var(--header-h) + 40px); }
.hero h1 { max-width: 12ch; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.hero .eyebrow { color: var(--sun-soft); }
.hero-copy { font-size: 1.15rem; max-width: 40ch; margin: 0 0 6px; opacity: 0.95; }
.hero-tag { font-weight: 600; margin: 0 0 28px; color: var(--sun-soft); }

.phrase {
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic; font-weight: 400; margin: 0 0 32px; min-height: 1.4em;
}
@media (max-width: 700px) { .phrase { min-height: 2.8em; } }
.phrase .word { color: var(--sun-soft); font-style: normal; font-weight: 600; display: inline-block; }
.phrase .word.is-leaving { animation: wordOut 0.35s ease forwards; }
.phrase .word.is-entering { animation: wordIn 0.45s ease forwards; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-0.4em); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }

.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--earth); margin-bottom: 14px;
}

/* Page heroes (inner pages) */
.page-hero { position: relative; color: #fff; background: var(--forest-deep); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,20,0.2), rgba(20,24,20,0.7)); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: clamp(110px, 20vw, 220px); padding-bottom: clamp(36px, 6vw, 64px); }
.page-hero .eyebrow { color: var(--sun-soft); }
.page-hero h1 { margin-bottom: 0.2em; }
.page-hero p { font-size: 1.2rem; max-width: 36ch; margin: 0; opacity: 0.95; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-paper { background: var(--paper); }
.section-forest { background: var(--forest); color: #f2efe6; }
.section-forest .eyebrow { color: var(--sun-soft); }
.lede { font-size: 1.25rem; color: var(--ink-soft); }

/* Philosophy */
.philosophy { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 860px) { .philosophy { grid-template-columns: 1.3fr 1fr; gap: 72px; } }
.big-quote {
  font-family: var(--font-display); font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.2;
  font-weight: 500; margin: 0 0 28px;
}
.big-quote em { color: var(--forest); font-style: italic; }

.badge { width: min(300px, 70vw); margin: 0 auto; color: var(--forest); }
.badge .ring { animation: spin 60s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Finish the phrase */
.phrase-list { list-style: none; padding: 0; margin: 0 0 40px; }
.phrase-list li {
  font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.25;
  padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft);
}
.phrase-list li b { color: var(--ink); font-weight: 600; }
.phrase-list li:hover b { color: var(--sun-deep); }

.your-phrase {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  background: var(--sand); border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px;
}
.your-phrase label { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.your-phrase input {
  flex: 1 1 200px; min-width: 0; min-height: 52px; font: inherit; font-size: 1.15rem;
  padding: 0 16px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.your-phrase input:focus { outline: none; border-color: var(--sun); }
.your-phrase + .closing-line { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; margin-top: 24px; }
.form-note { font-size: 0.92rem; color: var(--ink-soft); margin-top: 10px; }

.section-forest .phrase-list li { color: rgba(242,239,230,0.7); border-color: rgba(242,239,230,0.18); }
.section-forest .phrase-list li b { color: #fff; }
.section-forest .phrase-list li:hover b { color: var(--sun-soft); }
.section-forest .lede { color: rgba(242,239,230,0.85); }

/* Cards */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(31,36,32,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 20px 40px -20px rgba(31,36,32,0.45); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { margin-bottom: 0.35em; }
.card-body p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--river); margin-bottom: 8px;
}
.tag-sample { color: var(--sun-deep); margin-left: 8px; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }

/* Explore filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--paper); color: var(--ink); font: 500 0.98rem var(--font-body); cursor: pointer;
}
.chip:hover { border-color: var(--earth); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.card[hidden] { display: none; }

/* Way More Fish band */
.wmf { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 860px) { .wmf { grid-template-columns: 1fr 1fr; gap: 64px; } }
.wmf-logo { background: #fefdf8; border-radius: var(--radius); padding: 28px; display: grid; place-items: center; }
.wmf-logo img { width: min(360px, 100%); }
.section-forest h2 { color: #fff; }
.section-forest p { color: #dcd8cc; }
.section-forest .btn-ghost { color: #fff; }

.feature-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.feature-list li { padding-left: 34px; position: relative; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 18px; height: 18px;
  border-radius: 50%; background: var(--sun); box-shadow: inset 0 0 0 5px var(--sun-soft);
}

/* Signup + forms */
.signup { background: var(--sun-soft); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 56px); }
.signup h2 { margin-bottom: 0.3em; }
.signup-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.signup-form input { flex: 1 1 240px; }

.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 1rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%; min-height: 54px; font: inherit; font-size: 1.05rem; color: var(--ink);
  padding: 12px 16px; border: 2px solid var(--line); border-radius: 10px; background: #fff;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--sun); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 22px; font-size: 1rem; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--sun); flex: none; }
.hidden-field { display: none; }

/* Story / prose pages */
.prose { font-size: 1.15rem; }
.prose > p:not(.draft-note):first-child::first-letter,
.prose .back-link + p:not(.draft-note)::first-letter,
.prose .draft-note + p::first-letter {
  font-family: var(--font-display); float: left; font-size: 3.6em; line-height: 0.85;
  padding: 0.08em 0.1em 0 0; color: var(--forest);
}
.prose h2 { font-size: 1.8rem; margin-top: 1.6em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 8px; }
.pullquote {
  font-family: var(--font-display); font-size: 1.7rem; line-height: 1.3; font-style: italic;
  border-left: 4px solid var(--sun); padding: 4px 0 4px 22px; margin: 1.6em 0; color: var(--forest);
}
.draft-note {
  background: #fff6d6; border: 1px solid #ecd78a; border-radius: 10px; padding: 12px 16px;
  font-size: 0.95rem; margin-bottom: 32px; color: #5a4a12;
}
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 600; text-decoration: none; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ink); color: #cfcabd; padding: 64px 0 40px; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--sun-soft); }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .wordmark { font-size: 1.6rem; color: #fff; display: inline-block; margin-bottom: 10px; }
.site-footer h4 { font: 600 0.8rem var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: #8f8a7e; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-base { border-top: 1px solid #3a3f39; margin-top: 48px; padding-top: 24px; font-size: 0.88rem; color: #8f8a7e; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-base a { color: #b9b4a7; }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Logo ---------- */

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { width: 34px; height: 34px; flex: none; color: var(--forest); }
.home .site-header:not(.is-solid) .brand .mark { color: #fff; }
body.nav-open.home .site-header .brand .mark { color: var(--forest); }
.footer-badge { width: 120px; height: auto; margin-bottom: 18px; }

/* Article extras (One More Cast) */
.story-meta { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; margin-bottom: 14px; }
.standfirst { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.4; color: var(--forest); margin-bottom: 1.6em; }
.prose .standfirst + p::first-letter {
  font-family: var(--font-display); float: left; font-size: 3.6em; line-height: 0.85;
  padding: 0.08em 0.1em 0 0; color: var(--forest);
}
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; color: var(--forest); }
.prose .tips { padding-left: 1.3em; }
.prose .tips li { margin-bottom: 0.9em; }
.prose .tips li::marker { font-family: var(--font-display); font-weight: 600; color: var(--sun); }
.prose .signoff { margin-top: 2em; font-size: 0.95rem; color: var(--ink-soft); }
