/* ==========================================================================
   DJ JOE · Song requests — IOM Christmas Party
   Designed and built by Osvion Studio (osvionstudio.com)

   Brand: Osvion Studio — warm black, cream, burnt orange, Sora.
   Type scale: 14 / 16 / 20 / 28 / display. One card style. One primary button.
   ========================================================================== */

/* ---------- Font (self-hosted Sora, variable weight) ---------- */
@font-face {
  font-family: "Sora";
  src: url("../fonts/sora-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/sora-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  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: "Sora";
  src: url("../fonts/sora-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/sora-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  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;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;

  /* Osvion palette */
  --bg: #23201C;        /* warm black (osvionstudio.com theme colour) */
  --card: #2B2722;      /* card surface */
  --field: #1C1A17;     /* input surface */
  --line: #3D3730;      /* hairlines */
  --line-strong: #6B6358;
  --cream: #F4ECDF;     /* headings, primary button */
  --mute: #B3AB9F;      /* body text, 7:1 on --bg */
  --soft: #968E82;      /* placeholders, small print — 5:1 on --bg */
  --accent: #D2501C;    /* burnt orange */
  --accent-soft: rgba(210, 80, 28, .16);
  --bad: #FF9A7A;

  /* Type scale */
  --t-14: 14px;
  --t-16: 16px;
  --t-20: 20px;
  --t-28: 28px;
  --t-display: clamp(44px, 11vw, 104px);

  --radius: 16px;
  --pill: 999px;
  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--mute);
  font: 400 var(--t-16)/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.defs { position: absolute; }
img, svg { display: block; }
h1, h2 { color: var(--cream); margin: 0; }
p { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* ---------- Header ---------- */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: 8px;
}
.dj-logo { height: 56px; width: auto; }

.lang {
  display: flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
}
.lang button {
  font: 600 var(--t-14)/1 var(--font);
  color: var(--mute);
  background: none;
  border: 0;
  border-radius: var(--pill);
  min-width: 48px;
  min-height: 40px;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.lang button[aria-pressed="true"] { background: var(--cream); color: var(--bg); }

/* ---------- Layout ---------- */
.page {
  display: grid;
  gap: 28px;
  padding-top: 20px;
  padding-bottom: 48px;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "text disc"
    "copy copy";
  column-gap: 16px;
  row-gap: 20px;
  align-items: start;
}
.hero-text { grid-area: text; }
.hero-copy { grid-area: copy; display: grid; gap: 8px; }
.hero .disc { grid-area: disc; width: 88px; height: 88px; margin-top: 4px; }

.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--t-14);
  line-height: 1.5;
  font-weight: 500;
  color: var(--mute);
  margin-bottom: 14px;
}
.dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--accent); flex: none; }

h1 {
  font-size: var(--t-display);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.lede { font-size: var(--t-20); line-height: 1.45; color: var(--cream); max-width: 34ch; }
.when { font-size: var(--t-16); }

.disc { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.spin { transform-origin: 100px 100px; animation: spin 2.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Card (one style, used for the form and the Osvion block) ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
}

/* ---------- Form ---------- */
.field { margin: 0 0 20px; padding: 0; border: 0; }
label, legend {
  display: block;
  padding: 0;
  margin: 0 0 8px;
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--cream);
}
.opt { font-weight: 400; color: var(--soft); }
.req { color: var(--accent); }

input[type="text"], textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font: 400 var(--t-16)/1.4 var(--font);
  color: var(--cream);
  background: var(--field);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 84px; }
::placeholder { color: var(--soft); opacity: 1; }
input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
input[aria-invalid="true"] { border-color: var(--bad); }
.err { margin-top: 8px; font-size: var(--t-14); color: var(--bad); }
.count { margin-top: 6px; font-size: var(--t-14); color: var(--soft); text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  font: 500 var(--t-14)/1.2 var(--font);
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--pill);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.chip:hover { border-color: var(--mute); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.chip[aria-pressed="true"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0 0 8px;
  font-size: var(--t-16);
  font-weight: 500;
  cursor: pointer;
}
.check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  margin-top: 16px;
  padding: 0 24px;
  font: 700 var(--t-16)/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  color: var(--bg);
  background: var(--cream);
  border: 0;
  border-radius: var(--pill);
  cursor: pointer;
  transition: background .2s, transform .15s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .25s var(--ease); }
.btn:hover { background: #fff; }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(.98); }

.btn-2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  font: 600 var(--t-14)/1.3 var(--font);
  text-align: center;
  text-decoration: none;
  color: var(--cream);
  background: transparent;
  border: 1px solid var(--cream);
  border-radius: var(--pill);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.btn-2:hover { background: var(--cream); color: var(--bg); }

a:focus-visible, button:focus-visible, summary:focus-visible, .check input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.hint { margin-top: 12px; font-size: var(--t-14); text-align: center; }

/* ---------- After sending ---------- */
.done { text-align: center; }
.disc-done { width: 120px; height: 120px; margin: 4px auto 20px; }
.done h2 { font-size: var(--t-28); line-height: 1.2; letter-spacing: -.02em; }
.done > p { max-width: 36ch; margin: 10px auto 0; }
.ticket {
  display: inline-block;
  margin-top: 16px !important;
  padding: 10px 18px;
  color: var(--cream);
  font-weight: 600;
  border: 1px dashed var(--accent);
  border-radius: var(--pill);
}
.help { margin-top: 20px; padding-top: 8px; border-top: 1px solid var(--line); text-align: left; }
.help summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--t-14);
  font-weight: 600;
  color: var(--cream);
  cursor: pointer;
}
.help p { font-size: var(--t-14); margin-bottom: 12px; }
.help textarea { margin-top: 12px; min-height: 160px; font-size: var(--t-14); }
.credit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: var(--t-14);
  text-align: left;
}
.credit a, .link { color: var(--cream); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.mark { width: 32px; height: 29px; flex: none; }

/* ---------- Your requests ---------- */
.mine { margin-top: 28px; }
.mine h2 { font-size: var(--t-20); letter-spacing: -.01em; }
.mine ol { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.mine li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: var(--t-14);
  color: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.mine li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 32%, #15130F 34%);
}

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 calc(40px + env(safe-area-inset-bottom));
}
.foot-grid { display: grid; gap: 28px; }
.dj { display: grid; gap: 12px; align-content: start; }
.sig { display: flex; align-items: center; gap: 12px; font-size: var(--t-14); color: var(--soft); margin-top: 8px; }
.sig img { height: 40px; width: auto; }

.osv { display: grid; gap: 16px; }
.osv-head { display: flex; align-items: center; gap: 14px; }
.osv .mark { width: 44px; height: 40px; }
.osv-by { font-size: var(--t-14); color: var(--soft); }
.osv h2 { font-size: var(--t-20); font-weight: 400; letter-spacing: -.01em; }
.osv h2 b { font-weight: 700; }
.osv-tag { color: var(--mute); }
.osv .btn-2 { justify-self: start; }
.osv-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: var(--t-14); }
.osv-follow { color: var(--soft); width: 100%; }
.osv-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
}
.osv-links a:hover { color: var(--accent); }
.osv-links svg { width: 20px; height: 20px; }

/* ---------- Wider screens ---------- */
@media (min-width: 600px) {
  .card { padding: 32px; }
  .dj-logo { height: 64px; }
}

@media (min-width: 960px) {
  .page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: 72px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 72px;
  }
  .hero {
    position: sticky;
    top: 32px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "text" "copy" "disc";
    row-gap: 28px;
  }
  .hero .disc { width: min(300px, 70%); height: auto; aspect-ratio: 1; margin-top: 12px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 72px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; }
  * { transition: none !important; }
}
