/* The contest team's page: the site's cream ground, ink and magenta, set for long working sessions. */
@font-face { font-family: "Inter"; src: url("/assets/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --ground: #f3f2ec; --panel: #fbfaf7; --ink: #1c1b19; --ink-2: #4e4b45; --ink-3: #6b675f; --line: rgba(28, 27, 25, .12); --line-2: rgba(28, 27, 25, .24);
  --magenta: #c72e72; --magenta-deep: #a8235f; --teal: #0f3347; --cyan: #67d4ee; --canvas: #0c1c25;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; --gutter: clamp(16px, 3vw, 32px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

.masthead { margin: 0; font: 750 14px/1 var(--sans); letter-spacing: .045em; text-transform: uppercase; text-decoration: none; color: var(--ink); }
.button { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--magenta); color: #fff; font-weight: 600; cursor: pointer; }
.button:hover { background: var(--magenta-deep); }
.button-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.button-quiet:hover { background: rgba(28, 27, 25, .06); }
.field { display: block; margin: 0 0 16px; }
.field > span { display: block; margin: 0 0 6px; font-weight: 600; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.field input, .field textarea, .field select, .select select, .search input {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; outline: none;
}
.field input:focus, .field textarea:focus, .select select:focus, .search input:focus { border-color: var(--magenta); }
.check { display: flex; gap: 10px; align-items: center; margin: 4px 0 16px; }
.check input { width: 20px; height: 20px; accent-color: var(--magenta); }
.problem { margin: 0 0 12px; color: var(--magenta-deep); font-weight: 500; }
.problem:empty { display: none; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* sign-in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.signin-form { width: min(400px, 100%); }
.signin-form h1 { margin: 18px 0 28px; font: 760 40px/1.05 var(--sans); letter-spacing: -.02em; }
.signin-form .button { width: 100%; margin-top: 8px; }

/* the bar and the list */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 var(--gutter); background: var(--ground); border-bottom: 1px solid var(--line); }
.bar-season { margin: 0; color: var(--ink-3); font-weight: 500; }
.bar-actions { display: flex; gap: 4px; margin-left: auto; }
.bar-link { min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.bar-link:hover { background: rgba(28, 27, 25, .06); }
.list { padding: 20px var(--gutter) 60px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.segmented { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(28, 27, 25, .07); }
.segmented button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.segmented button[aria-pressed=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(28, 27, 25, .16); }
.select select { width: auto; min-height: 42px; }
.search { flex: 1 1 240px; max-width: 360px; }
.search input { min-height: 42px; }
.count { margin: 0 0 0 auto; color: var(--ink-3); }
.table-wrap { overflow-x: auto; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.entries { width: 100%; border-collapse: collapse; }
.entries th { padding: 0; background: var(--panel); border-bottom: 1px solid var(--line-2); text-align: left; white-space: nowrap; }
.entries th button { width: 100%; min-height: 44px; padding: 0 12px; border: 0; background: none; text-align: left; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.entries th button[aria-sort=ascending]::after { content: " ↑"; color: var(--magenta); }
.entries th button[aria-sort=descending]::after { content: " ↓"; color: var(--magenta); }
.entries td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.entries tbody tr { cursor: pointer; transition: background .15s; }
.entries tbody tr:hover, .entries tbody tr:focus-visible { background: rgba(199, 46, 114, .05); outline: none; }
.col-thumb { width: 64px; }
.thumb { display: block; width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: #e8e6df; }
.title-cell { font-weight: 600; }
.muted { color: var(--ink-3); }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(28, 27, 25, .07); color: var(--ink-2); text-transform: capitalize; }
.status-accepted { background: rgba(15, 51, 71, .1); color: var(--teal); }
.status-rejected, .status-withdrawn { background: rgba(28, 27, 25, .05); color: var(--ink-3); text-decoration: line-through; }
.status-submitted { background: rgba(199, 46, 114, .1); color: var(--magenta-deep); }
.empty { padding: 40px; text-align: center; color: var(--ink-3); }

/* one entry */
.detail { width: min(1180px, 100vw - 24px); max-width: none; height: calc(100dvh - 24px); max-height: none; margin: auto; padding: 0; border: 0; border-radius: 14px; background: var(--ground); color: var(--ink); }
.detail[open] { display: flex; }
.detail::backdrop, .settings::backdrop { background: rgba(12, 28, 37, .6); }
.detail-inner { position: relative; width: 100%; overflow-y: auto; }
.close { position: absolute; z-index: 2; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(243, 242, 236, .92); cursor: pointer; }
.close svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); min-height: 100%; }
.detail-art { position: sticky; top: 0; height: calc(100dvh - 24px); display: flex; flex-direction: column; background: var(--canvas); }
.detail-art img { flex: 1; min-height: 0; width: 100%; object-fit: contain; padding: 20px; }
.detail-art-bar { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 20px; color: #b9c6cc; font-size: 13px; }
.detail-art-bar a { color: var(--cyan); }
.detail-text { padding: 28px clamp(20px, 3vw, 36px) 40px; }
.detail-text h2 { margin: 6px 0 4px; font: 760 28px/1.15 var(--sans); letter-spacing: -.015em; }
.detail-number { margin: 0; font-weight: 600; color: var(--magenta); }
.detail-artist { margin: 0 0 20px; color: var(--ink-2); font-size: 17px; }
.detail-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 16px; margin: 0 0 22px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.detail-controls .field-notes { grid-column: 1 / -1; }
.detail-controls textarea { min-height: 80px; resize: vertical; }
.detail-controls .save-row { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; }
.saved { color: var(--ink-3); }
.facts { margin: 0 0 22px; }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.writeup { margin: 0 0 22px; padding: 16px 18px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); white-space: pre-wrap; font-size: 16px; line-height: 1.6; }
.section-label { margin: 22px 0 10px; font-weight: 600; color: var(--magenta); }
.detail video { width: 100%; border-radius: 10px; background: #000; }
.emails { margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; }

/* settings */
.settings { width: min(520px, 100vw - 24px); padding: 28px; border: 0; border-radius: 14px; background: var(--ground); color: var(--ink); }
.settings h2 { margin: 0 0 20px; font: 760 24px/1.1 var(--sans); }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

@media (max-width: 820px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-art { position: relative; height: 60vh; }
  .col-medium, td.col-medium { display: none; }
  .bar-season { display: none; }
}
