@font-face {
  font-family: "Patefon";
  src: url("patefon.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --line: 2px solid var(--ink);
  --display: "Nunito", "Trebuchet MS", "Segoe UI", sans-serif;
  --heading: "Patefon", var(--display);
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
body { background-image: radial-gradient(var(--rule) .85px, transparent .85px); background-size: 17px 17px; }
main { flex: 1; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; top: -80px; left: 15px; padding: 10px 18px; background: var(--surface); z-index: 5; }
.skip:focus { top: 10px; }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1.65rem/1 var(--display); letter-spacing: -.065em; }
.back:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; border: var(--line); border-radius: 12px; text-decoration: none; font-weight: 750; color: var(--ink); }
.button svg, .season svg { width: 21px; height: 21px; flex: none; }
.button { padding: 13px 21px; min-height: 48px; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.primary { background: var(--red); color: var(--surface); }
.primary:hover { background: var(--red-hover); }
.light { background: var(--surface); }
.button:hover { transform: translateY(-2px); box-shadow: 3px 5px 0 var(--ink); }
.button:active { transform: translate(2px,2px); box-shadow: none; }
.hero { isolation: isolate; position: relative; display: flex; align-items: center; overflow: hidden; margin-top: 30px; min-height: 412px; border: var(--line); border-radius: 25px; background-color: var(--blue-tint); box-shadow: 4px 5px 0 var(--ink); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(var(--surface) 1.1px, transparent 1.6px); background-size: 36px 36px; opacity: .46; }
.hero-copy { padding: 38px 0 43px clamp(28px, 4vw, 62px); width: 52%; position: relative; z-index: 1; }
.season { display: inline-flex; gap: 7px; align-items: center; padding: 6px 13px; background: var(--blue-wash); border: 1.5px solid var(--border); border-radius: 30px; font-size: .87rem; font-weight: 700; }
.season svg { height: 18px; width: 18px; color: var(--blue); }
h1, h2, h3, h4, h5, h6, legend { font-family: var(--heading); font-weight: 700; }
.hero h1 { font-size: clamp(4rem, 6vw, 5.95rem); line-height: 1; letter-spacing: -.07em; margin: 15px 0 12px; font-weight: 900; }
.hero h1 span { color: var(--blue); }
.hero h2 { font-size: clamp(1.45rem, 2.1vw, 1.95rem); letter-spacing: -.035em; line-height: 1.12; margin: 0; }
.hero p { color: var(--blue); margin: 13px 0 22px; font-size: 1.05rem; line-height: 1.45; }
.hero-art { display: block; position: absolute; right: 0; bottom: 0; width: 56%; height: 100%; object-fit: contain; object-position: right bottom; z-index: -1; mask-image: linear-gradient(to right, transparent, black 12%); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.section { margin-block: 42px 0; scroll-margin-block: 24px; }
.section-title { display: flex; align-items: center; gap: 13px; margin-bottom: 19px; }
.section-title h2 { margin: 0; font-size: clamp(1.65rem, 2.8vw, 2.35rem); line-height: 1.1; letter-spacing: -.045em; }
.section-icon, .panel-icon { display: inline-grid; place-items: center; background: var(--blue-tint); border: var(--line); border-radius: 11px; }
.section-icon { width: 39px; height: 39px; transform: rotate(-6deg); flex-shrink: 0; }
.section-icon svg { width: 25px; height: 25px; }
.peach { background: var(--red-tint); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; }
.age-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; overflow: hidden; padding: 24px 28px; text-decoration: none; border: var(--line); border-radius: 19px; box-shadow: 3px 4px 0 var(--ink); transition: transform .16s, box-shadow .16s; }
.age-card:hover { transform: translateY(-3px); box-shadow: 3px 7px 0 var(--ink); }
.junior { background: var(--blue-tint-strong); }
.senior { background: var(--ice); }
.age-card small { font-weight: 650; font-size: .92rem; }
.age-card h3 { margin: 3px 0 7px; font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.065em; line-height: 1.13; }
.card-action { text-decoration: underline; text-underline-offset: 4px; font-size: .9rem; font-weight: 650; }
.age-card img { width: 40%; height: auto; max-height: 126px; }
.instructions { padding-bottom: 54px; }
.instructions ol { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; counter-reset: steps; gap: 0; border: var(--line); border-radius: 18px; background: var(--surface); margin: 0 0 21px; padding: 0; }
.instructions li { position: relative; counter-increment: steps; padding: 23px 22px 22px 67px; }
.instructions li + li { border-left: 1px dashed var(--rule); }
.instructions li::before { position: absolute; left: 18px; top: 22px; content: counter(steps); background: var(--blue-tint); border: var(--line); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; font-weight: 800; }
.instructions li:nth-child(2)::before { background: var(--blue-tint-strong); }
.instructions li:nth-child(3)::before { background: var(--ice); }
.instructions b { font: 750 1.14rem/1.35 var(--display); }
.instructions p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
.page { margin-block: 35px 60px; max-width: 1000px; }
.form-page { max-width: 840px; }
.compact { max-width: 570px; margin-block: 55px 75px; }
.back { display: inline-block; color: var(--blue); font-weight: 650; margin-bottom: 19px; text-underline-offset: 4px; }
.page h1 { margin: 0 0 8px; font-size: clamp(2rem, 4.5vw, 3.45rem); line-height: 1.08; }
.page h2 { margin: 26px 0 14px; letter-spacing: -.035em; }
.lead { margin: 0 0 23px; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.panel, .entry-form fieldset { background: var(--surface); border: var(--line); border-radius: 18px; box-shadow: 3px 4px 0 var(--ink); padding: clamp(19px, 3vw, 32px); min-width: 0; }
.entry-form fieldset { margin: 0 0 24px; }
legend { padding: 6px 13px; border: var(--line); border-radius: 9px; background: var(--blue-tint); font-size: 1.1rem; }
fieldset:nth-of-type(2) legend { background: var(--blue-tint-strong); }
fieldset:nth-of-type(3) legend { background: var(--ice); }
fieldset:nth-of-type(4) legend { background: var(--red-tint); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { display: block; font-weight: 650; margin-bottom: 6px; }
input:not([type="hidden"]), select { width: 100%; min-width: 0; max-width: 100%; min-height: 46px; padding: 9px 12px; background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); border-radius: 9px; }
select { appearance: none; padding-right: 38px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3 6 5 5 5-5' stroke='%23242d43' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 13px center / 15px no-repeat; }
input[type=file] { font-size: .93rem; padding: 6px; }
input::file-selector-button { padding: 7px 10px; margin-right: 7px; border: 1px solid var(--rule); border-radius: 5px; background: var(--blue-tint); color: var(--ink); cursor: pointer; }
.helptext, .hint { display: block; font-size: .94rem; color: var(--muted); line-height: 1.45; }
.field .helptext { margin-bottom: 5px; }
.hint { margin: 0 0 16px; }
.person { border-bottom: 1px dashed var(--rule); padding-bottom: 15px; margin-bottom: 16px; }
.person h3 { margin: 0 0 13px; font-size: 1.05rem; }
.errorlist { margin: 0 0 12px; list-style: none; padding: 9px 12px; border-left: 3px solid var(--red); color: var(--red); background: var(--red-wash); line-height: 1.45; }
[aria-invalid="true"] { border-color: var(--red) !important; }
.panel-icon { width: 52px; height: 52px; margin-bottom: 16px; }
.panel-icon svg { width: 30px; height: 30px; }
.compact h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.stack { display: grid; gap: 16px; }
.stack .button { justify-self: start; }
.receipt-code { background: var(--blue-tint); border-radius: 10px; padding: 13px; overflow-wrap: anywhere; margin: 0 0 20px; }
.receipt-code strong { display: block; margin-top: 4px; font-family: monospace; }
.expert-heading, .filters { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.expert-heading { margin-bottom: 22px; }
.filters { flex-wrap: wrap; align-items: flex-end; }
.filters .field { flex: 1 1 180px; }
.entry { margin-bottom: 13px; overflow-wrap: anywhere; }
.entry h3 { margin: 0 0 12px; font-size: 1.4rem; }
.entry ul { padding-left: 20px; }
.entry .actions { margin-top: 18px; }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 52px); }
  .hero-copy { width: 55%; }
  .hero-art { width: 52%; object-fit: contain; }
  .instructions li { padding: 68px 18px 20px; }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .brand { font-size: 1.45rem; }
  .hero { margin-top: 18px; display: block; min-height: 0; }
  .hero-copy { width: 100%; padding: 24px 23px 0; }
  .hero h1 { font-size: clamp(3.6rem, 13vw, 5rem); }
  .hero-art { width: 100%; height: clamp(200px, 47vw, 285px); position: relative; object-fit: contain; object-position: right bottom; mask-image: none; }
  .hero p { margin-block: 10px 17px; }
  .hero .actions { gap: 10px; }
  .hero .button { padding: 10px 13px; }
  .section { margin-top: 31px; }
  .section-title { gap: 10px; }
  .section-icon { width: 34px; height: 34px; }
  .cards, .instructions ol { grid-template-columns: 1fr; }
  .cards { gap: 15px; }
  .age-card { padding: 17px 20px; }
  .age-card img { max-height: 102px; }
  .instructions li { padding: 17px 18px 17px 65px; }
  .instructions li::before { top: 17px; }
  .instructions li + li { border-left: 0; border-top: 1px dashed var(--rule); }
  .form-grid { grid-template-columns: 1fr; }
  .compact { margin-block: 26px 40px; }
  }
@media (max-width: 395px) {
  .wide-only { display: none; }
  .hero-copy { padding-inline: 17px; }
  .hero .button { font-size: .91rem; padding-inline: 10px; }
  .expert-heading { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.festival { min-height: 270px; }
.festival .hero-copy { width: 68%; padding-block: 34px; }
.festival h1 { font-size: clamp(4rem, 7.5vw, 6.5rem); margin: 10px 0 14px; }
.festival h2 { max-width: 24em; font-size: clamp(1.25rem, 2vw, 1.7rem); }
.festival .hero-art { width: 38%; }
.invitation { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 20px 5px 0; }
.invitation p { max-width: 35em; margin: 0; font-size: 1.12rem; line-height: 1.5; }
.invitation a { white-space: nowrap; font-weight: 650; color: var(--blue); text-underline-offset: 4px; }
.enroll { padding-block: 25px 38px; text-align: center; }
.enroll .primary { width: min(100%, 490px); min-height: 54px; font-size: 1.13rem; }
.contest-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr); gap: clamp(22px, 4vw, 58px); }
.contest-board .section-title h2 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
.nom-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.nom-list a { display: flex; align-items: center; gap: 13px; border: var(--line); border-radius: 13px; background: var(--surface); text-decoration: none; font: 700 1.12rem/1.35 var(--display); padding: 17px; box-shadow: 2px 3px 0 var(--ink); }
.nom-list a:hover { background: var(--blue-wash); }
.nom-list svg { width: 34px; height: 34px; padding: 5px; color: var(--blue); background: var(--blue-wash); border-radius: 8px; flex: none; }
.age-stack { display: grid; gap: 13px; }
.age-stack .age-card { padding: 14px 25px; }
.age-stack h3 { font-size: 2.1rem; }
.age-stack img { height: 96px; }
.form-page { max-width: 1150px; }
.application-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .36fr); gap: 25px; align-items: start; }
.application-guide { position: sticky; top: 16px; background: var(--blue-wash); padding: 20px; }
.application-guide h2 { margin: 0; font-size: 1.3rem; }
.application-guide ol { padding-left: 22px; }
.application-guide li { padding: 5px 0; }
.application-guide a { text-underline-offset: 3px; }
.file-reminder { border-top: 1px dashed var(--rule); padding-top: 12px; }
.file-reminder h3, .file-reminder p { margin: 0 0 6px; }
.file-reminder p { color: var(--muted); line-height: 1.45; }
.entry-form fieldset, #work, #categories { scroll-margin-block: 20px; }
.jury-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 72vh; max-width: 1640px; margin: auto; }
.jury-nav { display: flex; flex-direction: column; gap: 20px; background: var(--blue-wash); border-right: var(--line); padding: 28px 16px; }
.jury-nav h2 { margin: 0; font-size: 1.4rem; }
.jury-nav form, .jury-account { display: grid; gap: 16px; }
.jury-account { margin-top: auto; padding-top: 26px; }
.jury-main { min-width: 0; padding: clamp(20px, 2.5vw, 40px); }
.jury-main h1 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -.05em; margin: 0 0 20px; }
.jury-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.jury-totals > div { border: var(--line); border-radius: 12px; padding: 14px 17px; background: var(--blue-tint); }
.jury-totals > div:nth-child(2) { background: var(--blue-tint-strong); }
.jury-totals > div:nth-child(3) { background: var(--ice); }
.jury-totals strong { display: block; font: 800 2rem/1.25 var(--display); }
.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.34fr) minmax(0, .9fr); gap: 14px; align-items: start; }
.review-box { min-width: 0; padding: 17px; background: var(--surface); border: var(--line); border-radius: 14px; overflow-wrap: anywhere; }
.review-box h2 { font-size: 1.23rem; margin: 0 0 15px; }
.review-box h3 { font-size: 1.03rem; margin: 14px 0 7px; }
.review-box p { line-height: 1.48; }
.entry-list { max-height: 62vh; overflow-y: auto; }
.entry-list h3 { color: var(--muted); font-size: .9rem; }
.entry-list a { display: block; text-decoration: none; padding: 10px; margin: 6px 3px; border: 1px solid var(--rule); border-radius: 9px; }
.entry-list a:hover, .entry-list a[aria-current] { background: var(--blue-wash); border-color: var(--blue); }
.review-box small { display: block; font-size: .87rem; color: var(--muted); margin-top: 4px; }
.work-files { display: grid; gap: 12px; }
.work-files .button { justify-content: flex-start; padding: 10px; background: var(--blue-wash); }
.team-info ul { padding-left: 18px; }
.team-info li { margin-bottom: 6px; }
@media (max-width: 1050px) {
  .review-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .team-info { grid-column: 2; }
}
@media (max-width: 760px) {
  .application-layout, .jury-layout, .review-grid { grid-template-columns: minmax(0, 1fr); }
  .application-guide { position: static; grid-row: 1; }
  .application-guide ol { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .application-guide .file-reminder { display: none; }
  .jury-nav { border-right: 0; border-bottom: var(--line); padding: 18px; }
  .jury-nav form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .jury-account { margin: 0; padding: 0; display: flex; justify-content: space-between; align-items: center; }
  .jury-account form { display: block; }
  .team-info { grid-column: auto; }
  .jury-totals { gap: 6px; }
  .jury-totals > div { padding: 9px; }
  .entry-list { max-height: 32vh; }
}
@media (max-width: 720px) {
  .festival { min-height: 0; }
  .festival .hero-copy { width: 100%; padding: 22px 22px 0; }
  .festival .hero-art { width: 100%; height: 170px; }
  .festival h1 { margin-bottom: 8px; }
  .invitation { flex-wrap: wrap; gap: 8px; }
  .enroll { padding-block: 20px 30px; }
  .contest-board { grid-template-columns: 1fr; gap: 26px; }
}
