/* Coco Bear sites: shared styles.
   The same file is used by cocobear.farm and cocobearoysters.com.
   If you change it in one site folder, copy it to the other. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #fbf7f0;
  --paper: #f3ebdd;
  --card: #fffdf9;
  --line: #e4d8c6;
  --line-strong: #c9b9a1;
  --ink: #1d2a28;
  --ink-2: #4a5855;
  --lagoon-950: #0a2a29;
  --lagoon-900: #0f3a38;
  --lagoon-700: #1d5c57;
  --lagoon-500: #3a8a80;
  --coco-800: #45291b;
  --coco-700: #5b3825;
  --coco-500: #8a593b;
  --sun-500: #e2864e;
  --sun-300: #f3c08f;
  --error: #a8261d;

  --accent: var(--lagoon-700);
  --accent-strong: var(--lagoon-900);
  --ring: rgba(29, 92, 87, 0.22);
  --on-accent: #ffffff;
  --focus: #e2864e;
  --section-bg: var(--cream);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.1875rem;
  --step-2: clamp(1.3125rem, 1.15rem + 0.6vw, 1.5rem);
  --step-3: clamp(1.875rem, 1.35rem + 2.1vw, 2.75rem);
  --step-4: clamp(2.375rem, 1.45rem + 3.9vw, 4.25rem);

  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-sm: 8px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 42, 40, 0.05), 0 12px 32px rgba(29, 42, 40, 0.07);

  --maxw: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 68px;
}

.site-oysters {
  --accent: var(--coco-700);
  --accent-strong: var(--coco-800);
  --ring: rgba(91, 56, 37, 0.22);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variation-settings: "SOFT" 60;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.visually-hidden {
  position: absolute !important;
  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: 16px; top: -120px; z-index: 100;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 240, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { position: relative; display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; flex: none; color: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 650; letter-spacing: -0.01em; font-variation-settings: "SOFT" 100; }
.brand-sub { margin-top: 5px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { padding: 8px 0; color: var(--ink); font-size: 0.9375rem; font-weight: 600; text-decoration: none; }
.nav a:hover { color: var(--accent); }

.menu-toggle {
  display: none;
  align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: transparent; color: var(--ink);
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 18px; }

@media (max-width: 880px) {
  .nav { display: none; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-header.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter));
    padding: 4px var(--gutter) 16px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(29, 42, 40, 0.08);
  }
  .js .site-header.is-open .nav a { padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.0625rem; }
}
@media (max-width: 559px) {
  .site-header .header-cta { display: none; }
}

/* Dark header (oyster site) */
.site-header--dark { background: rgba(15, 58, 56, 0.98); }
.site-header--dark.is-scrolled { border-bottom-color: rgba(251, 247, 240, 0.12); }
.site-header--dark .brand, .site-header--dark .brand:hover { color: var(--cream); }
.site-header--dark .brand-sub { color: rgba(251, 247, 240, 0.7); }
.site-header--dark .brand-mark { color: var(--sun-300); }
.site-header--dark .nav a { color: var(--cream); }
.site-header--dark .nav a:hover { color: var(--sun-300); }
.site-header--dark .menu-toggle { color: var(--cream); border-color: rgba(251, 247, 240, 0.35); }
@media (max-width: 880px) {
  .js .site-header--dark.is-open .nav { background: var(--lagoon-900); border-bottom-color: rgba(251, 247, 240, 0.12); }
  .js .site-header--dark.is-open .nav a { border-top-color: rgba(251, 247, 240, 0.12); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--on-accent);
  font: 600 1rem/1.2 var(--font-body);
  text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 0.9375rem; }
.btn--outline { background: transparent; color: var(--accent); border-color: var(--line-strong); }
.btn--outline:hover { background: var(--card); color: var(--accent-strong); border-color: var(--accent); }
.btn--sun { background: var(--sun-300); color: var(--lagoon-950); }
.btn--sun:hover { background: #f7d2ad; color: var(--lagoon-950); }
.btn--ghost-light { background: transparent; color: var(--cream); border-color: rgba(251, 247, 240, 0.45); }
.btn--ghost-light:hover { background: rgba(251, 247, 240, 0.08); color: #fff; border-color: var(--cream); }
.btn[aria-busy="true"] { cursor: progress; }
.spinner {
  width: 16px; height: 16px; flex: none;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: cb-spin 0.7s linear infinite;
}
@keyframes cb-spin { to { transform: rotate(360deg); } }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: block; margin-bottom: var(--space-4);
  color: var(--accent);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.lead { max-width: 62ch; color: var(--ink-2); font-size: var(--step-1); line-height: 1.6; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--paper { --section-bg: var(--paper); background: var(--paper); }
.section--dark { --section-bg: var(--lagoon-900); background: var(--lagoon-900); color: var(--cream); }
.section--dark h2, .section--dark h3 { color: var(--cream); }
.section--dark p, .section--dark .lead { color: rgba(251, 247, 240, 0.84); }
.section--dark .eyebrow { color: var(--sun-300); }
.section--dark a:not(.btn) { color: var(--sun-300); }
.section-head { max-width: 740px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: var(--step-3); }
.section-head .lead { margin-top: var(--space-4); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 96px); }
.hero-copy { max-width: 780px; }
.hero h1 { font-size: var(--step-4); line-height: 1.03; font-variation-settings: "SOFT" 100; }
.hero .lead { margin-top: var(--space-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }
.hero-note { margin-top: var(--space-4); color: var(--ink-2); font-size: var(--step--1); }
.hero-scene { width: 100%; height: clamp(200px, 28vw, 400px); margin-top: clamp(28px, 5vw, 56px); }
.hero-scene svg { width: 100%; height: 100%; }

.hero--dark { padding-block: clamp(40px, 7vw, 104px) clamp(56px, 8vw, 112px); background: var(--lagoon-900); color: var(--cream); overflow: hidden; }
.hero--dark h1 { color: var(--cream); }
.hero--dark .lead { color: rgba(251, 247, 240, 0.86); }
.hero--dark .eyebrow { color: var(--sun-300); }
.hero--dark .hero-note { color: rgba(251, 247, 240, 0.72); }
.hero-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero-art { width: 100%; max-width: 500px; margin-inline: auto; }
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
}

/* ---------- Split layouts ---------- */
.split { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
@media (min-width: 920px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--form { grid-template-columns: 0.95fr 1.05fr; }
}
.prose p { max-width: 60ch; color: var(--ink-2); font-size: var(--step-1); }
.prose h2 { font-size: var(--step-3); margin-bottom: var(--space-5); }
.art-frame { width: 100%; max-width: 440px; margin-inline: auto; }

/* ---------- Feature cards ---------- */
.features { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { padding: var(--space-6) var(--space-5); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-icon { width: 44px; height: 44px; margin-bottom: var(--space-4); color: var(--accent); }
.feature h3 { margin-bottom: var(--space-2); font-size: var(--step-2); }
.feature p { color: var(--ink-2); font-size: 1rem; }
.features-note { margin-top: var(--space-6); color: var(--ink-2); }

/* ---------- Timeline ---------- */
.timeline { margin: 0; padding: 0; list-style: none; display: grid; }
.timeline-item { position: relative; padding: 0 0 var(--space-6) 44px; }
.timeline-item::before {
  content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px;
  width: 2px; background: var(--line-strong);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute; left: 0; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line-strong); background: var(--section-bg);
}
.timeline-item.is-current .timeline-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px var(--ring); }
.timeline-when { color: var(--ink-2); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.timeline-here { margin-left: 6px; color: var(--accent); }
.timeline-item h3 { margin: 4px 0 6px; font-size: var(--step-2); }
.timeline-item p { max-width: 46ch; color: var(--ink-2); }
@media (min-width: 920px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
  .timeline-item { padding: 44px 0 0; }
  .timeline-item::before { left: 30px; right: calc(-1 * var(--space-5)); top: 11px; bottom: auto; width: auto; height: 2px; }
  .timeline-dot { top: 0; }
}
.timeline-foot { margin-top: var(--space-7); color: var(--ink-2); font-size: var(--step--1); }

/* ---------- Oyster lineup ---------- */
.lineup { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.oyster-card { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.oyster-card .card-icon { width: 56px; height: 56px; color: var(--coco-700); }
.oyster-card .kind { color: var(--coco-500); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.oyster-card h3 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); }
.oyster-card p { color: var(--ink-2); }

/* ---------- Steps ---------- */
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-5); }
.step { display: grid; grid-template-columns: 40px 1fr; gap: var(--space-4); }
.step-num {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font: 600 1.125rem/1 var(--font-display);
}
.step h3 { font-size: var(--step-2); margin-top: 6px; }
.step p { margin-top: 6px; color: var(--ink-2); }
.fine-print { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--step--1); }

/* ---------- Forms ---------- */
.form-card {
  padding: clamp(20px, 4vw, 36px);
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-card h3 { font-size: var(--step-2); }
.form-card .form-intro { margin: 8px 0 0; color: var(--ink-2); }
.form-card form { margin-top: var(--space-5); }
.form-grid { display: grid; gap: 18px var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .form-grid--2 .field--full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field > label, .field legend { color: var(--ink); font-size: 0.9375rem; font-weight: 600; }
.optional { color: var(--ink-2); font-weight: 400; }
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%234a5855' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.field ::placeholder { color: #87918d; }
.field .hint { margin: 0; color: var(--ink-2); font-size: 0.875rem; }
.field .error { margin: 0; color: var(--error); font-size: 0.875rem; font-weight: 600; }
.field .notice { margin: 0; color: var(--coco-700); font-size: 0.875rem; font-weight: 600; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
fieldset.field { margin: 0; padding: 0; border: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.choices { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.choice { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; color: var(--ink); font-weight: 500; cursor: pointer; }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-5); }
.form-note { margin: 0; color: var(--ink-2); font-size: 0.875rem; }
.form-status { margin: var(--space-3) 0 0; font-size: 0.9375rem; }
.form-status:empty { margin: 0; }
.form-status.is-error { color: var(--error); font-weight: 600; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { padding: var(--space-2) 0; }
.form-success:focus { outline: none; }
.form-success .check { width: 44px; height: 44px; margin-bottom: var(--space-4); color: var(--accent); }
.form-success h3 { font-size: var(--step-2); margin-bottom: var(--space-2); }
.form-success p { color: var(--ink-2); }

/* Newsletter block: one email field with its button beside it */
.newsletter { max-width: 680px; }
.newsletter h2 { font-size: var(--step-3); }
.newsletter .lead { margin-top: var(--space-4); }
.newsletter-form { margin-top: var(--space-6); }
.signup-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.signup-row input { flex: 1 1 260px; width: auto !important; }
.signup-row .btn { flex: 0 0 auto; }
.newsletter-form .form-note { margin-top: var(--space-3); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { position: relative; width: 22px; height: 22px; flex: none; }
.faq .plus::before, .faq .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 16px; height: 2px; background: var(--accent); border-radius: 2px;
  transform: translate(-50%, -50%); transition: transform 0.2s ease;
}
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { max-width: 68ch; padding: 0 0 22px; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-7); }
.cta-band h2 { font-size: var(--step-3); }
.cta-band p { margin-top: var(--space-3); max-width: 56ch; }

/* ---------- Footer ---------- */
.site-footer { padding-block: var(--space-8) var(--space-6); background: var(--lagoon-950); color: rgba(251, 247, 240, 0.78); font-size: 0.9375rem; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.site-footer .brand { color: var(--cream); }
.site-footer .brand-sub { color: rgba(251, 247, 240, 0.62); }
.site-footer .brand-mark { color: var(--sun-300); }
.footer-tagline { display: flex; align-items: center; gap: 8px; margin-top: var(--space-4); }
.footer-tagline svg { width: 18px; height: 22px; color: var(--sun-300); }
.footer-col h2 { margin-bottom: 12px; color: rgba(251, 247, 240, 0.6); font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-variation-settings: normal; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.advisory { max-width: 92ch; margin-top: var(--space-7); color: rgba(251, 247, 240, 0.66); font-size: 0.8125rem; }
.advisory strong { color: rgba(251, 247, 240, 0.85); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: var(--space-6); padding-top: var(--space-5);
  border-top: 1px solid rgba(251, 247, 240, 0.14);
  color: rgba(251, 247, 240, 0.62); font-size: 0.875rem;
}

/* ---------- Simple pages (privacy, thanks, 404) ---------- */
.page { padding-block: clamp(48px, 8vw, 96px); }
.page-narrow { max-width: 720px; }
.page h1 { font-size: var(--step-3); margin-bottom: var(--space-5); }
.page h2 { font-size: var(--step-2); margin: var(--space-7) 0 var(--space-3); }
.page p, .page li { color: var(--ink-2); }
.page ul { padding-left: 1.2em; }
.page .updated { color: var(--ink-2); font-size: var(--step--1); }
.page-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
.page .check { width: 48px; height: 48px; margin-bottom: var(--space-4); color: var(--accent); }
.section-head--tight { margin-bottom: var(--space-6); }
