/* The recording instrument belongs to the exhibition's analog identity. */
.contribution-page .topbar { background: black; color: white; }
.contribution-page .wordmark { color: var(--orange); }
.contribution-page .nav-wrap { min-height: 72px; }
.contribution-page .back-link { border: 1px solid #fff8; padding: 11px 18px; text-decoration: none; font-size: 15px; }
.contribution-page .back-link:hover { background: white; color: black; }
.contribution-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 76px); padding-top: 48px; }
.contribution-intro { top: 104px; background: var(--orange); padding: clamp(24px, 3vw, 44px); max-width: none; }
.contribution-intro .hero-kind { font: 700 15px/1.4 var(--label); margin: 0 0 22px; }
.contribution-intro h1 { font-size: clamp(52px, 5.7vw, 88px); line-height: .97; margin: 0 0 28px; }
.contribution-intro > p { font-size: 18px; line-height: 1.5; }
.contribution-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 28px 0 24px; border: 1px solid black; padding: 0; }
.contribution-ways a { font: 700 16px/1.4 var(--label); text-align: center; padding: 13px 6px; text-decoration: none; min-height: 48px; }
.contribution-ways a + a { border-left: 1px solid black; }
.contribution-ways a:hover { background: black; color: var(--orange); }
.contribution-intro .intro-how { font-size: 16px; }
.contribution-intro .small-print { font-size: 15px; padding-top: 22px; margin-top: 24px; }
.contribution-surface h2 { font: 400 clamp(32px, 3.2vw, 48px)/1.06 var(--display); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 16px; }
.contribution-surface .form-section { padding: 38px 0; border-color: #0004; }
.contribution-surface .form-section:first-of-type { padding-top: 0; }
.contribution-surface .field-help { font-size: 15px; line-height: 1.5; }
.contribution-surface .form-section > .field-help { margin-bottom: 24px; max-width: 64ch; }
.contribution-surface .field label { font: 700 16px/1.4 var(--label); }
.contribution-surface .field label span { font: 400 14px/1.4 var(--body); }
.contribution-surface .field input, .contribution-surface .field textarea { border-color: black; padding: 14px; transition: box-shadow .15s; }
.contribution-surface .field input:focus, .contribution-surface .field textarea:focus { box-shadow: 4px 4px 0 var(--orange); }
.contribution-surface .form-message { border: 0; border-left: 4px solid var(--orange); background: #f2f2f2; padding: 16px 20px; font-size: 15px; line-height: 1.5; }
.contribution-surface .file-zone { background: white; border: 2px dashed black; padding: 28px 20px; }
.contribution-surface .file-zone.dragging { background: var(--orange); border-style: solid; }
.contribution-surface .file-pick { font: 700 18px/1.3 var(--label); }
.contribution-surface .file-zone input { font-size: 15px; }
.contribution-surface .file-zone input::file-selector-button { background: var(--orange); color: black; font-size: 15px; }
.contribution-surface .file-zone p { font-size: 15px; }
.contribution-surface .file-item { border-color: black; box-shadow: 3px 3px 0 #0001; animation: attachment-in .22s ease-out; }
.contribution-surface .file-symbol { background: var(--orange); font-family: var(--label); }
.contribution-surface .file-info p { font-size: 14px; }
.contribution-surface .remove-file { font-size: 14px; }
.contribution-surface .check-label { font-size: 15px; }
.contribution-surface .submit-contribution { min-height: 56px; font-size: 17px; }
.contribution-surface .submit-contribution:disabled { background: #e4e4e4; color: #575757; border-color: #e4e4e4; }
.contribution-surface .form-errors h2 { font: 700 21px/1.3 var(--body); text-transform: none; }
.contribution-footer { font-size: 14px; }
.contribution-page :is(h2, .file-zone) { scroll-margin-top: 104px; }

/* A complete portable tape recorder: handle, grille, cassette and transport. */
.voice-recorder { --device-inset: clamp(18px, 2.2vw, 28px); position: relative; background: black; color: white; border: 2px solid var(--orange); border-radius: 14px; padding: var(--device-inset); margin-top: 52px; box-shadow: inset 0 0 0 5px black, inset 0 0 0 6px #ffa14c66, 5px 6px 0 var(--orange); }
.voice-recorder::before { content: ""; position: absolute; inset: 10px; pointer-events: none; background: url("assets/cassette-screw.svg") left top / 10px 10px no-repeat, url("assets/cassette-screw.svg") right top / 10px 10px no-repeat, url("assets/cassette-screw.svg") left bottom / 10px 10px no-repeat, url("assets/cassette-screw.svg") right bottom / 10px 10px no-repeat; }
.recorder-handle { position: absolute; width: 52%; height: 30px; bottom: 100%; left: 24%; border: 7px solid black; border-bottom: none; border-radius: 10px 10px 0 0; box-shadow: inset 0 2px 0 var(--orange); }
.recorder-brand { display: grid; grid-template-columns: minmax(0, 1fr) 122px; gap: 24px; align-items: center; padding: 10px 0 20px; border-bottom: 1px solid #ffa14c77; margin-bottom: 22px; }
.recorder-grille { height: 40px; background: radial-gradient(circle, var(--orange) 1px, transparent 1.5px) 0 0 / 5px 5px; }
.recorder-brand img { width: 122px; height: auto; }
.cassette { max-width: none; background: #171717; border: 1px solid #ffa14c99; border-radius: 8px; padding: 14px 18px 0; box-shadow: 0 0 0 5px black, 0 0 0 6px #555; }
.cassette-label { background: var(--orange); border-radius: 3px 3px 0 0; padding: 12px 16px; gap: 5px; letter-spacing: 0; }
.cassette-label span:first-child { font: 700 13px/1.3 var(--label); }
.cassette-label span:last-child { font: 400 clamp(24px, 2.5vw, 36px)/1.05 var(--display); text-transform: uppercase; }
.cassette-window { gap: 0; background: black; border: 2px solid var(--orange); border-radius: 60px; padding: 9px 13px; margin: 18px 0 12px; }
.tape-reel { width: 58px; height: 58px; flex: 0 0 58px; border: 0; border-radius: 50%; background: url("assets/tape-reel.svg") center / contain no-repeat; z-index: 1; animation: tape-turn 3s linear infinite; animation-play-state: paused; }
.tape-reel::after { display: none; }
.tape-line { flex: 1; max-width: none; height: 38px; border-top: 2px solid var(--orange); border-bottom: 2px solid var(--orange); background: repeating-linear-gradient(90deg, transparent 0 12px, #ffa14c55 12px 14px) center / 28px 10px repeat-x; animation: tape-travel 1s linear infinite; animation-play-state: paused; }
.cassette-side { color: var(--orange); font: 700 12px/1.3 var(--label); letter-spacing: .03em; }
.cassette-bridge { display: block; margin: 10px auto 0; width: 65%; height: 20px; clip-path: polygon(8% 0,92% 0,100% 100%,0 100%); background: radial-gradient(circle at 24% 12px, black 4px, transparent 5px), radial-gradient(circle at 76% 12px, black 4px, transparent 5px), var(--orange); }
.recorder-readout { color: var(--orange); font: 700 32px/1.2 var(--label); gap: 12px; margin-top: 24px; padding-bottom: 16px; border-bottom: 1px solid #ffa14c77; font-variant-numeric: tabular-nums; }
.record-mode { font: 700 14px/1 var(--label); color: #ccc; margin-right: auto; }
.record-light { width: 10px; height: 10px; border: 1px solid #ffa14c88; background: #555; }
.record-limit { font: 700 16px/1.2 var(--label); color: #bbb; }
.voice-recorder .record-status { font-size: 15px; min-height: 47px; line-height: 1.5; margin: 16px 0 20px !important; }
.voice-recorder .recorder-actions { gap: 14px; }
.voice-recorder .recorder-actions .btn { background: var(--orange); color: black; border: 1px solid var(--orange); box-shadow: 0 5px 0 #aa5915; padding: 13px 18px; font-size: 16px; min-height: 52px; gap: 12px; transition: transform .12s, box-shadow .12s, background .12s; }
.voice-recorder .recorder-actions .btn:hover { background: white; }
.voice-recorder .recorder-actions .btn:active { transform: translateY(4px); box-shadow: 0 1px 0 #aa5915; }
.voice-recorder .recorder-actions .btn:disabled { opacity: .6; }
.voice-recorder .text-button { color: white; font-size: 15px; padding-inline: 2px; }
.voice-recorder .text-button:hover { color: var(--orange); background: transparent; }
.transport-symbol { display: inline-block; width: 12px; height: 12px; flex: 0 0 12px; background: black; }
.rec-symbol { border-radius: 50%; }
.voice-recorder[data-state=recording] .record-light { background: var(--orange); box-shadow: 0 0 0 3px #ffa14c33; }
.voice-recorder[data-state=recording] .record-mode { color: var(--orange); }
.voice-recorder[data-state=recording] .cassette-label { background: var(--orange); }
.voice-recorder[data-state=recording] .tape-reel, .voice-recorder[data-playing=true] .tape-reel,
.voice-recorder[data-state=recording] .tape-line, .voice-recorder[data-playing=true] .tape-line { animation-play-state: running; }
.voice-recorder[data-state=recording] #record-stop { background: white; box-shadow: 0 2px 0 #777; transform: translateY(3px); }
.voice-recorder .record-review audio { margin: 2px 0 20px; }
.voice-recorder:focus-visible { outline-color: black; }
@keyframes tape-travel { to { background-position: 28px center; } }
@keyframes attachment-in { from { opacity: .5; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) and (min-width: 761px) {
  .contribution-layout { grid-template-columns: minmax(0, .78fr) minmax(0, 1.2fr); gap: 32px; }
  .contribution-intro { padding: 26px; }
  .contribution-intro h1 { font-size: clamp(42px, 5.6vw, 64px); }
  .contribution-intro > p { font-size: 16px; }
  .contribution-ways a { font-size: 14px; }
}
@media (max-width: 900px) {
  .recorder-brand { grid-template-columns: minmax(0, 1fr) 95px; gap: 18px; }
  .recorder-brand img { width: 95px; }
  .cassette { padding: 12px 12px 0; }
  .cassette-window { padding: 7px; }
  .tape-reel { width: 44px; height: 44px; flex-basis: 44px; }
  .tape-line { height: 30px; }
  .cassette-label { padding: 10px; }
}
@media (max-width: 760px) {
  .contribution-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 0; }
  .contribution-intro { position: static; margin-inline: calc(-1 * var(--gap)); padding: 32px var(--gap); }
  .contribution-intro h1 { font-size: clamp(43px, 11.6vw, 72px); margin-bottom: 22px; }
  .contribution-intro .hero-kind { font-size: 14px; margin-bottom: 18px; }
  .contribution-intro > p { font-size: 16px; }
  .contribution-ways { margin: 24px 0 20px; }
  .contribution-ways a { font-size: 16px; }
  .contribution-intro .intro-how { font-size: 15px; }
  .contribution-intro .small-print { margin-top: 20px; padding-top: 18px; font-size: 14px; }
  .contribution-surface h2 { font-size: clamp(32px, 8.6vw, 48px); }
  .contribution-page .back-link { font-size: 14px; padding: 11px 12px; }
  .contribution-surface .form-section { padding-block: 30px; }
  .voice-recorder { --device-inset: 20px; margin-top: 46px; }
  .cassette-label span:last-child { font-size: clamp(24px, 6.3vw, 34px); }
  .voice-recorder .recorder-actions .btn { width: 100%; font-size: 15px; padding-inline: 10px; }
  .voice-recorder .record-status { font-size: 14px; }
  .recorder-readout { font-size: 30px; gap: 9px; }
  .record-limit { font-size: 14px; }
  .contribution-surface .file-zone { padding: 24px 14px; }
  .contribution-footer { font-size: 14px; }
}
@media (max-width: 360px) {
  .contribution-page .back-link { padding-inline: 10px; font-size: 13px; }
  .voice-recorder { --device-inset: 17px; }
  .recorder-brand { grid-template-columns: minmax(0, 1fr) 88px; gap: 14px; }
  .recorder-brand img { width: 88px; }
  .cassette-label span:first-child { font-size: 11px; }
  .cassette-side { font-size: 11px; }
  .tape-reel { width: 38px; height: 38px; flex-basis: 38px; }
  .record-mode { font-size: 12px; }
  .recorder-readout { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .voice-recorder .tape-reel, .voice-recorder .tape-line, .contribution-surface .file-item { animation: none; }
}
