/* Westark Data - landing page. Editorial paper-and-ink theme (self-contained). */

:root {
  --paper: #f6f1e7;
  --paper2: #eee7da;
  --ink: #171717;
  --body: #2a2926;
  --muted: #5f5b53;
  --navy: #223a5e;
  --rule: #cfc6b7;
  --max: 1180px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; transition: color .2s ease, background-color .2s ease; }
a:hover { color: var(--navy); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 50; background: var(--ink); color: var(--paper); padding: 11px 18px; font-size: 14px; }
.skip-link:focus { left: 12px; top: 12px; color: var(--paper); }

.label, .meta { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(246,241,231,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.navin { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { font-size: 12px; letter-spacing: .19em; font-weight: 700; }
.navlinks { display: flex; gap: 26px; align-items: center; font-size: 14px; }
.navlinks a.ext { border-left: 1px solid var(--rule); padding-left: 26px; color: var(--muted); }
.navlinks a.navcta { background: var(--ink); color: var(--paper); padding: 8px 16px; border-radius: 2px; }
.navlinks a.navcta:hover { background: var(--navy); color: var(--paper); }
.menu { display: none; background: none; border: 0; padding: 8px 0; font: inherit; color: inherit; text-transform: uppercase; letter-spacing: .13em; font-size: 12px; cursor: pointer; }
.mobile { display: none; border-top: 1px solid var(--rule); }
.mobile.open { display: block; }
.mobile a { display: block; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.mobile a:last-child { border-bottom: 0; }

/* Underlined read-more links */
.under { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: #7d8da5; }
.under::after { content: "\2192"; display: inline-block; margin-left: 8px; text-decoration: none; opacity: .6; transition: transform .2s ease, opacity .2s ease; }
.under:hover::after { opacity: 1; transform: translateX(3px); }

/* Hero */
.hero { padding: 92px 0 64px; text-align: center; }
.hero h1 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(40px, 6.4vw, 74px); max-width: 17ch; margin: 22px auto 0; text-wrap: balance; }
.lede { font-size: 18px; line-height: 1.75; max-width: 650px; color: var(--body); margin: 30px 0 0; }
.hero .lede { margin-inline: auto; }
.heroid { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 32px; font-size: 14px; }

/* Sections */
.section { border-top: 1px solid var(--rule); padding: 68px 0; }
.section > .label, .section > h2 { text-align: center; }
.section h2 { font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.1; margin: 0; }
.section > .label + h2 { margin-top: 14px; }

/* Portrait */
.angle { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.angle-img { margin: 0; }
.angle-img img { width: 100%; height: auto; border: 1px solid var(--rule); }
.angle-copy h2 { margin-top: 14px; font-size: clamp(36px, 4.6vw, 52px); letter-spacing: -.02em; text-wrap: balance; }
.angle-copy .lede { margin: 24px 0 0; }
.topics { list-style: none; padding: 0; margin: 30px 0 28px; border-top: 1px solid var(--rule); }
.topics li { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.topics li span { font-family: var(--sans); font-size: 11px; letter-spacing: .13em; color: var(--muted); padding-top: 5px; }

/* Writing rows */
.rows { margin-top: 38px; border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 170px 1.1fr 1.6fr; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: start; transition: background-color .2s ease, padding .2s ease; }
.row h3 { font-family: var(--serif); font-size: 26px; line-height: 1.18; margin: 0; font-weight: 400; }
.row p { margin: 0; color: #393734; font-size: 16px; line-height: 1.65; }
.row .meta { line-height: 1.9; }
.row .meta .tag { display: block; color: var(--navy); }
.more { margin: 26px 0 0; font-size: 14px; text-align: center; }

/* Contact box */
.box { border: 1px solid var(--rule); padding: 48px 38px; text-align: center; }
.box h2 { margin-top: 14px; }
.box .lede { margin-inline: auto; }
.box .actions { margin-top: 26px; }

/* Footer */
.footer { margin-top: 12px; border-top: 1px solid var(--rule); }
.footin { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 52px 0; }
.footer .tag { font-family: var(--serif); font-size: 22px; margin: 10px 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 14px 0 0; }
.footer li { margin: 7px 0; font-size: 14px; }
.copyright { border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); padding: 18px 0; }

@media (hover: hover) {
  .row:hover { background: var(--paper2); padding-inline: 14px; }
  .row:hover h3 { color: var(--navy); }
}

@media (max-width: 800px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .navlinks { display: none; }
  .menu { display: block; }
  .hero { padding: 62px 0 48px; }
  .hero h1 { font-size: clamp(32px, 8vw, 42px); max-width: none; }
  .lede { font-size: 17px; }
  .section { padding: 52px 0; }
  .section h2 { font-size: 32px; }
  .angle { grid-template-columns: 1fr; gap: 28px; }
  .angle-img { max-width: 320px; margin-inline: auto; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .row h3 { font-size: 23px; }
  .box { padding: 36px 22px; }
  .footin { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Section drawings: white paper blends into the cream page */
.illus { margin: 44px 0 0; }
.illus img { width: 100%; max-width: 820px; height: auto; margin-inline: auto; mix-blend-mode: multiply; }
.box .illus { margin-top: 32px; }
@media (max-width: 800px) { .illus { margin-top: 32px; } }
