:root {
    color-scheme: light;
    --paper: #fffbef;
    --ink: #304b83;
    --muted: #67728b;
    --blue: #355ac0;
    --orange: #d55231;
    --yellow: #ffda62;
    --line: #bec6d6;
    --playful: "Chewy", system-ui;
}

body {
    background-color: var(--paper);
    background-image: radial-gradient(#5472ba16 .8px, transparent .8px);
    background-size: 19px 19px;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.65;
}
a { color: inherit; text-underline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
[hidden] { display: none !important; }
.page-width { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; padding: 12px; z-index: 10; background: #fff; }
.skip-link:focus { top: 12px; }

.site-header { display: flex; align-items: center; gap: 20px; padding-block: 22px 8px; }
.home-link { flex: 0 0 80px; transform: rotate(-5deg); }
.jamie-logo { width: 80px; height: auto; }
.site-note { max-width: 170px; font-family: var(--playful); font-size: 16px; line-height: 1.25; transform: rotate(-3deg); }
.header-link { margin-left: auto; font-family: var(--playful); font-size: 18px; text-decoration-style: wavy; }
.header-link span { display: inline-block; margin-left: 9px; font-size: 25px; }
.header-link:hover, .site-footer a:hover { color: var(--orange); }

.intro { position: relative; text-align: center; padding: 12px 70px 20px; }
.eyebrow { color: var(--orange); font-family: var(--playful); font-size: 19px; font-weight: 400; }
.location-mark { font-family: system-ui; font-size: 19px; margin-right: 4px; }
.intro .eyebrow { font-size: 16px; }
h1, h2, h3, .stat-value { font-family: var(--playful); font-weight: 400; }
h1 { font-size: clamp(62px, 7.7vw, 94px); line-height: 1.02; margin: 10px 0 18px; transform: rotate(-2deg); }
.title-small { display: block; color: var(--blue); font-size: .54em; margin-bottom: 3px; }
.title-main { display: inline-block; color: var(--orange); text-shadow: 2px 3px 0 #ffd591; }
.title-dot { display: inline-block; transform: rotate(12deg); margin-left: 4px; color: var(--blue); }
.intro-copy { font-family: var(--playful); font-size: 22px; }
.backstory { max-width: 655px; margin: 13px auto 0; color: var(--muted); font-size: 14px; }
.hero-doodle { position: absolute; pointer-events: none; line-height: 1; }
.doodle-left { left: 50px; top: 90px; color: #e8ad26; font-size: 75px; transform: rotate(-14deg); }
.doodle-right { right: 60px; top: 115px; color: #a691d4; font-size: 68px; transform: rotate(12deg); }

.status-summary { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 15px 25px; max-width: 790px; margin: 18px auto 0; }
.main-stat, .secondary-stat { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 125px; padding: 13px 30px; border: 2px solid var(--ink); box-shadow: 3px 4px 0 var(--ink); }
.main-stat { background: var(--yellow); border-radius: 49% 43% 45% 38% / 31% 43% 36% 44%; transform: rotate(-3deg); }
.secondary-stat { background: #e9ddff; border-radius: 37% 44% 34% 48% / 37% 31% 40% 30%; transform: rotate(3deg); }
.stat-value { font-size: 70px; line-height: 1; white-space: nowrap; }
.stat-denominator { font-size: 27px; }
.main-stat strong, .secondary-stat strong { display: block; font: 25px/1.2 var(--playful); }
.main-stat div > span, .secondary-stat div > span { display: block; font-size: 11px; margin-top: 5px; }
.record-date { flex: 0 0 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; color: var(--muted); font-size: 11px; margin-top: 8px; }
.record-date time { color: var(--ink); }
.record-date > span:last-child { margin-left: 7px; }
.latest-update { display: flex; justify-content: center; align-items: center; gap: 15px; width: fit-content; max-width: 92%; padding: 10px 22px; margin: 22px auto 0; background: #ffe3d3; border-radius: 3px 16px 5px 13px; transform: rotate(-1deg); font-size: 12px; }
.latest-update strong { font-weight: 650; }
.update-label { flex-shrink: 0; font: 22px/1.1 var(--playful); color: #ac3f29; }

.pylon-section { margin-top: 38px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-inline: 12px; margin-bottom: 18px; }
.section-heading .eyebrow { transform: rotate(-5deg); width: fit-content; }
h2 { font-size: 39px; line-height: 1.15; margin-top: 4px; }
.section-heading > p { font: 20px/1.25 var(--playful); transform: rotate(5deg); padding: 0 13px 0 0; }
.section-heading > p span { display: inline-block; font-size: 28px; margin-left: 4px; }
.pylon-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 75px; align-items: start; padding: 0 12px; }
.diagram-heading { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; padding: 0 4px 9px; }
.diagram-heading > span:first-child { font-family: var(--playful); font-size: 15px; }
.diagram-note { align-self: center; }
.pylon-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; padding: 8px 0 16px; border-bottom: 3px dashed #b8c2d5; }
.pylon { --tilt: -2deg; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 9px 3px 12px; border: 2px solid transparent; border-radius: 46% 39% 44% 37% / 15% 19% 15% 20%; color: var(--ink); text-decoration: none; transform: rotate(var(--tilt)); transition: transform .18s ease, background-color .18s ease; }
.pylon:nth-child(3n) { --tilt: 3deg; }
.pylon:nth-child(3n + 2) { --tilt: 1deg; }
.pylon:hover { background: #fff0b6; transform: translateY(-7px) rotate(0); }
.pylon[aria-current="true"] { border-color: var(--blue); background: #e9eeff; }
.pylon-number { display: grid; place-items: center; min-width: 29px; height: 29px; border-radius: 50% 42% 46% 43%; font-family: var(--playful); font-size: 16px; background: #e8edfa; }
.pylon[aria-current="true"] .pylon-number { background: var(--blue); color: white; }
.pylon-status { font-family: var(--playful); font-size: 13px; }
.pylon-drawing { position: relative; width: 37px; height: 63px; margin: 10px 0; }
.pylon-post { position: absolute; z-index: 1; top: 0; left: 11px; width: 15px; height: 57px; background: linear-gradient(90deg, #e8b422 0 65%, #d69f14 65%); border: 1px solid #b88c1e; border-radius: 5px 5px 2px 2px; }
.pylon-post::after { content: ""; position: absolute; top: 10px; left: 0; width: 100%; height: 5px; background: #fff3bd; }
.pylon-base { position: absolute; bottom: 2px; left: 3px; width: 31px; height: 6px; background: #d4ab38; border: 1px solid #b88c1e; border-radius: 2px; }
.missing .pylon-post { background: transparent; border: 1.5px dashed #a4aba9; }
.missing .pylon-post::after { content: "×"; background: transparent; color: #798380; font-size: 22px; font-weight: 400; line-height: 22px; height: 24px; width: 22px; left: -5px; top: 17px; text-align: center; }
.missing .pylon-base { background: #d4d7d1; border-color: #a4aba9; }

.pylon-drawing { transform: scale(1.15); margin: 16px 0; }
.legend { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; gap: 9px 22px; padding: 17px 0 30px; font-size: 12px; color: var(--muted); }
.legend > span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 9px; height: 13px; border-radius: 2px; }
.legend-standing { background: var(--yellow); border: 1px solid #b88c1e; }
.legend-missing { border: 1px dashed #84908c; }
.legend-selection { color: var(--blue); }

.field-notes { max-width: 410px; justify-self: center; align-self: center; padding: 20px 0 40px; }
.evidence-label { font-family: var(--playful); font-size: 31px; line-height: 1.1; color: var(--blue); transform: rotate(-5deg); margin: 0 0 40px 10px; }
.evidence-label span { display: inline-block; font-family: system-ui; font-size: 57px; line-height: .7; vertical-align: middle; margin-left: 12px; transform: rotate(12deg); }
.field-note { position: relative; display: flex; gap: 12px; background: #fff0a9; padding: 30px 24px; transform: rotate(-3deg); box-shadow: 4px 5px 0 #ddc56a4d; }
.field-note::before, .pylon-detail::before { content: ""; position: absolute; z-index: 1; left: calc(50% - 38px); top: -13px; width: 76px; height: 27px; background: #c9dcf0bd; transform: rotate(6deg); }
.note-mark { font-size: 32px; line-height: 1; }
.field-note h3 { font-size: 29px; line-height: 1.2; margin-bottom: 12px; }
.field-note p { font-size: 14px; line-height: 1.75; }
.record-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 22px 16px 0; }
.pylon-detail { position: relative; margin: 5px 0 0; padding: 19px 18px 23px; background: #fff; border: 1px solid #d9dce2; box-shadow: 4px 6px 0 #4e679f16, 0 3px 13px #2d447c12; transform: rotate(2deg); scroll-margin-top: 25px; }
.pylon-detail::before { background: #f4d2aeaa; transform: rotate(-7deg); }
.detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.detail-heading h3 { font-size: 29px; }
.status-badge { border: 2px solid #6a7598; background: #f1edfa; color: #566080; border-radius: 45% 39% 42% 37%; font-family: var(--playful); font-size: 16px; padding: 1px 13px; transform: rotate(-6deg); }
.status-badge.standing { background: #fff0b0; color: #705810; border-color: #b28b14; }
.photo-notice { margin: 0 0 12px; background: #fff3d4; color: #75591d; padding: 7px 10px; font-size: 11px; text-align: center; }
.photo-link { position: relative; display: block; background: #eee; }
.photo-link img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.photo-expand { position: absolute; bottom: 9px; right: 9px; background: #fffef7ed; padding: 4px 8px; color: var(--ink); font-size: 11px; }
.photo-link:hover .photo-expand { background: #fff; text-decoration: underline; }
.photo-date { font-size: 11px; margin: 13px 0 7px; }
#detail-description { color: var(--muted); font-size: 12px; line-height: 1.65; }

.community-sections { display: grid; grid-template-columns: 1.1fr 1fr; gap: 65px; align-items: center; margin: 75px 10px 55px; }
.voting-section { position: relative; background: #edf1ff; border: 2px solid var(--blue); border-radius: 30px 48px 27px 40px; padding: 27px 30px; box-shadow: 5px 5px 0 #d2dbf7; }
.voting-section::after { content: ""; position: absolute; bottom: -17px; left: 35px; width: 24px; height: 28px; background: #edf1ff; border-bottom: 2px solid var(--blue); border-left: 2px solid var(--blue); transform: skewY(-35deg); }
.community-sections h2 { font-size: 33px; }
.section-copy { color: var(--muted); font-size: 13px; margin-top: 10px; }
.voting-buttons { display: flex; gap: 13px; margin-top: 20px; }
.vote-btn { flex: 1; min-width: 0; padding: 11px 14px; border-radius: 18px 13px 17px 12px; border: 2px solid #477157; color: #305740; background: #d9efbb; box-shadow: 2px 3px 0 #477157; cursor: pointer; transform: rotate(-2deg); transition: transform .15s; }
.vote-label { display: block; font: 22px/1.3 var(--playful); }
.vote-label > span { margin-right: 4px; }
.vote-count { display: block; margin-top: 3px; font-size: 11px; }
.vote-btn.oppose { color: #953d3b; background: #ffd5c7; border-color: #a2574e; box-shadow: 2px 3px 0 #a2574e; transform: rotate(2deg); }
.vote-btn:hover:not(:disabled) { transform: translateY(-4px) rotate(0); }
.vote-btn.selected { outline: 2px dashed currentColor; outline-offset: 4px; }
.vote-btn:disabled { cursor: default; }
.vote-btn:disabled:not(.selected) { opacity: .7; }
.voting-results { margin-top: 21px; }
.vote-result-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.vote-result-labels strong { color: var(--ink); }
.vote-bar-container { display: flex; height: 9px; border-radius: 50px; overflow: hidden; background: #d7deef; }
.vote-bar.support { background: #78a766; }
.vote-bar.oppose { background: #e58b7b; }
.vote-message { color: var(--muted); font-size: 11px; margin-top: 13px; }
.vote-message.success { color: #386145; }
.report-section { position: relative; padding: 16px 10px; transform: rotate(-2deg); }
.report-section .eyebrow { font-size: 26px; }
.report-section > p:not(.eyebrow) { color: var(--muted); max-width: 330px; font-size: 14px; margin-top: 12px; }
.report-symbol { position: absolute; top: 23px; right: 5px; font-family: var(--playful); font-size: 60px; color: #edb83b; line-height: 1; transform: rotate(10deg); }
.report-link { display: inline-flex; align-items: center; gap: 20px; background: var(--yellow); color: var(--ink); padding: 10px 22px; border: 2px solid var(--ink); border-radius: 41% 35% 42% 29% / 19% 24% 20% 25%; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; font-family: var(--playful); font-size: 23px; margin-top: 22px; }
.report-link:hover { background: #ffe790; transform: rotate(2deg); }
.report-section > .report-hint { font-size: 11px; }
.site-footer { border-top: 2px dashed #bfc9df; padding-block: 24px 30px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.site-footer > span { font-family: var(--playful); font-size: 16px; color: var(--ink); }
.site-footer > div { display: flex; align-items: center; gap: 22px; }

@media (max-width: 900px) {
    .page-width { width: calc(100% - 48px); }
    .intro { padding-inline: 45px; }
    .doodle-left { left: 0; font-size: 55px; }
    .doodle-right { right: 0; font-size: 50px; }
    .pylon-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px 12px; }
    .pylon-workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 35px; }
    .field-note { padding: 25px 20px; }
    .field-note h3 { font-size: 26px; }
    .evidence-label { font-size: 25px; }
    .evidence-label span { display: block; margin-top: 15px; }
    .community-sections { gap: 32px; margin-inline: 0; }
    .voting-section { padding: 25px 22px; }
    .community-sections h2 { font-size: 29px; }
    .report-symbol { display: none; }
}

@media (max-width: 650px) {
    .page-width { width: calc(100% - 36px); }
    .site-header { gap: 12px; padding-block: 20px 16px; }
    .home-link { flex-basis: 65px; }
    .jamie-logo { width: 65px; }
    .site-note { display: none; }
    .header-link { font-size: 16px; }
    .intro { padding: 15px 0 14px; }
    .intro .eyebrow { font-size: 14px; }
    h1 { font-size: clamp(51px, 11.9vw, 75px); margin: 14px 0 20px; }
    .intro-copy { font-size: 20px; max-width: 310px; margin-inline: auto; }
    .backstory { max-width: 390px; font-size: 13px; padding-inline: 9px; }
    .doodle-left { left: 0; top: 43px; font-size: 27px; }
    .doodle-right { right: 0; top: 67px; font-size: 28px; }
    .status-summary { gap: 10px; margin-top: 9px; }
    .main-stat, .secondary-stat { flex: 1; min-width: 0; flex-direction: column; gap: 4px; min-height: 153px; padding: 14px 8px; text-align: center; }
    .stat-value { font-size: 58px; }
    .stat-denominator { font-size: 23px; }
    .main-stat strong, .secondary-stat strong { font-size: 22px; }
    .main-stat div > span, .secondary-stat div > span { font-size: 10px; margin-top: 3px; }
    .record-date { font-size: 10px; margin-top: 13px; }
    .latest-update { max-width: calc(100% - 8px); align-items: start; gap: 7px; flex-direction: column; padding: 12px 18px; margin-top: 18px; font-size: 12px; }
    .update-label { font-size: 22px; }
    .pylon-section { margin-top: 34px; }
    .section-heading { padding: 0 4px; gap: 12px; }
    .section-heading .eyebrow { font-size: 18px; }
    h2 { font-size: 30px; }
    .section-heading > p { flex: 0 0 91px; font-size: 16px; padding: 0; }
    .section-heading > p span { font-size: 23px; }
    .pylon-workspace { grid-template-columns: 1fr; gap: 0; padding: 0 3px; }
    .diagram-heading { font-size: 9px; align-items: center; }
    .diagram-heading > span:first-child { font-size: 13px; }
    .pylon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 5px; }
    .pylon { padding: 8px 2px 9px; }
    .pylon-drawing { transform: none; margin: 11px 0; }
    .pylon-status { font-size: 13px; }
    .legend { gap: 7px 14px; font-size: 11px; padding: 17px 0 25px; }
    .legend-selection { flex-basis: 100%; justify-content: center; }
    .field-notes { grid-row: 5; max-width: 380px; padding: 25px 5px 0; }
    .evidence-label { display: none; }
    .field-note { gap: 12px; padding: 25px; }
    .field-note h3 { font-size: 27px; }
    .field-note p { font-size: 13px; }
    .record-note { font-size: 11px; margin-top: 17px; }
    .pylon-detail { grid-row: 4; max-width: 360px; width: calc(100% - 10px); justify-self: center; transform: rotate(1deg); padding: 17px; }
    .detail-heading h3 { font-size: 27px; }
    .photo-notice { font-size: 10px; }
    .community-sections { grid-template-columns: 1fr; gap: 32px; margin: 37px 5px 30px; }
    .voting-section { padding: 26px; }
    .community-sections h2 { font-size: 32px; }
    .report-section { padding: 10px 13px; }
    .report-section > p:not(.eyebrow) { max-width: 88%; }
    .report-symbol { display: block; font-size: 45px; right: 0; top: 15px; }
    .site-footer, .site-footer > div { flex-wrap: wrap; gap: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
