/* HYR's own clothes, on top of the shared stylesheets: rust ground, cream type, Libre Caslon Text in sentence case
   for everything written (regular for the copy, bold for the words that lead), and the HYR mark in the same face's
   bold, tracked and stretched. Scoped to body.hyr-theme: the club (hyr.club), /hyr/, /hyr/book/, /hyr/store/.
   Maze and Mira's own pages keep their cream and their Caslon italics. Decided 22 November 2026; Caslon took over
   from Cormorant Garamond for the writing the same afternoon (Cormorant stays declared below for a switch back). */

/* ---------- the faces, served from this site ---------- */
@font-face { font-family: 'Libre Caslon Text'; src: url(/fonts/libre-caslon-text-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(/fonts/libre-caslon-text-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Libre Caslon Text'; src: url(/fonts/libre-caslon-text-700.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(/fonts/cormorant-garamond-500.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(/fonts/cormorant-garamond-600.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; src: url(/fonts/cormorant-garamond-600-ext.woff2) format('woff2'); font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; src: url(/fonts/cormorant-garamond-600-italic.woff2) format('woff2'); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url(/fonts/cormorant-garamond-700.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- the palette and the type, through the variables every shared rule reads ---------- */
.hyr-theme {
  --bg: #b35436;                               /* the rust: the spiral's colour on Maze and Mira's pages, the ground here */
  --ink: #f3e8d6;                              /* the cream: everything written */
  --serif: 'Libre Caslon Text', 'Libre Caslon', Georgia, 'Times New Roman', serif;   /* was Cormorant Garamond */
  --hyr-logo: 'Libre Caslon Text', 'Libre Caslon', 'Adobe Caslon Pro', Georgia, serif;
  --sc-accent: #f3e8d6;
  --sc-rule: rgba(243, 232, 214, 0.42);
  --sc-soft: rgba(243, 232, 214, 0.78);
  background: var(--bg);
  color: var(--ink);
}
/* the paper grain, fine and faint: the words come first (its motion is in site-grain-20260910.css) */
.hyr-theme .mm-site-grain { opacity: 0.45; }

/* upright, regular, in sentence case; Libre Caslon Text has a big body, so nothing needs setting up a size */
.hyr-theme .mm-page-content {
  font-family: var(--serif);
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}
.hyr-theme .mm-page-copy { font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.55; letter-spacing: 0; word-spacing: 0; }
.hyr-theme .sc-h2 { font-size: clamp(0.95rem, 1.15vw, 1.1rem); line-height: 1.45; letter-spacing: 0.005em; word-spacing: 0; }
.hyr-theme .sc-label { font-size: clamp(0.9rem, 1.05vw, 1rem); line-height: 1.5; letter-spacing: 0.005em; word-spacing: 0; }
.hyr-theme .sc-note { font-size: clamp(0.85rem, 1vw, 0.95rem); line-height: 1.6; letter-spacing: 0; word-spacing: 0; }
.hyr-theme .sc-error { font-size: clamp(0.9rem, 1.05vw, 1rem); letter-spacing: 0; }
.hyr-theme .sc-optional { letter-spacing: 0; }

/* what people type */
.hyr-theme input,
.hyr-theme select { font-size: 1.15rem; font-weight: 400; border-bottom-color: var(--sc-rule); }
.hyr-theme input:focus-visible,
.hyr-theme select:focus-visible { border-bottom-color: var(--ink); }
.hyr-theme input::placeholder { color: var(--ink); opacity: 0.36; }
.hyr-theme select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f3e8d6' stroke-width='1.5'/%3E%3C/svg%3E"); }
.hyr-theme select option { color: #362b26; background: #f3e8d6; }

/* the words that are buttons and links: bold; the buttons and the lines that lead to them in capitals */
.hyr-theme .sc-button,
.hyr-theme .sc-link,
.hyr-theme .mm-menu-link { font-weight: 700; text-transform: none; letter-spacing: 0; word-spacing: 0; }
.hyr-theme .sc-button { font-size: clamp(1rem, 1.3vw, 1.15rem); }
.hyr-theme .sc-button-big { font-size: clamp(1.1rem, 1.7vw, 1.4rem); }
.hyr-theme .sc-link-small { font-size: clamp(0.85rem, 1vw, 0.95rem); font-weight: 400; letter-spacing: 0; }
.hyr-theme .hyr-caps,
.hyr-theme .sc-toggle { text-transform: uppercase; letter-spacing: 0.08em; word-spacing: 0.04em; }
.hyr-theme .sc-toggle .sc-link { letter-spacing: 0.08em; }
/* the main action: a square-cornered box, cream line, capitals, filled cream on hover */
.hyr-theme .sc-btn {
  min-width: 10em;
  padding: 11px 32px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-indent: 0.1em;              /* the tracking after the last letter, balanced */
  text-transform: uppercase;
  line-height: 1.3;
}
@supports (text-box-trim: trim-both) {
  .hyr-theme .sc-btn { padding-top: 15px; padding-bottom: 15px; text-box-edge: cap alphabetic; }
}
.hyr-theme .sc-btn:hover { background: var(--ink); color: var(--bg); }
.hyr-theme .sc-btn:disabled { background: transparent; color: var(--ink); }

/* ---------- the mark ---------- */
/* HYR in Libre Caslon Text Bold, tracked +50, the letters 110% tall: the logo as Maze set it, and the only use of
   this face. The same mark on every HYR page, the book's included. */
.hyr-theme {
  --logo: clamp(3.6rem, 8.4vw, 6.6rem);
}
.hyr-theme .hyr-logo {
  display: inline-block;
  font-family: var(--hyr-logo);
  font-weight: 700;
  font-style: normal;
  font-size: var(--logo);
  line-height: 1;
  letter-spacing: 0.05em;
  text-indent: 0.05em;             /* balances the tracking after the R */
  text-transform: none;
  transform: scaleY(1.1);
  transform-origin: 50% 100%;
  white-space: nowrap;
}
.hyr-theme .mm-page-title,
.hyr-theme .sc-title { margin: 0 0 clamp(14px, 2vw, 20px); font: inherit; letter-spacing: 0; }

/* ---------- the lockup: the mark over a word between two spirals, the row exactly as wide as the mark ---------- */
/* CLUB on the club door; CLUB, BOOK and STORE on the HYR page. The mark alone sets the width; the rows take it
   (width 0, min-width 100%), the spirals sit under the H and the R and the word is centred between them, so the rows
   and the mark make one block whatever the word's length. The row is as big as its longest word allows: STORE on
   the HYR page, so the club door, with only CLUB to fit, sets its word and spirals a size up again. If a word ever
   needs more room than the mark gives, the spirals shrink before anything overflows. */
.hyr-theme .hyr-lockup {
  --row: 0.345;                                  /* the word's size as a share of the mark's */
  --spiral: 1.4em;                               /* the spirals, in the word's em */
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
  vertical-align: top;
  text-align: center;
}
.hyr-theme.mm-club-page .hyr-lockup { --row: 0.38; }
.hyr-theme .hyr-lockup .hyr-logo { align-self: center; }
.hyr-theme .hyr-lockup .mm-page-title { margin: 0; }
.hyr-theme .hyr-rows {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: calc(var(--logo) * 0.12);
  margin-top: calc(var(--logo) * 0.02);          /* the mark's own descender space makes up the rest of the gap */
}
.hyr-theme .hyr-rows,
.hyr-theme .hyr-lockup > .hyr-row { width: 0; min-width: 100%; box-sizing: border-box; }
.hyr-theme .hyr-lockup > .hyr-row { margin-top: calc(var(--logo) * -0.02); }   /* the club's bigger word has more leading of its own */
.hyr-theme .hyr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3em;
  min-height: 0;
  padding: 0 calc(var(--logo) * 0.05);           /* inside the tracking that pads the mark on each side */
  font-family: var(--serif);
  font-weight: 700;
  font-size: calc(var(--logo) * var(--row));
  line-height: 1.2;
  letter-spacing: 0.02em;
  word-spacing: 0;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.hyr-theme .hyr-row-word { flex: none; text-indent: 0.02em; }  /* the tracking after the last letter, balanced */
.hyr-theme .hyr-row > .hyr-spiral,
.hyr-theme .hyr-spiral-link { flex: 0 1 auto; min-width: 0; }
.hyr-theme .hyr-spiral {
  display: block;
  width: var(--spiral);
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  color: inherit;
}
/* on the club door the two spirals are the way through to HYR (the club, the book and the store), as the arrow is */
.hyr-theme .hyr-spiral-link {
  display: block;
  padding: 8px;                                  /* a finger-sized target around a small spiral */
  margin: -8px;
  line-height: 0;
  color: inherit;
  transition: opacity 150ms ease;
}
.hyr-theme .hyr-spiral-link:hover,
.hyr-theme .hyr-spiral-link:focus-visible { opacity: 0.6; }
.hyr-theme a.hyr-row:hover .hyr-row-word,
.hyr-theme a.hyr-row:focus-visible .hyr-row-word {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.045em;
  text-decoration-skip-ink: none;
}
.hyr-theme a.hyr-row:focus-visible,
.hyr-theme .hyr-spiral-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* the big member number keeps the body face, bold, in the cream */
.hyr-theme .sc-number-big { font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }
.hyr-theme .sc-accent { color: var(--ink); }

/* the fine print under the buttons (membership is free of charge...): small capitals in the italic */
.hyr-theme .sc-fineprint {
  font-style: italic;
  font-size: clamp(0.72rem, 0.85vw, 0.8rem);
  line-height: 1.75;
  letter-spacing: 0.08em;
  word-spacing: 0.04em;
  text-transform: uppercase;
}
.hyr-theme .sc-fineprint-line { display: inline-block; max-width: 100%; text-wrap: balance; }   /* two even lines on a phone */

/* ---------- the club door ---------- */
.hyr-theme.mm-club-page .sc-members-line { margin: 0 auto clamp(30px, 4vw, 44px); max-width: 30em; color: var(--sc-soft); text-wrap: balance; }
.hyr-theme.mm-club-page .sc-number-row { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; }
.hyr-theme.mm-club-page .sc-prefix { letter-spacing: 0.02em; }
.hyr-theme.mm-club-page .sc-number-input { font-style: normal; font-weight: 700; text-decoration-color: var(--sc-rule); }
.hyr-theme.mm-club-page .sc-number-input::placeholder { color: rgba(243, 232, 214, 0.36); text-decoration-color: var(--sc-rule); }
.hyr-theme.mm-club-page .sc-number-input:focus-visible,
.hyr-theme.mm-club-page .sc-number-input:focus-visible::placeholder { text-decoration-color: var(--ink); }
.hyr-theme.mm-club-page .sc-welcome { font-size: clamp(1.15rem, 1.6vw, 1.45rem); font-weight: 700; }
.hyr-theme.mm-club-page .sc-place { font-weight: 400; letter-spacing: 0; }
.hyr-theme.mm-club-page .sc-countdown b { font-weight: 700; letter-spacing: 0; }
.hyr-theme.mm-club-page .sc-countdown span { font-size: 0.3em; letter-spacing: 0.04em; }
/* numbers stand on the line (Cormorant's figures hang below it by default) and line up in the countdown */
.hyr-theme .sc-number-row,
.hyr-theme .sc-number-big,
.hyr-theme .sc-countdown,
.hyr-theme .sc-member-foot,
.hyr-theme input { font-variant-numeric: lining-nums tabular-nums; }
.hyr-theme.mm-club-page .sc-player { background: rgba(243, 232, 214, 0.08); }

/* ---------- the HYR page (/hyr/): the lockup, its three rows the doors ---------- */
.hyr-theme.mm-hyr-hub .hyr-lockup { margin-bottom: clamp(10px, 2vw, 24px); }

/* ---------- the book page: the mark alone, then who wrote it and when it arrives ---------- */
.hyr-theme.mm-hyr-page .hyr-title { margin-bottom: clamp(22px, 3vw, 32px); }
.hyr-theme.mm-hyr-page .hyr-release { margin-top: 8px; color: var(--sc-soft); }

@media (max-width: 760px) {
  .hyr-theme { --logo: clamp(3.2rem, 15vw, 4.2rem); }
  .hyr-theme.mm-club-page .sc-number-row { font-size: clamp(2.2rem, 11vw, 2.8rem); }
}
