/* The Naya Rishta Times, Wizarding Wedding Edition: front page, interior layouts, Owl Post note. */

/* ---------- Masthead: emblem left, blackletter right, stamped edition ---------- */
.mast { position: relative; display: grid; grid-template-columns: clamp(78px, 13vw, 176px) minmax(0, 1fr); gap: 0 clamp(12px, 2vw, 26px); align-items: center; padding-bottom: clamp(8px, 1.2vw, 14px); }
.mast-emblem { color: var(--ink); --emblem-paper: var(--paper-hi); }
.emblem { display: block; width: 100%; height: auto; overflow: visible; }
.mast-ears { display: flex; justify-content: space-between; gap: 8px 18px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font: 800 .88rem/1.2 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .08em; }
.mast-body { min-width: 0; container-type: inline-size; }
.masthead { font: 400 clamp(2.4rem, 6.3vw, 6.6rem)/.9 var(--blackletter); font-size: 9.3cqi; white-space: nowrap; padding: clamp(6px, 1vw, 12px) 0 clamp(4px, .6vw, 8px); letter-spacing: -.005em; }
.mast-motto { padding-top: 6px; border-top: 2px solid var(--ink); font-style: italic; font-size: clamp(.92rem, 1.2vw, 1.05rem); }
.stamp {
  position: absolute;
  right: 1%;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: .32em;
  padding: 8px 14px 7px;
  color: var(--oxblood);
  border: 4px double var(--oxblood);
  font: 800 clamp(1rem, 1.8vw, 1.7rem)/1 var(--condensed);
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: .07em;
  --stamp-rot: -6deg;
  transform: rotate(var(--stamp-rot));
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.4 2.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='d'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.3' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.4 2.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23d)'/%3E%3C/svg%3E");
  background: #ddc99e99;
}
.stamp span { display: inline-block; }
.stamp span:nth-child(1) { transform: rotate(-3deg) translateY(2px); }
.stamp span:nth-child(2) { transform: rotate(4deg) translateY(-3px); font-size: 1.22em; }
.stamp span:nth-child(3) { transform: rotate(-1.5deg) translateY(1px); }
.dateband { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 5px 12px 5px 0; background: var(--ink); color: var(--paper-hi); font: 800 .95rem/1.2 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .08em; }
.dateband b { padding: 4px 14px 3px; background: var(--oxblood); font: 400 1.35rem/1 var(--blackletter); letter-spacing: 0; text-transform: none; }

/* ---------- Lead: type and moving photograph share one block ---------- */
.lead { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); grid-template-areas: 'banner photo' 'facts photo'; gap: 0 clamp(18px, 2.6vw, 34px); padding: clamp(14px, 2vw, 24px) 0 clamp(18px, 2.4vw, 28px); border-bottom: 7px double var(--ink); }
.banner { grid-area: banner; display: block; min-width: 0; container-type: inline-size; }
.b-kicker { display: block; font: 400 clamp(1.25rem, 2.1vw, 1.85rem)/1 var(--blackletter); color: var(--oxblood); margin-bottom: 6px; }
.b-names { display: block; font-size: clamp(3.6rem, 10.2vw, 10.4rem); font-size: min(23cqi, 10.4rem); line-height: .8; text-transform: uppercase; letter-spacing: -.01em; }
.amp { font: 400 .78em/1 var(--blackletter); color: var(--oxblood); text-transform: none; vertical-align: .02em; }
.b-verb { display: block; margin-top: .16em; padding-top: 8px; border-top: 4px solid var(--ink); font: 400 clamp(2rem, 4.2vw, 4.1rem)/1 var(--blackletter); text-transform: none; letter-spacing: 0; }
.lead-photo-wrap { grid-area: photo; position: relative; align-self: start; transform: rotate(1deg); margin-top: 6px; }
.lead-photo .loop img { aspect-ratio: 4 / 3; object-position: 52% 60%; }
.wax-seal { position: absolute; right: 18px; bottom: -30px; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%; background: radial-gradient(circle at 36% 30%, #a93a2c, var(--oxblood) 55%, var(--oxblood-deep)); color: #f1d6bd; font: 400 1.3rem/1 var(--blackletter); box-shadow: 0 2px 0 #3d0e0a, inset 0 0 0 5px #00000024, inset 0 0 0 7px #ffffff10; transform: rotate(-12deg); }
.lead-facts { grid-area: facts; margin-top: 14px; }
.deck { font-size: clamp(1.12rem, 1.6vw, 1.4rem); font-style: italic; line-height: 1.35; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; }
.facts div { border: 2px solid var(--ink); }
.facts dt { padding: 3px 10px 2px; background: var(--ink); color: var(--paper-hi); font: 800 .85rem/1.2 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .1em; }
.facts dd { padding: 7px 10px 8px; font: 800 1.2rem/1.1 var(--condensed); font-stretch: condensed; text-transform: uppercase; }
.lead-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Tabloid blocks ---------- */
.tabloid { display: grid; grid-template-columns: minmax(200px, .9fr) minmax(0, 1.7fr) minmax(250px, 1.05fr); gap: 0; padding-top: 18px; }
.tabloid > * { padding: 0 clamp(14px, 1.8vw, 22px); }
.tabloid > * + * { border-left: 2px solid var(--ink); }
.tabloid > :first-child { padding-left: 0; }
.tabloid > :last-child { padding-right: 0; }
.agenda-list > div { padding: 10px 0; border-bottom: 1px solid var(--ink); }
.agenda-list dt { font: 800 .9rem/1.2 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .08em; color: var(--oxblood); }
.agenda-list dd { font: 400 1.6rem/1.05 var(--blackletter); margin-top: 3px; }
.agenda-list dd + dd { margin-top: 8px; }
.agenda-list small { display: block; font: italic 400 1rem/1.4 var(--text); color: var(--ink-soft); overflow-wrap: anywhere; }
.venue-line { margin-top: 12px; }
.story-kicker { font: 400 1.25rem/1 var(--blackletter); color: var(--oxblood); }
.story h2 { margin: 6px 0 12px; font-size: clamp(2.2rem, 3.6vw, 3.5rem); line-height: .86; text-transform: uppercase; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.story-cols { columns: 2; column-gap: 22px; column-rule: 1px solid var(--ink); text-align: justify; hyphens: auto; }
.story-cols p + p { margin-top: .55em; text-indent: 1.1em; }
.dropcap::first-letter { float: left; font: 400 4.4em/.78 var(--blackletter); padding: .04em .08em 0 0; color: var(--oxblood); }
.story-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; padding-top: 10px; border-top: 4px double var(--ink); }
.ads { display: grid; gap: 22px; align-content: start; }
.ad-qr { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 6px; margin-bottom: 12px; }
.ad-qr img { width: min(100%, 150px); padding: 7px; background: #fbf6ea; border: 2px solid var(--ink); image-rendering: pixelated; }
.qr-url { font: 800 .98rem/1.2 var(--condensed); font-stretch: condensed; letter-spacing: .04em; overflow-wrap: anywhere; }
.ad-owl .button { width: 100%; }
.ad-tag .owl { width: 1.3em; height: 1.3em; }

/* ---------- Moving photographs strip ---------- */
.moving { padding-top: 26px; }
.moving-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: start; }
.ad-teaser h3 { font-size: clamp(1.7rem, 2.5vw, 2.4rem); }
.ad-teaser h3 a { text-decoration: none; }
.ad-teaser h3 a:hover { text-decoration: underline; }
.ad-teaser p { margin: 10px 0 8px; }
.skyline { display: block; width: 100%; height: clamp(60px, 8vw, 100px); margin-top: 30px; color: var(--ink); }

/* ---------- Interior: schedule ---------- */
.schedule-layout, .bulletin-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 330px); gap: 0 30px; padding-top: 18px; }
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.day { padding: 0 18px 20px; border-left: 2px solid var(--ink); }
.day:first-child { padding-left: 0; border-left: 0; }
.day h2 { display: flex; align-items: flex-end; gap: 10px; padding-bottom: 8px; border-bottom: 7px double var(--ink); }
.day h2 b { font-size: clamp(4rem, 7vw, 6.6rem); line-height: .78; }
.day h2 span { font: 800 1.05rem/1.1 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .08em; color: var(--oxblood); }
.event { padding: 14px 0 16px; border-bottom: 1px solid var(--ink); }
.event h3 { font: 400 clamp(2rem, 3vw, 2.7rem)/1 var(--blackletter); }
.event .slot { margin-top: 6px; font-size: 1.15rem; font-style: italic; color: var(--ink-soft); overflow-wrap: anywhere; }
.event p:not(.slot) { margin-top: 6px; }
.sidebar { display: grid; gap: 22px; align-content: start; padding-left: 26px; border-left: 2px solid var(--ink); }

/* ---------- Interior: pre-wedding spread ---------- */
.spread { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 26px; padding-top: 22px; }
.spread-lead { grid-column: 1 / 9; }
.spread-portrait { grid-column: 9 / 13; display: flex; flex-direction: column; }
.spread-portrait .photo { flex: 1; }
.spread-portrait .photo img { height: 100%; aspect-ratio: auto; object-position: 50% 70%; }
.spread-shore { grid-column: 1 / 6; }
.spread-sparks { grid-column: 6 / 10; }
.spread-note { grid-column: 10 / 13; align-self: start; }
.spread .rule-head { grid-column: 1 / -1; margin: 10px 0 0; }
.spread-loop { grid-column: span 6; }

/* ---------- Interior: announcements, guestbook, host, table card ---------- */
.bulletins .updates article:first-child h2 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); }
.bulletins .updates article:first-child p { font-size: 1.2rem; }
.page-kicker .owl { width: 1.3em; height: 1.3em; }
.guest-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 0 34px; padding-top: 22px; align-items: start; }
.coupon { position: relative; padding: 20px clamp(14px, 3vw, 28px) 24px; background: var(--paper-hi); border: 3px dashed var(--ink); }
.coupon::before { content: '\2702'; position: absolute; top: -15px; left: 22px; padding: 0 4px; font-size: 1.3rem; line-height: 1; background: var(--paper); }
.coupon-head { padding: 6px 10px 5px; margin: 0 0 8px; background: var(--ink); color: var(--paper-hi); font: 400 1.5rem/1 var(--blackletter); text-align: center; }
.guest-aside { display: grid; gap: 24px; padding-left: 30px; border-left: 2px solid var(--ink); }
.guest-aside .still { aspect-ratio: 4 / 3; object-position: 70% 40%; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.1rem 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--ink); }
.steps li::before { content: counter(step); font: 400 1.8rem/1 var(--blackletter); color: var(--oxblood); }
.guest-shares { margin-top: 34px; }
.host-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 34px; padding-top: 22px; align-items: start; }
.desk > .block-head { margin-bottom: 14px; }
.desk-wide { grid-column: 1 / -1; }
.desk-card { margin-top: 20px; padding-top: 10px; border-top: 2px solid var(--ink); }
.host-layout .updates:empty { display: none; }
.host-layout .updates { margin-top: 16px; border-top: 2px solid var(--ink); }
.review-list:not(:has(article)) { font-style: italic; color: var(--ink-soft); }
.review-list:has(article) { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 30px 50px; padding-top: 22px; align-items: start; }
.card-notes p { max-width: 46ch; }
.card-notes p + p { margin-top: .6em; }
.card-notes .button { margin-top: 18px; }
.table-card { position: relative; width: min(100% - 20px, 400px); padding: 16px 20px 20px; text-align: center; background: var(--paper-hi); border: 4px solid var(--ink); outline: 2px dashed var(--ink); outline-offset: 7px; margin: 10px; }
.table-card::before { content: '\2702'; position: absolute; top: -23px; right: 26px; padding: 0 4px; font-size: 1.3rem; line-height: 1; background: var(--paper); }
.tc-ears { display: flex; justify-content: space-between; font: 800 .85rem/1.2 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .08em; }
.tc-emblem { width: 92px; margin: 8px auto 0; color: var(--ink); --emblem-paper: var(--paper-hi); }
.table-card { container-type: inline-size; }
.table-brand { font: 400 clamp(1.45rem, 7.2vw, 2.15rem)/1 var(--blackletter); font-size: min(9.6cqi, 2.15rem); padding: 6px 0 10px; border-bottom: 7px double var(--ink); white-space: nowrap; }
.tc-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 3px 12px 4px; background: var(--ink); color: var(--paper-hi); font: 400 1.2rem/1.1 var(--blackletter); }
.tc-tag .owl { width: 1.2em; height: 1.2em; }
.table-card h2 { margin-top: 10px; font-size: clamp(2rem, 8.6vw, 2.7rem); line-height: .88; text-transform: uppercase; }
.tc-qr { width: 60%; margin: 14px auto 10px; padding: 8px; background: #fffdf6; border: 2px solid var(--ink); image-rendering: pixelated; }
.tc-copy { font-style: italic; line-height: 1.35; }
.card-url { margin-top: 6px; padding-top: 8px; border-top: 2px solid var(--ink); font: 800 clamp(1rem, 4.6vw, 1.15rem)/1.2 var(--condensed); font-stretch: condensed; letter-spacing: .06em; overflow-wrap: anywhere; }

/* ---------- Owl Post easter egg (extras.js): opt-in, quiet ---------- */
.owl-trigger { display: inline-flex; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.emblem-trigger { display: block; width: 100%; }
.owl-trigger .emblem, .owl-trigger .crest, .owl-trigger .owl { transition: transform .16s ease-out; }
.owl-trigger:hover .emblem, .owl-trigger:focus-visible .emblem { transform: scale(1.025); }
.owl-trigger:hover .owl, .owl-trigger:focus-visible .owl { transform: translateY(-1px); }
.ad-tag .owl-trigger:focus-visible, .tc-tag .owl-trigger:focus-visible { outline-color: var(--paper-hi); }
.owl { width: 1.4em; height: 1.4em; flex: none; }
.ear-button { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: .2em; }
.ear-line.turned { animation: ear-in .16s ease-out; }
@keyframes ear-in { from { opacity: 0; } }
.note-head { display: flex; align-items: center; gap: 12px; padding: 12px 64px 10px 14px; background: var(--ink); color: var(--paper-hi); font: 400 1.35rem/1 var(--blackletter); }
.note-head .owl { width: 1.5em; height: 1.5em; }
.note-sheet { padding: 18px 22px 22px; }
.note-sheet h2 { margin: 0 70px 12px 0; padding-bottom: 10px; border-bottom: 5px double var(--ink); font-size: clamp(1.8rem, 6vw, 2.3rem); line-height: .9; text-transform: uppercase; }
.note-sheet p + p { margin-top: .7em; }
.note-sign { font: 400 1.15rem/1.2 var(--blackletter); text-align: right; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .tabloid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 24px; }
  .story { grid-column: 1 / -1; grid-row: 1; padding: 0 !important; border: 0 !important; }
  .programme { padding-left: 0 !important; border-left: 0 !important; }
  .days { grid-template-columns: minmax(0, 1fr); }
  .day, .day:first-child { padding: 0 0 18px; border-left: 0; }
  .spread-lead { grid-column: 1 / -1; }
  .spread-portrait { grid-column: 1 / 7; }
  .spread-shore { grid-column: 7 / 13; }
  .spread-sparks { grid-column: 1 / 7; }
  .spread-note { grid-column: 7 / 13; }
}
@media (max-width: 760px) {
  .mast { grid-template-columns: 76px minmax(0, 1fr); gap: 0 10px; padding-bottom: 6px; }
  .mast-ears { display: none; }
  .masthead { white-space: normal; font-size: clamp(2rem, 11.2vw, 3.3rem); font-size: min(17cqi, 3.6rem); line-height: .92; padding: 0 0 4px; }
  .mast-motto { display: none; }
  .stamp { position: relative; right: auto; bottom: auto; grid-column: 1 / -1; justify-self: end; margin: 2px 4px 4px 0; padding: 4px 8px 3px; font-size: .8rem; border-width: 3px; --stamp-rot: -3deg; }
  .dateband { font-size: .74rem; letter-spacing: .04em; padding-right: 8px; }
  .dateband span:last-child { display: none; }
  .dateband b { font-size: 1.05rem; padding: 3px 9px 2px; }
  .lead { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'banner' 'photo' 'facts'; padding-top: 10px; }
  .b-kicker { font-size: 1.05rem; margin-bottom: 2px; }
  .b-names { font-size: clamp(3rem, 19.5vw, 5.6rem); font-size: min(23cqi, 6rem); }
  .b-verb { font-size: clamp(1.7rem, 9vw, 2.6rem); margin-top: .1em; padding-top: 4px; border-top-width: 3px; }
  .lead-photo-wrap { transform: none; margin-top: 10px; }
  .wax-seal { width: 50px; height: 50px; font-size: 1.05rem; right: 10px; bottom: -24px; }
  .lead-facts { margin-top: 18px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .lead-actions .button { flex: 1 1 140px; }
  .tabloid { grid-template-columns: minmax(0, 1fr); }
  .tabloid > *, .tabloid > * + * { padding: 0; border-left: 0; }
  .story-cols { columns: 1; text-align: left; hyphens: manual; }
  .moving-grid { grid-template-columns: minmax(0, 1fr); }
  .schedule-layout, .bulletin-layout, .guest-layout, .host-layout, .card-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 16px; }
  .sidebar, .guest-aside { padding: 0; border-left: 0; }
  .spread { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 16px; }
  .spread > * { grid-column: 1 / -1 !important; }
  .spread-portrait .photo img { aspect-ratio: 4 / 5; height: auto; }
  .card-layout .table-card { justify-self: center; }
  .ad-owl { margin: 8px 6px; }
  .note-sheet { padding: 16px 16px 20px; }
}

/* ---------- Print: the table card alone ---------- */
@media print {
  @page { size: A6 portrait; margin: 8mm; }
  body { background: #fff; }
  .page-table-card .top, .page-table-card .footer, .page-table-card .folio, .page-table-card .page-head, .page-table-card .card-notes, .skip { display: none !important; }
  .page-table-card .sheet { clip-path: none; background: #fff; box-shadow: none; margin: 0; padding: 0; width: auto; animation: none; }
  .page-table-card .sheet-inner { border: 0; box-shadow: none; background: none; padding: 0; }
  .page-table-card .card-layout { display: block; padding: 0; }
  .table-card { width: 100%; max-width: 88mm; margin: 4mm auto; background: #fff; break-inside: avoid; }
  .table-card::before { background: #fff; }
  .table-brand { font-size: 1.7rem; }
  .table-card h2 { font-size: 2rem; }
  .tc-tag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Wand cursor (fine pointers only) and the wand response ---------- */
@media (hover: hover) and (pointer: fine) {
  .top a, .sheet a, .sheet .loop, .sheet .photo, .owl-trigger, .ear-button, .sheet .button, #print-card, .letter-trigger, .lost-turn, .charm { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2732%27%20height%3D%2732%27%20viewBox%3D%270%200%2032%2032%27%3E%3Cpath%20d%3D%27M3.5%203.5%20L27%2027%27%20stroke%3D%27%23f4e6c2%27%20stroke-width%3D%275%27%20stroke-linecap%3D%27round%27/%3E%3Cpath%20d%3D%27M18%2018%20L27.5%2027.5%27%20stroke%3D%27%23f4e6c2%27%20stroke-width%3D%277%27%20stroke-linecap%3D%27round%27/%3E%3Cpath%20d%3D%27M3.5%203.5%20L27%2027%27%20stroke%3D%27%2317120d%27%20stroke-width%3D%272.6%27%20stroke-linecap%3D%27round%27/%3E%3Cpath%20d%3D%27M18.5%2018.5%20L27%2027%27%20stroke%3D%27%2317120d%27%20stroke-width%3D%274.6%27%20stroke-linecap%3D%27round%27/%3E%3Cpath%20d%3D%27M18.6%2021.4%20l2.8%20-2.8%20M22%2024.8%20l2.8%20-2.8%27%20stroke%3D%27%23c9a14a%27%20stroke-width%3D%271.3%27/%3E%3Ccircle%20cx%3D%273.5%27%20cy%3D%273.5%27%20r%3D%271.7%27%20fill%3D%27%23c9a14a%27/%3E%3C/svg%3E") 3 3, pointer; }
  .sheet input, .sheet textarea { cursor: text; }
  .sheet input[type=file], .sheet .picker, .sheet form button { cursor: pointer; }
}
.wand-target { position: relative; }
.sheet a.wand-target::after, .ear-button.wand-target::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, #c9a14a, #8a6a24); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.owl-trigger.wand-target::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #c9a14a; opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .sheet a.wand-cast::after, .ear-button.wand-cast::after { animation: wand-sweep .2s ease-out; }
  .owl-trigger.wand-cast::after { animation: wand-ring .2s ease-out; }
  @keyframes wand-sweep { from { transform: scaleX(0); opacity: 1; } 80% { transform: scaleX(1); opacity: 1; } to { transform: scaleX(1); opacity: 0; } }
  @keyframes wand-ring { from { opacity: .9; transform: scale(.9); } to { opacity: 0; transform: scale(1.08); } }
}

/* ---------- Page turning (pageturn.js; the control is a real link) ---------- */
.page-turn-row { display: flex; justify-content: flex-end; margin: 26px -4px -6px 0; }
.page-turn {
  --pull: 0;
  position: relative;
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 210px;
  min-height: 64px;
  padding: 12px 64px 12px 18px;
  color: var(--ink);
  text-decoration: none;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  background: linear-gradient(135deg, transparent 0 60%, #00000010 100%);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.pt-kicker { font: 800 .85rem/1.1 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .1em; color: var(--oxblood); }
.pt-title { font: 400 1.7rem/1 var(--blackletter); }
/* The dog-eared corner: a folded flap that lifts as the reader pulls it. */
.page-turn::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46px;
  height: 46px;
  background: linear-gradient(315deg, var(--desk) 0 50%, transparent 50%), linear-gradient(135deg, var(--paper-hi) 0 50%, transparent 50%);
  background-blend-mode: normal;
  box-shadow: -3px -3px 6px #00000033;
  clip-path: polygon(100% 0, 0 100%, 100% 100%, 100% 0, 0 100%, 0 0);
  transform-origin: 100% 100%;
  transform: scale(calc(1 + var(--pull) * .9));
  transition: transform .18s ease-out;
}
.page-turn::before { content: ''; position: absolute; right: 0; bottom: 0; width: 46px; height: 46px; background: linear-gradient(135deg, transparent calc(50% - 1px), #3b281455 50%, transparent calc(50% + 1px)); transform-origin: 100% 100%; transform: scale(calc(1 + var(--pull) * .9)); transition: transform .18s ease-out; pointer-events: none; z-index: 1; }
.page-turn.dragging::after, .page-turn.dragging::before { transition: none; }
.page-turn.ready::after, .page-turn.ready::before { --pull: .25; }
.page-turn:hover .pt-title, .page-turn:focus-visible .pt-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
@media (hover: hover) and (pointer: fine) { .page-turn { cursor: grab; } .page-turn.dragging { cursor: grabbing; } }


/* ---------- Schedule: the Programme of Ceremonies insert ---------- */
.insert { position: relative; padding: clamp(14px, 2vw, 24px); background: var(--paper-hi); border: 8px double var(--ink); box-shadow: inset 0 0 0 4px var(--paper-hi), inset 0 0 0 6px var(--ink), 6px 8px 0 #17120d33; }
.insert-head { display: grid; justify-items: center; text-align: center; gap: 6px; padding-bottom: 12px; }
.insert-crest { width: 74px; height: 74px; --crest-ground: var(--paper-hi); color: var(--ink); }
.insert-title { font: 400 clamp(2rem, 4.4vw, 3.8rem)/1 var(--blackletter); }
.insert-band { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; width: 100%; padding: 6px 0 5px; border-block: 4px solid var(--ink); font: 800 .95rem/1.2 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .1em; }
.insert-band span + span::before { content: '\2726'; margin: 0 .8em; color: var(--oxblood); }
.insert-days { display: grid; gap: 0; margin-top: 16px; }
.iday { display: grid; grid-template-columns: clamp(96px, 14vw, 150px) minmax(0, 1fr); border-top: 5px solid var(--ink); }
.iday:last-child { border-bottom: 5px solid var(--ink); }
.iday-head { display: grid; align-content: center; justify-items: center; padding: 12px 6px; background: var(--ink); color: var(--paper-hi); text-align: center; grid-row: span 2; }
.iday-head b { font-size: clamp(3.6rem, 7vw, 6rem); line-height: .8; }
.iday-head span { margin-top: 6px; font: 400 1.15rem/1.1 var(--blackletter); text-transform: none; letter-spacing: 0; }
.iday-head time { display: block; font-size: 1.35rem; color: #e7c98a; }
.ievents { padding: 6px 0 6px clamp(14px, 2vw, 22px); }
.ievent { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 0; }
.ievent + .ievent { border-top: 1px solid var(--ink); }
.ievent dt { font: 800 clamp(1.9rem, 3.6vw, 3rem)/.95 var(--condensed); font-stretch: condensed; text-transform: uppercase; }
.ievent dt::after { content: ''; }
.ievent dd { flex: 1 1 120px; display: flex; align-items: baseline; gap: 10px; font: italic 400 clamp(1.1rem, 1.6vw, 1.35rem)/1.2 var(--text); color: var(--ink-soft); overflow-wrap: anywhere; }
.ievent dd::before { content: ''; flex: 1; min-width: 24px; border-bottom: 3px dotted var(--ink); transform: translateY(-.25em); order: -1; }
.ievent-note { grid-column: 2; padding: 0 0 12px clamp(14px, 2vw, 22px); font-style: italic; }
.insert-foot { margin-top: 12px; padding-right: 76px; font-style: italic; }
.insert-seal { right: 14px; bottom: -22px; }
@media (max-width: 760px) {
  .page-turn { min-width: 0; width: 100%; padding-right: 58px; }
  .iday { grid-template-columns: 78px minmax(0, 1fr); }
  .iday-head span { font-size: .95rem; }
  .iday-head time { font-size: 1.05rem; }
  .insert-band { font-size: .78rem; letter-spacing: .05em; }
  .insert-band span + span::before { margin: 0 .5em; }
  .insert { border-width: 6px; }
}

/* ---------- Legibility: the Pyaar token and the NR monogram ---------- */
/* Only the y is set in a Roman serif so the word reads as Pyaar; P and aar stay blackletter. */
.pyaar-y { font-family: 'Bodoni 72', Didot, 'Bodoni MT', 'Times New Roman', serif; font-weight: 700; font-style: normal; font-stretch: normal; font-size: 1.04em; letter-spacing: .02em; margin-left: .02em; text-transform: none; }
.wax-seal, .note-seal { font: 700 1.3rem/1 'Bodoni 72', Didot, 'Times New Roman', serif; letter-spacing: .01em; color: #f6e2cc; }
.wax-seal span, .note-seal span { margin: 0 .14em; font-size: .58em; font-weight: 400; vertical-align: .38em; }
@media (max-width: 760px) { .wax-seal { font-size: 1.05rem; } }
.wax-seal, .note-seal { display: flex; align-items: center; justify-content: center; white-space: nowrap; }

/* ---------- Stop press strip: the latest announcement, near the top of the front page ---------- */
.notice-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 8px; padding: 8px 12px 9px; border: 2px solid var(--ink); border-left-width: 8px; background: var(--paper-hi); overflow-wrap: anywhere; }
.notice-strip h2 { font: 400 1.45rem/1 var(--blackletter); color: var(--oxblood); text-transform: none; }
.notice-strip p { flex: 1 1 240px; font-style: italic; line-height: 1.35; }
.notice-strip .text-link { font: 800 .95rem/1.2 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 760px) { .notice-strip { padding: 6px 10px 7px; border-left-width: 6px; } .notice-strip h2 { font-size: 1.2rem; } .notice-strip p { font-size: .95rem; flex-basis: 100%; order: 2; } }

/* ================= Unrolling parchment: pages, headlines, notices and the Owl Post letter ================= */
@property --unroll { syntax: '<number>'; inherits: true; initial-value: 1; }

/* The parchment roll that carries each page down the desk (drawn on the nav so it sits above the sheet). */
.top::after {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(100% + clamp(16px, 2.6vw, 36px) - 13px);
  width: calc(min(100% - 2 * var(--gutter), 1320px) + 20px);
  height: 26px;
  border-radius: 13px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 0);
  background:
    radial-gradient(ellipse 10px 13px at 10px 50%, #5e4626 0 55%, #3a2a14 56% 70%, transparent 72%),
    radial-gradient(ellipse 10px 13px at calc(100% - 10px) 50%, #5e4626 0 55%, #3a2a14 56% 70%, transparent 72%),
    repeating-linear-gradient(90deg, transparent 0 37px, #00000010 37px 38px),
    linear-gradient(#7c6037, #f1e3bf 28%, #e6d3a6 52%, #b0915b 80%, #6a4f2a);
  box-shadow: 0 10px 18px #000a, 0 2px 0 #00000066;
}
.sheet-inner .masthead, .sheet-inner .b-names, .sheet-inner .b-verb, .sheet-inner .page-head h1, .insert-title, .note-ink { --ink-delay: 0s; }

@media (prefers-reduced-motion: no-preference) {
  /* 1. The page unrolls from the top of the desk, on load and on every page turn. */
  .top::after { animation: rod-move-a 1.6s cubic-bezier(.35, .55, .3, 1) .4s both, rod-show-a 2s linear both; }
  html.unroll-alt .top::after { animation-name: rod-move-b, rod-show-b; }
  @keyframes rod-move-a { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 106vh); } }
  @keyframes rod-move-b { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 106vh); } }
  @keyframes rod-show-a { 0%, 84% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes rod-show-b { 0%, 84% { opacity: 1; } 100% { opacity: 0; } }

  /* 2. Headlines are written in ink as the parchment opens. */
  .sheet-inner .masthead { --ink-delay: .8s; }
  .sheet-inner .b-names { --ink-delay: 1.1s; }
  .sheet-inner .b-verb { --ink-delay: 1.55s; }
  .sheet-inner .page-head h1 { --ink-delay: .9s; }
  .insert-title { --ink-delay: 1.2s; }

  /* 3. The edition stamp is pressed on once the headline is set. */
  .stamp { animation: stamp-press .32s cubic-bezier(.3, .7, .3, 1) 1.95s backwards; }
  @keyframes stamp-press { from { opacity: 0; transform: rotate(var(--stamp-rot)) scale(1.4); } 70% { opacity: 1; transform: rotate(var(--stamp-rot)) scale(.97); } to { opacity: 1; transform: rotate(var(--stamp-rot)) scale(1); } }

  /* 4. Notices unroll: Stop press unfurls sideways, dispatches unroll one after another. */
  .updates article:nth-child(2) { --n: 1; } .updates article:nth-child(3) { --n: 2; } .updates article:nth-child(4) { --n: 3; } .updates article:nth-child(n+5) { --n: 4; }

  /* 5. Further down the page (extras.js adds .reveal): classifieds and the programme unroll,
        framed photographs settle onto the page. Nothing is hidden without JavaScript. */
  .reveal .plate { animation: plate-settle .55s cubic-bezier(.2, .8, .25, 1) .1s backwards paused; }
  .reveal .lead-photo-wrap .plate { animation-delay: 1.15s; }
  .reveal .ad.in-view, .reveal .insert.in-view, .reveal .plate.in-view { animation-play-state: running; }
  @keyframes plate-settle { from { opacity: 0; transform: translateY(-18px) rotate(-2.5deg) scale(1.04); } }
}

/* ---------- The Owl Post letter: a sealed scroll that unrolls and inks itself in ---------- */
.owl-note { --unroll: 1; width: min(92vw, 470px); padding: 26px 0; overflow: visible; background: none; border: 0; box-shadow: none; }
/* The window (.note-scroll) carries no paper of its own, so nothing shows above the roll while it waits;
   the parchment lives on the content layer, which holds still while the window opens. */
.note-scroll { position: relative; margin: 0 6px; overflow: hidden; }
.note-scroll-in { display: block; background: var(--paper-hi); border-inline: 3px solid var(--ink); box-shadow: inset 0 12px 14px -10px #5e3f1a66, inset 0 -12px 14px -10px #5e3f1a66; }
.note-roll { position: absolute; left: -6px; right: -6px; height: 28px; border-radius: 14px; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 10px 14px at 10px 50%, #5e4626 0 55%, #3a2a14 56% 70%, transparent 72%),
    radial-gradient(ellipse 10px 14px at calc(100% - 10px) 50%, #5e4626 0 55%, #3a2a14 56% 70%, transparent 72%),
    linear-gradient(#7c6037, #f1e3bf 28%, #e6d3a6 52%, #b0915b 80%, #6a4f2a);
  box-shadow: 0 8px 14px #0009; }
.note-roll-top { top: 12px; }
.note-roll-bottom { top: calc(100% - 40px); }
.owl-note .close { top: -6px; right: -4px; z-index: 4; border-radius: 50%; }
.note-seal { position: absolute; left: calc(50% - 30px); top: 0; z-index: 3; width: 60px; height: 60px; }
.seal-whole { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #a93a2c, var(--oxblood) 55%, var(--oxblood-deep)); color: #f6e2cc; font: 700 1.2rem/1 'Bodoni 72', Didot, 'Times New Roman', serif; box-shadow: 0 2px 0 #3d0e0a, inset 0 0 0 4px #00000024; white-space: nowrap; }
.seal-whole span { margin: 0 .14em; font-size: .58em; font-weight: 400; vertical-align: .38em; }
.note-head { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 34px 18px 8px; background: none; color: var(--oxblood); font: 400 1.35rem/1 var(--blackletter); }
.note-head .owl { width: 1.5em; height: 1.5em; }
.note-sheet { padding: 6px 24px 40px; container-type: inline-size; }
.note-sheet h2 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 5px double var(--ink); font-size: clamp(1.4rem, 9.6cqi, 2.3rem); line-height: .9; text-transform: uppercase; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .owl-note[open] { animation: letter-arrive 1.1s cubic-bezier(.2, .7, .3, 1) backwards; will-change: transform; }
  /* The letter unrolls through a window that slides down while its text holds still; the lower roll travels by transform. */
  .owl-note[open] .note-scroll { animation: scroll-window .9s cubic-bezier(.22, .8, .3, 1) 1.65s backwards; }
  .owl-note[open] .note-scroll-in { animation: scroll-hold .9s cubic-bezier(.22, .8, .3, 1) 1.65s backwards; }
  .owl-note[open] .note-roll-bottom { animation: roll-down .9s cubic-bezier(.22, .8, .3, 1) 1.65s backwards; }
  @keyframes scroll-window { from { transform: translateY(-100%); } }
  @keyframes scroll-hold { from { transform: translateY(100%); } }
  @keyframes roll-down { from { transform: translateY(calc(-1 * var(--roll-travel, 300px))); } }
  .note-ink .ink, .note-ink .ink-in { --ink-delay: calc(2.3s + var(--line, 0) * .24s); }
  @keyframes letter-arrive { from { transform: translate(42vw, -75vh) rotate(12deg) scale(.5); } 70% { transform: translate(-1vw, 2vh) rotate(-2deg) scale(1.02); } }
}
@media (max-width: 760px) { .top::after { top: calc(100% + 8px - 13px); width: calc(100% - 2px); height: 22px; } }
/* The ragged clip-path already crops the sheet visually; overflow: clip keeps tilted or settling
   frames from widening the page while they wait to animate in. */
.sheet { overflow: clip; }

/* ================= The courier owl: carries the parchment in (pages and the Owl Post letter) ================= */
.courier { --owl-w: clamp(140px, 15vw, 230px); position: absolute; z-index: 1; left: 50%; top: calc(100% + clamp(16px, 2.6vw, 36px) - 13px - var(--owl-w) * .62); width: var(--owl-w); pointer-events: none; opacity: 0; transform: translate(-50%, 0); }
.courier-flight { display: block; }
.note-owl { position: absolute; z-index: 5; left: calc(50% - 90px); top: -126px; width: 180px; pointer-events: none; opacity: 0; }
@media (max-width: 760px) { .courier { top: calc(100% + 8px - 11px - var(--owl-w) * .62); } }
@media (prefers-reduced-motion: no-preference) {
  /* Pages: the owl swoops in, grips the roll, carries it down the desk, then lets go and leaves. */
  .courier { animation: courier-carry-a 1.6s cubic-bezier(.35, .55, .3, 1) .4s both, courier-show-a 2.85s linear both; }
  .courier-flight { animation: courier-flight-a 2.85s cubic-bezier(.4, .1, .3, 1) both; }
  html.unroll-alt .courier { animation-name: courier-carry-b, courier-show-b; }
  html.unroll-alt .courier-flight { animation-name: courier-flight-b; }
  @keyframes courier-carry-a { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 106vh); } }
  @keyframes courier-carry-b { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 106vh); } }
  @keyframes courier-show-a { 0%, 96% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes courier-show-b { 0%, 96% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes courier-flight-a { 0% { transform: translate(40vw, -30vh) rotate(-16deg) scale(.7); } 15% { transform: none; } 62% { transform: none; } 100% { transform: translate(44vw, -125vh) rotate(-26deg) scale(.8); } }
  @keyframes courier-flight-b { 0% { transform: translate(40vw, -30vh) rotate(-16deg) scale(.7); } 15% { transform: none; } 62% { transform: none; } 100% { transform: translate(44vw, -125vh) rotate(-26deg) scale(.8); } }
  /* The letter: the owl carries it in, releases it above the seal and flies away. */
  .owl-note[open] .note-owl { animation: note-owl-carry 2.2s cubic-bezier(.4, .1, .3, 1) both; }
  @keyframes note-owl-carry { 0%, 48% { opacity: 1; transform: none; } 100% { opacity: 1; transform: translate(-58vw, -80vh) rotate(-20deg) scale(.8); } }
}
/* The courier owl and roll finish their flights off-screen; never let that widen the page. */
body { overflow-x: clip; }
/* The courier owl parks past the right edge after its delivery; it must never widen the page (e.g. while a letter is open). */
.top { overflow-x: clip; }

/* ================= Turning the page at the centre fold, like a newspaper (router.js) ================= */
.leaf-still, .page-leaf { position: fixed; z-index: 9; pointer-events: none; }
.leaf-still { overflow: hidden; }
.page-leaf { transform-style: preserve-3d; transform-origin: left center; }
.page-leaf.backward { transform-origin: right center; }
.leaf-face { position: absolute; inset: 0; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.leaf-back { transform: rotateY(180deg); }
.page-leaf *, .page-leaf *::before, .page-leaf *::after, .leaf-still *, .leaf-still *::before, .leaf-still *::after { animation: none !important; transition: none !important; }
.page-leaf .sheet, .leaf-still .sheet { -webkit-mask: none; mask: none; }
@media (prefers-reduced-motion: no-preference) {
  .page-leaf.turning.forward { animation: leaf-forward 1.05s cubic-bezier(.45, .05, .3, 1) both; }
  .page-leaf.turning.backward { animation: leaf-backward 1.05s cubic-bezier(.45, .05, .3, 1) both; }
  @keyframes leaf-forward { from { transform: perspective(2600px) rotateY(0deg); } 50% { transform: perspective(2600px) rotateY(-90deg) translateZ(18px); } to { transform: perspective(2600px) rotateY(-180deg); } }
  @keyframes leaf-backward { from { transform: perspective(2600px) rotateY(0deg); } 50% { transform: perspective(2600px) rotateY(90deg) translateZ(18px); } to { transform: perspective(2600px) rotateY(180deg); } }
}
/* After a page turn, the page arrives fully printed (no ink-writing, stamp or unfurl replays). */
html.turned .ink, html.turned .ink-in, html.turned .stamp, html.turned .notice-strip,
html.turned .updates article, html.turned .reveal .seen { animation: none !important; }

/* The rendered 3D owl (media/owl3d, an original procedural render): 16-frame flap strip, talons at 182,237. */
@media (prefers-reduced-motion: no-preference) {
  /* The seal stays whole: it settles as the owl sets the letter down. */
  .owl-note[open] .seal-whole { animation: seal-settle .4s cubic-bezier(.3, .7, .3, 1) .95s backwards; }
  @keyframes seal-settle { from { transform: scale(1.12); } }
}

/* ================= Smoothness: everything below animates transform and opacity only ================= */
/* Unroll: a desk-textured cover slides down with the roll while its texture slides back up by the same
   amount, so the desk stays put and the sheet is uncovered without repainting it. */
.unroll-cover { position: absolute; z-index: 0; left: 0; top: calc(100% + clamp(16px, 2.6vw, 36px)); width: 100%; height: 108vh; overflow: hidden; pointer-events: none; opacity: 0; }
.unroll-desk { position: absolute; inset: auto; left: 0; top: calc(-1 * (var(--header-bottom, 60px) + clamp(16px, 2.6vw, 36px))); width: 100%; height: 100vh; z-index: 0; }
.top::after { z-index: 1; }
.courier { z-index: 2; }
@media (max-width: 760px) {
  .unroll-cover { top: calc(100% + 8px); }
  .unroll-desk { top: calc(-1 * (var(--header-bottom, 100px) + 8px)); }
}
/* Ink windows: the window slides open left to right while its text slides the opposite way. */
.ink { display: block; overflow: hidden; padding: .2em 1em; margin: -.2em -1em; }
.ink-in { display: block; }
.b-names .ink { padding-block: .06em; margin-block: -.06em; }
/* The 3D owl: a 16-frame strip stepped by transform inside a fixed window. */
.owl3d { position: relative; display: block; width: 100%; aspect-ratio: 360 / 270; overflow: hidden; }
.owl3d::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 1600%; background: url('media/owl3d/owl-tawny-flap-lite.webp') 0 0 / 100% 100% no-repeat; }
.page-leaf { will-change: transform; }
.leaf-cast { position: fixed; z-index: 8; pointer-events: none; opacity: 0; will-change: opacity; }
@media (prefers-reduced-motion: no-preference) {
  .unroll-cover { animation: cover-slide-a 1.6s cubic-bezier(.35, .55, .3, 1) .4s both, cover-show-a 2s linear both; will-change: transform; }
  .unroll-desk { animation: desk-hold-a 1.6s cubic-bezier(.35, .55, .3, 1) .4s both; will-change: transform; }
  @keyframes cover-slide-a { from { transform: translateY(0); } to { transform: translateY(106vh); } }
  @keyframes desk-hold-a { from { transform: translateY(0); } to { transform: translateY(-106vh); } }
  @keyframes cover-show-a { 0%, 99% { opacity: 1; } 100% { opacity: 0; } }
  .top::after, .courier, .courier-flight { will-change: transform, opacity; }

  .ink { animation: ink-window .8s cubic-bezier(.45, .05, .25, 1) var(--ink-delay, 0s) backwards; will-change: transform; }
  .ink-in { animation: ink-hold .8s cubic-bezier(.45, .05, .25, 1) var(--ink-delay, 0s) backwards; will-change: transform; }
  .masthead .ink, .masthead .ink-in { --ink-delay: .8s; }
  .b-names .ink, .b-names .ink-in { --ink-delay: 1.1s; }
  .b-verb .ink, .b-verb .ink-in { --ink-delay: 1.55s; }
  .page-head h1 .ink, .page-head h1 .ink-in { --ink-delay: .9s; }
  .insert-title .ink, .insert-title .ink-in { --ink-delay: 1.2s; }
  @keyframes ink-window { from { transform: translateX(-100%); } }
  @keyframes ink-hold { from { transform: translateX(calc(100% + 2em)); } }

  .notice-strip { transform-origin: left center; animation: unfold-side .7s cubic-bezier(.22, .8, .3, 1) 1.75s backwards; }
  @keyframes unfold-side { from { opacity: 0; transform: perspective(900px) rotateY(70deg); } }
  .updates article { transform-origin: top center; animation: unfold-down .65s cubic-bezier(.22, .8, .3, 1) calc(1.5s + var(--n, 0) * .16s) backwards; }
  .reveal .ad, .reveal .insert { transform-origin: top center; animation: unfold-down .75s cubic-bezier(.22, .8, .3, 1) .1s backwards paused; }
  @keyframes unfold-down { from { opacity: 0; transform: perspective(1000px) rotateX(-68deg); } }

  .courier .owl3d::before, .owl-note[open] .owl3d::before { animation: owl-flap-a .72s steps(16, jump-none) 4; will-change: transform; }
  html.unroll-alt .courier .owl3d::before { animation-name: owl-flap-b; }
  @keyframes owl-flap-a { from { transform: translateX(0); } to { transform: translateX(-93.75%); } }
  @keyframes owl-flap-b { from { transform: translateX(0); } to { transform: translateX(-93.75%); } }

  /* The fold shadow: a soft band cast across the uncovered half, animated by opacity only. */
  .leaf-cast.turning { animation: leaf-cast 1.05s cubic-bezier(.45, .05, .3, 1) both; }
  @keyframes leaf-cast { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 0; } }
}
html.turned .unroll-cover { display: none; }
.leaf-cast.forward { background: linear-gradient(90deg, #0000004d, transparent); }
.leaf-cast.backward { background: linear-gradient(270deg, #0000004d, transparent); }
.leaf-still .sheet-inner, .page-leaf .sheet-inner { contain: layout paint; }
.note-head .ink-in { display: flex; align-items: center; justify-content: center; gap: 10px; }
/* Entrance animations wait, posed at their first frame, until the page has painted twice (see the head
   script; it also releases them after 700 ms whatever happens), so they never share frames with loading. */
html.hold:not(.go) .unroll-cover, html.hold:not(.go) .unroll-desk, html.hold:not(.go) .top::after,
html.hold:not(.go) .courier, html.hold:not(.go) .courier-flight, html.hold:not(.go) .courier .owl3d::before,
html.hold:not(.go) .ink, html.hold:not(.go) .ink-in, html.hold:not(.go) .stamp, html.hold:not(.go) .notice-strip,
html.hold:not(.go) .updates article { animation-play-state: paused; }

/* ================= More Owl Post: hidden letter triggers ================= */
button.letter-trigger { -webkit-appearance: none; appearance: none; cursor: pointer; }
button.wax-seal { border: 0; padding: 0; transition: transform .2s ease-out; }
button.wax-seal:hover, button.wax-seal:focus-visible { transform: rotate(-12deg) scale(1.08); }
button.wax-seal:focus-visible, button.stamp:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
button.stamp { margin: 0; }
.extra-badge { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; }
.extra-badge:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
.dateband .extra-badge:focus-visible { outline: 2px solid var(--paper-hi); outline-offset: 2px; }
.skyline-trigger { display: block; width: 100%; margin-top: 30px; padding: 0; border: 0; background: none; color: inherit; }
.skyline-trigger .skyline { margin-top: 0; }
.skyline-trigger:focus-visible { outline-offset: 4px; }
.owl-flyby { position: fixed; left: 0; top: 0; z-index: 30; width: clamp(110px, 12vw, 180px); pointer-events: none; will-change: transform; }

/* ================= Lost & Found: a classified that turns over ================= */
.ad.lost-card { position: relative; padding: 0; border: 0; background: none; transform: rotate(-1.4deg); perspective: 1400px; }
.lost-flip { display: grid; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.3, .7, .25, 1); will-change: transform; }
.lost-card.flipped .lost-flip { transform: rotateY(180deg); }
.lost-face { grid-area: 1 / 1; position: relative; padding: 0 16px 16px; text-align: center; background: var(--paper-hi); border: 3px double var(--ink); box-shadow: inset 0 0 0 5px var(--paper-hi), inset 0 0 0 6px var(--ink), 5px 6px 0 #17120d33; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.lost-back { transform: rotateY(180deg); background: #f4e7c7; }
.lost-face::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 26px; height: 26px; background: linear-gradient(315deg, var(--paper) 0 50%, #c8ad78 50% 100%); box-shadow: -2px -2px 3px #0000002e; }
.lost-tag { margin: 0 -16px 8px; padding: 6px 8px 5px; background: var(--ink); color: var(--paper-hi); font: 400 1.2rem/1 var(--blackletter); }
.ad.lost-card h2 { font: 800 clamp(3rem, 4.6vw, 4.2rem)/.85 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .16em; margin-right: -.16em; color: var(--ink); text-shadow: 2px 2px 0 #7d1d1638; }
.lost-heart { display: block; width: 74%; margin: 2px auto 6px; overflow: visible; }
.lost-copy { font-style: italic; font-size: 1.02rem; line-height: 1.4; }
.lost-copy i { font-style: normal; font-weight: 700; }
.lost-reward { margin-top: 10px; padding: 6px 0 5px; border-block: 1px dashed var(--ink); font: 800 .92rem/1.25 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .07em; }
.lost-reward b { color: var(--oxblood); }
.lost-sign { margin-top: 8px; padding-right: 22px; text-align: right; font: italic 700 1.6rem/1 'Bodoni 72', Didot, 'Times New Roman', serif; letter-spacing: .02em; color: var(--oxblood); }
.lost-sign::before { content: '\2014\00a0'; }
.claimed-stamp { position: absolute; right: 8px; top: 40%; padding: 4px 10px 3px; color: var(--oxblood); border: 3px double var(--oxblood); font: 800 1.15rem/1 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .22em; transform: rotate(-16deg); background: #f4e7c7b3; }
.lost-turn { position: absolute; inset: 0; z-index: 3; padding: 0; border: 0; background: transparent; cursor: pointer; }
.lost-turn:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 5px; }
.lost-wing { transform-box: view-box; transition: transform .35s ease-out; }
.lost-wing-l { transform-origin: 50px 52px; }
.lost-wing-r { transform-origin: 110px 52px; }
@media (hover: hover) {
  .lost-card:hover .lost-wing-l { transform: rotate(-14deg); }
  .lost-card:hover .lost-wing-r { transform: rotate(14deg); }
  .lost-card:hover .lost-flip { transform: rotateY(-8deg); }
  .lost-card.flipped:hover .lost-flip { transform: rotateY(188deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .stamp.restamp { animation: stamp-press .34s cubic-bezier(.3, .7, .3, 1) both !important; }
  .owl-flyby .owl3d::before { animation: owl-flap-a .72s steps(16, jump-none) infinite; }
  .lost-card.flipped .arrowed { animation: heart-thump .6s cubic-bezier(.3, .7, .3, 1) .55s both; }
  .lost-card.flipped .claimed-stamp { animation: claim-press .32s cubic-bezier(.3, .7, .3, 1) .8s both; }
  @keyframes heart-thump { 0%, 100% { transform: scale(1); } 35% { transform: scale(1.12); } 60% { transform: scale(.97); } }
  @keyframes claim-press { from { opacity: 0; transform: rotate(-16deg) scale(1.6); } 70% { opacity: 1; transform: rotate(-16deg) scale(.96); } to { opacity: 1; transform: rotate(-16deg) scale(1); } }
}
@media (prefers-reduced-motion: reduce) { .lost-flip { transition: none; } }

/* ================= Enchantments (extras.js charms, spells.js spells) ================= */
.charm-layer { position: fixed; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.petal { position: absolute; left: 0; top: 0; border-radius: 70% 0 70% 0; background: radial-gradient(circle at 30% 30%, #ffb347, #f07a1a 70%, #c4520c); box-shadow: inset -2px -2px 0 #0000001f; will-change: transform, opacity; }
.petal-gold { background: radial-gradient(circle at 30% 30%, #ffe08a, #f6b21b 70%, #c98a0b); }
.petal-saffron { background: radial-gradient(circle at 30% 30%, #ffc56b, #ee8c1f 70%, #b85d0a); }
.wisp { position: absolute; bottom: -24px; will-change: transform, opacity; }
.wisp svg { display: block; width: 100%; height: auto; overflow: visible; }
.wisp path { fill: none; stroke: #fffaf0; stroke-width: 4.5; stroke-linecap: round; opacity: .95; }
.wisp .wisp-soft { stroke: #6b4a2a; stroke-width: 11; opacity: .22; }
.dhol-ring { position: absolute; left: 50%; top: 50%; width: 46vmin; height: 46vmin; border-radius: 50%; border: 6px double #b8862b; box-shadow: 0 0 0 2px #7d1d1640; will-change: transform, opacity; }
.gilded { background: linear-gradient(100deg, currentColor 0 38%, #c8902c 44%, #ffe9a8 50%, #c8902c 56%, currentColor 62% 100%) 100% 0 / 260% 100% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .gilded { animation: gild-sweep 1.9s cubic-bezier(.4, .1, .3, 1) both; }
  @keyframes gild-sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
}
@media (prefers-reduced-motion: reduce) { .gilded { background: none; -webkit-text-fill-color: #a8741a; } }

/* The chai stain under the front-page story: press it for the Book of Household Charms. */
.chai-stain { display: block; width: 118px; margin: 22px 10px 0 auto; padding: 0; border: 0; background: none; transform: rotate(-14deg); }
.chai-stain svg { display: block; width: 100%; height: auto; }
button.chai-stain { border-radius: 50%; transition: transform .25s ease-out; }
button.chai-stain:hover, button.chai-stain:focus-visible { transform: rotate(-8deg) scale(1.05); }
button.chai-stain:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 2px; }

/* The Book's charm buttons (and the spell list) inside the letter. */
.note-scroll-in { max-height: calc(100dvh - 150px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.owl-note .ink { padding-inline: .3em; margin-inline: -.3em; }
.charm-list { margin: 12px 0 6px; }
.charm-list .ink-in { display: grid; gap: 6px; }
.charm-group { margin: 10px 0 2px; font: 400 1.2rem/1 var(--blackletter); color: var(--oxblood); text-align: center; }
.charm { display: grid; grid-template-columns: 5.4em 1fr; gap: 0 10px; align-items: baseline; padding: 7px 10px; border: 1px solid var(--ink); background: #f6ecd2; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.charm:hover { background: #fff3d6; }
.charm:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 2px; }
.charm-word { grid-row: span 2; font: italic 700 1.15rem/1.05 'Bodoni 72', Didot, 'Times New Roman', serif; color: var(--oxblood); overflow-wrap: anywhere; }
.charm-name { font: 800 .88rem/1.15 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .06em; }
.charm-note { font-style: italic; font-size: .9rem; line-height: 1.3; color: var(--ink-soft); }
.charm-list.spells .ink-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.charm-list.spells .charm { grid-template-columns: 1fr; }
.charm-list.spells .charm-word { grid-row: auto; font-size: 1.02rem; }
.charm-list.spells .charm-note { display: none; }

/* ================= Spells (spells.js, fan homage) ================= */
.emblem-windows, .sky-window { transition: fill .6s ease; }
html.lumos .emblem-windows, html.lumos .sky-window { fill: #ffc94d; }
html.lumos .emblem, html.lumos .skyline { filter: drop-shadow(0 0 5px #ffb43acc); }
@media (hover: hover) and (pointer: fine) {
  html.lumos .top a, html.lumos .sheet a, html.lumos .sheet .loop, html.lumos .sheet .photo, html.lumos .owl-trigger, html.lumos .ear-button, html.lumos .sheet .button, html.lumos .letter-trigger, html.lumos .lost-turn, html.lumos .charm { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2732%27%20height%3D%2732%27%20viewBox%3D%270%200%2032%2032%27%3E%3Ccircle%20cx%3D%274%27%20cy%3D%274%27%20r%3D%274%27%20fill%3D%27%23ffd36b%27%20opacity%3D%27.45%27/%3E%3Cpath%20d%3D%27M3.5%203.5%20L27%2027%27%20stroke%3D%27%23f4e6c2%27%20stroke-width%3D%275%27%20stroke-linecap%3D%27round%27/%3E%3Cpath%20d%3D%27M18%2018%20L27.5%2027.5%27%20stroke%3D%27%23f4e6c2%27%20stroke-width%3D%277%27%20stroke-linecap%3D%27round%27/%3E%3Cpath%20d%3D%27M3.5%203.5%20L27%2027%27%20stroke%3D%27%2317120d%27%20stroke-width%3D%272.6%27%20stroke-linecap%3D%27round%27/%3E%3Cpath%20d%3D%27M18.5%2018.5%20L27%2027%27%20stroke%3D%27%2317120d%27%20stroke-width%3D%274.6%27%20stroke-linecap%3D%27round%27/%3E%3Cpath%20d%3D%27M18.6%2021.4%20l2.8%20-2.8%20M22%2024.8%20l2.8%20-2.8%27%20stroke%3D%27%23c9a14a%27%20stroke-width%3D%271.3%27/%3E%3Ccircle%20cx%3D%273.5%27%20cy%3D%273.5%27%20r%3D%272.2%27%20fill%3D%27%23fff1c4%27/%3E%3C/svg%3E") 3 3, pointer; }
}
.tilt-l, .tilt-r, .lead-photo-wrap, .ad.lost-card { transition: transform .9s cubic-bezier(.3, .7, .25, 1); }
html.mended .tilt-l, html.mended .tilt-r, html.mended .lead-photo-wrap, html.mended .ad.lost-card, html.mended .ad-lost { transform: none; }
.owl-flyby.patronus { opacity: .92; }
.owl-flyby.patronus .owl3d::before { filter: grayscale(1) brightness(2.1) contrast(.85) drop-shadow(0 0 8px #e6f4ff) drop-shadow(0 0 20px #9ccfff); }
.footprint { position: absolute; left: 0; top: 0; width: 20px; margin: -17px 0 0 -10px; opacity: 0; }
.footprint svg { display: block; width: 100%; height: auto; fill: #1d140c; stroke: #efe2c0; stroke-width: 1.2; }
.footprint-label { position: absolute; left: 0; top: 0; padding: 2px 9px 3px; background: #efe2c0eb; border: 1px solid #2a1f14; color: #2a1f14; font: italic 700 .98rem/1.1 'Bodoni 72', Didot, 'Times New Roman', serif; white-space: nowrap; opacity: 0; }
.footprint-heart { position: absolute; left: 0; top: 0; width: 44px; opacity: 0; }
.footprint-heart svg { display: block; width: 100%; height: auto; fill: #7d1d16; stroke: #2a1f14; stroke-width: 1.6; }

/* ================= The whisper: hints while a guest types an incantation ================= */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.whisper { position: fixed; left: 50%; bottom: 22px; z-index: 45; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 12px; max-width: min(92vw, 560px); padding: 9px 18px 10px; background: #efe2c0f5; color: #17120d; border: 1px solid #17120d; box-shadow: 0 0 0 3px #efe2c0f5, 0 0 0 4px #17120d, 0 16px 34px #000a; pointer-events: none; opacity: 0; transform: translate(-50%, 14px); transition: opacity .2s ease, transform .2s ease; will-change: transform, opacity; }
.whisper.on { opacity: 1; transform: translate(-50%, 0); }
.w-owl .owl { display: block; width: 1.6em; height: 1.6em; color: var(--oxblood); }
.w-word { font: italic 700 1.4rem/1.1 'Bodoni 72', Didot, 'Times New Roman', serif; white-space: pre; }
.w-ghost { opacity: .3; }
.w-note { flex-basis: 100%; text-align: center; font: 800 .8rem/1.2 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .08em; color: var(--oxblood); }
.whisper.listening .w-word { opacity: .5; text-decoration: line-through; text-decoration-thickness: 1px; }
.whisper.listening .w-word:empty, .whisper .w-word:has(.w-typed:empty) { display: none; }
.whisper.cast .w-word { color: #a8741a; }
.whisper.cast .w-note::before { content: '\2726\00a0'; }
/* The NR monogram on the wax seals. */
.wax-seal, .seal-whole { letter-spacing: .05em; }

/* ================= Speed ================= */
/* If the owl's image is not ready when the entrance starts, the roll is delivered without it. */
html.no-owl .courier { display: none; }

/* ================= Polish pass (independent review) ================= */
/* Letters: matte, slimmer rollers; a small impressed seal; a quiet close button with a full-size tap area. */
.note-roll { height: 12px; left: -4px; right: -4px; border-radius: 6px; background: linear-gradient(#a88a5c, #e8d6ad 40%, #d9c497 60%, #9c7f52); box-shadow: 0 3px 8px #0003; }
.note-roll-top { top: 20px; }
.note-roll-bottom { top: calc(100% - 32px); }
.note-seal { left: calc(50% - 17px); top: 9px; width: 34px; height: 34px; }
.seal-whole { font-size: .72rem; letter-spacing: .02em; color: #f0d5bf; border-radius: 47% 53% 51% 49% / 52% 47% 53% 48%; background: radial-gradient(circle at 40% 35%, #8d2a20, var(--oxblood) 60%, #4e100c); box-shadow: inset 0 0 0 2px #00000030, inset 0 0 0 4px #ffffff10, 0 1px 1px #0005; }
.note-head { padding-top: 26px; }
.owl-note .close { top: -12px; right: -14px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--ink); font-size: 1.05rem; background: radial-gradient(circle, var(--paper-hi) 0 13px, var(--ink) 13.5px 14.6px, transparent 15.2px); }
.note-owl { left: calc(50% - 65px); top: -96px; width: 130px; }
.note-scroll-in { max-height: calc(100dvh - 250px); }
.more-below { position: sticky; bottom: 0; display: none; padding: 14px 0 6px; text-align: center; background: linear-gradient(#efe5cd00, var(--paper-hi) 45%); font: 800 .78rem/1 var(--condensed); font-stretch: condensed; text-transform: uppercase; letter-spacing: .1em; color: var(--oxblood); pointer-events: none; }
.owl-note.has-more .more-below { display: block; }
/* Effects get their own layout and paint so adding them never re-lays-out the page. */
.charm-layer { contain: strict; }
/* Whisper: quieter, smaller, brief. */
.whisper { gap: 0 10px; padding: 6px 14px 7px; border-color: #17120d66; box-shadow: 0 6px 18px #0004; }
.w-owl { display: none; }
.w-word { font-size: 1.12rem; }
.w-note { font-size: .7rem; }
/* Gold ink: a bronze sweep that never washes out the names. */
.gilded { background: linear-gradient(100deg, currentColor 0 40%, #80551c 46%, #b07c2c 50%, #80551c 54%, currentColor 60% 100%) 100% 0 / 260% 100% no-repeat; -webkit-background-clip: text; background-clip: text; }
@media (prefers-reduced-motion: no-preference) { .gilded { animation-duration: .9s; } }
@media (prefers-reduced-motion: reduce) { .gilded { -webkit-text-fill-color: #80551c; } }
/* Steam: three thin warm-grey wisps from the chai stain. */
.wisp { bottom: auto; }
.wisp path { stroke: #5a4632; stroke-width: 3; opacity: .3; }
.wisp .wisp-soft { stroke: #5a4632; stroke-width: 9; opacity: .08; }
/* Footprints: small heel-and-toe prints in faded ink, names in quiet italics. */
.footprint { width: 9px; margin: -10px 0 0 -4.5px; }
.footprint svg { fill: #1d140c; stroke: none; }
.footprint-label { padding: 0; background: none; border: 0; font-size: .82rem; color: #2a1f14b3; }
.footprint-heart { width: 16px; }
.footprint-heart svg { stroke-width: 1; }
/* Patronus: a translucent silver silhouette with one soft glow. */
.owl-flyby.patronus { opacity: .72; }
.owl-flyby.patronus .owl3d::before { filter: grayscale(1) brightness(2.6) contrast(.55) drop-shadow(0 0 10px #cfe6ff); }
.leaf-still, .page-leaf, .leaf-cast { contain: strict; }

.charm-stage { position: fixed; inset: 0; z-index: 40; pointer-events: none; contain: strict; }
.charm-stage .charm-layer { position: absolute; }
.whisper { contain: layout paint style; }
.sr-only { contain: strict; }
/* A fixed-size hint box: its text changes can never ripple into the page layout. */
.whisper { width: min(92vw, 400px); height: 60px; padding: 6px 12px; flex-direction: column; flex-wrap: nowrap; justify-content: center; align-content: center; contain: strict; overflow: hidden; }
.whisper .w-word { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.whisper .w-note { flex-basis: auto; }

/* ================= For the binge-watchers (fandom.js) ================= */
/* Episode titles under each ceremony on the programme. */
.ievent dd.ep { flex: 1 1 100%; display: block; margin-top: -2px; font: italic 400 clamp(.98rem, 1.3vw, 1.12rem)/1.35 var(--text); color: var(--ink-soft); }
.ievent dd.ep::before { content: none; }
.ievent dd.ep b { margin-right: .55em; padding: 2px 6px 1px; background: var(--ink); color: var(--paper-hi); font: 800 .7rem/1.4 var(--condensed); font-stretch: condensed; font-style: normal; letter-spacing: .12em; vertical-align: .14em; }

/* The countdown: the right ear on wide screens, a line in the date band on phones. */
.dateband .countdown { display: none; }
@media (max-width: 760px) {
  .dateband { flex-wrap: wrap; }
  .dateband .countdown { display: block; flex: 1 1 100%; padding: 3px 0 1px 12px; border-top: 1px solid #e8d9b430; color: #e6c779; }
}

/* Platform 9–11: a railway ticket with punched notches. */
.ticket { padding: 12px 18px 14px; background: #efe1bb radial-gradient(circle at 50% 0, #fff6dc66, transparent 70%); border: 2px solid var(--ink); border-radius: 6px; text-align: center; }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.ticket::before { left: -12px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -12px; clip-path: inset(0 50% 0 0); }
.ticket.punched { background-image: radial-gradient(circle at calc(100% - 28px) 28px, #1b1510 0 7px, #17120d00 7.6px), radial-gradient(circle at 50% 0, #fff6dc66, transparent 70%); }
.ticket-rail { display: flex; justify-content: space-between; padding-bottom: 6px; border-bottom: 1px dashed var(--ink); font: 800 .76rem/1 var(--condensed); font-stretch: condensed; letter-spacing: .14em; text-transform: uppercase; }
.ticket-platform { margin: 10px 0 4px; font: 400 1.45rem/1 var(--blackletter); text-transform: none; letter-spacing: 0; }
.ticket-platform b { display: block; margin-top: 2px; font: 800 3.3rem/.95 var(--condensed); font-stretch: condensed; letter-spacing: .02em; color: var(--oxblood); }
.ticket-rows { display: grid; gap: 4px; margin: 8px 0; padding: 8px 0; border-block: 1px dashed var(--ink); text-align: left; }
.ticket-rows div { display: flex; gap: 10px; align-items: baseline; }
.ticket-rows dt { flex: 0 0 3.4em; font: 800 .7rem/1.5 var(--condensed); font-stretch: condensed; letter-spacing: .12em; text-transform: uppercase; }
.ticket-rows dd { font-style: italic; }
.ticket-fine { font-size: .9rem; font-style: italic; }
.ticket-punch { margin-top: 10px; padding: 8px 14px 7px; border: 2px dashed var(--ink); background: none; color: var(--ink); font: 800 .84rem/1 var(--condensed); font-stretch: condensed; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.ticket-punch:focus-visible, .sort-go:focus-visible, .gauntlet:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 3px; }
.ticket.punched .ticket-punch { border-style: solid; background: var(--ink); color: var(--paper-hi); cursor: default; }
.ticket-chad { position: absolute; right: 21px; top: 21px; width: 14px; height: 14px; border-radius: 50%; background: #efe1bb; border: 1px solid #17120d44; pointer-events: none; }

/* The Sorting Ceremony. */
.sorting { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px 26px; align-items: center; margin-top: 34px; padding: 20px clamp(14px, 3vw, 28px); background: var(--paper-hi); border: 3px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 4px; }
.sorting[hidden] { display: none; }
.sort-hat { width: 120px; transform-origin: 50% 88%; }
.hat-cone { fill: #6b5a43; stroke: var(--ink); stroke-width: 2; }
.hat-band { fill: #3c2f22; stroke: var(--ink); stroke-width: 1.5; }
.hat-brim { fill: #5a4a36; stroke: var(--ink); stroke-width: 2; }
.hat-patch { fill: #8d7859; }
.hat-stitch { fill: none; stroke: #ecdcb8; stroke-width: 1; stroke-dasharray: 2 2; }
.hat-hatch { fill: none; stroke: #17120d80; stroke-width: 1.2; }
.sorting h2 { margin: 2px 0 6px; font: 400 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--blackletter); }
.sort-picks { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 12px 0 14px; padding: 0; border: 0; }
.sort-picks label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px 6px; border: 1.5px solid var(--ink); font: 800 .84rem/1 var(--condensed); font-stretch: condensed; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.sort-picks input { width: 16px; height: 16px; margin: 0; accent-color: var(--oxblood); }
.sort-picks label:has(input:checked) { background: var(--ink); color: var(--paper-hi); }
.sort-picks label:has(input:focus-visible) { outline: 3px solid var(--oxblood); outline-offset: 2px; }
.sort-result { min-height: 3.4em; margin-top: 14px; }
.sort-ponder { font-size: 1.1rem; }
.sort-house { display: block; font: 400 clamp(2.1rem, 4.6vw, 3.3rem)/1 var(--blackletter); color: var(--house); }
.sort-line { display: block; margin-top: 6px; font-style: italic; }
.sort-share { display: block; margin-top: 8px; font: 800 .72rem/1.3 var(--condensed); font-stretch: condensed; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
@media (max-width: 760px) {
  .sorting { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .sort-hat { width: 96px; }
  .sort-picks { justify-content: center; }
}

/* The gauntlet in the footer: six sockets, lit as the stones are found. */
.gauntlet { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 6px; border: 1px solid #c9a14a66; border-radius: 999px; background: none; color: #e3cf9f; font: 800 .78rem/1 var(--condensed); font-stretch: condensed; font-style: normal; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.gauntlet[hidden] { display: none; }
.gauntlet svg { width: 26px; height: 31px; overflow: visible; }
.g-glove { fill: #8a6a24; stroke: #e0c27a; stroke-width: 1.2; stroke-linejoin: round; }
.g-cuff { fill: #6e531c; stroke: #e0c27a; stroke-width: 1.2; }
.g-gem { fill: #2a2118; stroke: #e0c27a; stroke-width: .8; }
.g-gem.lit { stroke: #fff6dc; stroke-width: 1; }
.gauntlet.complete { border-color: #e0c27a; box-shadow: 0 0 14px #e0c27a55; }
@media (prefers-reduced-motion: no-preference) {
  .gauntlet.flash svg { animation: gauntlet-flash 1.1s ease-out; }
  @keyframes gauntlet-flash { 0% { transform: scale(1); } 30% { transform: scale(1.35) rotate(-8deg); } 100% { transform: scale(1); } }
}

/* Unagi: everything that hides glows for a moment. */
html.unagi :is(.letter-trigger, .lost-turn, .ear-button, .ticket-punch, .sort-go, .gauntlet) { outline: 2px solid #e2b340 !important; outline-offset: 3px; box-shadow: 0 0 0 5px #e2b34033, 0 0 24px 6px #f4cf5a80 !important; }

/* Only the worthy. */
.wax-seal.letter-trigger { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.worthy-caption { position: absolute; left: 0; top: 0; max-width: min(320px, 86vw); margin: 0; padding: 10px 14px 9px; background: #f1e4c4; border: 2px solid var(--ink); box-shadow: 3px 4px 0 #17120d55; color: var(--ink); font: italic 400 1rem/1.35 var(--text); text-align: center; opacity: 0; }
.worthy-caption em { display: block; margin-top: 5px; color: var(--oxblood); font: 800 .8rem/1.2 var(--condensed); font-stretch: condensed; font-style: normal; letter-spacing: .14em; text-transform: uppercase; }

/* The Howler. */
.howler { position: absolute; left: 50%; top: 40%; width: 170px; height: 112px; margin: -56px 0 0 -85px; will-change: transform, opacity; }
.howler-env { position: absolute; inset: 0; perspective: 420px; background: linear-gradient(160deg, #b3261c, #7d1610); border-radius: 4px; box-shadow: 0 12px 26px #0008, inset 0 0 0 2px #5a0f0b; }
.howler-flap { position: absolute; left: 0; right: 0; top: 0; height: 62%; background: linear-gradient(#a3221a, #861a13); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; }
.howler-seal { position: absolute; left: 50%; top: 52%; width: 34px; height: 34px; margin: -17px 0 0 -17px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e8c35a, #a87b1e); color: #4a2a0a; font: 700 .8rem/1 'Bodoni 72', Didot, serif; }
.howler-shout { position: absolute; left: 4vw; right: 4vw; top: calc(40% + 78px); margin: 0; text-align: center; color: #8e1b16; font: 800 clamp(1.7rem, 6vw, 4.4rem)/1.02 var(--condensed); font-stretch: condensed; letter-spacing: .01em; text-shadow: 0 0 2px #f6ead0, 0 0 12px #f6ead0, 0 0 26px #f6ead0; opacity: 0; will-change: transform, opacity; }
.howler-shout.soft { color: var(--ink); font: italic 400 clamp(1.15rem, 3vw, 1.7rem)/1.2 var(--text); }
.howler-scrap { position: absolute; left: 50%; top: 40%; width: 14px; height: 9px; background: #9d1f17; }

/* Snap: dust. */
.dust { position: absolute; left: 0; top: 0; background: #2a2018; border-radius: 1px; }
.dust-light { background: #c9b48a; }
.sort-kicker { color: var(--oxblood); font: 800 .8rem/1 var(--condensed); font-stretch: condensed; letter-spacing: .16em; text-transform: uppercase; }

/* Notices from the Office desk (fandom.js): the Dundies, Dwight's fact, and the stricter editor. */
.teaser-kicker { margin-bottom: 4px; color: var(--oxblood); font: 400 1.05rem/1 var(--blackletter); }
.notice-card { position: absolute; left: 50%; top: 42%; width: min(88vw, 420px); padding: 18px 20px 16px; background: #f1e4c4; border: 2px solid var(--ink); box-shadow: 4px 6px 0 #17120d55, 0 18px 40px #0005; color: var(--ink); text-align: center; opacity: 0; will-change: transform, opacity; }
.notice-card p { margin: 0; }
.dundie { padding-top: 12px; }
.dundie-trophy { width: 54px; height: 81px; margin: 0 auto 6px; display: block; fill: #c9a14a; stroke: #6e531c; stroke-width: 1.4; filter: drop-shadow(0 2px 0 #6e531c); }
.dundie-and, .dundie-goes { font: 800 .82rem/1.3 var(--condensed); font-stretch: condensed; letter-spacing: .14em; text-transform: uppercase; }
.dundie-award { margin: 6px 0 8px !important; font: 400 clamp(1.5rem, 5vw, 2rem)/1.1 var(--blackletter); color: var(--oxblood); }
.fact { background: #f7f2e3; border-style: solid; font-family: 'Courier New', Courier, monospace; }
.fact-text { font: 700 1.12rem/1.4 'Courier New', Courier, monospace; text-align: left; }
.fact-sign { margin-top: 10px !important; font: italic 400 .95rem/1.3 var(--text); text-align: right; }
.redacted { background: none; border: 0; box-shadow: none; }
.redacted-stamp { display: inline-block; padding: 8px 16px 6px; border: 5px double #a1231b; color: #a1231b; font: 800 clamp(1.6rem, 6vw, 2.6rem)/1 var(--condensed); font-stretch: condensed; letter-spacing: .08em; text-transform: uppercase; background: #f1e4c4e6; transform: rotate(-6deg); }
.redacted-note { margin-top: 14px !important; display: inline-block; padding: 6px 12px; background: #f1e4c4; border: 1px solid var(--ink); font: italic 400 1rem/1.35 var(--text); }
.safety-sign { background: #f4ecd6; border: 4px solid #1f6b3a; box-shadow: inset 0 0 0 3px #f4ecd6, inset 0 0 0 5px #1f6b3a, 4px 6px 0 #17120d55; }
.safety-head { font: 800 1rem/1.2 var(--condensed); font-stretch: condensed; letter-spacing: .1em; text-transform: uppercase; color: #1f6b3a; }
.safety-count { margin: 10px 0 !important; perspective: 300px; }
.safety-count .flip { display: inline-block; min-width: 2.2ch; padding: 4px 10px 2px; background: #17120d; color: #f4ecd6; font: 800 3rem/1 var(--condensed); font-stretch: condensed; border-radius: 4px; }
.safety-foot { font: italic 400 .98rem/1.3 var(--text); }

/* Guestbook upload window (portal.js). */
.window-note { margin: 0 0 12px; padding: 8px 10px; border: 1.5px dashed var(--ink); font-style: italic; }
#submission[data-window='soon'] .window-note, #submission[data-window='closed'] .window-note { border-style: solid; background: var(--ink); color: var(--paper-hi); font-style: normal; }
#submission[data-window='soon'] :is(input, textarea, button, .picker), #submission[data-window='closed'] :is(input, textarea, button, .picker) { opacity: .5; cursor: not-allowed; }

/* Live guestbook and host desk (portal.js with worker/). */
.approved-more { display: block; margin: 18px auto 0; }
.media-fallback { display: grid; place-items: center; min-height: 140px; padding: 12px; background: var(--paper-lo); text-align: center; overflow-wrap: anywhere; }
.review-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 12px; border: 2px solid var(--ink); background: var(--paper-hi); }
.review-bar p { margin: 0 auto 0 0; }
.host-unlock { grid-column: 1 / -1; display: grid; gap: 8px; max-width: 420px; }
.host-unlock .status { margin: 0; font-style: italic; }
.review-list .actions .text-link { align-self: center; }

/* First visit: Owlie asks who is reading (extras.js). */
.reader-form { display: grid; gap: 8px; margin: 4px 0 14px; padding: 12px; border: 2px dashed var(--ink); background: #f4ead2; }
.reader-form label { font: 800 .82rem/1.2 var(--condensed); font-stretch: condensed; letter-spacing: .1em; text-transform: uppercase; }
.reader-row { display: flex; flex-wrap: wrap; gap: 8px; }
.reader-row input { flex: 1 1 150px; min-width: 0; padding: 9px 10px; border: 2px solid var(--ink); background: #fffaf0; font: 400 1.05rem/1.2 var(--text); color: var(--ink); }
.reader-row input:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 1px; }
.reader-row .button { flex: 0 0 auto; }
.paused-note { flex: 1 1 100%; margin: 0; padding: 6px 10px; background: var(--oxblood); color: var(--paper-hi); font-weight: 700; }
#submission[data-window='paused'] .window-note { border-style: solid; background: var(--ink); color: var(--paper-hi); font-style: normal; }
#submission[data-window='paused'] :is(input, textarea, button, .picker) { opacity: .5; cursor: not-allowed; }

#main .desk[hidden] { display: none; }
