/* Derby Dance Centre — base.css ("Cover Story": glossy-magazine minimal, sentence-case grotesque + mono chips, pistachio accent) */
:root {
  --paper: #f4f4f2; --card: #ffffff; --ink: #111111; --muted: #6d6d68; --hair: #e1e1dd; --hard: #111111;
  --pist: #b9d9a4; --pist-deep: #8fbe76;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --serif: "Newsreader", Georgia, serif;
  --gutter: clamp(18px, 4vw, 56px);
}
@font-face { font-family: "Instrument Sans"; src: url("../fonts/InstrumentSans-variable.woff2") format("woff2-variations"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-variable.woff2") format("woff2-variations"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/PlexMono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 104px; }
body { font-family: var(--sans); font-size: 15.5px; line-height: 1.6; color: var(--ink); background: #e8e8e4; }
.page { max-width: 1320px; margin: 0 auto; background: var(--paper); box-shadow: 0 0 52px rgba(17,17,17,.13); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; }
::selection { background: var(--pist); color: var(--ink); }
/* type — sentence case, tight */
.h1, .h2, .h3 { font-weight: 640; letter-spacing: -0.015em; line-height: 1.06; }
.h1 { font-size: clamp(34px, 4.6vw, 66px); }
.h2 { font-size: clamp(24px, 2.6vw, 40px); }
.h3 { font-size: clamp(16px, 1.5vw, 20px); letter-spacing: -0.005em; }
.intro { font-family: var(--serif); font-size: clamp(15.5px, 1.35vw, 18px); line-height: 1.65; }
.lead { font-size: clamp(14.5px, 1.25vw, 16.5px); line-height: 1.7; color: var(--ink); }
.smallserif { font-family: var(--serif); font-size: 13.5px; color: var(--muted); line-height: 1.55; }
/* mono chips — the signature */
.chip { display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--ink); padding: 3px 9px 2px; background: var(--card); }
a.chip:hover, .chip--live:hover { background: var(--pist); }
.chip--soft { border-color: var(--hair); color: var(--muted); background: transparent; }
.chip--fill { background: var(--pist); border-color: var(--ink); color: var(--ink); }
.chiprow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.mono--dim { color: var(--muted); }
/* buttons — quiet bordered + solid */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 12px 26px; font-family: var(--sans); font-weight: 550; font-size: 14px; cursor: pointer; transition: background .18s; }
.btn:hover { background: var(--pist); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--solid:hover { background: var(--ink); color: var(--pist); }
/* sections + hairlines */
.sec { padding: clamp(40px, 5.5vw, 84px) var(--gutter); }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 36px); }
main > section + section, main > section + nav, main > nav + section, main > section + div, main > div + section { border-top: 1px solid var(--hair); }
.sec--card { background: var(--card); }
.sec--form { background: #e9f0df; }
.viewall { display: block; width: fit-content; margin: 26px auto 0; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--ink); padding: 9px 22px; }
.viewall:hover { background: var(--pist); }
/* article cards */
.acard { display: block; }
.acard__media { overflow: hidden; background: var(--hair); }
.acard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s, filter .35s; }
.acard:hover .acard__media img { transform: scale(1.025); }
.acard__title { font-weight: 620; font-size: clamp(15px, 1.35vw, 18px); letter-spacing: -0.01em; line-height: 1.25; margin-top: 12px; }
.acard__title:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.acard .chiprow { margin-top: 9px; }
.agrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 26px 20px; }
.agrid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
/* overlap band — full-bleed photo with white card sitting on it */
.oband { position: relative; min-height: clamp(340px, 46vw, 560px); }
.oband > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.oband--bw > img { filter: grayscale(1); }
.oband__card { position: relative; z-index: 2; background: var(--card); max-width: 400px; padding: clamp(22px, 2.6vw, 34px); margin: clamp(36px, 5vw, 72px) var(--gutter); box-shadow: 0 2px 26px rgba(17,17,17,.14); }
.oband__card--right { margin-left: auto; }
.oband__card .h2 { font-size: clamp(21px, 2.1vw, 30px); }
.oband__card .intro { margin-top: 12px; font-size: 14.5px; }
.oband__card .chiprow { margin-top: 14px; }
/* editorial index rows */
.exrows > div { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 16px; align-items: baseline; padding: 14px 2px; border-bottom: 1px solid var(--hair); }
.exrows .mono--dim { font-size: 10.5px; }
.exrows .t { font-weight: 600; font-size: clamp(14px, 1.25vw, 17px); letter-spacing: -0.005em; }
.exrows .t small { display: block; font-family: var(--serif); font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }
.exrows b { font-weight: 650; font-size: clamp(17px, 1.7vw, 24px); letter-spacing: -0.01em; }
/* FAQ — hairline index */
.faqx details { border-top: 1px solid var(--hair); }
.faqx details:last-child { border-bottom: 1px solid var(--hair); }
.faqx summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; cursor: pointer; list-style: none; padding: 15px 2px; font-weight: 600; font-size: clamp(14px, 1.25vw, 16.5px); letter-spacing: -0.005em; }
.faqx summary::-webkit-details-marker { display: none; }
.faqx .plus { font-family: var(--mono); font-size: 15px; color: var(--muted); flex-shrink: 0; transition: transform .22s; }
.faqx details[open] .plus { transform: rotate(45deg); }
.faqx .body { padding: 0 2px 16px; max-width: 62ch; }
.faqx .body p { font-family: var(--serif); font-size: 14px; color: var(--muted); line-height: 1.6; }
/* quotes — clipping cards */
.press { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; align-items: stretch; }
.press figure { background: var(--card); border: 1px solid var(--hair); padding: 22px 20px 16px; display: flex; flex-direction: column; position: relative; }
.press figure::before { content: ""; display: block; width: 34px; height: 4px; background: var(--pist); margin-bottom: 14px; }
.press blockquote { font-family: var(--serif); font-size: clamp(14px, 1.25vw, 16px); line-height: 1.62; }
.press figcaption { margin-top: auto; padding-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.press figcaption b { color: var(--ink); font-weight: 500; }
/* forms — boxed square inputs on white card */
.form-card { background: var(--card); border: 2px solid var(--ink); padding: clamp(20px, 2.6vw, 32px); position: relative; box-shadow: 10px 10px 0 var(--pist), 10px 10px 0 1px var(--ink); }
.form-card::before { content: "FILL THIS IN ↓"; position: absolute; top: -16px; right: 18px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--ink); background: var(--pist); border: 2px solid var(--ink); padding: 6px 14px; transform: rotate(2deg); }
.form-intro { font-family: var(--serif); font-size: 15.5px; margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 16px; }
.form-grid label { display: flex; flex-direction: column; gap: 5px; }
.form-grid label span { font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.form-grid .req { color: var(--pist-deep); font-style: normal; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; font-family: var(--sans); font-size: 14.5px; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 0; padding: 11px 12px; outline: none; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { background: #fff; border-color: var(--pist-deep); box-shadow: 0 0 0 2px var(--pist); }
.form-grid select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { font-family: var(--serif); font-size: 12.5px; color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.split2 { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: clamp(26px, 5vw, 70px); align-items: start; }
.duo { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.duo .ph { border: 1px solid var(--hair); }
@media (max-width: 1100px) { .agrid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 900px) {
  section[id] { scroll-margin-top: 84px; }
  .sec { padding: 36px 18px 44px; }
  .split2, .split2[style], .duo, .duo[style] { grid-template-columns: minmax(0,1fr) !important; gap: 30px; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .agrid, .agrid[style], .agrid--3 { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 18px 12px; }
  .press, .press[style] { grid-template-columns: minmax(0,1fr) !important; }
  .oband__card { margin: 26px 18px; max-width: none; }
  .exrows > div { grid-template-columns: 30px minmax(0,1fr) auto; gap: 10px; }
}
/* typed editor's notes — the Derby quirk (mono asides, typed strikethroughs) */
.typenote { font-family: var(--mono); font-size: 12px; line-height: 1.75; color: #52524c; letter-spacing: .02em; max-width: 44ch; }
.typenote::before { content: "// "; color: var(--pist-deep); }
.typenote s { text-decoration-thickness: 1.5px; text-decoration-color: #52524c; }
.typenote em { font-style: normal; background: var(--pist); padding: 0 3px; }
.typenote--right { text-align: right; margin-left: auto; }
@media (max-width: 900px) { .typenote { max-width: none; } }
/* slim mid-page CTA band → the form */
.ctaband { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; border: 1px solid var(--ink); background: var(--card); padding: 16px 20px; margin-top: clamp(24px, 3vw, 40px); }
.ctaband p { font-weight: 620; font-size: clamp(15px, 1.4vw, 19px); letter-spacing: -0.01em; }
.ctaband .mono--dim { display: block; font-weight: 400; margin-bottom: 3px; }
.ctaband .btn { flex-shrink: 0; }
/* Derby — nav.css: masthead with centred brand, mono nav links, sticky one-row */
.topstrip { border-bottom: 1px solid var(--hair); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 14px; padding: 7px var(--gutter); }
.header { position: sticky; top: 0; z-index: 280; background: var(--paper); border-bottom: 1px solid var(--ink); }
.header--one { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; padding: 10px var(--gutter); }
.brand { font-weight: 700; font-size: clamp(17px, 1.6vw, 21px); letter-spacing: -0.02em; text-align: center; justify-self: center; position: relative; z-index: 320; }
.brand small { display: block; font-family: var(--mono); font-weight: 400; font-size: 8.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }
.mast-cta { display: flex; justify-content: flex-end; gap: 12px; align-items: center; position: relative; z-index: 320; }
.btn--contact-desktop { padding: 8px 16px; font-size: 12.5px; background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.btn--contact-desktop:hover { color: var(--pist); background: var(--ink); }
.nav { justify-self: start; position: static; }
.nav__list { display: flex; gap: clamp(2px, 1.4vw, 18px); }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; gap: 5px; padding: 8px 5px; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.nav__link:hover, .nav__item--has-dropdown:hover > .nav__link { background: var(--pist); }
.chev { font-size: 8px; color: var(--muted); transition: transform .2s; }
.nav__item--has-dropdown:hover > .nav__link .chev, .nav__item--has-dropdown.active > .nav__link .chev { transform: rotate(180deg); }
.nav__item--has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.nav__dropdown { position: absolute; top: calc(100% + 11px); left: 0; min-width: 250px; background: var(--card); border: 1px solid var(--ink); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s; max-height: 62vh; overflow-y: auto; z-index: 310; }
.nav__item--has-dropdown:hover > .nav__dropdown, .nav__item--has-dropdown.active > .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown li a { display: block; padding: 8px 14px; font-size: 13.5px; font-weight: 480; border-bottom: 1px solid var(--hair); }
.nav__dropdown li:last-child a { border-bottom: 0; }
.nav__dropdown li a:hover { background: var(--pist); }
.nav__dropdown li:first-child a { font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.nav__toggle { display: none; }
.nav__item--drawer-only { display: none; }
@media (max-width: 900px) {
  .topstrip { display: none; }
  .header--one { grid-template-columns: auto 1fr auto; padding: 9px 16px; }
  .brand { text-align: left; justify-self: start; order: -1; }
  .btn--contact-desktop { display: none; }
  .nav { position: fixed !important; inset: 0 !important; width: 100vw; height: 100dvh; background: var(--paper); z-index: 290; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; padding: 84px 18px 28px; }
  .nav.active { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__item + .nav__item { border-top: 1px solid var(--hair); }
  .nav__link { padding: 15px 4px; font-size: 12px; justify-content: space-between; }
  .nav__link:hover { background: transparent; }
  .nav__dropdown { display: none; position: static; opacity: 1; visibility: visible; transform: none; border: 1px solid var(--ink); max-height: 46vh; margin: 4px 0 12px; }
  .nav__item--has-dropdown.active > .nav__dropdown { display: block; }
  .nav__item--drawer-only { display: block; }
  .nav__toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; background: transparent; border: 1px solid var(--ink); cursor: pointer; padding: 0 11px; }
  .nav__toggle span { height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
  .nav__toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle.active span:nth-child(2) { opacity: 0; }
  .nav__toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
/* Derby — footer.css: black closing plate, big sentence-case CTA, mono link columns */
.footer { background: var(--ink); color: rgba(255,255,255,.82); padding: clamp(38px, 5vw, 66px) var(--gutter) 22px; }
.footer__cta { text-align: center; padding-bottom: clamp(28px, 4vw, 48px); }
.footer__cta .mono--dim { display: block; margin-bottom: 10px; color: rgba(255,255,255,.5); }
.footer__cta a.big { font-weight: 650; font-size: clamp(24px, 3.4vw, 46px); letter-spacing: -0.02em; color: #fff; border-bottom: 3px solid var(--pist); padding-bottom: 3px; }
.footer__cta a.big:hover { color: var(--pist); }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; border-top: 1px solid rgba(255,255,255,.18); padding-top: 28px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.footer__cols .mono { margin-bottom: 6px; color: var(--pist); }
.footer__cols a:hover { color: var(--pist); text-decoration: underline; text-underline-offset: 3px; }
.footer__blurb { font-family: var(--serif); color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.6; }
.footer__reach { line-height: 1.9; }
.footer__reach a { border-bottom: 1px solid var(--pist); color: #fff; }
.footer__social { display: flex; gap: 8px; margin-top: 8px; }
.footer__social a { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 9px; color: #fff; }
.footer__social a:hover { background: var(--pist); color: var(--ink); border-color: var(--pist); }
.footer__bar { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.18); margin-top: 30px; padding-top: 14px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.45); }
@media (max-width: 900px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
