/* Southampton Dance Centre — base.css ("Cellar Editorial": ecru, black panels, mustard, serif wordmarks, hairlines) */
:root {
  --ecru: #e8e5dd; --ecru-2: #efece5; --ink: #141414; --text: #33312c; --muted: #7d7a71;
  --line: #141414; --soft-line: #c9c5ba; --yellow: #f0c93c; --yellow-deep: #d9af14;
  --serif: "Lora", Georgia, serif; --sans: "Figtree", system-ui, -apple-system, Arial, sans-serif;
  --gutter: clamp(18px, 4vw, 56px); --max: 1600px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--ecru); color: var(--text); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
@font-face { font-family: "Lora"; src: url("../fonts/Lora-variable.woff2") format("woff2-variations"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/Figtree-variable.woff2") format("woff2-variations"); font-weight: 300 900; font-display: swap; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
.page { max-width: var(--max); margin: 0 auto; background: var(--ecru); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
/* type */
.display { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.02; color: var(--ink); }
.h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.6vw, 66px); line-height: 1.04; color: var(--ink); }
.h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 2.6vw, 40px); line-height: 1.12; color: var(--ink); }
.h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(18px, 1.6vw, 24px); color: var(--ink); }
.h1 em, .h2 em, .lead em, .ital { font-style: italic; font-family: var(--serif); }
.caps { font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.caps--dim { color: var(--muted); }
.lead { font-size: clamp(15px, 1.15vw, 17.5px); max-width: 58ch; }
.serif-note { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.4vw, 20px); color: var(--ink); }
/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--ecru); border: 1px solid var(--ink); padding: 13px 24px; font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: var(--yellow); color: var(--ink); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--ink); color: var(--ecru); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ecru); }
/* panels & grids */
.panel { border: 1px solid var(--line); }
.panel--ink { background: var(--ink); color: var(--ecru); }
.panel--yellow { background: var(--yellow); color: var(--ink); }
.hairgrid > .panel--ink, .svc__cell.panel--ink { background: var(--ink); color: var(--ecru); }
.hairgrid > .panel--yellow, .svc__cell.panel--yellow { background: var(--yellow); color: var(--ink); }
.hairgrid { display: grid; border: 1px solid var(--line); background: var(--line); gap: 1px; }
.hairgrid > * { background: var(--ecru); }
.sec { padding: clamp(40px, 5.5vw, 88px) var(--gutter); }
.sec--line-top { border-top: 1px solid var(--line); }
/* stamp roundel */
.stamp { width: clamp(110px, 11vw, 160px); aspect-ratio: 1; }
.stamp svg { width: 100%; height: 100%; }
.stamp textPath, .stamp text { font-family: var(--sans); font-weight: 700; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; fill: var(--ink); }
/* accordion */
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 2px; cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 600; font-size: clamp(16px, 1.3vw, 19px); color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc .plus { font-family: var(--sans); font-weight: 400; font-size: 20px; color: var(--yellow-deep); flex-shrink: 0; transition: transform .25s; }
.acc details[open] .plus { transform: rotate(45deg); }
.acc .body { padding: 0 2px 22px; max-width: 64ch; font-size: 15px; }
/* forms */
.form-card { border: 1px solid var(--line); background: var(--ecru-2); padding: clamp(20px, 2.6vw, 36px); }
.form-intro { font-family: var(--serif); font-style: italic; font-size: clamp(16px, 1.4vw, 19px); color: var(--ink); margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; }
.form-grid label span { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink); }
.form-grid .req { color: var(--yellow-deep); font-style: normal; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; min-width: 0; font-family: var(--sans); font-size: 15px; color: var(--ink); background: #fff; border: 1px solid var(--ink); padding: 11px 12px; outline: none; border-radius: 0; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-width: 2px; padding: 10px 11px; }
.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-size: 12.5px; color: var(--muted); }
.form-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
/* doodles */
.doodle svg { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .page { border-left: 0; border-right: 0; }
  .form-grid { grid-template-columns: minmax(0,1fr); }
  .sec { padding-top: clamp(44px, 12vw, 60px); padding-bottom: clamp(44px, 12vw, 60px); }
  .lead { line-height: 1.8; }
  .acc summary { padding: 22px 2px; }
  .acc .body { padding-bottom: 26px; }
}

/* scribbles — hand-drawn pen accents (user: 'make it look a bit more human') */
.h2 em, .manifesto__text > em:first-of-type {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 18 2, 30 10, 48 5 S 76 10, 94 4 S 112 9, 117 6' fill='none' stroke='%23d9af14' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% .34em; padding-bottom: .18em;
}
.hero__copy .h1 em {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 18 2, 30 10, 48 5 S 76 10, 94 4 S 112 9, 117 6' fill='none' stroke='%23f0c93c' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% .3em; padding-bottom: .16em;
}
.serif-note { position: relative; padding-left: 54px; }
.serif-note::before {
  content: ""; position: absolute; left: 2px; top: 50%; transform: translateY(-52%) rotate(-4deg); width: 40px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 26'%3E%3Cpath d='M4 21 C 7 9, 11 5, 13 4 L 10 21 C 15 8, 21 4, 23 4 L 19 22 C 25 8, 33 4, 41 6' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.form-card { position: relative; }
.form-card::before {
  content: "fill this in ↓"; position: absolute; top: -14px; right: 18px; transform: rotate(-5deg);
  font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 15px; color: var(--ink);
  background: var(--yellow); border: 1px solid var(--ink); padding: 5px 12px; box-shadow: 2px 2px 0 var(--ink);
}
@media (max-width: 900px) { .serif-note { padding-left: 46px; } .form-card::before { right: 12px; } }

/* Southampton — nav.css: black masthead + slim yellow ribbon nav */
.header { position: sticky; top: 0; z-index: 300; }
.masthead { background: var(--ecru); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px var(--gutter); gap: 12px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: .01em; color: var(--ink); position: relative; z-index: 320; }
.brand small { display: block; font-family: var(--sans); font-weight: 700; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.mast-cta { justify-self: end; position: relative; z-index: 320; display: flex; gap: 8px; }
.mast-note { justify-self: center; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); }
.ribbon-nav { background: var(--yellow); border-bottom: 1px solid var(--line); }
.nav__list { display: flex; justify-content: center; }
.nav__item { position: relative; }
.nav__item + .nav__item { border-left: 1px solid var(--line); }
.nav__link { display: flex; align-items: center; gap: 6px; padding: 9px 20px; font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.nav__link .chev { font-size: 8px; }
.nav__link:hover, .nav__item--has-dropdown:hover > .nav__link { background: var(--ink); color: var(--ecru); }
.nav__item--has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; display: none; }
@media (hover: hover) and (min-width: 901px) { .nav__item--has-dropdown:hover::after { display: block; } .nav__item--has-dropdown:hover > .nav__dropdown { display: block; } }
.nav__dropdown { display: none; position: absolute; top: calc(100% + 1px); left: 0; min-width: 260px; background: var(--ecru); border: 1px solid var(--line); max-height: 62vh; overflow-y: auto; z-index: 310; scrollbar-width: thin; scrollbar-color: var(--ink) var(--ecru-2); }
.nav__dropdown::after { content: "scroll for more ↓"; display: block; position: sticky; bottom: 0; padding: 8px 14px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow-deep); background: linear-gradient(to bottom, rgba(232,229,221,0), var(--ecru) 45%); }
.nav__item--has-dropdown.active > .nav__dropdown { display: block; }
.nav__dropdown a { display: block; padding: 9px 14px; font-size: 13px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--soft-line); }
.nav__dropdown a:hover { background: var(--ink); color: var(--ecru); }
.nav__toggle { display: none; }
.nav__item--drawer-only { display: none; }
@media (max-width: 900px) {
  .nav { position: fixed !important; inset: 0 !important; width: 100vw; height: 100dvh; background: var(--ecru); 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: 118px 18px 28px; }
  .nav.active { opacity: 1; visibility: visible; transform: none; }
  .nav.ribbon-nav { background: var(--ecru); border-bottom: 0; }
  .masthead { grid-template-columns: 1fr auto; }
  .brand small { font-size: 9px; }
  .nav__list { flex-direction: column; }
  .nav__item + .nav__item { border-left: 0; border-top: 1px solid var(--soft-line); }
  .nav__link { padding: 16px 6px; font-size: 13px; justify-content: space-between; }
  .nav__link:hover, .nav__item--has-dropdown:hover > .nav__link, .nav__item--has-dropdown.active > .nav__link { background: transparent; color: var(--ink); }
  .nav__item--has-dropdown.active > .nav__link .chev { transform: rotate(180deg); }
  .nav__dropdown { position: static; border: 1px solid var(--line); max-height: 46vh; margin: 4px 0 12px; }
  .nav__item--drawer-only { display: block; }
  .mast-note { display: none; }
  .mast-cta .btn--contact-desktop { display: none; }
  .nav__toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; background: var(--yellow); border: 1px solid var(--line); cursor: pointer; padding: 0 10px; }
  .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); }
}

/* Southampton — footer.css: black block, yellow links, giant serif ghost wordmark */
.footer { background: var(--ink); color: var(--ecru); border-top: 1px solid var(--line); }
.footer__join { display: flex; justify-content: space-between; align-items: baseline; gap: 28px; flex-wrap: wrap; padding: clamp(30px, 4vw, 56px) var(--gutter) clamp(16px, 2vw, 28px); }
.footer__join .serif-note { color: var(--ecru); font-size: clamp(20px, 2.2vw, 30px); }
.footer__reach { font-size: 15px; line-height: 2.1; text-align: right; }
.footer__reach a { color: var(--yellow); font-weight: 700; border-bottom: 1px solid rgba(240,201,60,.4); }
.footer__reach a:hover { color: #fff; }
.footer__cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 24px; padding: clamp(20px, 3vw, 36px) var(--gutter); border-top: 1px solid rgba(232,229,221,.25); }
.footer__cols .caps { color: rgba(232,229,221,.55); margin-bottom: 12px; display: block; }
.footer__cols a, .footer__cols span { display: block; font-size: 13.5px; color: rgba(232,229,221,.85); padding: 3px 0; }
.footer__cols a:hover { color: var(--yellow); }
.footer__social { display: flex; gap: 10px; margin-top: 10px; }
.footer__social a { width: 34px; height: 34px; border: 1px solid rgba(232,229,221,.4); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px var(--gutter); border-top: 1px solid rgba(232,229,221,.25); font-size: 11.5px; color: rgba(232,229,221,.55); }
.footer__ghost { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 11.4vw, 180px); line-height: .82; text-align: center; color: rgba(232,229,221,.12); white-space: nowrap; user-select: none; padding-bottom: 10px; }
@media (max-width: 900px) { .footer__cols { grid-template-columns: 1fr 1fr; } .footer__reach { text-align: left; } }
