/* =========================================================================
   HOBEP — shared editorial theme
   One design language, per-niche accent. Tokens mirror hobep.com.
   ========================================================================= */

/* Self-hosted Roboto: no third-party request, so no GDPR problem. */
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-900.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

:root {
  --ink: #111318;
  --ink-2: #4a4f5c;
  --ink-3: #7b8190;
  --paper: #fff;
  --paper-2: #f7f7f9;
  --line: #e6e7ec;
  --accent: #111318;
  --accent-2: #7b8190;
  --r: 12px;
  --shadow: 0 1px 2px rgba(17, 19, 24, .04), 0 8px 24px rgba(17, 19, 24, .06);
  --wrap: 1120px;
  --measure: 704px;
  --sans: Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--ink); }

img, svg, video { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------------------------------------------------------------- network */

.netstrip {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-3);
}
.netstrip-in {
  display: flex; align-items: center; gap: 12px;
  min-height: 36px; padding-top: 6px; padding-bottom: 6px;
  flex-wrap: wrap;
}
.netstrip-mark {
  font-weight: 900; letter-spacing: .14em; font-size: 11.5px; color: var(--ink);
}
.netstrip-mark span { color: var(--accent); }
.netstrip-sep { opacity: .5; }
.netstrip-sites { display: flex; gap: 16px; flex-wrap: wrap; }
.netstrip-sites a { color: var(--ink-3); }
.netstrip-sites a:hover { color: var(--ink); }
.netstrip-lang { margin-left: auto; display: flex; gap: 8px; font-weight: 700; letter-spacing: .06em; }
.netstrip-lang a { color: var(--ink-3); }
.netstrip-lang .is-cur { color: var(--ink); }

/* ---------------------------------------------------------------- masthead */

.masthead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-in {
  display: flex; align-items: center; gap: 26px;
  min-height: 68px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; flex-direction: column; gap: 2px; }
.wordmark {
  font-weight: 900; font-size: 19px; letter-spacing: -.02em; color: var(--ink);
}
.brand-sub { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.custom-logo-link img { max-height: 44px; width: auto; }

.nav-list {
  display: flex; gap: 22px; margin: 0; padding: 0; list-style: none;
  font-size: 14.5px; color: var(--ink-2);
}
.nav-list a { color: inherit; }
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--ink); }
.primary-nav { margin-left: 8px; }

.head-search {
  margin-left: auto; display: flex; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 14px;
  background: var(--paper); min-width: 180px;
}
.head-search input {
  border: 0; outline: 0; background: none; font: inherit; font-size: 14px;
  color: var(--ink); width: 100%; min-width: 0;
}
.head-search button {
  border: 0; background: var(--ink); color: #fff; border-radius: 999px;
  width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer;
}

.menu-toggle {
  display: none; margin-left: auto;
  border: 1px solid var(--line); background: none; border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
  align-items: center; gap: 8px;
}
.menu-toggle-bars {
  width: 14px; height: 10px; display: block; position: relative;
  border-top: 2px solid currentColor; border-bottom: 2px solid currentColor;
}

@media (max-width: 900px) {
  .primary-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav .nav-list { flex-direction: column; gap: 2px; font-size: 17px; }
  .primary-nav .nav-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: inline-flex; }
  .head-search { display: none; }
  .netstrip-sites { display: none; }
  .netstrip-sep { display: none; }
}

/* ---------------------------------------------------------------- lead */

.site-main { display: block; }

.lead {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px;
  align-items: center;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--line);
}
.lead-copy { min-width: 0; }
.lead--text { display: block; }
.lead--text .lead-title { max-width: 26ch; font-size: clamp(32px, 4.6vw, 52px); }
.lead--text .lead-sub { max-width: 60ch; font-size: 19px; }
.eyebrow {
  margin: 0 0 14px; font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.lead-title {
  margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08;
  letter-spacing: -.028em; font-weight: 700; max-width: 24ch;
}
.lead-title a:hover { color: var(--ink); }
.lead-sub { margin: 18px 0 0; color: var(--ink-2); font-size: 17.5px; max-width: 52ch; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 0; font-size: 13.5px; color: var(--ink-3); }
.meta .checked { color: var(--ink-2); }

.btn {
  display: inline-block; margin-top: 22px; background: var(--ink); color: #fff;
  border-radius: 999px; padding: 11px 22px; font-size: 14.5px; font-weight: 600;
}
.btn:hover { background: var(--accent); color: #fff; }

.lead-thumb { display: block; border-radius: var(--r); overflow: hidden; }
.lead-thumb img, .lead-thumb .ph { border-radius: var(--r); }

@media (max-width: 860px) {
  .lead { grid-template-columns: 1fr; gap: 24px; padding: 34px 0 30px; }
  .lead-thumb { order: -1; }
}

/* ---------------------------------------------------------------- sections */

.sec { padding: 48px 0; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.sec-head h2 {
  margin: 0; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--ink);
}
.sec-head p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.rule { flex: 1; height: 1px; background: var(--line); }

/* ---------------------------------------------------------------- cards */

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid, .grid--3 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.card-thumb { display: block; border-radius: var(--r); overflow: hidden; margin-bottom: 16px; }
.card-thumb img, .card-thumb .ph { border-radius: var(--r); }
.card-thumb img { transition: transform .35s ease; }
.card:hover .card-thumb img { transform: scale(1.02); }
.card-body { display: flex; flex-direction: column; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.card h3 {
  margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -.012em; font-weight: 700;
}
.card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-meta { margin: 0; display: flex; gap: 8px; font-size: 13px; color: var(--ink-3); }

.ph { aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.ph svg { width: 100%; height: 100%; }

/* ---------------------------------------------------------------- article */

.article { padding-bottom: 24px; }
.article-head { max-width: var(--measure); margin-inline: auto; padding-top: 34px; }

.crumbs { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }

.article-title {
  margin: 0; font-size: clamp(30px, 4.4vw, 44px); line-height: 1.06;
  letter-spacing: -.03em; font-weight: 700;
}
.article-standfirst {
  margin: 18px 0 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 58ch;
}
.meta--article { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.byline { color: var(--ink); font-weight: 500; }

.article-figure { max-width: var(--wrap); margin: 34px auto 0; }
.article-figure img { border-radius: var(--r); width: 100%; }

.article-body { max-width: var(--measure); margin-inline: auto; padding-top: 32px; }

.entry { font-size: 19px; line-height: 1.72; color: #1a1d24; }
.entry > * + * { margin-top: 1.1em; }
.entry > p:first-child { margin-top: 0; }

.entry h2 {
  margin-top: 2em; font-size: 27px; line-height: 1.2; letter-spacing: -.022em;
  font-weight: 700; color: var(--ink);
}
.entry h3 { margin-top: 1.7em; font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.entry h2 + *, .entry h3 + * { margin-top: .5em; }

.entry a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry a:hover { text-decoration-thickness: 2px; }
.entry a.is-external::after { content: " ↗"; font-size: .8em; color: var(--ink-3); }

.entry ul, .entry ol { padding-left: 1.25em; }
.entry li + li { margin-top: .4em; }
.entry li::marker { color: var(--ink-3); }

.entry blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent);
  font-size: 21px; line-height: 1.5; color: var(--ink);
}
.entry blockquote p { margin: 0; }
.entry blockquote cite { display: block; margin-top: .6em; font-size: 14px; font-style: normal; color: var(--ink-3); }

.entry hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.entry figure { margin: 1.8em 0; }
.entry figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-3); }

.entry table {
  width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1.6em 0;
  font-variant-numeric: tabular-nums;
}
.entry th, .entry td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.entry thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.entry tbody tr:hover { background: var(--paper-2); }

.entry .callout {
  border: 1px solid var(--line); background: var(--paper-2);
  border-radius: var(--r); padding: 18px 20px; font-size: 16.5px;
}
.entry code { font-family: var(--mono); font-size: .88em; background: var(--paper-2); padding: .12em .38em; border-radius: 5px; }

.sources {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 14.5px; color: var(--ink-2);
}
.sources h2 { margin: 0 0 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.sources ul { padding-left: 1.1em; }
.sources a { text-decoration: underline; text-underline-offset: 2px; }

.article-foot {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-3);
}
.article-share { display: flex; gap: 8px; }
.article-share a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: 0 50%;
  z-index: 40; pointer-events: none;
}

/* ---------------------------------------------------------------- lists */

.archive-head { padding: 40px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.archive-head h1 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.025em; }
.archive-desc { margin-top: 12px; color: var(--ink-2); max-width: 60ch; }

.empty { color: var(--ink-3); padding: 30px 0; }

.pagination, .navigation.pagination { margin: 44px 0 10px; }
.nav-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.nav-links a, .nav-links span {
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--ink-2);
}
.nav-links .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-links a:hover { border-color: var(--ink); color: var(--ink); }

.notfound { padding: 60px 0 40px; max-width: var(--measure); }
.notfound h1 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.025em; }
.notfound .grid { margin-top: 40px; }

/* ---------------------------------------------------------------- comments */

.comments-wrap { max-width: var(--measure); padding: 10px 24px 40px; }
.comments-wrap h2, .comment-reply-title { font-size: 20px; letter-spacing: -.015em; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { border-top: 1px solid var(--line); padding: 18px 0; }
.comment-meta { font-size: 13px; color: var(--ink-3); margin-bottom: 6px; }

/* ---------------------------------------------------------------- footer */

.site-foot { margin-top: 56px; border-top: 1px solid var(--line); background: var(--paper-2); }
.foot-in {
  display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 48px;
  padding-top: 46px; padding-bottom: 40px;
}
.foot-brand .wordmark { font-size: 17px; }
.foot-brand p { margin: 12px 0 0; color: var(--ink-2); font-size: 14px; max-width: 42ch; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.foot-col h2 {
  margin: 0 0 12px; font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 700;
}
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.foot-list a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.foot-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 30px;
  font-size: 12.5px; color: var(--ink-3);
}

@media (max-width: 860px) {
  .foot-in { grid-template-columns: 1fr; gap: 30px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .foot-cols { grid-template-columns: 1fr; }
  .entry { font-size: 18px; }
}

/* ---------------------------------------------------------------- niches */

.niche-ai .eyebrow, .niche-ai .tag, .niche-sports .eyebrow, .niche-sports .tag { color: var(--accent); }
.niche-lifestyle .tag, .niche-lifestyle .eyebrow { letter-spacing: .13em; }
.niche-lifestyle .lead-title, .niche-lifestyle .article-title { letter-spacing: -.032em; }
.niche-finance .entry h2, .niche-smallbusiness .entry h2 { letter-spacing: -.018em; }

/* ---------------------------------------------------------------- misc */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

@media print {
  .netstrip, .masthead, .site-foot, .progress, .related, .comments-wrap, .article-share { display: none; }
  .entry { font-size: 11pt; }
}
