/* Armagh I redesign demo — static mock-up, not the live site */
:root {
  --red: #e21836;
  --red-dark: #c0102c;
  --ink: #141416;
  --ink-2: #2c2e31;
  --muted: #5b6168;
  --line: #e4dfd6;
  --paper: #f6f3ed;
  --card: #ffffff;
  --footer: #1b2321;
  --existing: #0b6b4f;
  --unrendered: #8a4b00;
  --suggested: #8b2e9b;
  --direct: #1b4f8a;
  --taboola: #4a5560;
  --shadow: 0 10px 30px rgba(20, 20, 22, 0.08);
  --radius: 14px;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --header-h: 72px;
  --demo-h: 46px;
  --max: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); letter-spacing: -0.02em; line-height: 1.18; margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Demo bar */
.demo-bar {
  position: sticky; top: 0; z-index: 80;
  height: var(--demo-h);
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center;
}
.demo-bar .wrap {
  display: flex; align-items: center; gap: 16px;
  justify-content: space-between;
  font-size: 0.875rem;
}
.demo-bar strong { font-weight: 700; }
.demo-bar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.demo-bar a:hover { color: #ffd7dc; }
.demo-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.toggle {
  display: flex; align-items: center; gap: 8px;
  background: #2a2c2f; border: 1px solid #444; color: #fff;
  border-radius: 999px; padding: 5px 10px 5px 6px; cursor: pointer;
}
.toggle:hover { border-color: #888; }
.toggle .switch {
  width: 34px; height: 20px; border-radius: 999px;
  background: #555; position: relative; transition: background .2s;
}
.toggle .switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform .2s;
}
body.ads-on .toggle .switch { background: var(--red); }
body.ads-on .toggle .switch::after { transform: translateX(14px); }

/* Header */
.site-header {
  position: sticky; top: var(--demo-h); z-index: 70;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: 0 8px 24px rgba(20,20,22,.08); }
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}
.menu-btn {
  display: none;
  width: 42px; height: 42px; border: 0; background: transparent;
  cursor: pointer; border-radius: 8px;
}
.menu-btn:hover, .menu-btn:focus-visible { background: var(--paper); }
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 1px;
  position: relative;
}
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0;
}
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }

.logo {
  display: flex; align-items: baseline;
  font-family: "Arial Black", "Arial", sans-serif;
  font-style: italic; font-weight: 900;
  font-size: 1.85rem; letter-spacing: -0.04em;
  color: var(--ink) !important; line-height: 1;
  padding: 8px 0;
}
.logo span { color: var(--red); }
.logo:hover { opacity: 0.85; }

.utility {
  display: flex; align-items: center; gap: 8px; justify-content: flex-end;
}
.utility a, .utility .ghost {
  font-size: 0.92rem; font-weight: 600;
  padding: 8px 12px; border-radius: 999px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff !important;
  font-weight: 700; border-radius: 999px;
  padding: 9px 16px; border: 0; cursor: pointer;
}
.btn:hover { background: var(--red-dark); color: #fff !important; }
.btn-ghost {
  background: transparent; color: var(--ink) !important;
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink) !important; background: var(--paper); }

.nav-row {
  border-top: 1px solid var(--line);
  background: #fff;
}
.nav-row .wrap {
  display: flex; align-items: center; gap: 4px;
  overflow-x: auto; min-height: 46px;
}
.nav-row a {
  font-size: 0.92rem; font-weight: 650; padding: 10px 11px;
  white-space: nowrap; border-radius: 8px;
  color: var(--ink-2);
}
.nav-row a:hover, .nav-row a[aria-current="page"] { color: var(--red); background: #fdecee; }
.nav-row a.ext { color: var(--muted); }

/* Mobile drawer */
.drawer {
  display: none;
  position: fixed; inset: calc(var(--demo-h) + var(--header-h)) 0 0 0;
  background: rgba(20,20,22,.45); z-index: 60;
}
body.menu-open .drawer { display: block; }
.drawer-panel {
  background: #fff; width: min(360px, 90vw); height: 100%;
  padding: 20px; overflow: auto;
  box-shadow: var(--shadow);
}
.drawer a { display: block; padding: 11px 8px; border-bottom: 1px solid var(--line); font-weight: 650; }
.drawer .group { margin: 18px 0 6px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Ad slots */
.ad-slot {
  margin: 16px auto;
  display: flex; justify-content: center;
}
.ad-box {
  position: relative;
  width: var(--ad-w, 300px);
  height: var(--ad-h, 250px);
  max-width: 100%;
  background:
    repeating-linear-gradient(-45deg, #f3f1ec, #f3f1ec 10px, #eceae4 10px, #eceae4 20px);
  border: 1px dashed #c8c3b8;
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  color: #6b6a66;
  padding: 10px;
  overflow: hidden;
}
.ad-box .kicker {
  font-size: 0.68rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 4px;
}
.ad-box strong { font-family: var(--sans); font-size: 0.92rem; color: #3a3a38; letter-spacing: 0; }
.ad-box .meta, .ad-box .id {
  font-size: 0.72rem; color: #7a7872; margin-top: 2px;
}
.ad-box .note { font-size: 0.7rem; margin-top: 6px; max-width: 90%; }
.ad-slot.house .ad-box { padding: 0; background: #fff; border-style: solid; }
.ad-slot.house .ad-box img { width: 100%; height: 100%; object-fit: cover; }
.ad-slot.house .ad-label {
  display: none;
  position: absolute; top: 6px; left: 6px;
  background: var(--direct); color: #fff;
  font-size: 0.65rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 6px; border-radius: 4px;
}

body.ads-on .ad-box {
  outline: 3px solid var(--existing);
  outline-offset: 3px;
  background: #e8f6f0;
  border-color: var(--existing);
}
body.ads-on .ad-existing .kicker { color: var(--existing); }
body.ads-on .ad-unrendered .ad-box { outline-color: var(--unrendered); background: #fff4e5; border-color: var(--unrendered); }
body.ads-on .ad-unrendered .kicker { color: var(--unrendered); }
body.ads-on .ad-suggested .ad-box { outline-color: var(--suggested); background: #f6eaf8; border-color: var(--suggested); }
body.ads-on .ad-suggested .kicker { color: var(--suggested); }
body.ads-on .ad-direct .ad-box, body.ads-on .ad-slot.house .ad-box { outline-color: var(--direct); }
body.ads-on .ad-slot.house .ad-label { display: inline-block; }
body.ads-on .ad-taboola .ad-box { outline-color: var(--taboola); background: #eef1f4; }

.ad-leader { --ad-w: 970px; --ad-h: 250px; }
.ad-leader-foot { --ad-w: 970px; --ad-h: 90px; }
.ad-mpu { --ad-w: 300px; --ad-h: 250px; }
.ad-half { --ad-w: 300px; --ad-h: 600px; }
.ad-local { --ad-w: 930px; --ad-h: 240px; }
.ad-video { --ad-w: 100%; --ad-h: 80px; }
.ad-anchor {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  margin: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(20,20,22,.08);
}
.ad-anchor .ad-box { --ad-w: 320px; --ad-h: 50px; height: 50px; border-radius: 6px; padding: 4px 8px; }
.ad-anchor .ad-box .id { display: none; }
.ad-anchor .ad-box .meta { font-size: 0.68rem; }
.ad-anchor .ad-box strong { font-size: 0.8rem; }

.sticky-rail { position: sticky; top: calc(var(--demo-h) + var(--header-h) + 16px); }

/* Page shells */
.page { padding: 22px 0 80px; }
.kicker-cat {
  display: inline-block;
  color: var(--red); font-weight: 800;
  font-size: 0.78rem; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 8px;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
  transition: transform .18s, box-shadow .18s;
}
a.card:hover, .card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.card img, .thumb { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: #ddd; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.12rem; }
.card .meta { color: var(--muted); font-size: 0.82rem; }
.badge {
  display: inline-block; font-size: 0.68rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  background: #fdecee; color: var(--red);
  padding: 2px 7px; border-radius: 999px; width: max-content;
}
.badge.member { background: #111; color: #fff; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 300px;
  gap: 22px;
  align-items: start;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  display: flex; flex-direction: column;
}
.feature:hover { color: inherit; box-shadow: var(--shadow); }
.feature img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.feature .body { padding: 22px; }
.feature h1 { font-size: clamp(1.7rem, 2.6vw, 2.55rem); margin: 0 0 10px; }
.feature h1:hover { color: var(--red); }
.feature p { color: var(--ink-2); font-size: 1.05rem; }

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-item {
  display: grid; grid-template-columns: 118px 1fr; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; color: inherit;
  min-height: 88px;
}
.stack-item:hover { color: inherit; box-shadow: var(--shadow); }
.stack-item img { width: 118px; height: 100%; object-fit: cover; aspect-ratio: auto; }
.stack-item .body { padding: 10px 12px 10px 0; }
.stack-item h3 { font-size: 0.98rem; }

.rail { display: flex; flex-direction: column; gap: 16px; }
.most-read {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px 8px;
}
.most-read h2 { font-family: var(--sans); font-size: 0.82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.proposed { font-size: .68rem; font-weight: 800; color: var(--suggested); letter-spacing: .06em; text-transform: uppercase; margin-left: 6px; display: none; }
body.ads-on .proposed { display: inline; }
.most-read ol { margin: 0; padding: 0; list-style: none; counter-reset: mr; }
.most-read li { counter-increment: mr; border-top: 1px solid var(--line); }
.most-read a { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 11px 0; color: inherit; }
.most-read a::before { content: counter(mr); font-family: var(--serif); font-weight: 700; color: var(--red); font-size: 1.15rem; }
.most-read a:hover { color: var(--red); }

/* Sections */
.section { margin-top: 42px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 3px solid var(--ink); margin-bottom: 18px; padding-bottom: 8px;
}
.section-head h2 { font-size: 1.55rem; }
.section-head a { font-weight: 700; font-size: 0.92rem; color: var(--red); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split {
  display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start;
}
.news-with-ad {
  display: grid; grid-template-columns: 1fr 1fr 300px; gap: 16px; align-items: start;
}
.news-with-ad .span-2 { grid-column: 1 / 3; }

.cta-band {
  margin-top: 42px;
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 28px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.cta-band h2 { font-size: 1.6rem; }
.cta-band p { color: #d7d4ce; margin: 6px 0 0; }
.cta-band .btn { background: #fff; color: var(--ink) !important; }
.cta-band .btn:hover { background: #fdecee; color: var(--red) !important; }

.obit-list { display: flex; flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.obit-list a { display: block; padding: 14px 16px; border-top: 1px solid var(--line); }
.obit-list a:first-child { border-top: 0; }
.obit-list a:hover { background: var(--paper); color: var(--ink); }
.jobs a.card .meta { color: var(--direct); font-weight: 700; }

/* Article */
.article-layout {
  display: grid; grid-template-columns: minmax(0, 720px) 300px;
  gap: 40px; align-items: start;
  justify-content: center;
}
.article-body { font-size: 1.15rem; line-height: 1.7; }
.article-body p { margin: 0 0 1.15em; }
.lede { font-size: 1.28rem; color: var(--ink-2); font-weight: 500; }
.byline { color: var(--muted); font-size: 0.95rem; margin: 12px 0 20px; }
.byline strong { color: var(--ink); }
.hero-art { border-radius: var(--radius); overflow: hidden; margin: 0 0 24px; }
.hero-art img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.hero-art figcaption { font-size: 0.82rem; color: var(--muted); padding: 8px 2px 0; }
.related { margin-top: 36px; }

/* Membership */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
}
.plan.featured { border: 2px solid var(--red); box-shadow: var(--shadow); position: relative; }
.plan .tag {
  position: absolute; top: -11px; left: 20px;
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px;
}
.plan h3 { font-family: var(--sans); font-size: 1.05rem; }
.price { font-family: var(--serif); font-size: 2.4rem; letter-spacing: -0.03em; }
.price span { font-size: 1rem; color: var(--muted); font-family: var(--sans); }
.plan ul { margin: 0 0 16px; padding: 0; list-style: none; flex: 1; }
.plan li { padding: 6px 0 6px 20px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--existing); font-weight: 800; }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.benefit h3 { font-size: 1.15rem; margin-bottom: 8px; }
.demo-note { font-size: 0.85rem; color: var(--muted); margin-top: 16px; }

/* Advertise */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat b { display: block; font-family: var(--serif); font-size: 1.85rem; }
.stat span { color: var(--muted); font-size: 0.88rem; }
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.package { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.package h3 { margin-bottom: 8px; }
.contact-card {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 28px; margin-top: 28px;
}
.contact-card a { color: #fff; text-decoration: underline; }
.contact-form { display: grid; gap: 10px; margin-top: 16px; }
.contact-form input, .contact-form textarea, .contact-form select {
  padding: 10px 12px; border-radius: 8px; border: 1px solid #3a3a3a;
  background: #111; color: #fff;
}
.source { font-size: 0.8rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--footer); color: #d5d2cc; padding: 42px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h2, .site-footer h3 { color: #fff; font-family: var(--sans); font-size: 0.85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: #d5d2cc; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }
.legal { border-top: 1px solid #31403c; margin-top: 28px; padding-top: 16px; font-size: 0.8rem; color: #9aa09c; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Category listing */
.cat-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px; align-items: start; }
.story-row {
  display: grid; grid-template-columns: 260px 1fr; gap: 18px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 16px; color: inherit;
}
.story-row:hover { color: inherit; box-shadow: var(--shadow); }
.story-row img { width: 100%; height: 100%; min-height: 160px; object-fit: cover; }
.story-row .body { padding: 16px 16px 16px 0; }
.story-row h2 { font-size: 1.35rem; }

/* Responsive ads + layout */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1.3fr 1fr; }
  .hero .rail { grid-column: 1 / -1; display: grid; grid-template-columns: 300px 1fr; gap: 16px; }
  .news-with-ad { grid-template-columns: 1fr 1fr; }
  .news-with-ad .ad-slot { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .article-layout, .cat-layout, .split { grid-template-columns: 1fr; }
  .sticky-rail { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav-row { display: none; }
  .utility .hide-sm { display: none; }
  .header-main { grid-template-columns: auto 1fr auto; }
  .logo { font-size: 1.45rem; justify-self: center; }
  .hero, .hero .rail, .news-with-ad, .grid-3, .grid-2, .plans, .benefits, .stats, .packages { grid-template-columns: 1fr; }
  .story-row { grid-template-columns: 1fr; }
  .story-row .body { padding: 14px 16px 16px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .ad-leader, .ad-leader-foot, .ad-local { --ad-w: 100%; }
  .ad-leader { --ad-h: 100px; }
  .ad-leader .ad-box, .ad-local .ad-box { height: 100px; }
  .ad-leader-foot { --ad-h: 50px; }
  .ad-leader-foot .ad-box { height: 50px; }
  .ad-half { --ad-h: 250px; }
  .ad-half .ad-box { height: 250px; }
  .ad-anchor { display: flex; }
  body { padding-bottom: 70px; }
  .demo-bar { font-size: 0.75rem; }
  .demo-bar .wrap { gap: 8px; }
  .live-link { display: none; }
  .article-body { font-size: 1.08rem; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (min-width: 761px) {
  /* Desktop header banner reserves 250px to avoid CLS */
  .ad-leader .ad-box { min-height: 250px; }
}
