/* CelticsLife — main stylesheet. One breakpoint at 760px, a second at 1080px for 3-up grids. */

@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(../fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url(../fonts/barlow-condensed-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/inter-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); }

:root {
  --green-900: #072e1b;
  --green-800: #0b4f2c;
  --green-600: #11733f;
  --green-100: #e3efe7;
  --gold: #c9a227;
  --gold-soft: #f4ecd2;
  --ink: #121614;
  --body: #2f3833;
  --muted: #69736d;
  --line: #dde3df;
  --bg: #f7f7f3;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(7, 46, 27, .06), 0 4px 16px rgba(7, 46, 27, .06);
  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --prose: 720px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 17px/1.65 var(--font-body); }
img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-underline-offset: 3px; }
a:hover { color: var(--green-800); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; color: var(--ink); line-height: 1.05; letter-spacing: .005em; margin: 0 0 .4em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.wrap--prose { max-width: calc(var(--prose) + 32px); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--green-900); color: #fff; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__mark { color: var(--gold); display: inline-flex; }
.brand__name { font: 600 28px/1 var(--font-head); text-transform: uppercase; letter-spacing: .02em; }
.brand__name strong { font-weight: 800; color: var(--gold); margin-left: 2px; }
.brand__logo { max-height: 44px; width: auto; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav__list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav__list a { display: block; padding: 8px 12px; color: #dfe9e3; text-decoration: none; font: 600 18px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; border-radius: 6px; }
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current-category-ancestor > a { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__search input { width: 180px; height: 38px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 999px; padding: 0 14px; font: inherit; font-size: 15px; }
.nav__search input::placeholder { color: #a9bdb1; }
.banner-stripe { height: 4px; background: repeating-linear-gradient(90deg, var(--gold) 0 48px, var(--green-600) 48px 96px); }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 8px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 22px; height: 2px; background: currentColor; margin: auto; position: relative; transition: transform .2s; content: ""; }
.nav-toggle__bars::before { position: absolute; top: -7px; }
.nav-toggle__bars::after { position: absolute; top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(7, 46, 27, .08), 0 10px 28px rgba(7, 46, 27, .10); }
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--green-800); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; } /* portraits: keep the face in a 16:9 crop */
.card__fallback { position: relative; display: block; width: 100%; height: 100%; min-height: 100%; background:
  radial-gradient(circle at 50% 120%, transparent 0 34%, rgba(255, 255, 255, .16) 34% 34.6%, transparent 34.8%),
  radial-gradient(circle at 50% 50%, transparent 0 13%, rgba(255, 255, 255, .16) 13% 13.8%, transparent 14%),
  linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .16) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
  repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 36px, transparent 36px 72px),
  linear-gradient(160deg, var(--tone-a, var(--green-600)), var(--tone-b, var(--green-900))); }
.card__fallback::after { content: attr(data-mono); position: absolute; right: 14px; bottom: 6px; font: 800 64px/1 var(--font-head); color: rgba(255, 255, 255, .12); letter-spacing: .02em; }
.card__fallback[data-tone="celtics-history"] { --tone-a: #6b5a1e; --tone-b: #2a2309; }
.card__fallback[data-tone="what-the-hell-happened-to"] { --tone-a: #1d3b4f; --tone-b: #0a1720; }
.card__fallback[data-tone="nba"] { --tone-a: #3b3f46; --tone-b: #15171a; }
.card__fallback[data-tone="nba-betting"] { --tone-a: #0f6a52; --tone-b: #06261d; }
.card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.card__title { font-size: 24px; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card__title a:hover { color: var(--green-600); }
.card__excerpt { margin: 0; color: var(--body); font-size: 15px; line-height: 1.55; }
.card .meta { margin-top: auto; }
.card .kicker { position: relative; z-index: 1; }

.card--lead .card__title { font-size: clamp(30px, 4.2vw, 46px); }
/* Card images carry text (generated title cards), so they always keep 16:9 and are never cropped. */
.card--lead .card__body { justify-content: flex-start; }
.card--lead .card__excerpt { font-size: 17px; }
.card--row .card__title { font-size: 21px; }

.kicker { display: inline-block; align-self: flex-start; font: 600 14px/1 var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--green-600); text-decoration: none; background: var(--green-100); padding: 5px 8px; border-radius: 4px; }
.kicker:hover { color: var(--green-800); }
.meta { margin: 0; color: var(--muted); font-size: 13.5px; }
.meta a { color: inherit; }

/* ---------- Layout ---------- */
.hero-grid { display: grid; gap: 20px; padding-top: 28px; }
.section { padding: 40px 0; }
.section .wrap.section, .section.wrap { padding-top: 40px; }
.section--dark { background: var(--green-900); }
.section--dark h2 { color: #fff; }
.section--dark .section__more { color: var(--gold); }
.section--tint { background: var(--green-100); margin-top: 48px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; border-bottom: 3px solid var(--ink); padding-bottom: 8px; }
.section--dark .section__head { border-color: var(--gold); }
.section__head h2 { font-size: 32px; margin: 0; text-transform: uppercase; }
.section__more { font: 600 17px/1 var(--font-head); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; white-space: nowrap; }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

/* ---------- Archive ---------- */
.archive { padding-top: 36px; padding-bottom: 48px; }
.archive__head { margin-bottom: 24px; }
.archive__head h1 { font-size: clamp(36px, 5vw, 56px); text-transform: uppercase; }
.archive__desc { max-width: var(--prose); color: var(--body); }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.empty { font-size: 18px; }
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 16px 0; }
.search-form label { flex: 1; }
.search-field { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font: inherit; }
.search-submit, .button { display: inline-flex; align-items: center; height: 46px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--green-800); color: #fff; font: 600 18px/1 var(--font-head); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; cursor: pointer; }
.search-submit:hover, .button:hover { background: var(--green-600); color: #fff; }

/* ---------- Single ---------- */
.post__head { padding-top: 36px; padding-bottom: 8px; }
.post__title { font-size: clamp(36px, 6vw, 60px); margin-top: 12px; }
.post__dek { font-size: 20px; line-height: 1.45; color: var(--body); margin: 0 0 14px; }
.post__media { margin: 20px auto 8px; }
.post__media img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 22%; }
.post__media--portrait { max-width: 760px; }
.post__media--portrait img { aspect-ratio: 4 / 3; }
.post__media figcaption a { color: inherit; }
.post__media figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: inherit; }

.prose { padding-top: 16px; padding-bottom: 8px; font-size: 18px; line-height: 1.75; }
.prose > * { margin-top: 0; margin-bottom: 1.15em; }
.prose h2 { font-size: 34px; margin-top: 1.5em; }
.prose h3 { font-size: 26px; margin-top: 1.3em; }
.prose a { color: var(--green-600); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold); font-style: italic; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--card); box-shadow: var(--shadow); }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--green-800); color: #fff; font-weight: 600; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 13px; color: var(--muted); }
.prose .callout, .prose .wp-block-group.is-style-callout { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 16.5px; }
.prose .key-facts { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--green-800); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); }
.prose .key-facts h2, .prose .key-facts h3 { margin-top: 0; font-size: 24px; }
.post__foot { padding-bottom: 24px; }
.tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13.5px; color: var(--body); text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #c4d3ca; margin-top: 56px; padding-top: 40px; font-size: 15px; }
.site-footer__inner { display: grid; gap: 28px; }
.site-footer__brand p { max-width: 420px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-list a, .site-footer a { color: #fff; text-decoration: none; }
.footer-list a:hover { color: var(--gold); }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 28px; padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: #8fa699; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--green-900); flex-direction: column; align-items: stretch; padding: 8px 16px 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .nav-open .nav { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__list a { padding: 14px 4px; font-size: 22px; border-bottom: 1px solid rgba(255, 255, 255, .06); border-radius: 0; }
  .nav__search input { width: 100%; height: 44px; }
}
@media (max-width: 759px) {
  .brand__name { font-size: 24px; }
  .section__head h2 { font-size: 26px; }
  .card--lead .card__body { padding: 18px; }
  .prose table { display: block; overflow-x: auto; }
}
@media (min-width: 760px) {
  .hero-grid { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
  .hero-grid .card--lead { grid-row: span 2; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1.2fr 1fr; align-items: start; }
}
@media (min-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
