/* Ravosity Sponsors, the public portal: the claymation palette (cream, brown, clay red) in light, Ravosity's night and
   fire in dark. Phone first, 16px side gutters, no outside fonts (ops new-site.md: no third-party requests). */
:root {
  color-scheme: light dark;
  --bg: #fbf6ea; --bg-2: #f3ead7; --card: #fffaf0; --ink: #33261c; --soft: #6b5a4a; --line: #dccdb0;
  --accent: #b8402e; --accent-ink: #ffffff; --accent-2: #8f2f20; --gold: #c47a16; --focus: #1f5fbf;
  --error: #a3261b; --error-bg: #fdecea;
  --display: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px; --shadow: 0 6px 0 #00000012, 0 14px 28px #0000000f;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1013; --bg-2: #141a20; --card: #161e26; --ink: #f4f1ea; --soft: #c2bcb2; --line: #2c3640;
    --accent: #ff7a2b; --accent-ink: #140c06; --accent-2: #ffac38; --gold: #ffc35c; --focus: #8ab4ff;
    --error: #ff9a8a; --error-bg: #3a1714; --shadow: 0 6px 0 #00000055, 0 14px 28px #00000066;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1013; --bg-2: #141a20; --card: #161e26; --ink: #f4f1ea; --soft: #c2bcb2; --line: #2c3640;
  --accent: #ff7a2b; --accent-ink: #140c06; --accent-2: #ffac38; --gold: #ffc35c; --focus: #8ab4ff;
  --error: #ff9a8a; --error-bg: #3a1714; --shadow: 0 6px 0 #00000055, 0 14px 28px #00000066;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 9; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--soft); }
.small { font-size: .9rem; }
.eyebrow { font: 700 .8rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .9em; }
.lede { font-size: 1.15rem; color: var(--soft); max-width: 62ch; }

/* Top bar */
.top { background: var(--card); border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.1rem/1 var(--display); }
.brand b { color: var(--accent); }
/* (R-342: the ravosity.com/press logo as it is: the press kit's on-white SVG on light, the master SVG on dark.) */
.brand img { display: block; height: 36px; width: auto; }
.brand .logo-dark { display: none; }
:root[data-theme="dark"] .brand .logo-light { display: none; }
:root[data-theme="dark"] .brand .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand .logo-light { display: none; }
  :root:not([data-theme="light"]) .brand .logo-dark { display: block; }
}
.top nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.top nav a:hover { background: var(--bg-2); }
.top nav a[aria-current="page"] { background: var(--bg-2); color: var(--accent); }
/* (R-328: the way back to ravosity.com, top right on every page; on a phone it sits beside the brand, or just under it on the narrowest, always above the menu.) */
.back-home { color: var(--accent); text-decoration: none; font-weight: 700; font-size: .95rem; padding: 8px 12px; border: 2px solid var(--line); border-radius: 999px; white-space: nowrap; }
.back-home:hover { background: var(--bg-2); }
/* (Six links wrap to two rows on a phone: there the bar scrolls away with the page instead of covering it.) */
@media (max-width: 760px) { .top { position: static; } .top nav a { padding: 6px 10px; font-size: .92rem; } .brand img { height: 28px; }
  .back-home { order: 1; padding: 6px 10px; font-size: .9rem; } .top nav { order: 2; flex-basis: 100%; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--card); color: var(--ink); font: 700 1rem/1.2 var(--body); text-decoration: none;
  cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:hover { color: var(--ink); transform: translateY(1px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-2); box-shadow: 0 4px 0 var(--accent-2); }
.btn.primary:hover { color: var(--accent-ink); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }

/* Home */
.shot img { border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: var(--shadow); }
figcaption { color: var(--soft); font-size: .9rem; margin-top: 10px; }
.band { padding-block: 44px 8px; }
.band.first { padding-top: 40px; }
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin: 0; }
.card.shot { padding: 12px; }
.card.shot figcaption { padding: 4px 6px 4px; }
.card.shot figcaption b { display: block; color: var(--ink); font-size: 1rem; }
.price { font: 700 1.3rem/1 var(--display); color: var(--accent); margin: 0; }
.rules { list-style: none; padding: 0; display: grid; gap: 12px; max-width: 820px; }
.rules li { background: var(--card); border: 2px solid var(--line); border-left: 8px solid var(--accent); border-radius: 12px; padding: 12px 16px; }
.plain { margin-top: 0; }

/* The three doors (R-326) */
.door { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; border-top: 8px solid var(--accent); transition: transform .08s; }
.door:hover { color: var(--ink); transform: translateY(-2px); border-color: var(--accent); }
.door .eyebrow { margin-bottom: .2em; }
.door h3 { margin: 0; }
.door p { flex: 1; }
.door-go { align-self: flex-start; font-weight: 700; color: var(--accent); border-bottom: 2px solid currentColor; }
.door-go::after { content: " \2192"; }
.check-groups { display: grid; gap: 0 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .check-groups { grid-template-columns: 1fr 1fr; } .check-groups > :last-child { grid-column: 1 / -1; } }

/* Media kit */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0; }
.stat { background: var(--bg-2); border-radius: 14px; padding: 14px; }
.stat b { display: block; font: 700 1.6rem/1.1 var(--display); color: var(--accent); }
.stat span { color: var(--soft); font-size: .92rem; }
.card.new { border-color: var(--accent); }
.table-wrap { overflow-x: auto; }
table.rates { border-collapse: collapse; width: 100%; background: var(--card); border: 2px solid var(--line); border-radius: 12px; }
.rates th, .rates td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rates thead th { background: var(--bg-2); font-size: .9rem; }
.rates tbody th { font-weight: 600; }

/* The form */
.apply h2 { margin-top: 1.6em; padding-top: .6em; border-top: 2px dashed var(--line); }
.field { margin: 0 0 18px; border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field .choice { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0; cursor: pointer; }
.choice input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.opt { font-weight: 400; color: var(--soft); }
.hint { color: var(--soft); font-size: .92rem; margin: -2px 0 6px; }
input[type="text"], input[type="url"], input[type="email"], input[type="tel"], input:not([type]), select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 2px solid var(--soft); border-radius: 12px; padding: 10px 12px; min-height: 48px; }
textarea { resize: vertical; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.error { color: var(--error); font-weight: 600; margin: 6px 0 0; }
.error-summary { background: var(--error-bg); border: 3px solid var(--error); border-radius: 14px; padding: 14px 18px; margin: 0 0 20px; }
.error-summary h2 { font-size: 1.2rem; margin: 0 0 6px; border: 0; padding: 0; }
.error-summary a { color: var(--error); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.foot { margin-top: 56px; border-top: 2px solid var(--line); background: var(--card); padding-block: 22px; font-size: .92rem; color: var(--soft); }
.foot-in p { margin: 4px 0; }
.foot-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }

@media print {
  .top nav, .back-home, .foot-links, .no-print, .skip { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .card, .shot img { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Framed like a film still, with a soft transition into the page. The illustration has its own
   height so form errors and longer copy can never stretch it. */
.scene {
  --scene-paper: #11171d;
  --scene-light: #fff3e4;
  position: relative;
  isolation: isolate;
  min-height: 510px;
  background: var(--scene-paper);
  color: var(--scene-light);
  display: grid;
  align-items: center;
  padding-block: 56px 80px;
}
.scene-compact { min-height: 400px; }
.scene-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 22%;
  pointer-events: none;
}
.scene-art img { width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.scene::before, .scene::after { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.scene::before { background: linear-gradient(90deg, #11171d 22%, #11171dfa 32%, #11171da8 49%, #11171d1a 76%); }
.scene::after { inset-block-start: auto; height: 76px; background: linear-gradient(transparent, var(--bg)); }
.scene-copy { position: relative; }
.scene-copy > * { max-width: 47ch; }
.scene-copy h1 {
  max-width: 13ch;
  text-wrap: initial;
  font: 800 italic clamp(2.7rem, 5.6vw, 5.75rem)/.96 var(--display);
  letter-spacing: -.05em;
  margin-block: 0 .32em;
}
.scene .eyebrow, .scene a:not(.btn) { color: #ffc185; }
.scene .lede, .scene .muted { color: #f7e8d7; }
.scene-body { padding-top: 16px; }
.scene-body > .apply {
  margin-top: 24px;
  padding: clamp(16px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.guide h2 { margin-top: 1.6em; padding-top: .6em; border-top: 1px solid var(--line); }
.guide h2 { scroll-margin-top: 96px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; list-style: none; }
@media (max-width: 760px) {
  .scene, .scene-compact {
    --scene-art-height: clamp(220px, 63vw, 390px);
    min-height: 0;
    padding-block: calc(var(--scene-art-height) - 38px) 62px;
  }
  .scene-art { inset: 0 0 auto; height: var(--scene-art-height); }
  .scene::before {
    inset: 0 0 auto;
    height: var(--scene-art-height);
    background: linear-gradient(180deg, transparent 35%, #11171d72 65%, var(--scene-paper));
  }
  .scene::after { height: 50px; }
  .scene-copy h1 { max-width: 16ch; }
}
@media print {
  .scene, .scene-compact { color: #000; background: #fff; min-height: 0; padding-block: 0 1em; }
  .scene h1 { font-size: 2em; }
  .scene .lede, .scene .muted, .scene .eyebrow { color: #222; }
  .scene-art, .scene::before, .scene::after, .scene .cta { display: none; }
}
.door:has(.door-art) { overflow: hidden; gap: 8px; border-top-width: 2px; }
.door-art {
  width: calc(100% + 44px);
  max-width: none;
  margin: -20px -22px 4px;
  aspect-ratio: 2.5;
  height: auto;
  object-fit: cover;
  object-position: 61% 52%;
}
.next-steps { padding-left: 1.7em; }
.next-steps li { padding: .65em .3em; border-bottom: 1px solid var(--line); }
.next-steps li::marker { color: var(--accent); font-weight: 800; }
