/* Theme for the booking pages. This is the one file to edit to match a site:
   change the colour tokens and the two font stacks, nothing else.

   --bg       page background          --paper    main text
   --mut      secondary text           --dim      faint text, disabled days
   --line     1px rules and borders    --code-bg  input and field background
   --amber    the accent: links, selected day, focus ring
   --orange   error text and the small marks beside meeting types
   --mustard, --teal   secondary marks (default to the accent)
   --serif    headings and body copy   --mono     labels, data, controls   */

/* Stephanie Kim, "The Boutique" (site design direction A).
   Fonts are self-hosted from public/fonts/ (the CSP blocks other origins);
   latin subset only, SIL Open Font License, licence files beside them.
   The booking CSS asks for weights 500 and 600, which these faces map
   without faux bold: serif 500-700 draws Cormorant Light (light headings),
   sans 500-700 draws Inter Tight Medium (small tracked captions).        */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-300-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/cormorant-garamond-latin-300-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/inter-tight-latin-500-normal.woff2") format("woff2");
}

/* Light only: her site has no dark mode, so there is no dark block.
   Contrast on --bg: --paper 15.9:1, --mut 7.6:1, --dim 5.1:1,
   --amber 5.3:1, --orange 5.1:1 (all WCAG AA for text).              */
:root {
  color-scheme: light;
  --bg: #f4efe6;        /* paper */
  --paper: #17150f;     /* ink */
  --mut: #4f4b43;       /* ink-2 */
  --dim: #6a655b;       /* ink-3 */
  --line: #d5d1c8;      /* ink at 14% on paper */
  --code-bg: #ede6da;   /* paper-2 */
  --amber: #3e6b5a;     /* jade */
  --orange: #af4029;    /* tomato #d2543a, darkened for AA text */
  --mustard: var(--amber);
  --teal: var(--amber);
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --mono: "Inter Tight", "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- page frame ---------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font: 16px/1.6 var(--mono);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--amber); color: var(--bg); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: 780px; margin: 0 auto; padding: 0 22px; }
main { padding: 56px 0 32px; }

.dateline {
  font: 600 11px/1.6 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 14px;
}

/* Small marks beside meeting types and on the confirmation. */
.glyph { width: 10px; height: 10px; flex: none; align-self: center; }
.glyph.circle { border-radius: 50%; background: var(--orange); }
.glyph.square { background: var(--mustard); }
.glyph.arch { border-radius: 999px 999px 0 0; background: var(--teal); }

footer.site {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding: 18px 0 40px;
  font: 13px/1.6 var(--mono);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
footer.site a { color: var(--mut); text-decoration: none; }
footer.site a:hover { color: var(--amber); }

/* ---------- plain text pages (privacy, 404) ---------- */

.note-title { font: 500 clamp(28px, 5vw, 38px)/1.15 var(--serif); margin: 0 0 24px; }
.note-body { font: 20px/1.6 var(--serif); max-width: 62ch; } /* Cormorant runs small */
.note-body p { margin: 0 0 1em; }
.note-body h2 { font: 600 12px/1.6 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mut); margin: 2em 0 0.6em; }
.note-body a { color: inherit; text-decoration: none; border-bottom: 1.5px solid var(--amber); }
