/* ---------------------------------------------------------------------------
   base.css: the colors, the type, and the parts on every page (the header,
   the menu, the footer and the buttons). The sections are in sections.css.
   --------------------------------------------------------------------------- */

:root {
  color-scheme: light;
  --ink: #1A1816;
  --red: #B23A2B;
  --red-2: #97301F;
  --red-soft: #F2A493;
  --stone: #F4F2F0;
  --mute: #5F5A55;
  --gutter: max(20px, min(5vw, 64px));
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  /* The logos' three colors, as drawn on black. Light grounds restate them. */
  --logo-ink: #fff;
  --logo-paper: #1A1816;
  --logo-dot: #D9655A;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
a { color: inherit; }
svg { display: inline-block; vertical-align: middle; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
main:focus { outline: none; }

/* Pictures can't be dragged out or long-pressed to save; js/protect.js does
   the rest. Text is never touched. */
img, svg { -webkit-user-drag: none; -webkit-touch-callout: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; left: 16px; top: 0; z-index: 90; background: #fff; color: var(--ink); padding: 10px 16px; font-weight: 700; text-decoration: none; transform: translateY(-130%); transition: transform .2s; }
.skip:focus { transform: translateY(12px); }

/* ---------- type ---------- */
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; line-height: .98; }
.display em { font-style: italic; color: var(--red-soft); }
.kicker { font-size: 13.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red-soft); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 26px; font-size: 17px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--stone); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.go { width: 34px; height: 12px; flex: none; transition: transform .25s; }
.btn:hover .go { transform: translateX(5px); }

/* ---------- header ---------- */
/* The header stays at the top as the page scrolls, so the menu and the red
   button are always one tap away. It keeps its size: slimming it on scroll
   was tried, and made the page jump. */
.hd { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 28px; padding: 22px var(--gutter); background: var(--ink); color: #fff; }
.brand { display: flex; flex: none; }
.brand .wordmark { height: 30px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); margin-left: auto; font-size: 17px; font-weight: 600; }
.nav a { position: relative; padding-block: 6px; text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.hd-btn { min-height: 48px; padding: 0 20px; font-size: 16px; }
.menu-btn { display: none; align-items: center; gap: 10px; height: 46px; padding: 0 18px; margin-left: auto; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; font-size: 16px; }
.menu-btn svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .hd { padding-block: 14px; }
  .nav, .hd-btn { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- the phone menu ---------- */
.ov { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; padding: 24px var(--gutter) 40px; background: var(--red); color: #fff; overflow: auto; --logo-dot: var(--ink); }
.ov[hidden] { display: none; }
.ov-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.ov-top .wordmark { height: 30px; width: auto; }
.ov-close { height: 46px; padding: 0 18px; background: rgba(255, 255, 255, .18); font-weight: 700; }
.ov-links a { display: block; padding: 16px 0; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.ov-name { display: block; font-family: var(--display); font-size: clamp(38px, 10vw, 54px); font-weight: 600; line-height: 1; }
.ov-sum { display: block; margin-top: 6px; font-size: 16px; color: rgba(255, 255, 255, .9); }
.ov-links a[aria-current="page"] .ov-name { font-style: italic; }
.ov-foot { display: flex; flex-direction: column; gap: 22px; margin-top: auto; padding-top: 36px; }
.ov-note { font-family: var(--display); font-size: 22px; font-style: italic; line-height: 1.3; }
.ov-note .kicker { display: block; margin-top: 10px; font-family: var(--body); font-style: normal; color: #FFE0D8; }
.ov-btn { width: 100%; }
.menu-open { overflow: hidden; }

/* ---------- footer ---------- */
.ft { background: var(--red); color: #fff; --logo-dot: var(--ink); }
.ft-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: clamp(56px, 7vw, 96px) var(--gutter) 32px; }
.ft .wordmark { display: block; width: min(520px, 100%); height: auto; }
.ft nav { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 28px; font-size: 17px; font-weight: 700; }
.ft nav a { text-decoration: none; }
.ft nav a:hover { text-decoration: underline; }
.ft .lm { height: 110px; width: auto; }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 20px var(--gutter) 28px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: 14.5px; }
@media (max-width: 760px) {
  .ft-in { grid-template-columns: minmax(0, 1fr); }
  .ft .lm { display: none; }
}

/* A red section at the foot of a page would run into the red footer, so a
   thin line marks where the page ends. */
main:has(> .intro-red:last-child) + .ft { border-top: 1px solid rgba(255, 255, 255, .35); }
