/* Pinecrest Mysteries: shared stylesheet. 1970s lodge: deep browns, gold, cream.
   No external fonts, no scripts. Light and dark follow the visitor's system setting. */

:root {
  color-scheme: light dark;
  --bg: #f6eedb;
  --bg-alt: #eddfc0;
  --card: #fffaf0;
  --ink: #2a1a0f;
  --ink-soft: #5a4332;
  --head: #4a2511;
  --link: #7d5000;
  --gold: #d9a441;
  --gold-ink: #2a1a0f;
  --line: #cdb68a;
  --bar-bg: #3b2013;
  --bar-ink: #f6eedb;
  --bar-link: #f0cf86;
  --review-bg: #fbe3a6;
  --review-ink: #4a2a00;
  --fill-bg: #f6d2c6;
  --fill-ink: #5a1a0a;
  --warn-bg: #fff1c9;
  --warn-line: #b57f00;
  --focus: #1a4fa0;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c120b;
    --bg-alt: #261810;
    --card: #2c1c12;
    --ink: #f2e6cd;
    --ink-soft: #d0bc9c;
    --head: #f0d9a8;
    --link: #efc26a;
    --gold: #e0ae4d;
    --gold-ink: #231508;
    --line: #54402c;
    --bar-bg: #120b06;
    --bar-ink: #f2e6cd;
    --bar-link: #efc26a;
    --review-bg: #5a4300;
    --review-ink: #ffeab0;
    --fill-bg: #5a2417;
    --fill-ink: #ffdccf;
    --warn-bg: #3a2a08;
    --warn-line: #e0ae4d;
    --focus: #8ab4ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img, video { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: 62rem;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -4rem;
  background: var(--gold);
  color: var(--gold-ink);
  padding: .5rem .8rem;
  border-radius: 4px;
  z-index: 10;
}
.skip:focus { top: 8px; }

a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Header and navigation */
.site-head {
  background: var(--bar-bg);
  color: var(--bar-ink);
  border-bottom: 4px solid var(--gold);
}
.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1.25rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--bar-link);
  text-decoration: none;
}
.site-nav { display: flex; flex-wrap: wrap; gap: .1rem 1rem; }
.site-nav a {
  color: var(--bar-ink);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  font-size: .95rem;
}
.site-nav a:hover { border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); color: var(--bar-link); }
.site-head a:focus-visible { outline-color: #ffffff; }

/* Headings */
h1, h2, h3 { font-family: var(--serif); color: var(--head); line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 6vw, 3rem); margin: 0 0 .6rem; }
h2 { font-size: clamp(1.45rem, 4.5vw, 1.9rem); margin: 0 0 .6rem; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: .35rem; }

main { display: block; }
section { padding: 2.25rem 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: .4rem;
}
.lead { font-size: 1.2rem; max-width: 42rem; }
.small { font-size: .92rem; color: var(--ink-soft); }
.center { text-align: center; }

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
  background:
    linear-gradient(180deg, rgba(217, 164, 65, .18), rgba(217, 164, 65, 0) 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 1rem; }

/* "Why we made this" */
section.heart { padding: 2.5rem 0 1.25rem; }
.heart .card { padding: 1.4rem 1.4rem 1.2rem; border-left-width: 8px; }
.heart h2 { font-size: clamp(1.7rem, 5.5vw, 2.3rem); }
.heart p { font-size: 1.1rem; max-width: 44rem; }
.heart .sign { font-family: var(--serif); font-style: italic; color: var(--ink-soft); font-size: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: none;
  padding: .75rem 1.25rem;
  border-radius: 6px;
  border: 2px solid var(--gold);
  min-height: 44px;
  text-align: center;
}
.btn:hover { filter: brightness(1.07); }
.btn.secondary {
  background: transparent;
  color: var(--head);
  border-color: var(--head);
}
.btn.big { font-size: 1.25rem; padding: 1rem 1.75rem; }

/* Cards and grids */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
}
.card > :last-child { margin-bottom: 0; }
.card.gold { border-left: 6px solid var(--gold); }
.badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .15rem .55rem;
  border-radius: 99px;
  border: 1px solid var(--head);
  color: var(--head);
  margin-bottom: .5rem;
}
.badge.now { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.price {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--head);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 .5rem;
}
.price small { font-size: 1rem; font-weight: 400; color: var(--ink-soft); }

/* Steps */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: .75rem 1rem .75rem 3.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: .75rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: .8rem;
  top: .6rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gold-ink);
  font-family: var(--serif);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { font-family: var(--serif); color: var(--head); }

/* Placeholders for media that does not exist yet */
.placeholder {
  border: 3px dashed var(--warn-line);
  background: var(--warn-bg);
  border-radius: 8px;
  padding: 1.25rem 1rem;
  text-align: center;
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
}
.placeholder strong { font-family: var(--serif); letter-spacing: .06em; }
.placeholder.wide { aspect-ratio: 16 / 9; min-height: 12rem; }

/* Legal tags */
.tag {
  display: inline;
  font-family: var(--sans);
  font-size: .85em;
  font-weight: 700;
  padding: .05rem .4rem;
  border-radius: 4px;
  border: 1px solid currentColor;
  overflow-wrap: anywhere;
}
.tag.review { background: var(--review-bg); color: var(--review-ink); }
.tag.fill { background: var(--fill-bg); color: var(--fill-ink); }
.note-review { font-size: .9rem; font-style: italic; color: var(--ink-soft); }

.draft-banner {
  background: var(--review-bg);
  color: var(--review-ink);
  border-bottom: 3px solid var(--warn-line);
  padding: .75rem 0;
  font-size: .95rem;
}
.draft-banner p { margin: 0; }

.notice {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-left-width: 6px;
  border-radius: 6px;
  padding: .8rem 1rem;
  margin: 0 0 1rem;
}
.notice > :last-child { margin-bottom: 0; }

/* Tables */
table { border-collapse: collapse; width: 100%; margin: 0 0 1rem; background: var(--card); }
th, td { text-align: left; vertical-align: top; padding: .6rem .7rem; border: 1px solid var(--line); }
th { background: var(--bg-alt); font-family: var(--serif); color: var(--head); }
td.num, th.num { text-align: right; }
tr.total td, tr.total th { font-weight: 700; }

/* FAQ */
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: .6rem;
}
summary {
  cursor: pointer;
  padding: .8rem 1rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--head);
  min-height: 44px;
}
details[open] summary { border-bottom: 1px solid var(--line); }
details .answer { padding: .8rem 1rem 0; }

/* Legal pages */
.legal h2 { margin-top: 2rem; font-size: 1.4rem; }
.legal h3 { margin-top: 1.25rem; }
.legal .toc { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem .8rem 2.2rem; }
.legal .toc li { margin-bottom: .2rem; }

/* Footer */
.site-foot {
  background: var(--bar-bg);
  color: var(--bar-ink);
  border-top: 4px solid var(--gold);
  padding: 2rem 0 2.5rem;
  font-size: .95rem;
}
.site-foot a { color: var(--bar-link); }
.site-foot a:focus-visible { outline-color: #ffffff; }
.site-foot .partnership { font-family: var(--serif); font-size: 1.1rem; max-width: 40rem; }
.site-foot ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-foot li { margin: 0; }
.site-foot .small { color: #d8c8aa; }

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .btn { width: 100%; }
  table { font-size: .9rem; }
  th, td { padding: .45rem .5rem; }
  .cta { flex-direction: column; }
  section { padding: 1.75rem 0; }
  .hero { padding: 2rem 0 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
