/* ===== Theo Youngstein — shared styles ===== */

:root {
  --paper: #F3EEE4;
  --paper-2: #EAE3D5;
  --ink: #201A16;
  --ink-soft: #4A4139;
  --ember: #B5562D;
  --ember-dark: #8F421F;
  --ember-light: #E6A184;
  --sage: #CBD0B8;
  --line: #D8D0BE;
  --night: #0B0B0B;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Work Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: var(--ember); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }

h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(46px, 9vw, 72px); letter-spacing: -0.02em; margin-top: 22px; }
h2 { font-size: 26px; margin-bottom: 22px; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
.soft { color: var(--ink-soft); }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- header (inner pages) ---------- */
.top { padding: 28px 0; }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.top .name { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--ink); }
.top .name:hover { text-decoration: none; }
.top nav { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.top nav a { color: var(--ink-soft); }
.top nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--ember); padding-bottom: 2px; }
.top nav a:hover { color: var(--ink); text-decoration: none; }
.top nav .book { color: var(--ink); border-bottom: 2px solid var(--line); padding-bottom: 2px; }
.top nav .book:hover { border-color: var(--ember); }

/* ---------- hero (inner pages) ---------- */
.hero { padding: 56px 0 40px; }
.lede { margin-top: 28px; font-size: 20px; line-height: 1.6; color: var(--ink-soft); }
.lede em { font-family: var(--display); font-style: italic; color: var(--ink); }

/* ---------- dot divider ---------- */
.dots { display: flex; gap: 11px; padding: 44px 0; }
.dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); display: block; }
.dots span:nth-child(3n+1) { background: var(--ember); opacity: 0.8; }

/* ---------- offer details ---------- */
.price {
  margin-top: 26px;
  padding: 18px 22px;
  background: var(--paper-2);
  border-left: 3px solid var(--ember);
  border-radius: 2px;
  font-family: var(--display);
  font-size: 20px;
}
.guarantee {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  border-radius: 2px;
  background: #F8F4EB;
}
.guarantee h2 { margin-bottom: 16px; }

/* ---------- about ---------- */
.portrait {
  width: 100%;
  max-width: 592px;
  height: auto;
  aspect-ratio: 746 / 984;
  max-height: 560px;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 3px;
  display: block;
  margin-bottom: 34px;
}
.creds { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.creds li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 16px; font-size: 15.5px; }
.creds .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ember); padding-top: 3px; }
@media (max-width: 520px) { .creds li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- testimonials ---------- */
blockquote { margin: 0 0 30px; padding: 0; }
blockquote p { font-family: var(--display); font-style: italic; font-size: 19px; line-height: 1.55; }
blockquote cite { font-family: var(--mono); font-style: normal; font-size: 12.5px; letter-spacing: 0.04em; color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--ember);
  color: #FFF6EF;
  padding: 14px 24px;
  border-radius: 3px;
  margin-top: 8px;
}
.btn:hover { background: var(--ember-dark); text-decoration: none; }

.cta { padding-bottom: 20px; }
.also { margin-top: 36px; font-size: 15px; color: var(--ink-soft); }

/* ---------- footer ---------- */
footer { margin-top: 64px; padding: 28px 0 48px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* =====================================================
   HOME (page one): full-bleed photo, button in lower third
   ===================================================== */
body.home { background: var(--night); color: var(--paper); }

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--night);
}
.stage .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 3%;
}
@media (max-width: 820px) { .stage .photo { object-position: 50% 22%; } }
.stage::before {
  /* soft top fade so the name stays readable */
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 22%;
  background: linear-gradient(to bottom, rgba(11,11,11,0.55), rgba(11,11,11,0));
  z-index: 1; pointer-events: none;
}
.stage::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 40%;
  background: linear-gradient(to top, rgba(11,11,11,0.7), rgba(11,11,11,0));
  z-index: 1; pointer-events: none;
}
.stage .bar { position: relative; z-index: 2; padding: 28px 0; }
.stage .bar .inner {
  max-width: none; margin: 0; padding: 0 clamp(32px, 5vw, 72px);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.stage .bar a { color: var(--paper); font-size: 14px; }
.stage .bar .name { font-family: var(--display); font-size: 18px; font-weight: 500; }
.stage .bar a:hover { text-decoration: none; opacity: 0.8; }
.stage .bar nav { display: flex; gap: 22px; }

/* button sits in the lower third */
.stage .copy {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  top: 78%;
  max-width: none;
  margin: 0;
  padding: 0 clamp(32px, 5vw, 72px);
}
.stage .copy .btn { margin-top: 0; font-size: 14px; padding: 17px 30px; box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
@media (max-width: 820px) {
  .stage .bar .inner, .stage .copy { padding-left: 24px; padding-right: 24px; }
  .stage .copy { top: 76%; }
}

/* Landscape screens: show the whole photo, framed by dark bars that blend into it */
@media (min-aspect-ratio: 1/1) and (min-width: 821px) {
  .stage { background: #0C1A20; }
  .stage .photo {
    inset: 0 auto 0 50%;
    transform: translateX(-50%);
    width: auto;
    height: 100%;
    max-width: none;
    aspect-ratio: 1365 / 2048;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
  }
  .stage .copy { text-align: center; padding: 0; }
}
