/* Pages with a form (HYR CLUB, HYR the book): scoped to .mm-form-page; the homepage, bio and menu pages are untouched.
   Everything typeset is Adobe Caslon Pro, bold italic, in capitals, ink on cream, as on the rest of the site.
   What people type stays as they typed it. */

.mm-form-page {
  --sc-accent: #b35436;
  --sc-rule: rgba(54, 43, 38, 0.32);
  --sc-soft: rgba(54, 43, 38, 0.72);
}

.mm-form-page [hidden] { display: none !important; }

/* these pages scroll, so the Instagram icon sits in a footer instead of floating over the words */
.mm-form-page .mm-page-main {
  min-height: 100vh;
  min-height: 100dvh;
  align-content: start;
  padding-top: clamp(96px, 14vh, 150px);
  padding-bottom: 36px;
}
.mm-form-page .sc { width: min(760px, 100%); }
.mm-form-page .sc-title { margin-bottom: 14px; }
.mm-form-page .sc-sub { margin: 0 0 30px; }
.mm-form-page .sc-panel { margin: clamp(40px, 6vw, 64px) auto 0; }

.mm-form-page .sc-h2 {
  margin: 0 0 22px;
  font: inherit;
  font-size: clamp(0.66rem, 0.85vw, 0.78rem);
  letter-spacing: 0.16em;
  word-spacing: 0.12em;
}
.mm-form-page .sc-label {
  display: block;
  margin: 0 0 8px;
  font: inherit;
  font-size: clamp(0.66rem, 0.85vw, 0.78rem);
  line-height: 1.6;
  letter-spacing: 0.08em;
  word-spacing: 0.1em;
  text-align: center;
}
.mm-form-page .sc-optional { color: var(--sc-soft); letter-spacing: 0.05em; }

/* what people type: upright, no capitals forced, no tracking */
.mm-form-page input,
.mm-form-page select {
  display: block;
  width: 100%;
  margin: 0;
  padding: 2px 0 6px;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 600;
  font-style: normal;
  font-size: 1.08rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.mm-form-page input:focus-visible,
.mm-form-page select:focus-visible { border-bottom-color: var(--sc-accent); }
.mm-form-page input::placeholder { color: var(--ink); opacity: 0.28; }
.mm-form-page select {
  cursor: pointer;
  padding-right: 18px;
  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='%23362b26' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

/* buttons are words, like every other link on the site */
.mm-form-page .sc-button,
.mm-form-page .sc-link {
  display: inline-block;
  margin: 0;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  word-spacing: 0.1em;
  line-height: 1.5;
  cursor: pointer;
  text-underline-offset: 5px;
  touch-action: manipulation;
}
.mm-form-page .sc-button { font-size: clamp(1rem, 1.5vw, 1.3rem); min-height: 44px; }
.mm-form-page .sc-button-big { font-size: clamp(1.15rem, 1.9vw, 1.6rem); }
.mm-form-page .sc-link { font-size: inherit; text-decoration: underline; }
.mm-form-page .sc-link-small { font-size: clamp(0.66rem, 0.85vw, 0.78rem); letter-spacing: 0.08em; }
.mm-form-page .sc-button:hover,
.mm-form-page .sc-link:hover { text-decoration: underline; }
.mm-form-page .sc-button:disabled { opacity: 0.4; cursor: default; text-decoration: none; }

/* the main action on a form is a proper button: a thin rule around the word, filled on hover.
   The word sits in the exact middle of the box: the capitals are measured cap-top to baseline (text-box-trim),
   and the tracking's trailing space is balanced by a little more room on the left. Browsers without
   text-box-trim get a padding nudge instead, because Caslon's capitals sit high in their line box. */
.mm-form-page .sc-btn {
  min-width: 11em;
  padding: 8px 30px 12px calc(30px + 0.1em);
  border: 1.5px solid var(--ink);
  border-radius: 0;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}
@supports (text-box-trim: trim-both) {
  .mm-form-page .sc-btn {
    padding-top: 14px;
    padding-bottom: 14px;
    line-height: 1.25;
    text-box-trim: trim-both;
    text-box-edge: cap alphabetic;
  }
}
.mm-form-page .sc-btn:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
.mm-form-page .sc-btn:disabled { opacity: 0.5; background: transparent; color: var(--ink); }
.mm-form-page .sc-button:focus-visible,
.mm-form-page .sc-link:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }

.mm-form-page .sc-actions { margin: 26px 0 0; }
.mm-form-page .sc-toggle { margin: 34px 0 0; }
.mm-form-page .sc-toggle .sc-link { margin-top: 4px; }

.mm-form-page .sc-note {
  margin: 18px auto 0;
  max-width: 520px;
  white-space: pre-line;
  font: inherit;
  font-size: clamp(0.62rem, 0.8vw, 0.72rem);
  line-height: 1.75;
  letter-spacing: 0.06em;
  word-spacing: 0.1em;
  color: var(--sc-soft);
}
.mm-form-page .sc-note a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.mm-form-page .sc-error {
  margin: 18px auto 0;
  max-width: 520px;
  white-space: pre-line;
  font: inherit;
  font-size: clamp(0.66rem, 0.85vw, 0.78rem);
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--sc-accent);
}
.mm-form-page .sc-accent { color: var(--sc-accent); }

/* the club's name keeps its own capitals inside buttons too */
.mm-form-page .mm-keep-case { text-transform: none; }

/* ---------- the fields ---------- */
.mm-form-page .sc-fields { display: grid; gap: 26px; width: min(560px, 100%); margin: 0 auto; }
.mm-form-page .sc-row { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; align-items: end; }
.mm-form-page .sc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- the big number after registering ---------- */
.mm-form-page .sc-number-big {
  margin: 16px 0 10px;
  font: inherit;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--sc-accent);
}

.mm-form-page .sc-footer {
  position: relative;
  height: 76px;
  display: grid;
  place-items: center;
}
.mm-form-page .sc-instagram { position: static; transform: none; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  .mm-form-page .mm-page-main { padding-top: 88px; padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 480px) {
  .mm-form-page .sc-row { grid-template-columns: 1fr; }
}
@media (max-height: 600px) {
  .mm-form-page .mm-page-main { padding-top: 72px; }
}
