:root {
  --ink: #182127;
  --muted: #627078;
  --paper: #f5f7f6;
  --surface: #ffffff;
  --surface-2: #e9efec;
  --line: #d5dfda;
  --brand: #146c58;
  --brand-dark: #0d493d;
  --accent: #e0784f;
  --blue: #3e6d9e;
  --gold: #b98618;
  --max: 1160px;
  --shadow: 0 12px 30px rgba(24, 33, 39, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 200; top: 8px; left: 8px; padding: 10px 14px; transform: translateY(-160%); background: var(--ink); color: #fff; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(245,247,246,.96); backdrop-filter: blur(12px); }
.nav-wrap { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--ink); font-size: 21px; font-weight: 850; line-height: 1; }
.brand::before { content: "PA"; display: grid; width: 32px; height: 32px; place-items: center; border: 2px solid var(--brand); color: var(--brand); font-size: 11px; font-weight: 900; letter-spacing: .5px; }
.brand small { display: inline; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a { padding: 9px 11px; border-radius: 5px; color: #43515a; font-size: 14px; font-weight: 760; }
.main-nav a:hover, .main-nav a:focus-visible, .main-nav a.active { background: var(--surface-2); color: var(--brand-dark); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { min-height: 40px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--surface); }
.menu-toggle { display: none; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: 5px; background: var(--brand); color: #fff; font-weight: 780; cursor: pointer; }
.button:hover { background: var(--brand-dark); }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button.secondary:hover { background: var(--surface-2); }
.button.small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
.ticker { border-bottom: 1px solid var(--line); background: var(--surface); }
.ticker-inner { display: flex; min-height: 39px; align-items: center; gap: 16px; overflow: hidden; white-space: nowrap; font-size: 13px; }
.ticker-label { padding-right: 14px; border-right: 1px solid var(--line); color: var(--brand); font-weight: 850; text-transform: uppercase; }
.ticker a { color: var(--muted); }
.ticker a:hover { color: var(--ink); }
.hero { padding: 68px 0 56px; border-bottom: 1px solid var(--line); background: var(--surface); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 56px; align-items: end; }
.hero-kicker, .eyebrow { margin: 0 0 12px; color: var(--brand); font-size: 12px; font-weight: 850; letter-spacing: 1.2px; text-transform: uppercase; }
.hero h1, .page-hero h1, .content-page h1 { max-width: 820px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(40px, 6vw, 76px); font-weight: 600; line-height: 1.02; }
.hero-summary { max-width: 690px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-note { padding: 22px 0 4px 24px; border-left: 3px solid var(--accent); }
.hero-note strong { display: block; margin-bottom: 6px; font-family: Georgia, serif; font-size: 21px; }
.hero-note p { margin: 0; color: var(--muted); font-size: 14px; }
.metric-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 20px; border: 1px solid var(--line); background: var(--line); }
.metric { padding: 14px; background: var(--surface); }
.metric strong { display: block; font-size: 24px; line-height: 1; }
.metric span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .8px; }
.section { padding: 66px 0; }
.section.compact { padding: 44px 0; }
.section.alt { background: var(--surface-2); }
.section.dark { background: var(--ink); color: #fff; }
.section-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.section.dark .section-header { border-color: #3d4a50; }
.section-title { margin: 0; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 42px); font-weight: 600; line-height: 1.1; }
.section-subtitle { max-width: 560px; margin: 7px 0 0; color: var(--muted); }
.section.dark .section-subtitle { color: #c5ced1; }
.text-link { display: inline-flex; align-items: center; color: var(--brand); font-size: 14px; font-weight: 800; white-space: nowrap; }
.section.dark .text-link { color: #80d0b7; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.feature-board { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1px; border: 1px solid var(--line); background: var(--line); }
.feature-panel, .signal-panel { padding: 28px; background: var(--surface); }
.feature-panel h2 { max-width: 680px; margin: 13px 0 10px; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 48px); line-height: 1.08; }
.feature-panel p { max-width: 650px; margin: 0; color: var(--muted); }
.story-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 19px; color: #718089; font-size: 12px; }
.signal-panel { border-left: 1px solid var(--line); }
.signal-panel h3 { margin: 0 0 12px; font-family: Georgia, serif; font-size: 24px; }
.quick-list { border-top: 3px solid var(--ink); }
.quick-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.quick-item .num { color: var(--accent); font-family: Georgia, serif; font-size: 26px; }
.quick-item h3 { margin: 6px 0 4px; font-size: 16px; line-height: 1.35; }
.quick-item p { margin: 0; color: var(--muted); font-size: 13px; }
.tag { display: inline-flex; min-height: 25px; align-items: center; padding: 4px 8px; border-radius: 4px; background: #dceee7; color: var(--brand-dark); font-size: 11px; font-weight: 850; letter-spacing: .5px; text-transform: uppercase; }
.tag.blue { background: #e2ebf7; color: #315d88; }
.tag.orange { background: #fbe3d8; color: #9c421f; }
.tag.yellow { background: #fff0bd; color: #745600; }
.brief-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.brief-card { min-width: 0; padding: 21px; border: 1px solid var(--line); background: var(--surface); }
.brief-card h3 { margin: 11px 0 7px; font-family: Georgia, serif; font-size: 23px; line-height: 1.18; }
.brief-card p { margin: 0; color: var(--muted); font-size: 14px; }
.brief-card .story-meta { margin-top: 18px; }
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool-card { display: flex; min-width: 0; min-height: 225px; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--tool-color, var(--brand)); background: var(--surface); }
.tool-code { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 30px; border: 1px solid currentColor; color: var(--tool-color, var(--brand)); font-size: 13px; font-weight: 900; }
.tool-card h3 { margin: 0 0 6px; font-size: 17px; }
.tool-card p { margin: 0; color: var(--muted); font-size: 13px; }
.tool-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 12px; }
.guide-band { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); background: #dce9e4; }
.guide-index { display: grid; min-height: 300px; padding: 34px; place-items: center; border-right: 1px solid var(--line); color: var(--brand); font-family: Georgia, serif; font-size: clamp(80px, 15vw, 170px); line-height: 1; }
.guide-content { padding: 50px 8%; }
.guide-content h2 { max-width: 560px; margin: 0 0 12px; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; }
.guide-content p { max-width: 560px; margin: 0 0 24px; color: #4b5d59; }
.community-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 25px 0; border: 1px solid var(--line); background: var(--line); }
.value-item { padding: 20px; background: var(--surface); }
.section.dark .value-item { background: #202c31; }
.value-item h3 { margin: 0 0 6px; font-size: 16px; }
.value-item p { margin: 0; color: var(--muted); font-size: 14px; }
.section.dark .value-item p { color: #c5ced1; }
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 30px; border: 1px solid var(--line); background: var(--surface); }
.newsletter h2 { margin: 0 0 6px; font-family: Georgia, serif; font-size: 32px; line-height: 1.1; }
.newsletter p { margin: 0; color: var(--muted); }
.form-row { display: flex; gap: 8px; }
.input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c6d2cc; border-radius: 5px; background: var(--surface); color: var(--ink); }
.input:focus { outline: 2px solid #8ec9b5; outline-offset: 1px; }
.form-note, .form-message, .disclosure, .updated { font-size: 13px; }
.form-note { margin-top: 8px !important; }
.form-message { min-height: 1.4em; margin-top: 10px !important; }
.form-message.success { color: var(--brand-dark); font-weight: 700; }
.page-hero { padding: 58px 0 48px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-hero p:not(.eyebrow) { max-width: 680px; margin: 19px 0 0; color: var(--muted); font-size: 18px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-btn, .category-list button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 750; cursor: pointer; }
.filter-btn:hover, .filter-btn.active, .category-list button:hover, .category-list button.active { border-color: var(--brand); background: #e4f1ec; color: var(--brand-dark); }
.search-box { position: relative; min-width: 220px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.story-card { min-width: 0; padding: 21px; border: 1px solid var(--line); background: var(--surface); }
.story-card h3 { margin: 11px 0 7px; font-family: Georgia, serif; font-size: 23px; line-height: 1.18; }
.story-card p { margin: 0; color: var(--muted); font-size: 14px; }
.directory-layout { display: grid; grid-template-columns: 210px 1fr; gap: 28px; }
.sidebar { align-self: start; padding: 18px; border: 1px solid var(--line); background: var(--surface); }
.sidebar h2 { margin: 0 0 13px; font-size: 16px; }
.category-list { display: grid; gap: 7px; }
.category-list button { text-align: left; }
.directory-tools { grid-template-columns: repeat(3, 1fr); }
.empty-state { display: none; padding: 35px 0; color: var(--muted); text-align: center; }
.hidden { display: none !important; }
.content-page { padding: 66px 0 84px; }
.content-page article > h2 { margin: 42px 0 10px; font-family: Georgia, serif; font-size: 29px; line-height: 1.15; }
.content-page article > h3 { margin: 28px 0 8px; font-size: 19px; }
.article-body > h2 { margin: 42px 0 10px; font-family: Georgia, serif; font-size: 29px; line-height: 1.15; }
.article-body > h3 { margin: 28px 0 8px; font-size: 19px; }
.content-page article > p, .content-page article > ul, .content-page article > ol { color: #3f4b51; }
.content-page article > p { margin: 0 0 17px; }
.content-page article > ul, .content-page article > ol { padding-left: 22px; }
.content-page a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 44px; }
.article-header { padding: 55px 0 35px; border-bottom: 1px solid var(--line); background: var(--surface); }
.article-header h1 { max-width: 850px; margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 6vw, 68px); line-height: 1.03; }
.article-header .dek { max-width: 720px; margin: 18px 0 0; color: var(--muted); font-size: 18px; }
.article-body { padding-top: 38px; }
.article-body blockquote { margin: 30px 0; padding: 18px 22px; border-left: 3px solid var(--accent); background: var(--surface-2); font-family: Georgia, serif; font-size: 22px; line-height: 1.35; }
.article-aside { padding-top: 40px; }
.aside-box { padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.aside-box h3 { margin: 0 0 10px; font-family: Georgia, serif; font-size: 22px; }
.aside-box p { margin: 0; color: var(--muted); font-size: 14px; }
.contact-form { display: grid; gap: 8px; margin-top: 18px; }
.contact-form label { margin-top: 9px; font-size: 13px; font-weight: 750; }
.site-footer { padding: 42px 0 20px; border-top: 1px solid var(--line); background: #e8eeeb; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 26px; }
.footer-brand p { max-width: 260px; color: var(--muted); font-size: 14px; }
.footer-col { display: grid; align-content: start; gap: 8px; }
.footer-col h2 { margin: 0 0 5px; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }
.footer-col a { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--brand-dark); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 15px; border-top: 1px solid var(--line); color: #718089; font-size: 12px; }
@media (max-width: 900px) {
  .main-nav a { padding-inline: 8px; font-size: 13px; }
  .hero-grid, .feature-board, .community-grid, .article-layout { grid-template-columns: 1fr; gap: 28px; }
  .signal-panel { border-top: 1px solid var(--line); border-left: 0; }
  .brief-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .directory-tools { grid-template-columns: repeat(2, 1fr); }
  .guide-band { grid-template-columns: 1fr; }
  .guide-index { min-height: 180px; border-right: 0; border-bottom: 1px solid var(--line); }
  .article-aside { padding-top: 0; }
}
@media (max-width: 680px) {
  .container, .narrow { width: min(100% - 28px, var(--max)); }
  .nav-wrap { min-height: 64px; }
  .brand { font-size: 18px; }
  .brand small { display: none; }
  .nav-actions .button.small { display: none; }
  .menu-toggle { display: inline-block; }
  .main-nav { position: absolute; top: 64px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; padding: 10px 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .ticker-inner { gap: 10px; font-size: 12px; }
  .hero { padding: 44px 0 40px; }
  .hero h1, .page-hero h1, .content-page h1 { font-size: clamp(37px, 12vw, 54px); }
  .hero-summary, .page-hero p:not(.eyebrow) { font-size: 16px; }
  .section { padding: 48px 0; }
  .section-header { display: block; }
  .section-header .text-link { margin-top: 13px; }
  .brief-grid, .tools-grid, .archive-grid, .directory-tools { grid-template-columns: 1fr; }
  .feature-panel, .signal-panel { padding: 22px; }
  .guide-content { padding: 36px 22px; }
  .values-grid { grid-template-columns: 1fr; }
  .newsletter { display: block; padding: 22px; }
  .newsletter > :last-child { margin-top: 21px; }
  .form-row { display: grid; grid-template-columns: 1fr; }
  .directory-layout { grid-template-columns: 1fr; gap: 18px; }
  .sidebar { padding: 15px; }
  .category-list { grid-template-columns: 1fr 1fr; }
  .search-box { margin-top: 18px; }
  .article-header { padding: 42px 0 28px; }
  .article-header h1 { font-size: clamp(36px, 11vw, 52px); }
  .article-body { padding-top: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-top: 5px; }
}
