/* Beetle — company site. Brown wood on white. */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #FFFFFF;
  --walnut: #3B2416;   /* text, outlines */
  --teak: #7A4A28;     /* links, buttons */
  --teak-deep: #5E361C;
  --oak: #B27843;      /* decorative only */
  --sapwood: #F5EEE5;  /* quiet surfaces */
  --rule: #E8DDD0;
  --muted: #6E5A4B;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.375rem;
  --step-4: clamp(2.5rem, 5.2vw + 1rem, 4.25rem);
  --step-5: clamp(3.25rem, 9vw, 7.5rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--walnut);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p, ul, ol, dl, table { margin: 0 0 1.1em; }

a { color: var(--teak); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--teak-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--oak); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 46rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--walnut); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .9rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--walnut); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--walnut); }
.site-nav { display: flex; gap: clamp(.9rem, 3vw, 2rem); flex-wrap: wrap; }
.site-nav a { color: var(--walnut); text-decoration: none; font-size: var(--step--1); font-weight: 600; padding-block: .3rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--oak); }

/* Buttons */
.button { display: inline-block; background: var(--teak); color: #fff; text-decoration: none; font-weight: 600; font-size: var(--step--1); padding: .8rem 1.25rem; border-radius: 999px; }
.button:hover { background: var(--teak-deep); color: #fff; }
.button-quiet { background: transparent; color: var(--teak); box-shadow: inset 0 0 0 1.5px var(--teak); }
.button-quiet:hover { background: var(--sapwood); color: var(--teak-deep); }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 14ch; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; color: var(--walnut); }
.lede-sub { color: var(--muted); }
.hero-mark { justify-self: center; }
.hero-mark img { width: min(360px, 70vw); filter: drop-shadow(0 18px 22px rgba(59, 36, 22, .16)); }
@media (prefers-reduced-motion: no-preference) {
  .hero-mark img { animation: settle 900ms cubic-bezier(.2,.7,.2,1) both; }
  @keyframes settle { from { opacity: 0; transform: translateY(14px) rotate(-6deg); } to { opacity: 1; transform: none; } }
}

/* Products: "Beetle for ___" */
.products { padding-block: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--rule); }
.products-lead { font-size: var(--step-3); font-weight: 400; font-style: italic; color: var(--muted); margin-bottom: .25em; }
.product-list { list-style: none; padding: 0; margin: 0; }
.product { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name name" "desc status"; gap: .4rem 2rem; align-items: baseline; padding-block: 1.4rem 1.2rem; border-bottom: 1px solid var(--rule); }
.product-name { grid-area: name; }
.product-desc { grid-area: desc; }
.product-status { grid-area: status; }
.product-name { font-family: var(--serif); font-weight: 600; font-size: var(--step-5); line-height: 1; letter-spacing: -0.03em; color: var(--rule); }
.product-live .product-name { color: var(--walnut); text-decoration: none; }
.product-live .product-name:hover { color: var(--teak); }
.product:not(.product-live) .product-name { color: #CDBBA7; }
.product-desc { margin: 0; max-width: 38ch; }
.product-status { margin: 0; font-size: var(--step--1); color: var(--muted); white-space: nowrap; }
.status-live { color: var(--teak); font-weight: 600; }
.status-live::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--teak); margin-right: .45em; vertical-align: .05em; }

/* Spotlight */
.spotlight { background: var(--sapwood); padding-block: clamp(3rem, 7vw, 5.5rem); }
.spotlight-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.spotlight p { max-width: 42ch; }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { padding-block: .9rem; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; }
.facts div:first-child { border-top: 1px solid var(--rule); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--walnut); }

.company { padding-block: clamp(3rem, 7vw, 5rem); }

/* Gym page */
.page-intro { padding-block: clamp(2.5rem, 7vw, 5rem) 2rem; }
.crumb { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: var(--step-1); margin-bottom: .4rem; }
.crumb a { color: var(--muted); }
.page-intro h1 { max-width: 16ch; }
.store-links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

.features { padding-block: clamp(2rem, 5vw, 4rem); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 4rem); }
.feature { border-top: 2px solid var(--walnut); padding-top: 1rem; }
.feature p { margin: 0; max-width: 40ch; }

.timeline-section { background: var(--sapwood); padding-block: clamp(3rem, 7vw, 5rem); }
.section-note { max-width: 60ch; color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 2.85rem; height: 3px; background: linear-gradient(90deg, var(--oak), var(--teak)); border-radius: 3px; }
.timeline li { position: relative; padding: 4rem 1rem 0 0; display: grid; gap: .25rem; align-content: start; }
.timeline li::before { content: ""; position: absolute; top: 2.35rem; left: 0; width: 1rem; height: 1rem; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 3px var(--teak); }
.timeline .t-key::before { background: var(--teak); }
.t-day { font-family: var(--serif); font-weight: 600; font-size: var(--step-2); line-height: 1; position: absolute; top: 0; left: 0; }
.t-what { font-weight: 600; }
.t-msg { font-size: var(--step--1); color: var(--muted); font-family: var(--serif); font-style: italic; }

.pricing { padding-block: clamp(3rem, 7vw, 5rem); }
.price { font-family: var(--serif); font-weight: 600; font-size: var(--step-3); line-height: 1.15; margin-bottom: .4em; }

/* Documents */
.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc h1 { font-size: var(--step-3); margin-bottom: .2em; }
.doc h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.doc h3 { font-size: var(--step-0); font-family: var(--sans); font-weight: 600; margin-top: 1.4rem; margin-bottom: .4rem; }
.doc p, .doc li { max-width: 68ch; }
.doc li { margin-bottom: .35rem; }
.doc-meta { color: var(--muted); font-size: var(--step--1); margin-bottom: 2rem; }
.doc-table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.doc-table th, .doc-table td { text-align: left; padding: .7rem .8rem .7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.doc-table th { font-weight: 600; }
.contact-list div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding-block: .9rem; border-bottom: 1px solid var(--rule); }
.contact-list dt { font-weight: 600; }
.contact-list dd { margin: 0; }
.notfound { min-height: 40vh; }

/* Footer */
.site-footer { background: var(--walnut); color: #EFE4D6; margin-top: 0; }
.site-footer a { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.brand-light, .brand-light:hover { color: #FFFFFF; }
.footer-legal { margin-top: 1rem; font-size: var(--step--1); line-height: 1.6; }
.footer-head { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; margin-bottom: .6rem; color: #FFFFFF; letter-spacing: 0; }
.site-footer p, .footer-links { font-size: var(--step--1); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-base { border-top: 1px solid rgba(239, 228, 214, .2); padding-block: 1.2rem 1.6rem; font-size: var(--step--1); }
.footer-base p { margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .spotlight-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-self: start; }
  .hero-mark img { width: min(220px, 55vw); }
  .product { grid-template-columns: 1fr; grid-template-areas: "name" "desc" "status"; gap: .35rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; margin-left: .5rem; }
  .timeline::before { left: .45rem; right: auto; top: .5rem; bottom: .5rem; width: 3px; height: auto; background: linear-gradient(180deg, var(--oak), var(--teak)); }
  .timeline li { padding: 0 0 1.6rem 2.2rem; }
  .timeline li::before { top: .3rem; left: 0; }
  .t-day { position: static; font-size: var(--step-1); }
}
@media (max-width: 480px) {
  .facts div, .contact-list div { grid-template-columns: 1fr; gap: .15rem; }
}
