/* Daniel Kayfetz, criminal defence. Tokens first; everything else uses them. */
:root {
  --paper: #F9F8F5;
  --ink: #221B1C;
  --wine: #5A1620;
  --wine-deep: #3A0E15;
  --blush: #EFE3E1;
  --slate: #5C5A5E;
  --rule: #DAD5D0;
  --note: #FFF1B8;
  --serif: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.1rem, 4.3vw, 3.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--wine-deep); }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.lede { font-size: 1.2rem; max-width: var(--measure); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .5rem 1rem; }
.skip:focus { left: var(--gutter); z-index: 100; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; line-height: 1.1; }
.brand small { display: block; font-family: var(--sans); font-weight: 400; font-size: .8rem; color: var(--slate); margin-top: .15rem; }
.site-head nav { display: flex; align-items: center; gap: 1.5rem; }
.site-head nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.site-head nav a:hover { text-decoration: underline; }
.site-head nav .btn { margin-left: .5rem; color: var(--paper); }
@media (max-width: 40rem) {
  .site-head nav a:not(.btn) { display: none; }
  .site-head nav .btn { display: none; } /* the fixed call bar covers it */
  .brand { white-space: nowrap; }
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.4rem;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid var(--wine);
  background: var(--wine);
  color: var(--paper);
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { background: var(--wine-deep); border-color: var(--wine-deep); color: var(--paper); }
.btn.quiet { background: transparent; color: var(--wine); }
.btn.quiet:hover { background: var(--blush); color: var(--wine-deep); }
.dark .btn { background: var(--paper); border-color: var(--paper); color: var(--wine-deep); }
.dark .btn:hover { background: #fff; border-color: #fff; }
.dark .btn.quiet { background: transparent; color: var(--paper); border-color: rgba(249,248,245,.55); }
.dark .btn.quiet:hover { border-color: var(--paper); background: rgba(249,248,245,.08); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: 1.75rem; }

/* Dark bands */
.dark { background: var(--wine-deep); color: var(--paper); }
.dark a { color: var(--paper); }
.dark .muted { color: rgba(249,248,245,.72); }
.muted { color: var(--slate); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero p { max-width: 34rem; }
.hero .warn { margin-top: 1.5rem; font-size: .95rem; padding-left: 1rem; border-left: 2px solid rgba(249,248,245,.4); }
@media (max-width: 54rem) {
  .hero .wrap { grid-template-columns: 1fr; }
}

/* Video facade: a still until clicked, then the YouTube iframe */
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.video img { width: 100%; height: 100%; object-fit: cover; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: pointer; padding: 0; }
.video button img { position: absolute; inset: 0; }
.video button span {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; padding-left: .35rem;
  background: var(--paper); color: var(--wine-deep); font-size: 1.6rem; box-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.video button:hover span { background: #fff; }
.video figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .9rem; font-size: .85rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; }

/* Facts strip */
.facts { border-bottom: 1px solid var(--rule); padding: 2rem 0; }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem 2.5rem; }
.facts li { font-family: var(--serif); font-size: 1.15rem; line-height: 1.35; }
.facts li small { display: block; font-family: var(--sans); font-size: .9rem; color: var(--slate); margin-top: .25rem; }

/* Two-path section */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.5rem; margin-top: 2.5rem; }
.paths > div { border-top: 3px solid var(--wine); padding-top: 1.25rem; }

/* Cost of doing nothing */
.cost { background: var(--blush); }
.cost ul { margin: 1.5rem 0 0; padding: 0; list-style: none; max-width: var(--measure); }
.cost li { padding: .9rem 0; border-top: 1px solid rgba(90,22,32,.25); }
.cost li:last-child { border-bottom: 1px solid rgba(90,22,32,.25); }
.cost li strong { font-family: var(--serif); font-weight: 700; }

/* Steps: numbered because it is a sequence */
.steps { counter-reset: step; list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: block; font-family: var(--serif); font-size: 2.5rem; font-weight: 700; color: var(--wine); line-height: 1; margin-bottom: .6rem;
}

.mt { margin-top: 2.5rem; }
.mt-s { margin-top: 1.5rem; }

/* Owner notes: visible so they can't be missed, grep-able as TODO(owner) */
.todo { display: block; background: var(--note); border: 1px dashed #B59A2A; padding: .75rem 1rem; font-size: .95rem; max-width: var(--measure); margin: 1rem 0; border-radius: 3px; color: var(--ink); }
.todo::before { content: "Note for Daniel: "; font-weight: 700; }

/* Testimonials */
.quotes { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 2rem; }
blockquote { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; max-width: 44rem; }
blockquote p { max-width: none; }
.stars { color: var(--wine); letter-spacing: .1em; }
blockquote footer { font-family: var(--sans); font-size: .95rem; color: var(--slate); margin-top: .75rem; }

/* FAQ */
.faq-list { max-width: 44rem; margin-top: 1.5rem; }
details { border-top: 1px solid var(--rule); }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.3; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; font-family: var(--sans); font-weight: 400; font-size: 1.5rem; color: var(--wine); }
details[open] summary::after { content: "–"; }
details .answer { padding: 0 0 1.5rem; }
.qa-teaser { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: 44rem; }
.qa-teaser li { border-top: 1px solid var(--rule); padding: .9rem 0; font-family: var(--serif); font-size: 1.1rem; }
.qa-teaser li:last-child { border-bottom: 1px solid var(--rule); }
.qa-teaser a { color: var(--ink); text-decoration: none; }
.qa-teaser a:hover { color: var(--wine); text-decoration: underline; }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 54rem) { .contact .wrap { grid-template-columns: 1fr; } }
.contact dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1.5rem; }
.contact dt { color: var(--slate); font-size: .95rem; padding-top: .15rem; }
.contact dd { margin: 0; font-size: 1.15rem; }
.contact dd a { color: var(--ink); }
address { font-style: normal; }

/* Profile page */
.profile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.profile img { border-radius: 4px; }
@media (max-width: 54rem) { .profile { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 2.5rem 0 7rem; font-size: .95rem; color: var(--slate); }
.site-foot .wrap { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: .3rem 0; }
.site-foot a { color: var(--ink); }
@media (min-width: 40.01rem) { .site-foot { padding-bottom: 2.5rem; } }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 40rem) {
  .callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule); }
  .callbar .btn { text-align: center; padding: .8rem .5rem; }
}

/* Consent banner */
.consent { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 5.5rem; z-index: 60; max-width: 32rem; margin: 0 auto; background: var(--ink); color: var(--paper); padding: 1rem 1.25rem; border-radius: 4px; font-size: .95rem; box-shadow: 0 8px 30px rgba(0,0,0,.3); }
@media (min-width: 40.01rem) { .consent { bottom: 1.25rem; left: auto; right: 1.25rem; } }
.consent p { margin: 0 0 .75rem; }
.consent .actions { margin: 0; gap: .5rem; }
.consent .btn { padding: .55rem 1rem; font-size: .9rem; background: var(--paper); border-color: var(--paper); color: var(--ink); }
.consent .btn.quiet { background: transparent; color: var(--paper); border-color: rgba(249,248,245,.5); }
