/* Burrow Works — shared styles
   Built on Brand Board v1.0: badge, mini mark, app icons, palette and type.
   Layout: the page is a cliff cross-section. Above ground (cream), turf edge,
   underground burrows for each app (earth), bedrock footer (navy). */

/* Self-hosted fonts (SIL Open Font License, see assets/fonts) */
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("assets/fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("assets/fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("assets/fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* Brand Board v1.0 palette */
  --navy: #13222e;        /* Burrow Navy */
  --beak: #ff7a3d;        /* Beak Orange */
  --amber: #ffab2e;       /* Sunset Amber */
  --cream: #f4efe2;       /* Cream */
  --sea: #1b6a88;         /* Sea Teal */
  --slate: #35495b;       /* Cliff Slate */
  --turf: #4f6b2c;        /* Turf Moss */
  --earth: #5a5340;       /* Burrow Earth */
  --yellow: #ffc857;      /* Beak Yellow */
  --ski-sky: #6fa3f2;     /* Ski Sky */

  /* Supporting tones taken from the badge */
  --ground: #ece6d6;
  --line: #b9b09a;
  --turf-hi: #6e8c45;
  --grass: #a6c48a;
  --hole: #1a1710;
  --under: #241f16;
  --chamber: #312b20;
  --tunnel: #2b261b;
  --on-dark: #f4efe2;
  --on-dark-muted: #c9bfa9;
  --navy-2: #22323f;
  --ice: #e8eef2;
  --night: #0d0e0c;

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.889rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.563rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 1.8rem + 2.4vw, 3.4rem);
  --step-5: clamp(3rem, 1.6rem + 5.6vw, 6.2rem);

  --gutter: max(18px, min(4vw, 3rem));
  --max: 74rem;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--navy);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--beak); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--navy); color: var(--cream); padding: 0.5rem 0.9rem; z-index: 10; }
.skip:focus { left: 0.5rem; }

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

.display {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-wrap: balance;
}

/* ---------- Header: lockup on light ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
}
.lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.lockup img { width: 3rem; height: 3rem; flex: none; }
.lockup span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 0.9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lockup:hover { text-decoration: none; }

.site-nav ul { display: flex; gap: clamp(1rem, 3vw, 2.2rem); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--beak); }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2rem, 5vw, 4.5rem);
}
.hero h1 { font-size: var(--step-5); margin: 0 0 1.25rem; }
.hero .lede { font-size: var(--step-1); line-height: 1.5; max-width: var(--measure); margin: 0 0 1.75rem; color: var(--slate); }

.app-links { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.app-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.15rem 0.45rem 0.45rem;
  background: var(--cream);
  border: 2px solid var(--navy);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--navy);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.app-link img { width: 2.4rem; height: 2.4rem; flex: none; }
.app-link:hover { text-decoration: none; transform: translateY(1px); box-shadow: 0 2px 0 var(--navy); }
.app-link:active { transform: translateY(3px); box-shadow: none; }

.badge-wrap { justify-self: center; width: min(100%, 31rem); }
.badge { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .badge { animation: sew-on 900ms cubic-bezier(.2, .9, .25, 1.15) both; transform-origin: 50% 50%; }
  @keyframes sew-on {
    from { opacity: 0; transform: rotate(-9deg) scale(.9); }
    to   { opacity: 1; transform: rotate(0) scale(1); }
  }
}

/* ---------- Turf edge ---------- */

.turf-edge { display: block; width: 100%; height: clamp(70px, 9vw, 120px); margin-bottom: -1px; }

/* ---------- Underground ---------- */

.underground {
  background: var(--under);
  color: var(--on-dark);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 8vw, 6.5rem);
  position: relative;
  isolation: isolate;
}
.tunnel { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.intro { max-width: var(--measure); margin: 0 0 clamp(2.5rem, 6vw, 4rem); }
.intro h2 { font-size: var(--step-4); margin: 0 0 0.75rem; }
.intro p { margin: 0; color: var(--on-dark-muted); }

.chambers { display: grid; gap: clamp(3rem, 8vw, 6rem); }

.chamber {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 4rem);
  background: var(--chamber);
  border: 2px solid var(--earth);
  border-radius: 200px 220px 180px 240px / 150px 170px 160px 140px;
  padding: clamp(1.75rem, 5vw, 3.25rem) clamp(1.5rem, 6vw, 4.5rem);
  width: min(100%, 62rem);
  scroll-margin-top: 2rem;
}
.chamber--right {
  justify-self: end;
  grid-template-columns: minmax(0, 1fr) auto;
  border-radius: 230px 190px 240px 170px / 160px 150px 140px 170px;
}
.chamber--right .phones { order: 2; }

.app-head { display: flex; align-items: center; gap: 1rem; margin: 0 0 0.9rem; }
.app-head img { width: 5.25rem; height: 5.25rem; flex: none; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.app-head h2 { font-size: var(--step-4); margin: 0; }
.app-head .tagline { margin: 0.3rem 0 0; font-weight: 700; font-size: var(--step-1); line-height: 1.25; }
.chamber--puffly .tagline { color: var(--amber); }
.chamber--lapin .tagline { color: var(--ski-sky); }

.chamber p { max-width: var(--measure); margin: 0 0 1.1rem; }

.features { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.45rem; max-width: var(--measure); }
.features li { padding-left: 1.4rem; position: relative; }
.features li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.6em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
}
.chamber--puffly .features li::before { background: var(--amber); }
.chamber--lapin .features li::before { background: var(--ski-sky); }

.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.25rem; }
.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border: 2px dashed var(--on-dark-muted);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.soon svg { width: 1rem; height: 1rem; }
.status-row a { color: var(--on-dark-muted); }
.status-row a:hover { color: var(--on-dark); }

/* ---------- Phones: real app screens, one in front of another ---------- */

.phones {
  display: grid;
  width: clamp(15rem, 30vw, 21rem);
  max-width: 100%;
  padding-top: 1.5rem;
}
.phone {
  grid-area: 1 / 1;
  margin: 0;
  width: 76%;
  aspect-ratio: 9 / 19.5;
  border-radius: 2rem;
  background: #0a0b0a;
  padding: 0.5rem;
  box-shadow: 0 0 0 2px #4a463a inset, 0 24px 44px -18px rgba(0, 0, 0, .8);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 1.55rem;
}
.phone--front { justify-self: start; margin-top: 12%; z-index: 1; }
.phone--back { justify-self: end; transform: rotate(5deg); filter: brightness(.82); }
.chamber--right .phone--front { justify-self: end; }
.chamber--right .phone--back { justify-self: start; transform: rotate(-5deg); }

.plus {
  max-width: var(--measure);
  margin: 0 0 1.4rem;
  padding: 0.85rem 1rem;
  border-radius: 0.9rem;
  background: rgba(244, 239, 226, .06);
  border: 1px solid rgba(244, 239, 226, .14);
  color: var(--on-dark-muted);
}
.plus b { color: var(--on-dark); }
.chamber--puffly .plus b { color: var(--amber); }
.chamber--lapin .plus b { color: var(--ski-sky); }

/* ---------- Bedrock: about + footer on navy ---------- */

.bedrock { background: var(--navy); color: var(--on-dark); padding-block: clamp(3rem, 7vw, 5rem) 2rem; }
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid rgba(244, 239, 226, .16);
}
.cast { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cast figure { margin: 0; display: grid; gap: 0.6rem; }
.cast img { width: 100%; height: auto; border-radius: 1rem; }
.cast figcaption { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-dark-muted); }
.cast figcaption b { color: var(--on-dark); font-weight: 700; }
.about h2 { font-size: var(--step-4); margin: 0 0 1rem; }
.about p { margin: 0 0 1rem; max-width: var(--measure); }
.about p:last-child { margin-bottom: 0; }

.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-top: 1.75rem;
  font-size: var(--step--1);
  color: var(--on-dark-muted);
}
.lockup--dark span { color: var(--on-dark); font-size: 1.35rem; }
.lockup--dark span em { font-style: normal; color: var(--beak); }
.lockup--dark img { width: 2.6rem; height: 2.6rem; }
.site-foot ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-foot a { color: var(--on-dark); }
.site-foot .fine { flex-basis: 100%; margin: 0; max-width: 62ch; }

/* ---------- Inner pages ---------- */

.page-head { padding-block: clamp(1.5rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: var(--step-4); margin: 0 0 0.75rem; }
.page-head p { margin: 0; font-size: var(--step-1); color: var(--slate); max-width: var(--measure); }

.prose-wrap { background: var(--cream); padding-block: clamp(2rem, 6vw, 4rem); border-top: 2px solid var(--navy); }
.prose { max-width: 40rem; }
.prose h2 { font-size: var(--step-3); margin: 2.5rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h2 img { width: 2.4rem; height: 2.4rem; display: inline-block; vertical-align: -0.35rem; margin-right: 0.5rem; }
.prose h3 { font-size: var(--step-1); margin: 1.75rem 0 0.4rem; }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.35rem; }

.prose .toc, .toc { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.toc a {
  display: inline-block;
  padding: 0.35rem 0.95rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}
.toc a:hover { background: var(--ground); }

.contact-card { border: 2px solid var(--navy); border-radius: 1.25rem; padding: 1.25rem 1.5rem; background: var(--ground); margin: 0 0 2.5rem; }
.contact-card p { margin: 0 0 0.4rem; }
.contact-card p:last-child { margin: 0; }
.contact-card .label { font-family: var(--mono); font-size: var(--step--1); color: var(--earth); }
.contact-card .email { font-family: var(--display); font-weight: 700; font-size: var(--step-3); letter-spacing: 0.02em; text-decoration: none; overflow-wrap: anywhere; }
.contact-card .email:hover { text-decoration: underline; }

details { border-bottom: 1.5px solid var(--line); padding-block: 0.9rem; }
details:first-of-type { border-top: 1.5px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: var(--step-1); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: #c4470f; flex: none; transition: transform 160ms ease; }
details[open] summary::after { transform: rotate(45deg); }
details > *:not(summary) { margin-top: 0.6rem; }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }

.inner-foot { background: var(--navy); color: var(--on-dark); }
.inner-foot .site-foot { padding-block: 1.75rem; }

.policy { padding-top: 0.5rem; }
.policy + .policy { margin-top: 3.5rem; padding-top: 3rem; border-top: 2px solid var(--line); }
.policy > h2 { display: flex; align-items: center; gap: 0.6rem; margin-top: 0; }
.policy h3 { font-family: var(--display); font-weight: 700; font-size: var(--step-2); letter-spacing: 0.02em; margin: 2rem 0 0.6rem; }
.policy .updated { color: var(--earth); font-size: var(--step--1); }

/* Review placeholders — delete this rule (and the spans) before launch */
.todo { background: #fff1a8; color: #4a3b00; padding: 0.05em 0.35em; border-radius: 4px; font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .badge-wrap { order: -1; width: min(80%, 22rem); }
  .chamber, .chamber--right {
    grid-template-columns: 1fr;
    border-radius: 120px 140px 60px 60px / 90px 100px 50px 50px;
    justify-self: stretch;
    padding-top: 2.5rem;
  }
  .chamber .phones, .chamber--right .phones { order: 2; justify-self: center; width: min(100%, 20rem); }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-nav ul { gap: 0.9rem; }
  .lockup span { font-size: 1.25rem; }
  .site-head .lockup span { display: none; }
  .chamber, .chamber--right { border-radius: 80px 90px 36px 36px / 60px 70px 30px 30px; padding-inline: 1.25rem; }
  .app-head img { width: 4.25rem; height: 4.25rem; }
}
