/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(/assets/fonts/Newsreader-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 300 500;
  font-display: swap;
  src: url(/assets/fonts/Newsreader-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/assets/fonts/Newsreader-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/assets/fonts/Newsreader-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/WorkSans-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/assets/fonts/WorkSans-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Joseph Binning — shared styles. Palette and type follow the Design mockup. */
:root {
  --bg: #121815; --bg-deep: #0E1311; --bg-band: #18201C; --bg-card: #18201C; --bg-inset: #0F1512; --bg-dark: #0D110F;
  --line: #2E3B34; --line-soft: #2A352F; --line-btn: #55625A; --line-chip: #3A4740; --line-quiet: #6E7C74;
  --ink: #E9E5DB; --ink-hi: #F3EFE6; --ink-body: #E3DED3; --ink-soft: #B9C2BC; --ink-mute: #9BA59F; --ink-faint: #7F8B84;
  --sage: #A9C7B2; --sage-hi: #D4E5D8; --gold: #D9B86A;
  --serif: Newsreader, Georgia, serif; --sans: 'Work Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
a { color: var(--sage); } a:hover { color: var(--sage-hi); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 880px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.star { color: var(--gold); }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); font-weight: 500; }
.serif { font-family: var(--serif); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink-hi); margin: 0; }
.lede { margin: 0; color: var(--ink-soft); }

/* header / footer */
.site-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink-hi); }
.brand .star { font-size: 22px; }
.brand span:last-child { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: 0.01em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 48px; padding-bottom: 64px; font-size: 14px; color: var(--ink-mute); border-top: 1px solid var(--line-soft); }
.site-foot .motto { font-family: var(--serif); font-style: italic; font-size: 18px; color: #C3CBC6; }
.site-foot a { color: var(--ink-mute); }

/* buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; }
.btn-light { background: var(--ink); color: var(--bg); border: 1px solid var(--ink); }
.btn-light:hover { background: var(--ink-hi); color: var(--bg); }
.btn-ghost { background: rgba(18,24,21,0.4); color: var(--ink); border: 1px solid var(--line-quiet); }
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink-hi); }
.chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-btn); background: transparent; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.sm { min-height: 36px; padding: 0 14px; font-size: 14px; border-color: var(--line-chip); color: #C9D2CC; }
.chip.sm[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.gold[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 500; }
.chip.sage[aria-pressed="true"] { background: var(--sage); border-color: var(--sage); color: var(--bg); }

/* family card (today + family pages) */
.fam-card { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-start; padding: 36px 40px; border-radius: 20px; background: linear-gradient(135deg, #1E2A24 0%, #18201C 100%); border: 1px solid var(--line); }
.fam-card .portrait { flex: 0 0 auto; width: 180px; height: 240px; object-fit: cover; border-radius: 14px; }
.fam-card .star { font-size: 30px; line-height: 1.2; }
.fam-body { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fam-quote { margin: 4px 0 0; font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 1.45; color: var(--ink-hi); }
.fam-src { margin: 0; font-size: 14px; color: var(--ink-mute); }
.fam-src a { color: var(--ink-mute); }
.fam-actions { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 4px; }
.fam-fade { transition: opacity .6s ease; }
.fam-fade.is-out { opacity: 0; }
.video-link { display: flex; align-items: center; gap: 16px; padding: 10px 20px 10px 10px; margin-top: 6px; border-radius: 16px; background: var(--bg-inset); border: 1px solid var(--line); text-decoration: none; color: var(--ink); max-width: 520px; }
.video-link:hover { border-color: #5B6B62; color: var(--ink-hi); }
.video-thumb { position: relative; flex: 0 0 auto; width: 72px; height: 96px; border-radius: 10px; overflow: hidden; background: #222C27; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-thumb .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.25); }
.video-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.video-kicker { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.video-cap { font-family: var(--serif); font-size: 19px; line-height: 1.3; }

/* today page */
.hero { position: relative; border-radius: 24px; overflow: hidden; min-height: 560px; display: flex; align-items: flex-end; background: #1B2420; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,24,21,0.15) 0%, rgba(18,24,21,0.92) 78%); }
.hero-body { position: relative; z-index: 1; padding: 56px; display: flex; flex-direction: column; gap: 22px; max-width: 820px; }
.hero-quote { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.18; color: var(--ink-hi); }
.section-band { background: var(--bg-band); }
.section-pad { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 36px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.section-head h2 { font-size: 42px; line-height: 1.15; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; background: var(--bg); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid transparent; transition: border-color .2s ease, transform .2s ease; }
.post-card:hover { color: var(--ink); border-color: #3E4D45; transform: translateY(-2px); }
.post-card .ph { aspect-ratio: 4 / 3; background: #222C27; display: flex; align-items: center; justify-content: center; }
.post-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .ph .star { font-size: 44px; }
.post-card .txt { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.post-card .date { font-size: 13px; color: var(--ink-mute); }
.post-card .title { font-family: var(--serif); font-size: 23px; line-height: 1.25; color: var(--ink-hi); }
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.story { position: relative; display: flex; align-items: flex-end; min-height: 300px; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink-hi); background: #1B2420; }
.story:hover { color: var(--ink-hi); }
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.story:hover img { transform: scale(1.03); }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,24,21,0) 30%, rgba(18,24,21,0.9) 100%); }
.story .txt { position: relative; z-index: 1; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.story .title { font-family: var(--serif); font-size: 23px; line-height: 1.25; }
.story .date { font-size: 13px; color: #C3CBC6; }
.matter { background: var(--bg-dark); border-top: 1px solid #222C27; border-bottom: 1px solid #222C27; }
.matter .narrow { padding-top: 112px; padding-bottom: 112px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.matter h2 { font-weight: 300; font-size: clamp(36px, 5vw, 60px); line-height: 1.15; }
.about { padding-top: 104px; padding-bottom: 104px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about img { flex: 1 1 340px; min-width: 0; width: 100%; max-width: 440px; height: 540px; object-fit: cover; object-position: center top; border-radius: 20px; }
.about .txt { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.about blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 30px; line-height: 1.35; color: var(--ink-hi); }

/* library */
.lib-intro h1 { font-size: 52px; line-height: 1.1; margin: 0 0 12px; }
.lib-controls { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; padding-bottom: 8px; }
.lib-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lib-row .label { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-right: 6px; }
.search { flex: 1 1 320px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-btn); background: var(--bg-inset); color: var(--ink); font: inherit; font-size: 16px; }
.search::placeholder { color: var(--ink-faint); }
.lib-count { margin: 4px 0 0; font-size: 15px; color: var(--ink-mute); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; padding-top: 8px; padding-bottom: 32px; }
.lib-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.lib-card:hover { border-color: #5B6B62; transform: translateY(-2px); color: var(--ink); }
.lib-card img, .lib-card .noimg { display: block; width: 100%; height: 200px; object-fit: cover; }
.lib-card .noimg { display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #2A3830 0%, #141B17 75%); color: var(--gold); font-size: 48px; }
.lib-card .txt { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 24px; }
.lib-card .meta { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.lib-card .title { font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--ink-hi); }
.lib-card .snip { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; padding-top: 8px; padding-bottom: 32px; }
.vid-card { display: flex; gap: 16px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s ease; }
.vid-card:hover { border-color: #5B6B62; color: var(--ink-hi); }
.vid-card .video-thumb { width: 64px; height: 86px; }
.vid-card .cap { font-family: var(--serif); font-size: 18px; line-height: 1.35; }
.lib-more { display: flex; justify-content: center; padding-bottom: 48px; }
.lib-empty { padding-bottom: 64px; font-family: var(--serif); font-size: 22px; color: var(--ink-soft); }

/* reading a post */
.read { max-width: 760px; margin: 0 auto; padding: 16px 24px 96px; }
.read .back { margin-bottom: 28px; }
.read .lead-img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 18px; margin-bottom: 32px; }
.read .meta { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.read h1 { margin: 0 0 28px; font-size: 44px; line-height: 1.15; }
.read p { margin: 0 0 20px; font-family: var(--serif); font-size: 21px; line-height: 1.7; color: var(--ink-body); overflow-wrap: anywhere; }
.read h2 { margin: 36px 0 16px; font-size: 28px; line-height: 1.25; }
.read .note { font-family: var(--sans); font-size: 17px; color: var(--ink-soft); }
.read .end { margin: 40px 0 0; font-size: 22px; }
.read-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); font-size: 15px; }
.read-nav a { max-width: 46%; text-decoration: none; }
.read-nav small { display: block; color: var(--ink-faint); letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; }

/* family page */
.fam-intro { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.fam-intro h1 { font-size: 46px; line-height: 1.12; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.person { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: #161E1A; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.person[aria-pressed="true"] { border-color: var(--gold); background: #1B2420; }
.person .name { font-family: var(--serif); font-size: 26px; color: var(--ink-hi); }
.fam-open { padding-top: 24px; padding-bottom: 112px; }
.match { padding-top: 40px; }
.match .fam-card { align-items: center; }
.match .greet { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 1.25; color: var(--ink-hi); }

/* video buttons + player */
button.video-link, button.vid-card { font: inherit; text-align: left; cursor: pointer; width: 100%; }
button.video-link { width: auto; }
.player { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; overflow: visible; }
.player::backdrop { background: rgba(8, 11, 10, 0.88); }
.player-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.player video { display: block; width: auto; height: auto; max-width: min(92vw, 520px); max-height: 82vh; border-radius: 14px; background: #000; }
.player-cap { margin: 0; max-width: min(92vw, 520px); text-align: center; font-family: var(--serif); font-size: 18px; line-height: 1.35; color: var(--ink-hi); }
.player-close { position: absolute; top: -14px; right: -14px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-quiet); background: var(--bg); color: var(--ink-hi); font-size: 26px; line-height: 1; cursor: pointer; z-index: 1; }
.player-close:hover { border-color: var(--ink-soft); }
html.player-open { overflow: hidden; }
@media (max-width: 640px) { .player-close { top: 8px; right: 8px; } }

/* motion */
@keyframes jbRise { 0% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
.jb-in { animation: jbRise 1.2s ease-out both; }
@media (prefers-reduced-motion: reduce) { .jb-in, .fam-fade { animation: none; transition: none; } .post-card, .lib-card, .story img { transition: none; } .post-card:hover, .lib-card:hover { transform: none; } .story:hover img { transform: none; } }

/* small screens */
@media (max-width: 640px) {
  .fam-card { padding: 26px 22px; }
  .fam-card .portrait { width: 100%; height: 280px; }
  .hero { min-height: 480px; }
  .hero-body { padding: 28px 22px; }
  .section-pad { padding-top: 64px; padding-bottom: 64px; }
  .section-head h2 { font-size: 34px; }
  .about { padding-top: 64px; padding-bottom: 64px; gap: 32px; }
  .about img { height: 420px; }
  .about blockquote { font-size: 24px; }
  .lib-intro h1 { font-size: 38px; }
  .read h1 { font-size: 34px; }
  .read p { font-size: 19px; }
  .fam-intro h1 { font-size: 36px; }
  .fam-quote { font-size: 22px; }
}
