/* Closed Together: shared tokens and base styles */

/* Arron's handwriting. Its built-in space is about twice a letter's width,
   so anything set in it uses word-spacing: var(--hand-word-spacing). */
@font-face { font-family: "Arron"; src: url("/assets/fonts/Arron.ttf") format("truetype"); font-display: swap; }
:root {
  --charcoal: #1C1C1C;
  --charcoal-2: #2A2A2A;
  --cream: #F5EFE6;
  --cream-2: #EAE2D4;
  --gold: #F2C300;
  --gold-ink: #8A6F00;   /* gold dark enough for text on cream */
  --teal: #1F6F63;
  --teal-2: #17574D;
  --ink: #1C1C1C;
  --muted: #5E5850;
  --line: rgba(28, 28, 28, 0.14);
  --danger: #A63A2B;

  --font-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Arron", "Comic Sans MS", cursive;
  --hand-word-spacing: -0.45em;

  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* CLOSED / TOGETHER lockup: an image cut from the book cover (assets/img/lockup-*.png),
   so the letterforms match the book exactly. */
.lockup { margin: 0; line-height: 0; }
.lockup img { display: block; width: 100%; height: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  font: 600 16px/1 var(--font-body);
  padding: 15px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn--gold { background: var(--gold); color: var(--charcoal); }
.btn--teal { background: var(--teal); color: var(--cream); }
.btn--teal:hover { background: var(--teal-2); }
.btn--ghost-light { border-color: rgba(245, 239, 230, 0.5); color: var(--cream); }
.btn--ghost-dark { border-color: var(--line); color: var(--charcoal); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.side-notary :focus-visible, .theme-notary :focus-visible { outline-color: var(--teal); }
