/* Shared styles for every page of the site.
   Two typefaces, both echoing the covers: Georgia for display, Times New Roman for
   text and tracked capitals.
   One brown (#36302A) for ink and buttons. Square edges throughout, like the
   cover frames. */
:root {
  --paper: #ECE4DA;
  --ink: #36302A;
  --light: #F6F3EC;
  --shelf: #B9A590;
  --muted: #625A52;       /* 5.4:1 on paper */
  --hairline: #7F776F;    /* field borders, 3.5:1 on paper */
  --line: rgba(54,48,42,.2);
  --gold: #D3B283;        /* jacket ink */

  /* cloth, per R24 manifest */
  --pbj: #60242A; --miso: #7E4D2E; --espresso: #342D2A;
  --lemon: #CAB188; --apple: #2D392A; --cherry: #3B272E;

  --display: Georgia, Gelasio, "Times New Roman", serif;
  --text: "Times New Roman", Tinos, Times, serif;
  --edge: clamp(20px, 4vw, 56px);
  --inset: clamp(20px, 8vw, 110px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--text); font-size: 19px; line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; }
::selection { background: var(--shelf); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* the one caption voice: tracked roman capitals, as on the covers */
.caps { font-family: var(--text); font-size: 13px; line-height: 1.5; letter-spacing: .16em; text-transform: uppercase; }

/* the one button */
.btn {
  display: inline-block; font-family: var(--text); font-size: 13px; line-height: 1;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--light); background: var(--ink); border: 1px solid var(--ink); border-radius: 0;
  padding: 15px 26px; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover:not(:disabled) { background: transparent; color: var(--ink); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover:not(:disabled) { background: var(--ink); color: var(--light); }

/* ---------- header ---------- */
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 4px 20px; padding: 26px var(--edge); }
.wordmark { font-family: var(--display); font-size: clamp(22px, 2.4vw, 33px); letter-spacing: .02em; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; gap: 1.4em; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- footer ---------- */
.site-footer { padding: clamp(40px, 5vw, 64px) var(--edge) 36px; }
.site-footer .big {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px 40px; flex-wrap: wrap;
  font-family: var(--display); font-size: clamp(26px, 3.3vw, 46px); line-height: 1.3; letter-spacing: .02em;
}
.site-footer .big a { text-decoration: none; white-space: nowrap; }
.site-footer .big a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-footer .small {
  display: flex; flex-direction: column; gap: 6px;   /* allergy note on its own line, links beneath */
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 15px; line-height: 1.6; color: var(--muted);
}
.site-footer .small p { margin: 0; }
.site-footer .small strong { color: var(--ink); font-weight: 400; }

/* ---------- forms: request page and contact ---------- */
.forms { padding: clamp(56px, 6vw, 88px) var(--edge) clamp(64px, 7vw, 100px); }
.form-col { max-width: 640px; margin: 0 auto; scroll-margin-top: 16px; }
.form-col > h1, .form-col > h2 { margin: 0 0 14px; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.4; }
.body { margin: 0 0 24px; }
.field { display: block; margin: 0 0 18px; }
.field > span { display: block; margin-bottom: 4px; line-height: 1.4; }
.req { color: var(--muted); font-size: .86em; margin-left: .3em; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 18px; line-height: 1.4; color: var(--ink);
  background: transparent; border: 1px solid var(--hairline); border-radius: 0; padding: 12px 16px;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.check { display: flex; align-items: center; gap: 12px; margin: -2px 0 24px; cursor: pointer; line-height: 1.4; }
.check input {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 20px; height: 20px; margin: 0;
  border: 1px solid var(--hairline); background: transparent; display: grid; place-content: center; cursor: pointer;
}
.check input::before { content: ""; width: 10px; height: 10px; background: var(--ink); transform: scale(0); transition: transform .12s ease; }
.check input:checked { border-color: var(--ink); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.of-bot { display: none; }
.form-error { color: var(--pbj); font-style: italic; margin: 14px 0 0; }
.form-actions { margin-top: 22px; }
.slip { border: 1px solid var(--hairline); border-left: 3px solid var(--ink); padding: 20px 24px; }
.slip strong { display: block; font-weight: 400; margin-bottom: 4px; }
.slip:focus { outline: none; }

  /* ---------- newsletter: original band layout, Squarespace copy ----------
     Colored like a jacket: gold ink (#D3B283) and gold frame rules (#B2885F)
     on the Espresso Fudge cloth. Gold on cloth is 6.5:1. */
  .band { background: var(--espresso); color: var(--gold); padding: clamp(52px, 6vw, 76px) var(--edge); }
  .band .inner { max-width: 720px; margin: 0 auto; }
  .band h2 {
    display: flex; align-items: center; gap: 18px; margin: 0; color: var(--gold);
    font-family: var(--text); font-size: 14px; line-height: 1.4; letter-spacing: .3em; text-transform: uppercase;
  }
  .band h2::before, .band h2::after { content: ""; flex: 1; border-top: 1px solid #B2885F; }
  .band .body { text-align: center; max-width: 540px; margin: 24px auto 36px; }
  .kit-form { max-width: 460px; margin: 0 auto; }
  .kit-form .row { display: flex; align-items: stretch; gap: 14px; }
  .kit-form input[type=email] {
    flex: 1; min-width: 0; font-family: var(--text); font-style: italic; font-size: 17px;
    color: var(--gold); background: transparent; border: 0; border-bottom: 1px solid var(--gold); border-radius: 0; padding: 10px 2px;
  }
  .kit-form input[type=email]::placeholder { color: #B2885F; }
  .kit-form input[type=email]:focus { outline: none; box-shadow: 0 1px 0 var(--gold); }
  .band .btn { background: var(--gold); color: var(--espresso); border-color: var(--gold); }
  .band .btn:hover:not(:disabled) { background: transparent; color: var(--gold); }
  .band :focus-visible { outline-color: var(--gold); }
  .band .slip { max-width: 540px; margin: 0 auto; border-color: #B2885F; border-left-color: var(--gold); color: var(--gold); font-style: italic; }
  .band .slip strong { font-style: normal; }


@media (max-width: 640px) {
  .kit-form .row { flex-direction: column; }
  .band h2 { justify-content: center; text-align: center; }
  .band h2::before, .band h2::after { display: none; }

  body { font-size: 18px; }
  .site-header { flex-wrap: wrap; }
  .site-nav { gap: 1em; font-size: 16px; }
  .site-footer .big { flex-direction: column; gap: 4px; }
  .site-footer .big a { font-size: min(5.2vw, 26px); }   /* the address stays on one line */
}
