/* Bear's Den public site (draft). One stylesheet, no inline styles, no outside requests.
   Colours, type scale, radii and shadows are the den's own (web/src/style.css :root, step 20a design system). */

/* Nunito (SIL OFL 1.1, fonts/OFL.txt). The den's self-hosted variable file covers 400 to 800 in one download;
   the app's Bold and ExtraBold files back it up for the two heavier weights. */
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-latin-wght.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-latin-wght.woff2') format('woff2'), url('fonts/Nunito-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-latin-wght.woff2') format('woff2'), url('fonts/Nunito-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2a2520;
  --wood: #5f5348;
  --honey: #e9b949;
  --honey-tint: #fbefcc;
  --honey-dark: #b8820f;
  --green: #2f5d4a;
  --green-press: #244a3a;
  --green-tint: #e3efe8;
  --cream: #fffdf8;
  --paper: #fbf5ea;
  --sand: #f3e6cf;
  --line: #e6dbc9;
  --line-strong: #8f7f6c;
  --sky: #d7e8e4;
  --night: #14261f;
  --night-2: #1f3329;
  --night-3: #2e4439;
  --night-ink: #f3e9d2;
  --fur: #a86b3c;

  --font: 'Nunito', ui-rounded, -apple-system, 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --fs-14: .875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-22: 1.375rem;
  --fs-28: 1.75rem;
  --fs-36: 2.25rem;
  --h2: clamp(var(--fs-28), 3.4vw, var(--fs-36));

  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  --r-btn: 16px;
  --r-card: 24px;
  --r-full: 999px;
  --e1: 0 1px 2px #5a402014;
  --e2: 0 8px 24px #5a40201f;

  --gutter: clamp(1rem, 4vw, 3rem);
  --wide: 70rem;
  --section: clamp(3.5rem, 8vw, 6rem);

  color-scheme: light;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: var(--fs-18);
  background: var(--paper);
  overflow-x: hidden;
}
main {
  flex: 1;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p,
ul,
ol {
  margin: 0;
}
p {
  text-wrap: pretty;
}
a {
  color: var(--green);
  font-weight: 700;
  text-underline-offset: .18em;
}
a:hover {
  color: var(--green-press);
}
:focus-visible {
  outline: 3px solid var(--honey-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wide));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: var(--sp-4);
  top: -4rem;
  z-index: 10;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-btn);
  background: var(--ink);
  color: var(--cream);
}
.skip:focus {
  top: var(--sp-4);
  color: var(--cream);
}

/* Buttons: the den's primary (green, cream words) and secondary (green outline). 56px tall tap area. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 56px;
  padding: var(--sp-3) var(--sp-5);
  border: 2px solid var(--green);
  border-radius: var(--r-btn);
  font: inherit;
  font-size: var(--fs-18);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background: var(--green);
  color: var(--cream);
  box-shadow: var(--e1);
}
.btn:hover {
  background: var(--green-press);
  border-color: var(--green-press);
  color: var(--cream);
}
.btn-quiet {
  background: transparent;
  color: var(--green);
  box-shadow: none;
}
.btn-quiet:hover {
  background: var(--green-tint);
  border-color: var(--green);
  color: var(--green-press);
}
.btn-small {
  min-height: 48px;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-16);
}

/* Top bar and wordmark */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-22);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover {
  color: var(--ink);
}
.wordmark img {
  width: 40px;
  height: 40px;
}

/* Hero */
.hero {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
  padding-block: var(--sp-5) var(--section);
}
.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.lead {
  margin-top: var(--sp-4);
  max-width: 34rem;
  font-size: clamp(var(--fs-18), 1.6vw, var(--fs-22));
  color: var(--wood);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.hero-art {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--honey-tint);
  box-shadow: var(--e1);
}
.hero-art img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

/* Sections */
.section {
  padding-block: 0 var(--section);
}
.section-head {
  max-width: 40rem;
  margin-bottom: var(--sp-6);
}
.section-head h2,
.band h2 {
  font-size: var(--h2);
}
.section-head p {
  margin-top: var(--sp-3);
  color: var(--wood);
}

/* What you can do: four picture tiles, one word each */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  padding: 0;
  list-style: none;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--cream);
  box-shadow: var(--e1);
  font-size: var(--fs-22);
  font-weight: 800;
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  background: var(--honey-tint);
  color: var(--green);
}
.tile-icon svg {
  width: 32px;
  height: 32px;
}
.tiles > li {
  display: flex;
}
a.tile {
  flex: 1;
  color: var(--ink);
  text-decoration: none;
}
a.tile:hover {
  border-color: var(--green);
  color: var(--ink);
}
.updated {
  margin-top: var(--sp-6);
  font-size: var(--fs-14);
  color: var(--wood);
}
.on-dark {
  color: var(--honey);
}
.on-dark:hover {
  color: var(--cream);
}
.doc .lead {
  max-width: none;
}
.soon {
  margin-top: var(--sp-4);
  font-size: var(--fs-16);
  color: var(--wood);
}

.trust {
  margin-top: var(--sp-5);
  text-align: center;
  font-size: var(--fs-16);
  color: var(--wood);
}
.trust a {
  margin-left: var(--sp-2);
}

/* Words-only hero and Santa band (Chad 2026-11-30: the drawings read too childish) */
.hero-plain {
  justify-items: center;
  text-align: center;
  padding-block: var(--sp-7) var(--section);
}
.hero-plain h1 {
  max-width: 18ch;
}
.hero-plain .lead {
  margin-inline: auto;
}
.hero-plain .actions {
  justify-content: center;
}
.santa-plain {
  text-align: center;
}
.santa-plain p {
  margin-inline: auto;
}

/* Home page parts from Fable's reference review (2026-11-30) */
.steps {
  display: grid;
  gap: var(--sp-3);
  margin: 0 auto;
  max-width: 56rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-btn);
  background: var(--sand);
  font-weight: 700;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  background: var(--green);
  color: var(--cream);
  font-weight: 800;
}
.steps-more {
  margin: var(--sp-3) 0 var(--sp-6);
  text-align: center;
  font-size: var(--fs-16);
}
.tile-note {
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--wood);
}
.top {
  flex-wrap: wrap;
}
.top-nav {
  display: flex;
  order: 3;
  width: 100%;
  justify-content: center;
  gap: var(--sp-5);
  border-top: 1px solid var(--line);
}
.top-nav a {
  padding-block: var(--sp-3);
}
.top-nav a {
  color: var(--ink);
  text-decoration: none;
}
.top-nav a:hover,
.top-nav a[aria-current] {
  color: var(--green);
  text-decoration: underline;
}

/* Fable's "make it better" pass (2026-11-30) */
.hero-band {
  margin-bottom: var(--section);
  border-block: 1px solid var(--line);
  background: var(--honey-tint);
}
.hero-band .hero-plain {
  padding-block: var(--sp-7);
}
.part {
  margin-bottom: var(--sp-5);
  text-align: center;
  font-size: var(--fs-28);
}
.facts {
  display: grid;
  gap: var(--sp-3);
  padding: 0;
  list-style: none;
}
.facts li {
  padding: var(--sp-4);
  border-radius: var(--r-btn);
  background: var(--green-tint);
  color: var(--green);
  font-weight: 800;
  text-align: center;
}
.facts a {
  color: var(--green);
}
.tiles {
  margin-bottom: var(--sp-2);
}
.steps li {
  justify-content: center;
}
.btn-honey {
  background: var(--honey);
  border-color: var(--honey);
  color: var(--ink);
}
.btn-honey:hover {
  background: var(--honey-dark);
  border-color: var(--honey-dark);
  color: var(--ink);
}
.santa-plain .actions {
  justify-content: center;
}
.doc > .tile-icon {
  margin-bottom: var(--sp-3);
}
.doc .tiles {
  margin-top: var(--sp-4);
  padding: 0;
}
.doc .tiles > li + li {
  margin-top: 0;
}
.tiles.tiles-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-2);
}
.tiles-3 .tile {
  padding: var(--sp-4) var(--sp-2);
  font-size: var(--fs-18);
}
.tiles-3 .tile-note {
  display: none;
}
.where {
  padding: var(--sp-4);
  border-radius: var(--r-btn);
  background: var(--sand);
}
.qa h2 {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}

/* Santa: a night band, like the den's own Santa screens */
.band {
  padding-block: var(--section);
  background: var(--night);
  color: var(--night-ink);
}
.santa {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}
.santa-art {
  width: min(100%, 15rem);
  margin: 0 auto;
}
.band h2 {
  color: var(--cream);
}
.band p {
  margin-top: var(--sp-3);
  max-width: 36rem;
}
/* Footer: on every page */
.foot {
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4) var(--sp-6);
  padding-block: var(--sp-5);
}
.foot nav ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 var(--sp-5);
  padding: 0;
  list-style: none;
}
.foot nav ul.unused {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  padding: 0;
  list-style: none;
}
.foot nav a {
  display: inline-block;
  padding-block: var(--sp-2);
  font-size: var(--fs-16);
  font-weight: 600;
  text-decoration: none;
}
.foot nav a:hover {
  text-decoration: underline;
}
.foot small {
  width: 100%;
  font-size: var(--fs-14);
  color: var(--wood);
}

/* Text pages: privacy and account deletion */
.doc {
  width: min(100% - 2 * var(--gutter), 46rem);
  margin-inline: auto;
  padding-block: var(--sp-4) var(--section);
}
.doc h1 {
  font-size: clamp(var(--fs-36), 5vw, 3rem);
}
.doc h2 {
  margin-top: var(--sp-6);
  font-size: var(--fs-22);
}
.doc p,
.doc ol,
.doc ul {
  margin-top: var(--sp-3);
}
.doc ol,
.doc ul {
  padding-left: 1.4em;
}
.doc li + li {
  margin-top: var(--sp-2);
}
.doc li::marker {
  color: var(--green);
  font-weight: 800;
}
.doc article,
.doc .card {
  margin-top: var(--sp-5);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--cream);
  box-shadow: var(--e1);
}
.doc article > h2:first-child,
.doc .card > h2:first-child {
  margin-top: 0;
}
.draft {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  border: 2px solid var(--honey);
  border-radius: var(--r-btn);
  background: var(--honey-tint);
}
.draft p {
  margin: 0;
}
.draft p + p {
  margin-top: var(--sp-2);
}
.placeholder {
  display: block;
  margin-top: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border: 2px dashed var(--honey-dark);
  border-radius: var(--r-btn);
  background: var(--honey-tint);
  font-weight: 700;
}
.where {
  margin-top: var(--sp-5);
  color: var(--wood);
}
.ui {
  font-weight: 800;
  white-space: nowrap;
}

/* 404 */
.lost {
  display: grid;
  justify-items: center;
  gap: var(--sp-4);
  padding-block: var(--section);
  text-align: center;
}
.lost img {
  width: 120px;
  height: 120px;
}
.lost h1 {
  font-size: clamp(var(--fs-28), 5vw, 3rem);
}
.lost p {
  max-width: 30rem;
  color: var(--wood);
}

/* The den's icon set (web/src/components/Icons.tsx): 24 grid, stroke 2, round caps and joins. */
.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Wider screens */
@media (min-width: 40rem) {
  .foot nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2) var(--sp-5);
  }
  .tiles.tiles-3 {
    gap: var(--sp-3);
  }
  .tiles-3 .tile-note {
    display: block;
  }
  .doc article {
    padding: var(--sp-6);
  }
}
@media (min-width: 56rem) {
  .top-nav {
    order: 0;
    width: auto;
    margin-left: auto;
    border: 0;
  }
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero:not(.hero-plain) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--sp-7);
    padding-top: var(--sp-6);
  }
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .santa:not(.santa-plain) {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--sp-8);
  }
  .santa-art {
    order: 2;
    width: min(100%, 20rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .btn {
    transition: background-color 150ms cubic-bezier(.2, .8, .2, 1), transform 150ms cubic-bezier(.2, .8, .2, 1);
  }
  .btn:active {
    transform: scale(.97);
  }
}

/* Beta (2026-12-01) */
.beta-tag {
  margin-left: .5rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: var(--honey);
  color: var(--ink);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.beta {
  scroll-margin-top: 1rem;
}
.beta-lead {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--wood);
}
.beta-form {
  display: grid;
  gap: .5rem;
  max-width: 30rem;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--cream);
}
.beta-form > label {
  font-weight: 700;
  margin-top: .5rem;
}
.beta-form .opt {
  font-weight: 400;
  color: var(--wood);
}
.beta-form input[type=text],
.beta-form input[type=email] {
  width: 100%;
  min-height: 3rem;
  padding: .6rem .85rem;
  border: 2px solid var(--line);
  border-radius: .75rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.beta-form input:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 1px;
  border-color: var(--green);
}
.beta-form .check {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-weight: 400;
  margin-top: .75rem;
}
.beta-form .check input {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: .1rem;
  flex: none;
  accent-color: var(--green);
}
.beta-form .btn {
  margin-top: .75rem;
}
.beta-form .fine {
  margin: .25rem 0 0;
  font-size: .875rem;
  color: var(--wood);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
