/* Lancaster Independent — public site */
:root {
  --bg: #fff; --ink: #121212; --soft: #5c5c5c; --rule: #e4e4e4; --wash: #f6f5f2;
  --accent: #d7263d; --head: 'Fraunces', Georgia, serif;
  --text: 'Newsreader', Georgia, serif; --ui: 'Inter', system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #101011; --ink: #f1efea; --soft: #a3a19b; --rule: #2b2b2d; --wash: #19191b; --accent: #ff5d73; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--ui); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 680px; margin: 0 auto; }

/* header */
.util { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; padding-bottom: 6px; font-size: 12.5px; color: var(--soft); }
.util-links { display: flex; gap: 14px; align-items: center; }
.util-links a:hover { color: var(--ink); }
.pill { border: 1px solid var(--ink); color: var(--ink); border-radius: 99px; padding: 4px 12px; font-weight: 600; }
.pill:hover { background: var(--ink); color: var(--bg) !important; }
.mast { text-align: center; padding-top: 14px; padding-bottom: 18px; }
.wordmark { font-family: var(--head); font-weight: 800; font-size: clamp(34px, 7vw, 68px); letter-spacing: -0.035em; line-height: 1; display: inline-flex; align-items: baseline; gap: .22em; flex-wrap: wrap; justify-content: center; }
.wordmark em { font-weight: 400; font-style: italic; letter-spacing: -0.02em; }
.wordmark.small { font-size: 26px; }
.rose { width: .36em; height: .36em; border-radius: 50%; background: var(--accent); display: inline-block; align-self: center; margin-right: -.04em; }
.tagline { margin-top: 8px; font-family: var(--text); font-style: italic; color: var(--soft); font-size: 15px; }
.sections { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--bg); z-index: 20; }
.sections-in { display: flex; align-items: center; gap: 22px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.sections-in::-webkit-scrollbar { display: none; }
.sections a { font-size: 13.5px; font-weight: 600; padding: 12px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sections a:hover, .sections a.on { border-color: var(--ink); }
.live-link { color: var(--accent); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; animation: pulse 1.8s infinite; vertical-align: middle; }
@keyframes pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.search { margin-left: auto; }
.search input { font: inherit; font-size: 14px; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--ink); padding: 6px 2px; width: 130px; border-radius: 0; }
.search input:focus { outline: none; border-color: var(--ink); }

/* shared bits */
.kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.sample { font: 600 10px/1 var(--ui); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); border: 1px solid var(--rule); border-radius: 4px; padding: 3px 5px; }
.meta { font-size: 12.5px; color: var(--soft); margin-top: 8px; }
.dek { font-family: var(--text); color: var(--soft); font-size: 17px; line-height: 1.4; margin-top: 6px; }
.label { font: 700 12px/1 var(--ui); letter-spacing: .1em; text-transform: uppercase; }
.label.band { border-top: 2px solid var(--ink); padding-top: 12px; margin: 44px 0 20px; }
.label a:hover { color: var(--accent); }
.btn { display: inline-block; font: 600 15px/1 var(--ui); background: var(--ink); color: var(--bg); border: 1px solid var(--ink); border-radius: 99px; padding: 13px 22px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: none; color: var(--ink); border-color: var(--rule); }
.btn.ghost:hover { border-color: var(--ink); background: none; color: var(--ink); }
h1 a:hover, h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* front page */
.top { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 36px; padding-top: 28px; }
.lead-img img, .card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; background: var(--wash); }
.lead-img { display: block; margin-bottom: 18px; }
.lead h1 { font-family: var(--head); font-weight: 700; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -0.025em; }
.lead .dek { font-size: 20px; margin-top: 12px; max-width: 46ch; }
.rail { border-left: 1px solid var(--rule); padding-left: 28px; display: flex; flex-direction: column; gap: 30px; }
.rail-block .label { margin-bottom: 14px; }
.ticker { list-style: none; margin: 0; padding: 0; }
.ticker li { padding: 0 0 14px 16px; border-left: 2px solid var(--rule); position: relative; }
.ticker li::before { content: ''; position: absolute; left: -5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ticker time { font-size: 11.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.ticker p { font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more { font-size: 13px; font-weight: 600; color: var(--soft); }
.more:hover { color: var(--ink); }
.op { padding: 12px 0; border-top: 1px solid var(--rule); }
.op:first-of-type { border-top: 0; padding-top: 0; }
.op h3 { font-family: var(--head); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.2; }
.op .meta { margin-top: 5px; }
.op + .more { display: block; margin-top: 6px; }

.grid { display: grid; gap: 32px 28px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.ruled { border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 28px; }
.card-img { display: block; margin-bottom: 12px; }
.card h3 { font-family: var(--head); font-weight: 600; font-size: 21px; line-height: 1.15; letter-spacing: -0.012em; }
.card .dek { font-size: 15.5px; }
.grid.four .card h3 { font-size: 18px; }
.grid.four .dek { display: none; }

.cta { margin-top: 56px; background: var(--wash); border-radius: 14px; padding: 32px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.cta h2 { font-family: var(--head); font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; }
.cta p { color: var(--soft); margin-top: 6px; max-width: 52ch; }

/* list pages */
.page-head { padding: 36px 0 22px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.page-head h1 { font-family: var(--head); font-size: clamp(34px, 6vw, 54px); letter-spacing: -0.03em; line-height: 1.05; }
.page-head p { color: var(--soft); font-family: var(--text); font-size: 18px; margin-top: 10px; max-width: 62ch; }
.page-head p a, .body a, .empty a, .none a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.list { max-width: 860px; }
.card.row { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.card.row .card-img { order: 2; margin: 0; }
.card.row h3 { font-size: 25px; }
.none, .empty p { color: var(--soft); padding: 28px 0; font-family: var(--text); font-size: 18px; }
.empty { text-align: center; padding: 90px 0; }
.empty h1 { font-family: var(--head); font-size: 40px; letter-spacing: -0.02em; }
.search-big { display: flex; gap: 10px; margin-top: 18px; max-width: 520px; }
.search-big input { flex: 1; min-width: 0; }

/* article */
.story { max-width: 720px; margin: 0 auto; padding-top: 40px; }
.story-head h1 { font-family: var(--head); font-weight: 700; font-size: clamp(32px, 6vw, 54px); line-height: 1.05; letter-spacing: -0.028em; }
.is-opinion .story-head h1 { font-style: italic; font-weight: 500; }
.story-head .dek { font-size: 22px; margin-top: 14px; }
.byline { font-size: 14px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.byline a, .byline b { font-weight: 700; }
.byline a { text-decoration: underline; text-underline-offset: 3px; }
.byline span { color: var(--soft); }
.hero { margin: 28px 0 0; }
.hero img, .hero video { width: 100%; border-radius: 4px; background: var(--wash); }
figcaption { font-size: 13px; color: var(--soft); margin-top: 8px; font-family: var(--ui); }
.embed { position: relative; aspect-ratio: 16 / 9; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 4px; }
.body { font-family: var(--text); font-size: 20px; line-height: 1.62; margin-top: 30px; overflow-wrap: break-word; }
.body p { margin: 0 0 1.15em; }
.body h2, .body h3 { font-family: var(--head); font-size: 27px; line-height: 1.15; letter-spacing: -0.015em; margin: 1.6em 0 .5em; }
.body h3 { font-size: 22px; }
.body blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 3px solid var(--accent); font-style: italic; font-size: 23px; line-height: 1.4; }
.body figure { margin: 1.6em 0; }
.body img { border-radius: 4px; width: 100%; }
.body ul, .body ol { padding-left: 1.2em; margin: 0 0 1.15em; }
.op-note { font: 500 13px/1.4 var(--ui); color: var(--soft); background: var(--wash); padding: 10px 14px; border-radius: 8px; }
.story-foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule); }
.preview-bar { background: var(--accent); color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 10px 16px; position: sticky; top: 0; z-index: 30; }
.preview-bar a { text-decoration: underline; margin-left: 6px; }

/* live */
.feed { list-style: none; margin: 0; padding: 12px 0 0; max-width: 720px; }
.feed li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.feed time { font-size: 12.5px; font-weight: 600; color: var(--accent); padding-top: 4px; }
.feed p { font-family: var(--text); font-size: 19px; line-height: 1.5; white-space: pre-line; }
.feed p.meta { font-family: var(--ui); font-size: 12.5px; }
.feed img { border-radius: 6px; margin-top: 12px; }

/* forms */
.form { display: grid; gap: 18px; padding: 24px 0; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { font-size: 13.5px; font-weight: 600; display: grid; gap: 7px; }
.form small { font-weight: 400; color: var(--soft); }
input, textarea { font: 400 16px/1.45 var(--ui); color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; width: 100%; }
textarea { font-family: var(--text); font-size: 18px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.error { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); padding: 12px 14px; border-radius: 10px; font-weight: 500; font-size: 14.5px; margin-top: 18px; }

/* footer */
.site-foot { margin-top: 72px; border-top: 1px solid var(--ink); padding: 34px 0 30px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.foot-in p { color: var(--soft); margin-top: 8px; font-family: var(--text); font-style: italic; }
.foot-in nav { display: grid; gap: 8px; align-content: start; }
.foot-in nav a { color: var(--soft); }
.foot-in nav a:hover { color: var(--ink); }
.fine { color: var(--soft); font-size: 12.5px; margin-top: 30px; }

@media (max-width: 900px) {
  .top { grid-template-columns: 1fr; gap: 28px; }
  .rail { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
  .grid.three, .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .util-date { font-size: 11.5px; }
  .mast { padding-top: 10px; padding-bottom: 14px; }
  .tagline { display: none; }
  .search { display: none; }
  .sections-in { gap: 18px; }
  .top { padding-top: 18px; }
  .lead-img { margin: 0 -16px 16px; }
  .lead-img img { border-radius: 0; }
  .lead .dek { font-size: 18px; }
  .grid.three, .grid.four { grid-template-columns: 1fr; gap: 0; }
  .grid .card { display: grid; grid-template-columns: minmax(0, 1fr) 108px; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: start; }
  .grid .card:last-child { border-bottom: 0; }
  .grid .card-img { order: 2; margin: 0; }
  .grid .card-img img { aspect-ratio: 1; }
  .grid .card h3, .grid.four .card h3 { font-size: 19px; }
  .grid .dek { display: none; }
  .grid.ruled { margin-top: 24px; padding-top: 6px; }
  .label.band { margin: 30px 0 4px; }
  .card.row { grid-template-columns: minmax(0, 1fr) 108px; gap: 14px; padding: 18px 0; }
  .card.row .card-img img { aspect-ratio: 1; }
  .card.row h3 { font-size: 20px; }
  .card.row .dek { display: none; }
  .cta { flex-direction: column; align-items: flex-start; padding: 24px; margin-top: 36px; }
  .story { padding-top: 24px; }
  .story-head .dek { font-size: 19px; }
  .story .hero { margin-left: -16px; margin-right: -16px; }
  .story .hero img, .story .hero video { border-radius: 0; }
  .story .hero figcaption { padding: 0 16px; }
  .body { font-size: 19px; }
  .feed li { grid-template-columns: 1fr; gap: 6px; }
  .form .two { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > div { grid-column: 1 / -1; }
}
