:root {
  --ink: #1d2733;
  --muted: #66717b;
  --paper: #f7f5ef;
  --white: #fffefa;
  --line: #d8d7cf;
  --navy: #28547f;
  --navy-dark: #142b47;
  --red: #b64a3b;
  --yellow: #f3cf62;
  --shadow: 0 16px 40px rgba(31, 43, 40, .1);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", Arial, sans-serif; font-size: 16px; letter-spacing: 0; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Literata", Georgia, serif; }
h1 { margin-bottom: 20px; font-size: 4.5rem; line-height: 1.05; }
h2 { margin-bottom: 8px; font-size: 1.5rem; line-height: 1.2; }
.page-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { height: 84px; padding: 0 max(20px, calc((100vw - 1120px) / 2)); display: flex; align-items: center; justify-content: space-between; color: white; border-bottom: 1px solid rgba(255,255,255,.15); background: var(--navy-dark); }
.brand { display: inline-flex; gap: 16px; align-items: center; color: white; font-weight: 700; text-decoration: none; }
.brand-logo { width: auto; height: 66px; display: block; }
.brand-name { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.28); }
nav { display: flex; gap: 28px; align-items: center; }
nav a { padding: 30px 0 27px; color: #c3d1cc; border-bottom: 3px solid transparent; font-size: .9rem; font-weight: 600; text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: white; border-color: #eeb2a8; }
.eyebrow { margin-bottom: 12px; color: var(--red); font-size: .75rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.host-grid { min-height: 600px; padding: 86px 0; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 90px; }
.page-intro > p:not(.eyebrow) { max-width: 460px; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.paper-panel { position: relative; background: var(--white); border: 1px solid #e3e1d8; border-radius: 6px; box-shadow: var(--shadow); }
.prompt-form { padding: 42px; }
.prompt-form::before { content: ""; position: absolute; width: 95px; height: 24px; top: -13px; left: calc(50% - 48px); background: rgba(218, 203, 167, .78); transform: rotate(-1.5deg); }
.form-heading, .link-panel > div:first-child { display: flex; gap: 18px; align-items: flex-start; }
.form-heading { padding-bottom: 28px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.form-heading p, .link-panel p { margin: 0; color: var(--muted); }
.step-number { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: var(--navy); background: #dce7f2; border-radius: 50%; font-size: .75rem; font-weight: 700; }
label { display: block; margin-bottom: 8px; color: #33403d; font-size: .86rem; font-weight: 700; }
input, textarea, select { width: 100%; color: var(--ink); background: #fbfaf6; border: 1px solid #c9cbc4; border-radius: 4px; outline: none; }
input, select { min-height: 48px; padding: 0 14px; }
textarea { padding: 15px; line-height: 1.55; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(40,84,127,.14); }
::placeholder { color: #929b96; }
.form-footer, .label-line, .session-actions, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.form-footer { margin-top: 18px; }
.character-count, .privacy-note { color: var(--muted); font-size: .78rem; }
.button { min-height: 46px; padding: 0 20px; display: inline-flex; justify-content: center; align-items: center; gap: 12px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-weight: 700; text-decoration: none; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--navy); }
.button.primary:hover { background: var(--navy-dark); }
.button.quiet { background: transparent; border-color: #bfc3bc; }
.button.light { color: var(--navy-dark); background: white; }
.button.full { width: 100%; }
.button.compact { min-height: 38px; padding: 0 13px; font-size: .78rem; }
.alert { padding: 12px 14px; margin-bottom: 18px; border-radius: 4px; font-size: .88rem; line-height: 1.5; }
.alert.error { color: #7d2d24; background: #f8e5e0; border-left: 3px solid var(--red); }
.recent-band { padding: 64px 0 80px; background: #e9edf2; border-top: 1px solid #d8dee7; }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { font-size: 1.9rem; }
.text-link { color: var(--navy); font-size: .9rem; font-weight: 700; }
.recent-list { border-top: 1px solid #ccd6e1; }
.prompt-row { min-height: 104px; padding: 18px 0; display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 24px; border-bottom: 1px solid #ccd6e1; }
.date-tile { width: 58px; height: 62px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: var(--navy-dark); background: var(--white); border-radius: 3px; box-shadow: 0 3px 9px rgba(20,35,55,.08); }
.date-tile strong { font-family: "Literata", Georgia, serif; font-size: 1.5rem; line-height: 1; }
.date-tile span { margin-top: 5px; font-size: .65rem; }
.prompt-row h3 { margin: 0 0 6px; font-family: "Literata", Georgia, serif; font-size: 1.05rem; }
.prompt-row p { margin: 0; color: var(--muted); font-size: .8rem; }
.session-page { position: relative; padding: 86px 0 100px; }
.session-page > h1 { font-size: 4.2rem; }
.session-page blockquote { max-width: 900px; margin: 34px 0 60px; padding: 8px 0 8px 28px; border-left: 4px solid var(--red); font-family: "Literata", Georgia, serif; font-size: 2.25rem; line-height: 1.4; }
.success-stamp { position: absolute; top: 75px; right: 20px; padding: 8px 13px; color: var(--navy); border: 2px solid var(--navy); border-radius: 3px; font-weight: 700; text-transform: uppercase; transform: rotate(4deg); }
.link-grid { display: grid; grid-template-columns: 1fr 1fr; }
.link-panel { min-width: 0; padding: 34px; background: white; border: 1px solid var(--line); }
.link-panel:first-child { border-radius: 6px 0 0 6px; }
.link-panel:last-child { border-radius: 0 6px 6px 0; }
.link-panel > p { margin: 20px 0 24px; }
.copy-field { display: grid; grid-template-columns: 1fr auto; }
.copy-field input { border-radius: 4px 0 0 4px; }
.copy-field .button { border-radius: 0 4px 4px 0; }
.dark-panel { color: white; background: var(--navy-dark); border-color: var(--navy-dark); }
.dark-panel .step-number { color: white; background: rgba(255,255,255,.14); }
.dark-panel p, .session-actions span { color: #c5d0dc; }
.session-actions span { font-size: .82rem; }
.response-shell { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 72px 0 100px; }
.response-heading { margin-bottom: 40px; text-align: center; }
.response-heading h1 { font-size: 3.75rem; line-height: 1.18; }
.response-form { padding: 42px; }
.field-group + .field-group { margin-top: 26px; }
.label-line { align-items: baseline; }
.privacy-note { margin: 14px 0 0; text-align: center; }
.centered-state { width: min(600px, calc(100% - 40px)); min-height: calc(100vh - 84px); margin: 0 auto; padding: 80px 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.centered-state h1 { margin-bottom: 16px; font-size: 4rem; }
.centered-state > p:not(.eyebrow) { margin-bottom: 28px; color: var(--muted); }
.state-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.check-mark { width: 62px; height: 62px; margin-bottom: 26px; display: grid; place-items: center; color: white; background: var(--navy); border-radius: 50%; font-size: 1.8rem; }
.error-number { color: #d9d7ce; font-family: "Literata", Georgia, serif; font-size: 6rem; font-weight: 700; line-height: 1; }
.board-page .site-header { color: white; background: var(--navy-dark); border-color: rgba(255,255,255,.15); }
.board-page nav a { color: #c3d1cc; }
.board-page nav a:hover { color: white; }
.board-heading { min-height: 190px; padding: 30px max(24px, calc((100vw - 1400px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 50px; color: white; background: var(--navy-dark); }
.board-title { max-width: 1030px; }
.board-heading h1 { margin: 0; font-size: 3.15rem; line-height: 1.2; }
.board-heading .eyebrow { color: #eeb2a8; }
.live-dot { width: 7px; height: 7px; margin-left: 6px; display: inline-block; background: #78b8e8; border-radius: 50%; box-shadow: 0 0 0 5px rgba(120,184,232,.16); }
.board-meta { min-width: 150px; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 8px; }
.board-meta strong { font-family: "Literata", Georgia, serif; font-size: 2.5rem; }
.board-meta > span { color: #bdcad8; font-size: .8rem; }
.board-meta .button { grid-column: 1 / -1; margin-top: 10px; color: white; border-color: rgba(255,255,255,.4); }
.corkboard { position: relative; min-height: calc(100vh - 264px); padding: 54px max(34px, calc((100vw - 1400px) / 2)); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); grid-auto-rows: minmax(240px, auto); align-items: start; gap: 42px 36px; overflow: hidden; background: #c9874c url("/static/corkboard.png") center / 1000px auto repeat; border: 16px solid #774c30; box-shadow: inset 0 0 24px rgba(50,25,8,.34); }
.sticky-note { position: relative; min-height: 220px; padding: 42px 28px 24px; display: flex; flex-direction: column; justify-content: space-between; color: #27302d; background: #f7df76; box-shadow: 5px 8px 14px rgba(54,31,10,.25); transform-origin: top center; }
.sticky-note::after { content: ""; position: absolute; right: 0; bottom: 0; border: 14px solid rgba(0,0,0,.06); border-right-color: transparent; border-bottom-color: transparent; }
.sticky-note p { margin: 0 0 28px; overflow-wrap: anywhere; font-family: "Literata", Georgia, serif; font-size: 1.35rem; line-height: 1.45; }
.sticky-note footer { padding-top: 12px; border-top: 1px solid rgba(20,40,35,.18); font-size: .83rem; font-weight: 700; }
.note-pin, .pin { position: absolute; width: 14px; height: 14px; top: 13px; left: calc(50% - 7px); background: #b13e33; border: 2px solid #8e2c24; border-radius: 50%; box-shadow: 1px 3px 3px rgba(0,0,0,.3); }
.color-1 { background: #b9d7ed; }
.color-2 { background: #f3b4a7; }
.color-3 { background: #c8d6ed; }
.color-4 { background: #efe3c4; }
.tilt-0 { transform: rotate(-1.1deg); }
.tilt-1 { transform: rotate(.8deg); }
.tilt-2 { transform: rotate(-.4deg); }
.tilt-3 { transform: rotate(1.3deg); }
.is-new { animation: note-in .45s cubic-bezier(.2,.8,.3,1.2) both; }
@keyframes note-in { from { opacity: 0; transform: translateY(-18px) scale(.96); } }
.empty-board { position: absolute; width: min(380px, calc(100% - 50px)); min-height: 180px; top: 70px; left: 50%; padding: 42px 32px 25px; text-align: center; background: #f5f0df; box-shadow: 4px 7px 12px rgba(54,31,10,.24); transform: translateX(-50%) rotate(-.4deg); }
.empty-board .pin { top: 14px; }
.empty-board h2 { margin-top: 12px; }
.empty-board p { color: var(--muted); }
.connection-status { position: fixed; right: 18px; bottom: 18px; padding: 7px 11px; color: white; background: #8b3b32; border-radius: 3px; font-size: .72rem; font-weight: 700; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.connection-status.connected { background: var(--navy); }
.archive-page { padding: 70px 0 100px; }
.page-intro.horizontal { margin-bottom: 42px; display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.page-intro.horizontal h1 { margin: 0; }
.page-intro.horizontal > p { margin-bottom: 8px; }
.filter-bar { padding: 22px; display: grid; grid-template-columns: 1.2fr 1fr auto auto; align-items: end; gap: 14px; background: #e8edf3; border: 1px solid #d5dde7; border-radius: 5px; }
.filter-bar label { margin-bottom: 6px; }
.archive-summary { padding: 28px 0 14px; color: var(--muted); font-size: .85rem; }
.archive-summary strong { color: var(--ink); }
.archive-table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; }
th { padding: 13px 18px; color: var(--muted); background: #f0f1ec; font-size: .7rem; letter-spacing: 0; text-align: left; text-transform: uppercase; }
td { padding: 20px 18px; border-top: 1px solid #e4e4dd; vertical-align: top; font-size: .88rem; }
td:first-child { width: 17%; }
td:nth-child(2) { width: 42%; }
td:nth-child(3) { width: 25%; }
td p { margin: 0; line-height: 1.55; }
td a { color: var(--navy); font-weight: 700; }
td span, td time { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; }
.mobile-question { display: none; }
.empty-archive { min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: white; border: 1px solid var(--line); }
.empty-archive p { color: var(--muted); }
.filing-lines { width: 48px; height: 42px; margin-bottom: 18px; display: block; border-top: 3px solid var(--navy); border-bottom: 3px solid var(--navy); box-shadow: inset 0 3px 0 8px white, inset 0 6px 0 8px var(--navy), inset 0 -3px 0 8px white, inset 0 -6px 0 8px var(--navy); opacity: .6; }

@media (max-width: 800px) {
  h1 { font-size: 3.3rem; }
  .site-header { height: 74px; }
  .brand-name { display: none; }
  .brand-logo { height: 54px; }
  nav { gap: 20px; }
  nav a { padding: 25px 0 22px; }
  .host-grid { padding: 55px 0 70px; grid-template-columns: 1fr; gap: 28px; }
  .page-intro h1 { font-size: 2.8rem; }
  .session-page > h1, .centered-state h1 { font-size: 3.2rem; }
  .session-page blockquote { font-size: 1.7rem; }
  .response-heading h1 { font-size: 3rem; }
  .link-grid { grid-template-columns: 1fr; }
  .link-panel:first-child { border-radius: 6px 6px 0 0; }
  .link-panel:last-child { border-radius: 0 0 6px 6px; }
  .success-stamp { top: 36px; }
  .board-heading { min-height: auto; padding: 24px; align-items: flex-end; }
  .board-heading h1 { font-size: 2.35rem; }
  .board-meta > span { display: none; }
  .board-meta { min-width: 115px; grid-template-columns: 1fr; justify-items: end; }
  .board-meta strong { font-size: 1.8rem; }
  .corkboard { min-height: calc(100vh - 240px); padding: 42px 32px; border-width: 10px; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }
  .page-intro.horizontal { align-items: start; flex-direction: column; gap: 10px; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar > div { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  h1 { font-size: 2.6rem; }
  .page-shell, .response-shell { width: min(100% - 28px, 1120px); }
  .site-header { padding: 0 14px; }
  .prompt-form, .response-form { padding: 28px 22px; }
  .recent-band { padding: 48px 0 60px; }
  .section-heading { align-items: start; flex-direction: column; }
  .prompt-row { grid-template-columns: 52px 1fr; gap: 14px; }
  .prompt-row .button { grid-column: 2; justify-self: start; min-height: 38px; }
  .date-tile { width: 50px; }
  .session-page { padding: 66px 0; }
  .session-page > h1, .centered-state h1 { font-size: 2.6rem; }
  .success-stamp { display: none; }
  .session-page blockquote { margin-bottom: 38px; padding-left: 18px; }
  .session-page blockquote { font-size: 1.4rem; }
  .link-panel { padding: 25px 20px; }
  .copy-field { grid-template-columns: 1fr; gap: 8px; }
  .copy-field input, .copy-field .button { border-radius: 4px; }
  .session-actions { align-items: start; flex-direction: column; }
  .response-shell { padding: 52px 0 70px; }
  .response-heading h1 { font-size: 2.2rem; }
  .state-actions { width: 100%; flex-direction: column; }
  .board-heading { align-items: start; flex-direction: column; gap: 18px; }
  .board-heading h1 { font-size: 1.65rem; }
  .board-meta { width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .board-meta .button { margin: 0; }
  .corkboard { padding: 38px 24px; grid-auto-rows: auto; }
  .sticky-note { min-height: 200px; }
  .archive-page { padding: 50px 0 70px; }
  .filter-bar { grid-template-columns: 1fr; }
  .filter-bar > div { grid-column: auto; }
  .archive-table-wrap { border: 0; background: transparent; overflow: visible; }
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: 18px; margin-bottom: 12px; background: white; border: 1px solid var(--line); border-radius: 4px; }
  td, td:first-child, td:nth-child(2), td:nth-child(3) { width: 100%; padding: 5px 0; border: 0; }
  td::before { content: attr(data-label); margin-right: 8px; color: var(--muted); font-size: .66rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
  td:nth-child(2) { padding: 14px 0; }
  td:nth-child(2)::before { display: block; margin-bottom: 7px; }
  td:nth-child(3) span { display: none; }
  .mobile-question { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
