/* Half Mile Media: company site */
:root {
  --ink: #121417; --ink-2: #1c1f23; --paper: #f4f4f2; --white: #fff;
  --lane: #f2b705; --grey: #6a6f74; --grey-d: #9aa1a8; --line: #dcdcd8; --line-d: #2c3036;
  /* Newsroom colors, unchanged from each newsroom's brand kit */
  --inkster-ink: #030304; --inkster-orange: #E4572E;
  --ypsi-green: #0B5A35; --ypsi-pine: #0F1E17; --ypsi-sprout: #8FD3A9;
  --wide: "Archivo", system-ui, sans-serif;
  --max: 1180px;
  /* Theme tokens: light */
  color-scheme: light;
  --bg: #f4f4f2; --fg: #121417; --muted: #6a6f74; --text-2: #3d4146;
  --line: #dcdcd8; --card: #fff; --dash: #c4c4bf; --band: #121417;
  --btn-ink-bg: #121417; --btn-ink-fg: #fff; --btn-ink-hover: #2a2e33;
  --room-edge: transparent;
}
/* Theme tokens: dark. Used when the visitor picks Dark, or picks System and their device is set to dark. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1d21; --fg: #ecede9; --muted: #9aa1a8; --text-2: #c3c7cb;
  --line: #30353b; --card: #22262b; --dash: #3d434a; --band: #0f1113;
  --btn-ink-bg: #ecede9; --btn-ink-fg: #121417; --btn-ink-hover: #ffffff;
  --room-edge: rgba(255,255,255,.09);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --bg: #1a1d21; --fg: #ecede9; --muted: #9aa1a8; --text-2: #c3c7cb;
  --line: #30353b; --card: #22262b; --dash: #3d434a; --band: #0f1113;
  --btn-ink-bg: #ecede9; --btn-ink-fg: #121417; --btn-ink-hover: #ffffff;
  --room-edge: rgba(255,255,255,.09);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--wide); }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--lane); color: var(--ink); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--lane); outline-offset: 3px; }

/* Display type: the company voice */
.display { font-family: var(--wide); font-weight: 850; font-stretch: 125%; text-transform: uppercase; letter-spacing: .005em; line-height: 1.02; margin: 0; }
h2.display { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h2.display::after { content: ""; display: block; width: 50%; max-width: 5.5em; height: .16em; background: var(--lane); margin-top: .35em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 58ch; margin: 1.1rem 0 0; }
.on-dark .lede { color: var(--grey-d); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font: 700 .98rem/1 var(--wide); text-decoration: none; padding: 15px 22px; border-radius: 4px; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-lane { background: var(--lane); color: var(--ink); }
.btn-lane:hover { background: #ffc61a; }
.btn-ghost { border-color: currentColor; }
.btn-ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-ink { background: var(--btn-ink-bg); color: var(--btn-ink-fg); }
.btn-ink:hover { background: var(--btn-ink-hover); }

/* Header */
.top { background: var(--band); color: var(--white); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.top .brand img { height: 30px; width: auto; }
.top nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.top nav a { text-decoration: none; color: var(--grey-d); }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--white); }
.top nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--lane); padding-bottom: 6px; }

/* Theme switch: Light / Dark / System */
.top .wrap > nav { margin-left: auto; }
.theme { display: inline-flex; flex: none; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.theme button { appearance: none; border: 0; background: transparent; color: var(--grey-d); width: 34px; height: 30px; border-radius: 999px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme button:hover { color: var(--white); }
.theme button[aria-pressed="true"] { background: var(--lane); color: var(--ink); }
.theme svg { width: 17px; height: 17px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.hero { background: var(--band); color: var(--white); padding-top: clamp(56px, 9vw, 120px); padding-bottom: 72px; overflow: hidden; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5.6rem); max-width: 12.5em; }
.hero .lede { font-size: 1.2rem; max-width: 52ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }

/* The half-mile ruler */
.ruler { margin-top: clamp(56px, 8vw, 96px); position: relative; }
.ruler .track { position: relative; height: 18px; border-bottom: 2px solid var(--line-d); }
.ruler .fill { position: absolute; left: 0; bottom: -2px; height: 18px; width: 50%; background: var(--lane); transform-origin: left; animation: fill 1.4s cubic-bezier(.2,.7,.1,1) .25s both; }
.ruler .ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; pointer-events: none; }
.ruler .ticks i { width: 2px; background: var(--line-d); height: 10px; align-self: flex-end; }
.ruler .ticks i:nth-child(4n+1) { height: 18px; }
.ruler .labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: .85rem; color: var(--grey-d); font-variant-numeric: tabular-nums; }
.ruler .labels span:nth-child(3) { color: var(--lane); font-weight: 700; }
.ruler .note { margin: 18px 0 0; font-size: .95rem; color: var(--grey-d); max-width: 50ch; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Sections */
section.block { padding-top: clamp(72px, 9vw, 120px); padding-bottom: 8px; }
.block-head { display: grid; grid-template-columns: 1fr; gap: 0; margin-bottom: 44px; }

/* Newsrooms */
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.room { box-shadow: inset 0 0 0 1px var(--room-edge); border-radius: 6px; color: var(--white); display: flex; flex-direction: column; min-height: 420px; overflow: hidden; position: relative; }
.room .inner { padding: 44px 40px 0; flex: 1; }
.room .logo { height: clamp(78px, 9vw, 116px); width: auto; max-width: 100%; }
.room .tag { font-size: 1.25rem; line-height: 1.35; font-weight: 600; margin: 34px 0 6px; max-width: 22ch; }
.room .where { margin: 0; opacity: .75; font-size: .95rem; }
.room .links { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 22px 40px 26px; margin-top: 36px; border-top: 1px solid rgba(255,255,255,.16); font-size: .95rem; }
.room .links a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.room .links a:first-child { font-weight: 700; }
.room.inkster { background: var(--inkster-ink); }
.room.inkster .links a { text-decoration-color: var(--inkster-orange); }
.room.inkster .tag { font-weight: 800; letter-spacing: -.01em; }
.room.ypsi { background: var(--ypsi-green); }
.room.ypsi .links a { text-decoration-color: var(--ypsi-sprout); }
.room.ypsi .tag { font-family: "Schibsted Grotesk", var(--wide); font-weight: 700; letter-spacing: -.015em; }
.next { grid-column: 1 / -1; border: 2px dashed var(--dash); border-radius: 6px; padding: 30px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.next h3 { margin: 0 0 4px; font-size: 1.25rem; }
.next p { margin: 0; color: var(--muted); max-width: 60ch; }

/* How we work */
.how { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.how .block-head { position: sticky; top: 32px; margin: 0; }
.principles { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fg); }
.principles li { padding: 30px 0 32px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 13rem 1fr; gap: 28px; }
.principles h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.principles p { margin: 0; color: var(--text-2); }

/* Advertise band */
.band { background: var(--band); color: var(--white); margin-top: clamp(72px, 9vw, 120px); padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.band .grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.products { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--lane); }
.products li { display: grid; grid-template-columns: 14rem 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line-d); }
.products b { font-weight: 700; }
.products span { color: var(--grey-d); }
.band .actions { margin-top: 2rem; display: flex; gap: 14px; flex-wrap: wrap; }

/* Readers */
.readers { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
.support-links { display: grid; gap: 12px; }
.support-links a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; color: var(--white); padding: 20px 22px; border-radius: 6px; font-weight: 700; }
.support-links a span { font-weight: 400; opacity: .8; font-size: .92rem; }
.support-links a.inkster { background: var(--inkster-ink); box-shadow: inset 5px 0 0 var(--inkster-orange), inset 0 0 0 1px var(--room-edge); }
.support-links a.ypsi { background: var(--ypsi-green); box-shadow: inset 5px 0 0 var(--ypsi-sprout); }
.support-links a:hover { filter: brightness(1.15); }

/* Footer */
.foot { background: var(--band); color: var(--grey-d); margin-top: clamp(72px, 9vw, 120px); padding-top: 64px; padding-bottom: 48px; font-size: .95rem; }
.foot .cols { display: grid; grid-template-columns: 5fr 3fr 3fr; gap: 40px; }
.foot img { height: 34px; width: auto; }
.foot h3 { color: var(--white); font-size: .95rem; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--grey-d); text-decoration: none; }
.foot a:hover { color: var(--white); }
.foot .legal { border-top: 1px solid var(--line-d); margin-top: 48px; padding-top: 22px; font-size: .85rem; }

/* Advertise page */
.page-hero { background: var(--band); color: var(--white); padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.4rem); max-width: 14em; }
.page-hero h1::after { content: ""; display: block; width: 50%; max-width: 4em; height: .14em; background: var(--lane); margin-top: .3em; }
.offer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--fg); }
.offer article { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); }
.offer article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.offer article:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.offer h3 { margin: 0 0 8px; font-size: 1.15rem; }
.offer p { margin: 0; color: var(--text-2); }
.offer .fit { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: s; border-top: 2px solid var(--fg); padding-top: 18px; }
.steps li::before { content: counter(s); font: 850 2.2rem/1 var(--wide); font-stretch: 125%; display: block; margin-bottom: 12px; }
.steps h3 { margin: 0 0 6px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--text-2); }
.promise { background: var(--card); border-left: 6px solid var(--lane); padding: 30px 34px; border-radius: 0 6px 6px 0; max-width: 72ch; }
.promise h3 { margin: 0 0 8px; font-size: 1.2rem; }
.promise p { margin: 0; color: var(--text-2); }
.direct { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.direct a { text-decoration: none; padding: 12px 16px; border-radius: 4px; color: var(--white); font-weight: 600; font-size: .95rem; }
.direct a.inkster { background: var(--inkster-ink); box-shadow: inset 0 0 0 1px var(--room-edge); }
.direct a.ypsi { background: var(--ypsi-green); }
.cta-band { background: var(--lane); color: var(--ink); margin-top: clamp(72px, 9vw, 120px); padding-top: 64px; padding-bottom: 64px; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
.cta-band p { margin: 8px 0 0; font-size: 1.1rem; }
.cta-band h2.display::after { background: var(--ink); }
.cta-band .btn-ink { background: var(--ink); color: var(--white); }
.cta-band .btn-ink:hover { background: #2a2e33; }

/* Responsive */
@media (max-width: 960px) {
  .how, .band .grid, .readers { grid-template-columns: 1fr; gap: 36px; }
  .how .block-head { position: static; }
  .offer { grid-template-columns: 1fr 1fr; }
  .offer article, .offer article + article { padding-left: 0; padding-right: 20px; border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .foot .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .top .wrap { flex-wrap: wrap; row-gap: 14px; padding-top: 16px; padding-bottom: 0; }
  .top .brand img { height: 24px; }
  .top .wrap > nav { order: 3; flex: 0 0 calc(100% + 40px); margin: 0 -20px; padding: 0 20px; border-top: 1px solid var(--line-d); overflow-x: auto; }
  .top nav ul { gap: 12px; justify-content: space-between; font-size: .92rem; }
  .top nav li { flex: none; }
  .top nav a { display: inline-block; padding: 13px 0; }
  .top nav a[aria-current="page"] { padding-bottom: 10px; }
  .theme { margin-left: auto; }
  .theme button { width: 38px; height: 34px; }
  .rooms { grid-template-columns: 1fr; }
  .room { min-height: 0; }
  .room .inner { padding: 32px 26px 0; }
  .room .links { padding: 18px 26px 22px; }
  .next { padding: 24px 22px; }
  .principles li, .products li { grid-template-columns: 1fr; gap: 6px; }
  .offer { grid-template-columns: 1fr; }
  .ruler .labels span:nth-child(2), .ruler .labels span:nth-child(4) { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .ruler .fill { animation: none; }
  .btn { transition: none; }
}
