:root {
  --paper: #f6f4ee;
  --ink: #111111;
  --white: #ffffff;
  --green: #b9f542;
  --red: #f04f3d;
  --blue: #275bd6;
  --gray: #c9c8c1;
  --muted: #666761;
  --max: 1460px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.45; letter-spacing: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; color: var(--white); background: var(--blue); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-header { width: min(calc(100% - 48px), var(--max)); height: 68px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; text-decoration: none; text-transform: uppercase; }
.brand-symbol { display: grid; place-items: center; width: 34px; height: 34px; color: var(--white); background: var(--blue); font-size: 1.2rem; }
.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a { font-size: .82rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.site-header nav a:hover { color: var(--blue); }
.contact-link { padding: 8px 11px; border: 1px solid var(--ink); }

.hero { width: min(calc(100% - 48px), var(--max)); min-height: calc(100svh - 103px); margin: 0 auto; padding: 26px 0 18px; display: grid; grid-template-rows: auto 1fr; overflow: clip; }
.hero-heading { position: relative; }
.kicker, .section-label { margin: 0 0 8px; color: var(--blue); font: 900 .69rem/1.2 "Arial Narrow", Arial, sans-serif; text-transform: uppercase; }
h1 { margin: 0; font: 900 clamp(3.25rem, 6vw, 6.5rem)/.82 "Arial Narrow", Arial, sans-serif; text-transform: uppercase; }
.subtitle { position: absolute; right: 0; bottom: 0; max-width: 310px; margin: 0; font-size: 1.18rem; font-weight: 800; }
.swipe-board { min-height: 350px; display: grid; grid-template-columns: minmax(125px, 1fr) minmax(300px, 560px) minmax(125px, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.decision { display: grid; gap: 4px; align-items: center; text-transform: uppercase; }
.decision strong { font: 900 clamp(1.25rem, 2.5vw, 2.5rem) "Arial Narrow", Arial, sans-serif; }
.decision small { color: var(--muted); font-size: .7rem; font-weight: 800; }
.decision > span { font-size: 2.4rem; line-height: 1; }
.decision-keep { justify-items: end; text-align: right; color: var(--blue); }
.decision-delete { color: var(--red); }
.photo-deck { position: relative; width: min(100%, 500px); height: clamp(280px, 42vh, 400px); margin: 20px auto 0; }
.back-photo { position: absolute; inset: 22px 28px 52px; border: 2px solid var(--ink); background: var(--gray); }
.back-one { transform: rotate(-5deg); background: var(--green); }
.back-two { transform: rotate(5deg); background: var(--red); }
.active-photo { position: absolute; inset: 0 18px 42px; margin: 0; display: grid; grid-template-rows: 1fr 44px; overflow: hidden; border: 3px solid var(--ink); background: var(--white); box-shadow: 9px 9px 0 var(--ink); transform-origin: 50% 90%; }
.active-photo img { width: 100%; height: 100%; object-fit: cover; }
.active-photo figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; border-top: 2px solid var(--ink); font-size: .78rem; text-transform: uppercase; }
.active-photo figcaption strong { color: var(--blue); }
.deck-controls { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: 18px; }
.deck-controls button { width: 48px; height: 48px; border: 3px solid var(--ink); border-radius: 50%; cursor: pointer; font-size: 1.6rem; font-weight: 900; box-shadow: 3px 3px 0 var(--ink); }
.delete-button { color: var(--white); background: var(--red); }
.keep-button { color: var(--ink); background: var(--green); }
.deck-controls button:active { transform: translate(3px, 3px); box-shadow: none; }
.action-status { position: absolute; right: 0; bottom: 12px; margin: 0; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.photo-deck.is-keep .active-photo { animation: swipeKeep .38s ease both; }
.photo-deck.is-delete .active-photo { animation: swipeDelete .38s ease both; }

.next-cue { height: 35px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ink); color: var(--white); }
.next-cue span { display: grid; place-items: center; border-right: 1px solid #5c5c5c; font-size: .65rem; font-weight: 900; text-transform: uppercase; }

.sort-section { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 9vw, 150px); padding: 110px 0; }
h2 { margin: 0; font: 900 clamp(2.8rem, 5.5vw, 6rem)/.88 "Arial Narrow", Arial, sans-serif; text-transform: uppercase; }
.sort-list { border-top: 3px solid var(--ink); }
.sort-list article { min-height: 150px; display: grid; grid-template-columns: 45px 1fr 65px; gap: 24px; align-items: center; border-bottom: 1px solid #9c9d97; }
.sort-list article > span { font: 800 .7rem monospace; color: var(--muted); }
.sort-list h3 { margin: 0 0 6px; font-size: 1.3rem; }
.sort-list p { max-width: 620px; margin: 0; color: var(--muted); }
.sort-list article > strong { justify-self: end; padding: 5px 7px; color: var(--white); background: var(--blue); font-size: .66rem; text-transform: uppercase; }
.sort-list article:nth-child(2) > strong { color: var(--ink); background: var(--green); }
.sort-list article:nth-child(3) > strong { background: var(--red); }

.organize-band { padding: 100px max(24px, calc((100vw - var(--max)) / 2)); color: var(--white); background: var(--red); display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(50px, 8vw, 130px); }
.organize-band .section-label { color: var(--ink); }
.organize-modes { margin: 0; border-top: 2px solid var(--white); }
.organize-modes div { min-height: 82px; display: grid; grid-template-columns: 120px 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.6); }
.organize-modes dt { font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.organize-modes dd { margin: 0; font-size: 1.1rem; font-weight: 700; }

.screenshots { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(50px, 8vw, 130px); align-items: center; padding: 110px 0; overflow: clip; }
.contact-sheet { padding: 18px; background: var(--blue); transform: rotate(-2deg); box-shadow: 12px 12px 0 var(--ink); }
.contact-sheet img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 3px solid var(--ink); }
.screenshots h2 { font-size: clamp(2.5rem, 4.5vw, 5rem); }
.screenshots p:last-child { max-width: 570px; color: var(--muted); font-size: 1.05rem; }

.local-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px, 9vw, 160px); padding: 105px max(24px, calc((100vw - var(--max)) / 2)); color: var(--white); background: var(--blue); }
.local-mark { margin: 0; color: var(--green); font: 900 clamp(4rem, 10vw, 10rem)/.75 "Arial Narrow", Arial, sans-serif; }
.local-section .section-label { color: var(--green); }
.local-section p:not(.section-label):not(.local-mark) { max-width: 700px; color: #dbe3ff; }
.local-section a { display: inline-flex; gap: 35px; margin-top: 18px; padding-bottom: 5px; border-bottom: 2px solid var(--white); font-weight: 800; text-decoration: none; }

footer { width: min(calc(100% - 48px), var(--max)); min-height: 220px; margin: 0 auto; padding: 48px 0 20px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 28px; align-items: start; }
footer p { margin: 8px 0 0; color: var(--muted); }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer nav a { font-size: .85rem; text-underline-offset: 4px; }
footer small { grid-column: 1 / -1; align-self: end; padding-top: 16px; border-top: 1px solid var(--gray); color: var(--muted); }

.legal-page { background: var(--white); }
.legal-main { width: min(calc(100% - 48px), 1120px); margin: 0 auto; padding: 68px 0 115px; }
.legal-heading { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; padding-bottom: 40px; border-bottom: 4px solid var(--ink); }
.legal-heading h1 { font-size: clamp(3.8rem, 8vw, 8.5rem); }
.legal-heading p { margin: 0; color: var(--blue); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: clamp(50px, 9vw, 120px); padding-top: 50px; }
.legal-aside { position: sticky; top: 24px; align-self: start; }
.legal-aside strong { display: block; margin-bottom: 15px; text-transform: uppercase; }
.legal-aside a { display: block; margin-top: 9px; color: var(--muted); font-size: .84rem; }
.legal-document { max-width: 760px; }
.legal-document > p:first-child { margin: 0 0 30px; color: var(--muted); font-size: 1.15rem; }
.legal-document section { padding: 25px 0; border-top: 1px solid var(--gray); }
.legal-document h2 { margin: 0 0 12px; font: 900 1.2rem Arial, sans-serif; text-transform: none; }
.legal-document p { margin: 0 0 12px; }
.legal-document ul { margin: 12px 0 0; padding-left: 21px; }
.legal-document li + li { margin-top: 7px; }

@keyframes swipeKeep { to { opacity: 0; transform: translateX(-55%) rotate(-12deg); } }
@keyframes swipeDelete { to { opacity: 0; transform: translateX(55%) rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .photo-deck.is-keep .active-photo, .photo-deck.is-delete .active-photo { animation: none; } }

@media (max-width: 900px) {
  .subtitle { position: static; margin-top: 12px; }
  .sort-section, .organize-band, .screenshots, .local-section { grid-template-columns: 1fr; }
  .sort-section { gap: 45px; }
  .screenshots .contact-sheet { order: 2; }
}

@media (max-width: 650px) {
  .site-header, .hero, .sort-section, .screenshots, footer, .legal-main { width: min(calc(100% - 32px), var(--max)); }
  .site-header { height: 60px; }
  .site-header nav { gap: 10px; }
  .site-header nav a:not(.contact-link) { display: none; }
  .brand { font-size: .85rem; }
  .hero { min-height: calc(100svh - 105px); padding-top: 20px; }
  h1 { font-size: 3rem; }
  .subtitle { font-size: 1rem; }
  .swipe-board { min-height: 310px; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
  .photo-deck { grid-column: 1 / -1; grid-row: 1; width: 88%; height: 220px; margin-top: 10px; }
  .active-photo { inset: 0 12px 40px; box-shadow: 6px 6px 0 var(--ink); }
  .back-photo { inset: 15px 20px 45px; }
  .decision { grid-row: 2; align-self: start; padding-top: 4px; }
  .decision strong { font-size: 1.05rem; }
  .decision small { display: none; }
  .decision > span { font-size: 1.5rem; }
  .decision-keep { justify-items: start; text-align: left; }
  .decision-delete { justify-items: end; text-align: right; }
  .action-status { display: none; }
  .next-cue span { font-size: .55rem; }
  .sort-section, .screenshots { padding: 78px 0; }
  .sort-list article { grid-template-columns: 32px 1fr; gap: 10px; padding: 20px 0; }
  .sort-list article > strong { display: none; }
  .sort-list p { font-size: .9rem; }
  .organize-band, .local-section { padding-top: 75px; padding-bottom: 75px; }
  .organize-modes div { grid-template-columns: 80px 1fr; }
  .local-mark { font-size: 4.5rem; }
  footer { grid-template-columns: 1fr; min-height: 0; }
  footer small { grid-column: 1; }
  .legal-heading { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; gap: 26px; }
  .legal-aside { position: static; padding-bottom: 20px; border-bottom: 1px solid var(--gray); }
}
