:root {
  --paper: #f3eddf;
  --paper-deep: #e8dcc7;
  --ink: #27261f;
  --muted: #6c675c;
  --moss: #59624a;
  --rust: #a05236;
  --mustard: #bd8c3d;
  --line: rgba(39, 38, 31, 0.23);
  --shadow: 0 18px 45px rgba(39, 38, 31, 0.08);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.65;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(39,38,31,.16) .45px, transparent .6px);
  background-size: 7px 7px;
  mix-blend-mode: multiply;
  z-index: 100;
}

::selection { background: var(--mustard); color: #fff; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.section-shell { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.section-pad { padding-block: 88px; }

.site-header {
  width: min(1240px, calc(100% - 28px));
  margin: 16px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(243, 237, 223, 0.94);
  position: sticky;
  top: 12px;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; letter-spacing: .12em;
}
.brand strong { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: 14px; }
.brand small { display: block; color: var(--muted); font-style: italic; font-size: 12px; }

.site-nav { display: flex; gap: 20px; align-items: center; }
.site-nav a { text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font: 700 11px/1.3 Arial, sans-serif; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 10px; }

.hero { min-height: 76vh; padding-block: 94px 72px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: center; }
.hero h1 { font-size: clamp(54px, 7vw, 96px); line-height: .98; letter-spacing: -.045em; margin: 16px 0 26px; max-width: 880px; font-weight: 500; }
.hero-lede { font-size: clamp(19px, 2vw, 24px); max-width: 820px; color: #3f3d35; }
.hero-manifesto { font-style: italic; font-size: 22px; margin: 28px 0; }
.eyebrow { font: 700 11px/1.4 Arial, sans-serif; letter-spacing: .19em; text-transform: uppercase; color: var(--rust); margin: 0 0 12px; }

.bureau-card {
  position: relative;
  padding: 36px 32px 42px;
  border: 1px solid var(--ink);
  background: #eee4d1;
  box-shadow: var(--shadow);
  transform: rotate(1.3deg);
}
.bureau-card::before, .bureau-card::after { content: ''; position: absolute; height: 1px; background: var(--line); left: 18px; right: 18px; }
.bureau-card::before { top: 18px; }
.bureau-card::after { bottom: 18px; }
.seal { width: 122px; height: 122px; border: 3px double var(--ink); border-radius: 50%; display: grid; place-items: center; text-align: center; margin: 0 auto 26px; font: 700 13px/1.3 Arial, sans-serif; letter-spacing: .08em; }
.bureau-label { font: 700 11px/1.4 Arial, sans-serif; letter-spacing: .16em; text-align: center; }
.typed { font: 700 13px/1.6 'Courier New', monospace; letter-spacing: .08em; margin-top: 28px; }
.stamp { width: max-content; padding: 8px 12px; border: 2px solid var(--rust); color: var(--rust); font: 800 17px/1 Arial, sans-serif; letter-spacing: .12em; transform: rotate(-7deg); margin: 28px 0 0 auto; opacity: .83; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 18px; border: 1px solid var(--ink); text-decoration: none; cursor: pointer; text-transform: uppercase; letter-spacing: .1em; font: 700 11px/1.2 Arial, sans-serif; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; border-radius: var(--radius); }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(39,38,31,.12); }
.button.primary { background: var(--ink); color: var(--paper); }
.button.secondary { background: transparent; }
.button.ink { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.section-heading { max-width: 750px; margin-bottom: 36px; }
.section-heading.compact { margin-bottom: 28px; }
.section-heading h2, .submit h2, .about h2, .correspondence-card h2 { margin: 0 0 14px; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; font-weight: 500; letter-spacing: -.025em; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 18px; }

.today { border-top: 1px solid var(--line); }
.assignment-card { background: #eee4d1; border: 1px solid var(--ink); padding: clamp(26px, 5vw, 56px); box-shadow: var(--shadow); position: relative; }
.assignment-card::after { content: 'FORM WW-1000'; position: absolute; top: 18px; right: 18px; font: 700 9px/1 Arial, sans-serif; letter-spacing: .16em; color: var(--muted); }
.assignment-topline { display: flex; align-items: center; gap: 10px; font: 700 10px/1.3 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.status-dot { width: 7px; height: 7px; background: var(--moss); border-radius: 50%; }
.assignment-card h3 { font-size: clamp(38px, 6vw, 72px); line-height: 1.03; font-weight: 500; max-width: 900px; margin: 28px 0 14px; letter-spacing: -.025em; }
.assignment-card > p { max-width: 820px; font-size: 20px; }
.assignment-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); margin: 32px 0 24px; }
.assignment-meta div { padding: 18px 18px 18px 0; }
.assignment-meta div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.assignment-meta dt { font: 700 9px/1.3 Arial, sans-serif; text-transform: uppercase; letter-spacing: .15em; color: var(--muted); }
.assignment-meta dd { margin: 5px 0 0; font-style: italic; }
.department-note { font-size: 16px !important; color: var(--muted); }
.assignment-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.complete-message { min-height: 26px; margin-bottom: 0; color: var(--moss); font-style: italic; }

.wealth { padding-top: 24px; }
.wealth-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.wealth-grid p { margin: 0; padding: 28px; min-height: 130px; display: flex; align-items: end; font-size: 19px; font-style: italic; }
.wealth-grid p:nth-child(n+4) { border-top: 1px solid var(--line); }
.wealth-grid p:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }

.archive { background: #e8dfcd; border-block: 1px solid var(--line); }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.archive-card { background: rgba(243,237,223,.72); border: 1px solid var(--line); padding: 22px; min-height: 210px; display: flex; flex-direction: column; }
.archive-card .day { font: 700 9px/1.3 Arial, sans-serif; letter-spacing: .15em; color: var(--rust); text-transform: uppercase; }
.archive-card h3 { font-size: 24px; line-height: 1.15; margin: 22px 0 10px; font-weight: 500; }
.archive-card p { color: var(--muted); margin: 0 0 20px; }
.archive-card small { margin-top: auto; text-transform: uppercase; letter-spacing: .12em; font: 700 9px/1.3 Arial, sans-serif; color: var(--moss); }

.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: start; }
.submit > div > p:not(.eyebrow), .about-copy p { font-size: 18px; color: #454239; }
.tiny-notice { margin-top: 28px; padding: 18px; border-left: 3px solid var(--mustard); background: rgba(232,220,199,.55); font-style: italic; }
.paper-form { padding: 30px; border: 1px solid var(--line); background: #eee4d1; }
.paper-form label { display: block; margin-bottom: 18px; font-weight: 700; }
.paper-form label span { font-weight: 400; color: var(--muted); font-style: italic; }
input, textarea { width: 100%; margin-top: 6px; padding: 12px 12px; background: rgba(255,255,255,.22); border: 1px solid var(--line); color: var(--ink); outline: none; border-radius: 0; }
input:focus, textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(39,38,31,.08); }
textarea { resize: vertical; }
.check-row { display: flex !important; gap: 10px; align-items: start; font-weight: 400 !important; }
.check-row input { width: auto; margin-top: 6px; }
.form-message { min-height: 24px; color: var(--moss); font-style: italic; margin-bottom: 0; }

.letters { background: var(--ink); color: var(--paper); }
.correspondence-card { display: grid; grid-template-columns: 1fr .85fr; gap: 70px; align-items: center; }
.correspondence-card .eyebrow { color: #d6a867; }
.correspondence-card p:not(.eyebrow) { color: #d7cebf; }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter-form input { margin: 0; background: transparent; color: var(--paper); border-color: rgba(243,237,223,.4); min-height: 46px; }
.newsletter-form input::placeholder { color: #a69f92; }
.newsletter-form .form-message { grid-column: 1 / -1; color: #e6d8bd; }

.about { align-items: center; }
.about-copy p:first-child { font-size: 22px; }

.site-footer { border-top: 1px solid var(--line); padding: 34px 0 20px; position: relative; }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; }
.footer-inner strong { text-transform: uppercase; letter-spacing: .12em; font: 700 12px/1.4 Arial, sans-serif; }
.footer-inner p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.footer-fine { text-align: right; }
.snail-button { background: none; border: none; font: 700 22px/1 'Courier New', monospace; cursor: pointer; transform: rotate(-4deg); padding: 8px 14px; }
.snail-secret { text-align: center; margin: 22px auto 0; width: min(760px, calc(100% - 36px)); padding: 14px; border: 1px dashed var(--rust); color: var(--rust); font: 700 11px/1.5 'Courier New', monospace; letter-spacing: .06em; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .site-nav { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--paper); border: 1px solid var(--line); padding: 18px; flex-direction: column; align-items: flex-start; }
  .site-nav.open { display: flex; }
  .menu-toggle { display: inline-block; }
  .hero, .two-col, .correspondence-card { grid-template-columns: 1fr; gap: 42px; }
  .hero { padding-block: 70px 54px; }
  .bureau-card { max-width: 520px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .wealth-grid { grid-template-columns: repeat(2, 1fr); }
  .wealth-grid p { border-top: 1px solid var(--line); border-left: 0 !important; }
  .wealth-grid p:nth-child(-n+2) { border-top: 0; }
  .wealth-grid p:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-fine { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 620px) {
  .section-shell { width: min(100% - 24px, 1120px); }
  .section-pad { padding-block: 64px; }
  .site-header { width: calc(100% - 16px); top: 8px; margin-top: 8px; padding: 12px; }
  .brand small { display: none; }
  .hero h1 { font-size: clamp(48px, 15vw, 68px); }
  .assignment-card { padding: 24px 18px; }
  .assignment-card::after { display: none; }
  .assignment-meta { grid-template-columns: 1fr; }
  .assignment-meta div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .archive-grid, .wealth-grid { grid-template-columns: 1fr; }
  .wealth-grid p, .wealth-grid p:nth-child(even), .wealth-grid p:nth-child(-n+2) { border-left: 0 !important; border-top: 1px solid var(--line); }
  .wealth-grid p:first-child { border-top: 0; }
  .newsletter-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-fine { text-align: left; }
  .snail-button { justify-self: start; }
}
