/* Montserrat (SIL Open Font License), self-hosted variable font, weights 400-800 */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/montserrat-latin-ext.woff2) format('woff2');
  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; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/montserrat-latin.woff2) format('woff2');
  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; }

/* Tokens taken from veritasdebateleague.com */
:root {
  --navy: #252e4b; --navy2: #1a2138; --gold: #c69050; --goldlt: rgba(198, 144, 80, .1); --goldbd: rgba(198, 144, 80, .25);
  --bg: #fff; --bg2: #f7f6f3; --ink: #1c2235; --mid: #4a536e; --muted: #7e8aaa;
  --border: rgba(37, 46, 75, .1); --radius: 12px;
  --shadow: 0 2px 16px rgba(37, 46, 75, .07); --shadow2: 0 8px 32px rgba(37, 46, 75, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Montserrat', system-ui, sans-serif; color: var(--ink); background: var(--bg2); line-height: 1.6; }
h1, h2 { margin: 0; font-weight: 800; color: var(--navy); }
p { margin: 0; }

.eyebrow { margin: 0 0 6px; padding: 0; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; font: inherit;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; border-radius: 10px; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn.primary { color: #fff; background: var(--navy); }
.btn.primary:hover { background: var(--navy2); transform: translateY(-1px); box-shadow: var(--shadow2); }
.btn.outline { color: var(--navy); background: transparent; border-color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: #fff; }
.btn.ghost { margin-top: 10px; color: var(--mid); background: transparent; border-color: var(--border); }
.btn[hidden] { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--navy2) 0%, var(--navy) 100%); }
.hero::before, .hero::after { content: ''; position: absolute; border: 2px solid var(--goldbd); border-radius: 50%; pointer-events: none; }
.hero::before { width: 520px; height: 520px; right: -140px; bottom: -300px; }
.hero::after { width: 360px; height: 360px; right: -60px; bottom: -240px; opacity: .6; }
.hero-in { position: relative; max-width: 1120px; margin: 0 auto; padding: 56px 20px 56px; }
.hero h1 { color: #fff; font-size: clamp(30px, 6.4vw, 48px); line-height: 1.1; letter-spacing: -.025em; max-width: 14em; }
.hero h1 span { color: var(--gold); }
.lead { max-width: 34em; margin-top: 14px; font-size: 15px; color: rgba(255, 255, 255, .78); }

/* Layout */
.wrap { display: grid; gap: 20px; max-width: 1120px; margin: 0 auto; padding: 28px 16px 48px; }
@media (min-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 40px; }
  .out { position: sticky; top: 16px; }
}
.steps { display: grid; gap: 20px; min-width: 0; margin: 0; }

.card { min-width: 0; margin: 0; padding: 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card h2 { margin-bottom: 18px; font-size: 24px; letter-spacing: -.02em; }
fieldset.card legend { float: left; width: 100%; } /* keeps the legend inside the card like the other eyebrows */
fieldset.card h2 { clear: both; }

.field { margin: 0 0 18px; }
.field:last-child { margin-bottom: 0; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--navy); }
input[type=text], input[type=file] {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; /* 16px stops iOS zoom */
  color: var(--ink); background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
}
input[type=text]::placeholder { color: var(--muted); }
input[type=text]:focus-visible { outline: none; background: #fff; border-color: var(--gold); box-shadow: 0 0 0 3px var(--goldbd); } /* one ring, not border + outline */
input[type=file]::file-selector-button {
  margin-right: 12px; padding: 8px 14px; font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: var(--navy); border: 0; border-radius: 8px; cursor: pointer;
}
input[type=file]:focus-visible, button:focus-visible, a:focus-visible, .design:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }

.designs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.design { margin: 0; padding: 8px 8px 10px; text-align: center; cursor: pointer; background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--radius); transition: border-color .15s, background .15s; }
.design:hover { border-color: var(--goldbd); }
.design:has(input:checked) { background: var(--goldlt); border-color: var(--gold); }
.design input { position: absolute; opacity: 0; pointer-events: none; }
.design canvas { display: block; width: 100%; height: auto; margin-bottom: 8px; border-radius: 8px; }
.design span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }

/* Preview */
.out h2 { margin-bottom: 16px; }
#preview { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: var(--shadow2); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.actions .btn { flex: 1 1 180px; }
#status { min-height: 1.6em; margin-top: 12px; font-size: 13px; color: var(--mid); }

footer { padding: 28px 20px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .6); background: var(--navy2); }

@media (max-width: 480px) { .card { padding: 20px; } .hero-in { padding-top: 44px; } }
