/* BearOff Studio: dark theme on Felt Green. Fonts are self-hosted (fonts.css). */
:root {
  --bg: #173d33;          /* Felt Green: the page */
  --bg-deep: #0f2b24;     /* inputs, wells */
  --surface: #1d4a3e;     /* cards */
  --surface-2: #235446;   /* raised / hover */
  --line: #34594e;
  --text: #f3eee2;        /* Bone */
  --muted: #b7c3bb;
  --accent: #f6f0e4;      /* primary buttons: Bone on Felt */
  --on-accent: #173d33;
  --garnet: #b8434d;      /* Garnet, lifted for contrast on dark */
  --radius: 14px;
  --serif: "cofo-raffine", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px clamp(16px, 4vw, 48px); background: rgba(23, 61, 51, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand img, .brand svg.logo { display: block; height: 40px; width: auto; overflow: visible; }
.brand { text-decoration: none; }
.nav nav { display: flex; gap: 18px; align-items: center; }
.nav nav > a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav nav > a:not(.btn):hover { color: var(--text); }
.nav .ig { display: inline-flex; align-items: center; }
.nav .ig + .ig { margin-left: -8px; }   /* the three social icons sit as one group */
@media (max-width: 640px) { .nav nav > a:not(.btn):not(.ig), .nav nav > a.social-extra { display: none; } .nav nav { gap: 12px; } .brand img, .brand svg.logo { height: 32px; } }

.lang { display: inline-flex; gap: 2px; align-items: center; font-size: .85rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang strong, .lang a { padding: 3px 9px; border-radius: 999px; text-decoration: none; }
.lang strong { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.lang a { color: var(--muted); font-weight: 500; }
.lang a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); border: 0; border-radius: 999px;
  padding: 12px 24px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--on-accent); }
.btn-small { padding: 8px 16px; font-size: .9rem; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 48px); max-width: 1120px; margin: 0 auto; }
.section-lead { color: var(--muted); max-width: 60ch; margin-top: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--muted); font-weight: 600; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
  padding: clamp(48px, 8vw, 112px) clamp(16px, 4vw, 48px); max-width: 1120px; margin: 0 auto; }
.hero-art { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 24px;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; } .hero-art { max-width: 460px; } }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin: 0 0 12px; }
.card .photo { display: grid; place-items: center; padding: 24px 0; margin: -24px -24px 20px; background: var(--bg-deep); border-radius: var(--radius) var(--radius) 0 0; }
.card .photo img { height: 150px; width: 90%; object-fit: contain; }   /* fixed box, never distorted (the couples image is 2:1) */
.card .cw { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 6px; }
.price { font-weight: 600; color: var(--text) !important; }
.sizes { margin-top: 28px; color: var(--muted); max-width: 75ch; }
.sizes strong { color: var(--text); }

/* How */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: var(--muted); }
/* Step numbers are little checkers: grooved rim, number inlaid in the other player's colour, alternating players. */
.steps li::before { content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; margin-bottom: 12px;
  font: 700 1.05rem var(--serif); background: #a2343a; color: #f3eee2;
  box-shadow: inset 0 0 0 3px #a2343a, inset 0 0 0 4.5px rgba(0, 0, 0, .22), inset 0 0 0 6px rgba(255, 255, 255, .12),
              0 3px 0 #6e1f26, 0 5px 10px rgba(0, 0, 0, .3); }
.steps li:nth-child(even)::before { background: #eeeae0; color: #a2343a;
  box-shadow: inset 0 0 0 3px #eeeae0, inset 0 0 0 4.5px rgba(0, 0, 0, .14), inset 0 0 0 6px rgba(255, 255, 255, .5),
              0 3px 0 #c9bfa8, 0 5px 10px rgba(0, 0, 0, .3); }
.steps strong { display: block; color: var(--text); }

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about p { max-width: 60ch; }
.facts { list-style: none; padding: 24px; margin: 0; background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border: 0; }
.facts span { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sig { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; }
.follow { color: var(--muted); }
.follow a { color: var(--text); font-weight: 600; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } }

/* Form */
.form { display: grid; gap: 16px; max-width: 720px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
input, select, textarea { font: 1rem var(--sans); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-deep); color: var(--text); width: 100%; }
::placeholder { color: #86978d; }
.hp { position: absolute; left: -9999px; }
.form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; color: var(--muted); }
.form-status.ok { color: #9fd3b8; } .form-status.err { color: #f0a0a6; }
.fineprint { margin: 0; font-size: .82rem; color: var(--muted); }

.footer { text-align: center; padding: 32px 16px; color: var(--muted); border-top: 1px solid var(--line); font-size: .9rem; }
.footer .tm { font-size: .75rem; opacity: .75; margin-top: 6px; }
.prose { max-width: 70ch; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose a { color: var(--text); }

/* Design your own */
.dyo { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 28px; }
@media (max-width: 860px) { .dyo { grid-template-columns: 1fr; } }
.dyo-preview { position: sticky; top: 88px; background: var(--bg-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (max-width: 860px) { .dyo-preview { position: static; } }
.dyo-preview svg { display: block; width: 100%; height: auto; }
.dyo-players { display: flex; justify-content: space-around; color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 8px; }
.dyo-controls { display: grid; gap: 22px; }
.dyo-group { display: grid; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.dyo-group legend, .dyo-label { font-weight: 600; font-size: .92rem; padding: 0; margin-bottom: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 .9rem var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip:disabled { opacity: .35; cursor: not-allowed; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--line); background: var(--c); cursor: pointer; position: relative; }
.sw[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.sw:disabled { opacity: .25; cursor: not-allowed; }
.fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.font-btn { display: grid; gap: 2px; justify-items: center; padding: 10px 6px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font: 500 .75rem var(--sans); }
.font-btn .aa { font-size: 1.6rem; line-height: 1.2; }
.font-btn[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--surface-2); }
.font-btn:disabled { opacity: .3; cursor: not-allowed; }
.dyo-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dyo-inputs input { font-size: 1.3rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; }
.dyo-inputs input:disabled { opacity: .35; }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.toggle input { width: 20px; height: 20px; accent-color: #f6f0e4; }
.dyo-note { font-size: .82rem; color: var(--muted); margin: 0; }
.dyo-warn { font-size: .85rem; color: #f0c9a0; margin: 0; min-height: 1.2em; }
.dyo-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 12px; }
.dyo-summary .line { font-weight: 500; overflow-wrap: anywhere; }
.dyo-summary .est { color: var(--muted); font-size: .9rem; margin: 0; }
.dyo-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Gallery: graded lifestyle photos. Captions sit below the photos, never on them. */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.gallery-grid figure { margin: 0; }
.gallery-grid .g-wide { grid-column: 1 / -1; }
.gallery-grid img, .gallery-grid video { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.gallery-grid figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Motion (only when the visitor hasn't asked for reduced motion: html.motion is set in <head>) ---------- */
main { overflow-x: clip; }   /* reveal slides start off to the side; never cause a sideways scroll */

/* Bear-off logo: two Garnet checkers drop into a stack, the Bone checker lands on top, then lifts off (bearing off)
   and turns face-on, leaving the dot trail. .play = first load (with the lettering), .replay = on hover. */
.brand { display: block; transform-origin: center; }
.logo .lg-c1, .logo .lg-c2, .logo .lg-lift { transform-box: fill-box; transform-origin: center; }
.logo.play .lg-c1, .logo.replay .lg-c1 { animation: lgDrop .45s cubic-bezier(.3, 1.35, .6, 1) both; }
.logo.play .lg-c2, .logo.replay .lg-c2 { animation: lgDrop .45s cubic-bezier(.3, 1.35, .6, 1) .25s both; }
.logo.play .lg-lift, .logo.replay .lg-lift { animation: lgLift 1.35s cubic-bezier(.45, 0, .2, 1) .45s both; }
.logo.play .lg-d1, .logo.replay .lg-d1 { animation: lgFade .25s ease 1.55s both; }
.logo.play .lg-d2, .logo.replay .lg-d2 { animation: lgFade .25s ease 1.65s both; }
.logo.play .lg-word { animation: lgFade .6s ease 1.25s both; }
@keyframes lgDrop { from { opacity: 0; transform: translateY(-240px); } to { opacity: 1; transform: none; } }
@keyframes lgLift {
  0%   { opacity: 0; transform: translate(-67px, -200px) scale(1, .31) rotate(14deg); }
  30%  { opacity: 1; transform: translate(-67px, 85px) scale(1, .31) rotate(14deg); }
  45%  { transform: translate(-67px, 85px) scale(1, .31) rotate(14deg); }
  100% { opacity: 1; transform: translate(0, 0) scale(1, 1) rotate(0deg); }
}
@keyframes lgFade { from { opacity: 0; } to { opacity: 1; } }

/* Intro: the logo plays large in the middle of the nav, then glides left and shrinks into place. */
html.intro .nav nav { opacity: 0; }
html.intro .brand { visibility: hidden; }
html.intro .brand.staged { visibility: visible; }
.nav nav { transition: opacity .6s ease; }
.brand.glide { transition: transform .8s cubic-bezier(.65, 0, .25, 1); }

/* Point-to-point reveal: cards and photos slide in from alternating sides with a slight tilt, like checkers moving
   between points, and settle into place. */
html.motion .p2p { opacity: 0; transform: translateX(-56px) rotate(-1.2deg);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0ms); }
html.motion .p2p.right { transform: translateX(56px) rotate(1.2deg); }
html.motion .p2p.in { opacity: 1; transform: none; }

/* SEO: the hero's keyword line is the H1 (styled as the eyebrow); the slogan keeps the big display look. */
h1.eyebrow { font: 600 .78rem/1.5 var(--sans); margin: 0 0 1em; text-wrap: balance; }
.display { font: 700 clamp(2.4rem, 6vw, 4rem)/1.15 var(--serif); margin: 0 0 .5em; text-wrap: balance; }

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; max-width: 75ch; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
.faq details p { color: var(--muted); margin: 10px 0 0; }
