/* sevensixteen llc · "The Ledger" newspaper look */

/* Self-hosted fonts (OFL), Latin subset */
@font-face { font-family: 'Courier Prime'; src: url(assets/fonts/CourierPrime-Regular.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Courier Prime'; src: url(assets/fonts/CourierPrime-Bold.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Old Standard TT'; src: url(assets/fonts/OldStandard-Regular.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Old Standard TT'; src: url(assets/fonts/OldStandard-Bold.woff2) format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Old Standard TT'; src: url(assets/fonts/OldStandard-Italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #F1ECDF;
  --ink: #1B1A17;
  --accent: #8E2A1B;      /* site accent (kickers, links hover) */
  --ribbon: #C0321F;      /* logo dot, matches brand/logo files */
  --photo: #DCD5C3;
  --muted: #5A554A;

  --font-type: 'Courier Prime', 'Courier New', monospace;
  --font-serif: 'Old Standard TT', Georgia, serif;

  --max: 1200px;
  --gutter: 24px;
  --gap: 32px;            /* column gap, rule sits in the middle */

  /* vertical rhythm */
  --space-xs: 8px;
  --space-s: 16px;
  --space-m: 24px;
  --space-l: 40px;
  --space-xl: 56px;

  --measure: 34em;        /* ~65 characters for body copy */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .headline { text-wrap: balance; }
p { text-wrap: pretty; }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

[hidden] { display: none !important; }

section[id] { scroll-margin-top: var(--space-s); }

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px var(--gutter) 64px;
}

/* Masthead + nav */
.masthead {
  text-align: center;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.wordmark {
  display: inline-block;
  padding: 28px 0 24px;
  line-height: 0;
}
.wordmark img { display: block; width: clamp(240px, 46vw, 520px); height: auto; }

.nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 40px;
  padding: 6px 0; border-top: 4px double var(--ink);
  font-family: var(--font-type); font-size: 15px; line-height: 1; text-transform: uppercase; letter-spacing: 2px;
}
.nav a { text-decoration: none; padding: 12px 4px; }

/* Kicker / section label */
.kicker {
  margin: 0;
  font-family: var(--font-type); font-size: 13px; line-height: 1.4; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent);
}
.kicker--ink { color: var(--ink); }

h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4.5vw, 48px); line-height: 1.1; font-weight: 700;
}

/* Hero */
.lead {
  padding: var(--space-xl) 0 var(--space-l);
  border-bottom: 1px solid var(--ink);
  text-align: center;
}
.lead h1 {
  margin: var(--space-s) auto 0; max-width: 14em;
  font-size: clamp(34px, 6.4vw, 76px); line-height: 1.04; font-weight: 700;
}
.lead h1 .line { display: block; }
.lead-text {
  margin: var(--space-m) auto 0; max-width: 32em;
  font-size: 20px; line-height: 1.55; font-style: italic; text-wrap: balance;
}
.actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 40px;
  margin-top: var(--space-s);
}

/* Sections */
.section { border-bottom: 1px solid var(--ink); }

.section-head {
  padding: var(--space-xl) 0 var(--space-l);
  border-bottom: 1px solid var(--ink);
  text-align: center;
}
.section-head p:not(.kicker) {
  margin: var(--space-s) auto 0; max-width: var(--measure);
  font-size: 19px; font-style: italic; text-wrap: balance;
}

/* About: newspaper deck, head left, copy right */
.about {
  display: grid; grid-template-columns: 5fr 7fr;
  padding: var(--space-xl) 0;
}
.about-head { padding-right: var(--gap); border-right: 1px solid var(--ink); }
.about-head h2 { max-width: 9em; }
.about-head h2 .line { display: block; }
.about-body { padding-left: var(--gap); }
.about-body p { max-width: var(--measure); }
.about-body p { margin: 0; font-size: 19px; }
.about-body p + p { margin-top: var(--space-s); }

/* Two-column blocks */
.stories { display: grid; grid-template-columns: 1fr 1fr; }
.story { min-width: 0; padding: var(--space-l) 0 var(--space-l); display: flex; flex-direction: column; align-items: flex-start; }
.story > * { max-width: 100%; }
.story > .window { align-self: stretch; }
.story:first-child { padding-right: var(--gap); border-right: 1px solid var(--ink); }
.story:last-child { padding-left: var(--gap); }
.story > :last-child { margin-bottom: 0; }

.story-name {
  margin: 0;
  font-family: var(--font-type); font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: 1px;
}
.story-name + .kicker { margin-top: 6px; }
.headline { margin: var(--space-s) 0 0; font-size: 34px; line-height: 1.12; font-weight: 700; }

.story p:not(.kicker):not(.headline) { margin: var(--space-s) 0 0; max-width: var(--measure); }
.story .kicker + p:not(.headline) { margin-top: var(--space-m); }

.more {
  display: inline-block; padding: 12px 0;
  font-family: var(--font-type); font-size: 16px; line-height: 1.3;
}
.story :has(+ .more) { margin-bottom: var(--space-m); }
.story .more { margin-top: auto; margin-bottom: -12px; }

/* Brand site preview: a browser window in ink */
.window {
  display: block; margin-top: var(--space-m);
  border: 1px solid var(--ink); background: var(--ink);
  text-decoration: none; color: var(--paper);
  transition: transform .2s ease, box-shadow .2s ease;
}
.window-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 12px; border-bottom: 1px solid var(--ink);
  background: var(--paper); color: var(--ink);
  font-family: var(--font-type); font-size: 12px; line-height: 1; letter-spacing: 1px;
}
.window-dots, .window-dots::before, .window-dots::after {
  width: 8px; height: 8px; border: 1px solid var(--ink); border-radius: 50%;
}
.window-dots { position: relative; margin-left: 28px; flex: none; }
.window-dots::before, .window-dots::after { content: ""; position: absolute; top: -1px; }
.window-dots::before { left: -29px; background: var(--ribbon); border-color: var(--ribbon); }
.window-dots::after { left: -15px; }
.window-url {
  flex: 1; min-width: 0; padding: 4px 10px;
  border: 1px solid var(--ink); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.window img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.window:hover { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
.story:has(.more:hover) .window, .story:has(.more:focus-visible) .window { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .window { transition: none; }
}

/* Contact */
.classifieds {
  display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap);
  align-items: start;
  padding: var(--space-xl) 0;
  border-bottom: 4px double var(--ink);
}
.ad p:not(.kicker) { margin: var(--space-s) 0 0; max-width: 30em; font-size: 21px; line-height: 1.5; }
.card {
  margin-top: 6px;
  border: 1px solid var(--ink); padding: 12px 20px;
  font-family: var(--font-type); font-size: 16px; line-height: 1.4;
}
.card-email { margin: 0; padding-bottom: 6px; border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
.card-email a { font-weight: 700; }
.card-links { list-style: none; margin: 0; padding: 0; }
.card-links a, .card-email a { display: inline-block; padding: 10px 0; }

/* Footer */
.footer {
  padding-top: var(--space-m); text-align: center;
  font-family: var(--font-type); font-size: 13px; line-height: 1.5; letter-spacing: 1px;
}
.footer p { margin: 0; }
.footer .footer-name { font-size: 16px; font-weight: 700; }
.footer-name + p { margin-top: 4px; }
.footer-links {
  list-style: none; margin: var(--space-xs) 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px;
}
.footer-links a { display: inline-block; padding: 10px 2px; }

/* Tablet: single column */
@media (max-width: 900px) {
  :root { --space-xl: 44px; --space-l: 32px; }
  .about { grid-template-columns: 1fr; }
  .about-head { padding-right: 0; border-right: 0; }
  .about-head h2 { max-width: none; }
  .about-body { padding-left: 0; margin-top: var(--space-m); }
  .stories { grid-template-columns: 1fr; }
  .story:first-child { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--ink); }
  .story:last-child { padding-left: 0; }
  .classifieds { grid-template-columns: 1fr; gap: var(--space-m); }
  .card { justify-self: start; min-width: 260px; margin-top: 0; }
}

/* Phone */
@media (max-width: 520px) {
  :root { --gutter: 16px; --space-xl: 36px; --space-l: 28px; }
  body { font-size: 17px; }
  .page { padding: 20px var(--gutter) 48px; }
  .wordmark { padding: 22px 0 18px; }
  .nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 4px 0; font-size: 14px; letter-spacing: 1.5px; }
  .lead-text { font-size: 18px; }
  .actions { flex-direction: column; align-items: center; gap: 0; margin-top: var(--space-xs); }
  .section-head p:not(.kicker), .about-body p { font-size: 18px; }
  .headline { font-size: 28px; }
  .ad p:not(.kicker) { font-size: 19px; }
  .card { justify-self: stretch; min-width: 0; }
  .footer-links { flex-direction: column; align-items: center; gap: 0; }
  .footer-links a { padding: 8px 2px; }
}
