:root {
  --black: #050505;
  --black-soft: #0c0c0c;
  --panel: #11100d;
  --gold: #c58a1f;
  --gold-bright: #efa91d;
  --gold-soft: #f4d489;
  --white: #f8f4ea;
  --muted: #b6ab98;
  --line: rgba(239, 169, 29, .25);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; overflow-x: hidden; background: radial-gradient(circle at 82% 5%, rgba(197,138,31,.13), transparent 26%), var(--black); color: var(--white); font: 16px/1.6 var(--sans); }
body, button { font-family: var(--sans); }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 4px; }

.skip-link { position: fixed; z-index: 1000; left: 18px; top: -100px; padding: 12px 18px; background: var(--gold-bright); color: #090806; font-weight: 900; }
.skip-link:focus { top: 18px; }

.daily-header { position: sticky; z-index: 50; top: 0; min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 14px clamp(20px, 5vw, 78px); border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(5,5,5,.9); backdrop-filter: blur(18px); }
.daily-brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-mark, .footer-brand > span { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(239,169,29,.62); color: var(--gold-bright); font-family: var(--serif); font-size: 17px; }
.daily-brand > span:last-child, .footer-brand strong { display: flex; flex-direction: column; }
.daily-brand strong { font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.1; }
.daily-brand small, .footer-brand small { margin-top: 4px; color: var(--gold); font-size: 7px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.daily-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; }
.daily-header nav a { padding: 7px 0; border-bottom: 1px solid transparent; color: #c8beae; font-size: 8px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.daily-header nav a:hover { border-color: var(--gold); color: var(--white); }

main { width: min(1440px, 100%); margin-inline: auto; }
.daily-hero { min-height: 760px; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(380px, .97fr); align-items: center; gap: clamp(48px, 7vw, 108px); padding: clamp(68px, 8vw, 118px) clamp(22px, 6vw, 92px) 80px; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0; color: var(--gold-soft); font-size: 8px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow > span { width: 37px; height: 1px; background: var(--gold); }
.hero-copy h1 { margin: 22px 0 24px; font-family: var(--serif); font-size: clamp(64px, 7.2vw, 108px); font-weight: 400; letter-spacing: -.055em; line-height: .86; }
.hero-copy h1 em, .daily-intro h2 em, .daily-promise h2 em { color: var(--gold-bright); font-weight: 400; }
.hero-lede { max-width: 700px; margin: 0; color: #c6bcad; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button, .card-actions > *, .dialog-actions > * { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 17px; border: 1px solid rgba(239,169,29,.45); background: transparent; color: var(--white); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.button-gold, .card-actions .study-button, .dialog-actions a { border-color: var(--gold-bright); background: var(--gold-bright); color: #110d05; }
.button-gold:hover, .card-actions .study-button:hover, .dialog-actions a:hover { background: #ffc34f; }
.button-outline:hover { border-color: var(--gold-bright); color: var(--gold-soft); }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 680px; margin: 40px 0 0; border-block: 1px solid var(--line); }
.hero-metrics div { min-width: 0; display: flex; flex-direction: column; padding: 19px 14px; }
.hero-metrics div + div { border-left: 1px solid var(--line); }
.hero-metrics dt { color: var(--gold-bright); font-family: var(--serif); font-size: 29px; line-height: 1; }
.hero-metrics dd { margin: 7px 0 0; color: #8f8679; font-size: 7px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }

.hero-art { position: relative; min-height: 610px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: min(530px, 84%); aspect-ratio: 1; border: 1px solid rgba(239,169,29,.17); border-radius: 50%; box-shadow: 0 0 0 44px rgba(239,169,29,.018), 0 0 0 90px rgba(239,169,29,.012); }
.hero-frame { position: relative; z-index: 1; width: min(540px, 92%); overflow: hidden; padding: 10px; border: 1px solid rgba(239,169,29,.55); background: #090909; box-shadow: 30px 40px 100px rgba(0,0,0,.68); transform: rotate(1.25deg); }
.hero-frame img { width: 100%; height: auto; }
.hero-stamp { position: absolute; z-index: 2; right: 1%; bottom: 8%; width: 118px; height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--gold-bright); border-radius: 50%; background: rgba(5,5,5,.92); box-shadow: 0 20px 55px rgba(0,0,0,.55); }
.hero-stamp small { color: var(--muted); font-size: 6px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero-stamp strong { color: var(--gold-bright); font-family: var(--serif); font-size: 25px; font-weight: 400; line-height: 1.05; }
.hero-stamp span { margin-top: 4px; color: #eee5d4; font-size: 7px; letter-spacing: .12em; }

.daily-intro { display: grid; grid-template-columns: 1.03fr .97fr; align-items: end; gap: clamp(40px, 7vw, 100px); padding: 90px clamp(22px, 6vw, 92px) 42px; border-top: 1px solid rgba(255,255,255,.07); }
.daily-intro h2, .daily-promise h2 { margin: 18px 0 0; font-family: var(--serif); font-size: clamp(47px, 5.7vw, 78px); font-weight: 400; letter-spacing: -.045em; line-height: .94; }
.daily-intro > p { max-width: 620px; margin: 0; color: #b8ae9f; font-size: 15px; line-height: 1.85; }

.daily-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 20px clamp(22px, 6vw, 92px) 112px; }
.daily-card { position: relative; overflow: hidden; border: 1px solid rgba(239,169,29,.2); background: linear-gradient(150deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); transition: transform .28s ease, border-color .28s ease; }
.daily-card:hover { transform: translateY(-7px); border-color: rgba(239,169,29,.62); }
.daily-card.is-newest::after { content: "NEW"; position: absolute; z-index: 3; top: 18px; right: -34px; width: 128px; padding: 5px 0; background: var(--gold-bright); color: #100c05; font-size: 7px; font-weight: 950; letter-spacing: .2em; text-align: center; transform: rotate(45deg); }
.card-image { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; padding: 12px; background: #020202; }
.card-image::after { content: ""; position: absolute; inset: auto 0 0; height: 28%; background: linear-gradient(transparent, rgba(0,0,0,.64)); pointer-events: none; }
.card-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .42s ease; }
.daily-card:hover .card-image img { transform: scale(1.018); }
.card-image > span { position: absolute; z-index: 2; left: 20px; bottom: 17px; padding: 6px 9px; border: 1px solid rgba(239,169,29,.55); background: rgba(4,4,4,.82); color: var(--gold-soft); font-size: 7px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.card-copy { padding: 27px 25px 25px; }
.card-date { margin: 0; color: var(--gold); font-size: 7px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.card-copy h3 { margin: 10px 0 13px; font-family: var(--serif); font-size: clamp(29px, 2.55vw, 39px); font-weight: 400; letter-spacing: -.035em; line-height: 1; }
.card-copy > p:not(.card-date) { min-height: 70px; margin: 0; color: #aaa092; font-size: 12px; line-height: 1.75; }
.card-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.card-tags span { padding: 5px 8px; border: 1px solid rgba(239,169,29,.2); color: #a89d8c; font-size: 6px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.card-actions > * { min-width: 0; min-height: 42px; padding: 10px 8px; }
.card-actions > a { grid-column: 1 / -1; }
.card-actions > *:hover { border-color: var(--gold-bright); color: var(--gold-soft); }
.card-actions .study-button:hover { color: #100c05; }

.daily-promise { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(28px, 5vw, 68px); margin: 0 clamp(22px, 6vw, 92px) 110px; padding: clamp(38px, 5vw, 65px); border: 1px solid rgba(239,169,29,.32); background: radial-gradient(circle at 10% 50%, rgba(239,169,29,.12), transparent 27%), linear-gradient(145deg, #17130d, #090909); }
.promise-mark { width: 70px; height: 70px; display: grid; place-items: center; border: 1px solid rgba(239,169,29,.54); border-radius: 50%; color: var(--gold-bright); font-size: 19px; }
.daily-promise h2 { font-size: clamp(38px, 4.2vw, 60px); }
.daily-promise p:last-child { max-width: 760px; margin: 20px 0 0; color: #b8ae9f; font-size: 13px; line-height: 1.8; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px clamp(22px, 6vw, 92px); border-top: 1px solid rgba(255,255,255,.08); background: #020202; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.footer-brand strong { font-family: var(--serif); font-size: 17px; font-weight: 400; }
footer > p { margin: 0; color: #776f64; font-size: 8px; line-height: 1.6; text-align: center; }
footer > a:last-child { color: var(--gold-soft); font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }

.study-dialog { width: min(1180px, calc(100vw - 28px)); max-width: none; height: min(94vh, 980px); max-height: none; padding: 0; border: 1px solid rgba(239,169,29,.55); background: #080808; color: var(--white); box-shadow: 0 30px 120px rgba(0,0,0,.86); }
.study-dialog::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(10px); }
.dialog-shell { height: 100%; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,.09); }
.dialog-header p { margin: 0; color: var(--gold); font-size: 7px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.dialog-header h2 { margin: 3px 0 0; font-family: var(--serif); font-size: clamp(25px, 3vw, 36px); font-weight: 400; line-height: 1.05; }
.dialog-header span { display: block; margin-top: 4px; color: #9b9286; font-size: 8px; }
.icon-button { width: 45px; height: 45px; border: 1px solid rgba(239,169,29,.38); background: transparent; color: var(--gold-soft); font-size: 25px; cursor: pointer; }
.study-toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.07); background: #0f0e0c; }
.study-toolbar > button, .zoom-controls button { min-height: 38px; padding: 8px 12px; border: 1px solid rgba(239,169,29,.23); background: transparent; color: #d7cebf; font-size: 7px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.study-toolbar > button:first-child { justify-self: start; }
.study-toolbar > button:last-child { justify-self: end; }
.zoom-controls { display: grid; grid-template-columns: 42px 70px 42px; gap: 6px; }
.study-stage { overflow: auto; display: grid; place-items: start center; padding: 24px; background: radial-gradient(circle at 50% 20%, rgba(239,169,29,.08), transparent 35%), #020202; }
.study-stage img { width: auto; max-width: none; height: auto; transform-origin: top center; box-shadow: 0 18px 70px rgba(0,0,0,.68); }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 13px; border-top: 1px solid rgba(255,255,255,.08); background: #0d0c0a; }
.dialog-actions > * { min-height: 40px; }
.share-status { position: fixed; z-index: 1100; right: 18px; bottom: 18px; max-width: 330px; margin: 0; padding: 12px 16px; border: 1px solid rgba(239,169,29,.54); background: #12100c; color: #f0e7d8; font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .22s ease, transform .22s ease; }
.share-status.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .daily-hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; }
  .hero-art { min-height: 570px; }
  .daily-library { grid-template-columns: 1fr 1fr; }
  .daily-card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr .85fr; }
  .daily-card:first-child .card-image { aspect-ratio: auto; min-height: 540px; }
  .daily-card:first-child .card-copy { align-self: center; }
  .daily-promise { grid-template-columns: auto 1fr; }
  .daily-promise .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 700px) {
  .daily-header { position: relative; align-items: flex-start; flex-direction: column; gap: 15px; }
  .daily-header nav { justify-content: flex-start; }
  .daily-hero { min-height: 0; padding-top: 70px; }
  .hero-copy h1 { font-size: clamp(58px, 19vw, 82px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-metrics div { flex-direction: row; align-items: center; gap: 16px; padding: 13px 8px; }
  .hero-metrics div + div { border-top: 1px solid var(--line); border-left: 0; }
  .hero-metrics dd { margin: 0; }
  .hero-art { min-height: 430px; }
  .hero-stamp { width: 96px; height: 96px; right: 0; bottom: 1%; }
  .daily-intro { grid-template-columns: 1fr; align-items: start; padding-top: 70px; }
  .daily-library { grid-template-columns: 1fr; padding-bottom: 82px; }
  .daily-card:first-child { grid-column: auto; display: block; }
  .daily-card:first-child .card-image { min-height: 0; aspect-ratio: 4 / 5; }
  .card-copy > p:not(.card-date) { min-height: 0; }
  .daily-promise { grid-template-columns: 1fr; }
  .promise-mark { width: 55px; height: 55px; }
  .daily-promise .button { grid-column: auto; justify-self: stretch; }
  footer { align-items: flex-start; flex-direction: column; }
  footer > p { text-align: left; }
  .study-dialog { width: 100vw; height: 100dvh; border: 0; }
  .study-toolbar { grid-template-columns: 1fr 1fr; }
  .zoom-controls { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .study-toolbar > button:first-child { grid-column: 1; }
  .study-toolbar > button:last-child { grid-column: 2; }
  .study-stage { padding: 15px; }
  .dialog-actions > * { flex: 1 1 100%; }
}

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

@media print {
  body > *:not(.study-dialog) { display: none !important; }
  .study-dialog { position: static; width: 100%; height: auto; border: 0; box-shadow: none; }
  .study-dialog::backdrop, .dialog-header, .study-toolbar, .dialog-actions { display: none !important; }
  .dialog-shell, .study-stage { display: block; overflow: visible; padding: 0; background: #fff; }
  .study-stage img { width: 100% !important; max-width: 100% !important; box-shadow: none; }
}
