/*
Theme Name: Unmarked Desk
Theme URI: https://unmarkeddesk.com
Author: Unmarked Desk
Description: A restrained, evidence-first newsroom theme for investigative and public-records reporting.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: unmarked-desk
*/

:root {
  --paper: #f3f0e8;
  --paper-deep: #e8e3d7;
  --ink: #151719;
  --muted: #62645f;
  --rule: #b9b4a9;
  --signal: #9b241f;
  --white: #fffdf8;
  --measure: 760px;
  --wide: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--signal); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.site-shell { width: min(100% - 40px, var(--wide)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 9999; background: var(--ink); color: white; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

.utility-bar { background: var(--ink); color: #f7f3ea; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.utility-bar p { margin: 0; }
.utility-tag { color: #d9d2c5; }

.site-header { border-bottom: 1px solid var(--ink); background: var(--paper); }
.masthead { padding: 28px 0 22px; text-align: center; }
.brand { display: inline-block; text-decoration: none; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 7vw, 74px); font-weight: 900; letter-spacing: -.045em; line-height: .9; }
.brand-kicker { margin: 12px 0 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.primary-nav { border-top: 1px solid var(--rule); }
.nav-inner { min-height: 52px; display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.primary-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 0; padding: 0; list-style: none; }
.primary-nav a { text-decoration: none; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.hero { padding: clamp(48px, 6.5vw, 84px) 0 46px; border-bottom: 1px solid var(--ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .7fr); gap: clamp(42px, 7vw, 92px); align-items: center; }
.eyebrow, .section-label { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--signal); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before, .section-label::before { content: ''; width: 28px; height: 3px; background: currentColor; }
.hero h1 { max-width: 900px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(52px, 7.4vw, 96px); line-height: .94; letter-spacing: -.052em; }
.hero-summary { max-width: 740px; margin: 30px 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(20px, 2.1vw, 29px); line-height: 1.35; }
.hero-note { padding: 20px 0 4px 24px; border-left: 1px solid var(--ink); }
.hero-note strong { display: block; margin-bottom: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.hero-note p { margin: 0; color: #50524e; font-size: 15px; line-height: 1.58; }

.newsroom-strip { border-bottom: 1px solid var(--rule); background: var(--white); }
.newsroom-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.newsroom-item { min-height: 116px; padding: 22px 28px; border-right: 1px solid var(--rule); }
.newsroom-item:first-child { padding-left: 0; }
.newsroom-item:last-child { border-right: 0; }
.newsroom-item span { display: block; margin-bottom: 7px; color: var(--signal); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.newsroom-item p { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 17px; line-height: 1.4; }

.section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 34px; }
.section-head h2 { max-width: 820px; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 5vw, 62px); line-height: 1; letter-spacing: -.035em; }
.section-head > p { max-width: 400px; margin: 0; color: var(--muted); font-size: 14px; }

.story-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; border-top: 1px solid var(--ink); }
.story-card { position: relative; padding: 24px 26px 12px; border-right: 1px solid var(--rule); }
.story-card:first-child { padding-left: 0; }
.story-card:last-child { border-right: 0; }
.story-meta { margin: 0 0 14px; color: var(--signal); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.story-card h3 { margin: 0 0 14px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(24px, 2.7vw, 38px); line-height: 1.08; letter-spacing: -.025em; }
.story-card:not(:first-child) h3 { font-size: clamp(22px, 2vw, 29px); }
.story-card h3 a { text-decoration: none; }
.story-dek { color: var(--muted); font-size: 14px; line-height: 1.55; }
.story-date { margin-top: 18px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.empty-newsroom { grid-column: 1/-1; padding: 34px 0; }
.empty-newsroom h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 30px; }
.empty-newsroom p { max-width: 660px; margin: 0; color: var(--muted); }

.beat-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ink); }
.beat { min-height: 210px; padding: 28px 34px 26px 0; border-bottom: 1px solid var(--rule); }
.beat:nth-child(odd) { border-right: 1px solid var(--rule); }
.beat:nth-child(even) { padding-left: 34px; }
.beat-number { color: var(--signal); font-family: Georgia, serif; font-size: 18px; }
.beat h3 { margin: 38px 0 8px; font-family: Georgia, serif; font-size: 28px; line-height: 1.1; }
.beat p { max-width: 470px; margin: 0; color: var(--muted); font-size: 14px; }

.standard-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(45px, 8vw, 100px); padding: clamp(45px, 7vw, 80px); background: var(--ink); color: var(--white); }
.standard-panel h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 66px); line-height: 1; letter-spacing: -.04em; }
.standard-panel .section-label { color: #d56a62; }
.standard-list { margin: 0; padding: 0; list-style: none; }
.standard-list li { display: grid; grid-template-columns: 122px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid #454748; }
.standard-list strong { color: #e57d74; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.standard-list span { color: #ddd8ce; font-family: Georgia, serif; font-size: 18px; line-height: 1.4; }

.page-hero { padding: 66px 0 46px; border-bottom: 1px solid var(--ink); }
.page-hero h1 { max-width: 950px; margin: 0; font-family: Georgia, serif; font-size: clamp(48px, 7vw, 88px); line-height: .98; letter-spacing: -.045em; }
.page-hero .lede { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-family: Georgia, serif; font-size: 22px; }
.content-wrap { width: min(100% - 40px, var(--measure)); margin: 60px auto 90px; }
.entry-content > * { max-width: var(--measure); }
.entry-content h2 { margin-top: 2.2em; font-family: Georgia, serif; font-size: 34px; line-height: 1.1; }
.entry-content h3 { margin-top: 1.8em; font-size: 20px; }
.entry-content blockquote { margin: 2em 0; padding: 8px 0 8px 28px; border-left: 4px solid var(--signal); font-family: Georgia, serif; font-size: 23px; }
.entry-content a { color: var(--signal); }
.entry-content hr { margin: 46px 0; border: 0; border-top: 1px solid var(--rule); }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.article-header { width: min(100% - 40px, 980px); margin: 64px auto 38px; }
.article-header h1 { margin: 12px 0 24px; font-family: Georgia, serif; font-size: clamp(44px, 6.5vw, 82px); line-height: .98; letter-spacing: -.045em; }
.article-dek { max-width: 800px; color: var(--muted); font-family: Georgia, serif; font-size: 23px; }
.article-byline { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.evidence-note { margin: 34px 0; padding: 24px; border: 1px solid var(--ink); background: var(--white); }
.evidence-note strong { display: block; margin-bottom: 8px; color: var(--signal); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

.site-footer { padding: 54px 0 34px; background: var(--ink); color: #eee9df; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; }
.footer-brand { margin: 0 0 14px; font-family: Georgia, serif; font-size: 38px; font-weight: 900; letter-spacing: -.04em; }
.site-footer p { max-width: 460px; color: #bdb9b0; font-size: 13px; }
.site-footer h2 { margin: 0 0 15px; color: #eee9df; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #eee9df; font-size: 13px; }
.footer-base { display: flex; justify-content: space-between; gap: 30px; margin-top: 48px; padding-top: 22px; border-top: 1px solid #404243; color: #918e87; font-size: 11px; }

.pagination { margin: 42px 0; }
.not-found { padding: 100px 0; text-align: center; }
.not-found h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(70px, 15vw, 170px); line-height: 1; }

@media (max-width: 850px) {
  .site-shell { width: 100%; padding-inline: max(20px, env(safe-area-inset-left)); }
  .utility-tag { display: none; }
  .hero-grid, .standard-panel, .footer-grid { grid-template-columns: 1fr; }
  .hero-note { max-width: 520px; }
  .newsroom-grid { grid-template-columns: 1fr; }
  .newsroom-item { min-height: 0; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .newsroom-item:last-child { border-bottom: 0; }
  .story-grid { grid-template-columns: 1fr; }
  .story-card, .story-card:first-child { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .section-head { display: block; }
  .section-head > p { margin-top: 18px; }
}

@media (max-width: 650px) {
  body { font-size: 16px; }
  .site-shell { width: 100%; max-width: 100%; margin-inline: 0; padding-left: 20px; padding-right: 20px; }
  .site-shell > *, .hero-grid > *, .newsroom-grid > * { min-width: 0; max-width: 100%; }
  .utility-inner { justify-content: center; text-align: center; }
  .masthead { padding: 22px 0 18px; }
  .masthead .brand { display: block; width: 100%; font-size: clamp(36px, 12.2vw, 52px); white-space: normal; overflow-wrap: normal; }
  .nav-inner { justify-content: flex-start; min-height: 48px; }
  .menu-toggle { display: block; }
  .primary-nav ul { display: none; width: 100%; padding: 8px 0 18px; }
  .primary-nav.is-open ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--rule); }
  .primary-nav a { display: block; padding: 12px 4px; }
  .hero { padding: 54px 0 42px; }
  .hero h1 { max-width: 100%; font-size: clamp(44px, 13.8vw, 62px); overflow-wrap: normal; }
  .hero-summary { font-size: 20px; }
  .hero-summary, .hero-note p, .newsroom-item p { max-width: 100%; overflow-wrap: anywhere; }
  .beat-grid { grid-template-columns: 1fr; }
  .beat, .beat:nth-child(even) { min-height: 0; padding: 24px 0; border-right: 0; }
  .beat h3 { margin-top: 22px; }
  .standard-panel { margin-inline: -20px; padding: 45px 20px; }
  .standard-list li { grid-template-columns: 1fr; gap: 7px; }
  .footer-base { display: block; }
  .page-hero h1, .article-header h1 { overflow-wrap: anywhere; }
}
