@font-face{font-family:Playfair;src:url("assets/playfair.ttf") format("truetype");font-weight:500;font-display:swap}
@font-face{font-family:Playfair;src:url("assets/playfair-italic.ttf") format("truetype");font-weight:500;font-style:italic;font-display:swap}
:root {
  color-scheme: light;
  --ink: #352827;
  --muted: #6c625f;
  --berry: #a72e43;
  --line: #e6ded7;
  --paper: #fcfaf6;
  --serif: Playfair, Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; scrollbar-gutter: stable }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 "Segoe UI", Arial, sans-serif }
button, a { color: inherit; font: inherit; -webkit-tap-highlight-color: transparent }
button { cursor: pointer }
a { text-decoration: none }
button:focus-visible, a:focus-visible, input:focus-visible + span { outline: 3px solid #8f2943; outline-offset: 4px }
h1, h2, h3, p { margin: 0 }
h1, h2, h3 { font-family: var(--serif); font-weight: 500 }
[hidden] { display: none !important }
.wrap { width: min(1160px, calc(100% - 88px)); margin-inline: auto }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round }
.site-header { border-bottom: 1px solid var(--line) }
.header-inner, nav, nav a, .brand, .section-heading, .primary, .card-foot, .text-action, .time { display: flex; align-items: center }
.header-inner { min-height: 75px; justify-content: space-between; gap: 22px }
.brand { gap: 11px; font-family: var(--serif); font-size: 26px; letter-spacing: -1.3px; white-space: nowrap }
.brandmark { width: 34px; height: 34px; color: #ad3246; transform: rotate(-8deg) }
nav { gap: 7px }
nav a { gap: 8px; padding: 8px 15px; border-radius: 22px; font-size: 14px; font-weight: 550; color: var(--muted); transition: background .15s }
nav .icon { width: 16px; height: 16px }
nav a[aria-current] { color: var(--berry); background: #f6e7e7 }
nav a:hover { background: #f4ede7 }
.hero { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; min-height: 350px; margin-top: 30px; padding: 34px 5%; border: 1px solid #e9cdcf; border-radius: 19px; overflow: hidden; background: #f5dddf }
.hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 7px; background: repeating-linear-gradient(-45deg,#e2a5ad 0 9px,#f9e7e5 9px 18px); opacity: .85 }
.hero-copy { position: relative; z-index: 1 }
.dedication { color: #8f3d4c; font-size: 11px; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: 1.8px; display: flex; align-items: center; gap: 8px }
.dedication span { font-size: 14px; transform: rotate(-10deg) }
.hero h1 { margin: 11px 0 14px; font-size: clamp(48px, 4.55vw, 68px); line-height: 1.04; letter-spacing: -.048em }
.hero h1 em { color: var(--berry); font-weight: 500 }
.hero p { color: #594647; line-height: 1.55; font-size: 15px }
.primary { width: fit-content; justify-content: center; min-height: 43px; gap: 13px; padding: 10px 19px; border: 1px solid transparent; border-radius: 9px; background: var(--berry); color: white; font-size: 14px; font-weight: 600; transition: background .15s, transform .15s }
.primary:hover { background: #8d2336 }
.primary:active { transform: translateY(1px) }
.primary:disabled { background: #e8e0dd; color: #766666; cursor: default }
.hero-link { margin-top: 21px }
.hero-link .icon { width: 15px; height: 15px }
.hero-art { position: relative; align-self: stretch; display: grid; place-items: center }
.photo { position: relative; width: min(64%, 238px); padding: 9px 9px 5px; border: 1px solid #e8d6c8; background: #fff9ed; box-shadow: 3px 7px 15px #5c342d2b; transform: rotate(6deg); transition: transform .2s }
.photo:hover { transform: rotate(3deg) }
.photo::before { content: ""; position: absolute; top: -9px; left: 33%; width: 34%; height: 20px; background: #d7bd8cc4; transform: rotate(-12deg); clip-path: polygon(2% 0,100% 2%,97% 18%,100% 31%,97% 52%,100% 76%,98% 100%,0 98%,3% 74%,0 53%,3% 36%,0 14%) }
.photo img { display: block; width: 100%; height: clamp(205px, 16vw, 235px); object-fit: cover; object-position: 50% 3% }
.photo-caption { display: block; padding: 5px 0 2px; color: #78434b; font: italic 500 19px/1.3 var(--serif) }
.photo-caption span { color: var(--berry); margin-left: 3px }
.letter-art { position: absolute; bottom: -5px; left: 0; width: 34%; transform: rotate(-14deg); pointer-events: none; mask-image: radial-gradient(ellipse 68% 73%,black 60%,transparent 91%) }
dialog.photo-dialog { width: fit-content; background: #fff9ed; padding: 7px; border-radius: 9px }
.full-photo { display: block; height: auto; width: auto; max-height: calc(100dvh - 58px); max-width: min(82vw,650px); object-fit: contain }
#catalog { scroll-margin-top: 22px; margin-top: 34px }
.section-heading { justify-content: space-between; gap: 16px; margin-bottom: 19px }
.section-heading h2, #gallery-title { font-size: clamp(30px, 2.7vw, 41px); line-height: 1.26; letter-spacing: -.045em }
.issue-count { color: var(--muted); font-size: 13px; white-space: nowrap }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 23px }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: #fffdf9; transition: transform .18s, box-shadow .18s }
.card:has(button:focus-visible) { outline: 3px solid var(--berry); outline-offset: 3px }
@media(hover:hover) { .card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px #452d2210 } }
.card-art, .result-art { display: grid; place-items: center; position: relative; overflow: hidden }
.mood { --tint: #d7e9e2 }
.mind { --tint: #e4dff0 }
.charm { --tint: #f7edce }
.card-art { height: clamp(145px, 13.4vw, 185px); background: var(--tint); border-bottom: 1px solid #3d2b2b0c }
.card-art img { position: absolute; inset: 0; margin: auto; height: 87%; width: 84%; object-fit: contain; mask-image: radial-gradient(ellipse 67% 85%,black 65%,transparent 93%) }
.time { position: absolute; left: 14px; top: 13px; gap: 4px; padding: 3px 8px; border-radius: 14px; font-size: 11px; line-height: 1.5; font-weight: 550; color: #514944; background: #fffdf4e6 }
.time .icon { width: 13px; height: 13px }
.card-body { flex: 1; display: flex; flex-direction: column; align-items: stretch; padding: 19px 21px 13px }
.card h3 { font-size: clamp(23px, 2vw, 29px); line-height: 1.24; letter-spacing: -.043em }
.card p { margin: 8px 0 19px; color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 330px }
.card-foot { justify-content: space-between; border-top: 1px solid #ece5df; padding-top: 10px; margin-top: auto; gap: 7px }
.text-action { gap: 8px; border: 0; padding: 4px 0; background: transparent; color: var(--berry); font-size: 14px; font-weight: 650 }
.text-action::after { content: ""; position: absolute; inset: 0 }
.text-action .icon { width: 15px; height: 15px }
.question-count { font-size: 12px; color: var(--muted) }
footer { margin-top: 38px; padding: 20px 0 26px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px }
footer.wrap { margin-top: 38px }
.footer-heart { color: var(--berry); padding-right: 5px }
#gallery-view { min-height: 65vh; padding-top: 47px }
.empty-gallery { display: grid; justify-items: center; text-align: center; border-radius: 18px; padding: 32px 20px 39px; background: #f5dddf }
.empty-gallery img { width: min(270px,75%); mask-image: radial-gradient(ellipse 75% 75%,black 60%,transparent 90%) }
.empty-gallery h2 { margin-top: 10px; font-size: 30px; letter-spacing: -.045em }
.empty-gallery p { margin: 8px 0 22px; color: var(--muted) }
dialog { width: min(524px,calc(100% - 28px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #dfd3ca; border-radius: 19px; color: var(--ink); background: var(--paper); box-shadow: 0 22px 85px #301a222a; overscroll-behavior: contain }
dialog::backdrop { background: #3020246b }
body:has(dialog[open]) { overflow: hidden }
.close-button { position: absolute; right: 16px; top: 15px; z-index: 1; width: 37px; height: 37px; display: grid; place-items: center; background: #fffaf4d9; border: 1px solid #dfd3cc; border-radius: 50%; color: #614d50 }
.quiz-body, .result-copy { padding: 31px }
.quiz-name { color: var(--berry); font-size: 14px; font-weight: 650; margin-right: 34px }
.progress { display: flex; gap: 6px; margin: 19px 0 10px }
.progress span { height: 4px; background: #e6ded7; flex: 1; border-radius: 4px }
.progress .filled { background: var(--berry) }
.step { font-size: 12px; color: var(--muted) }
.quiz-body h2, .result-copy h2 { margin: 13px 0 20px; font-size: clamp(26px,4vw,33px); line-height: 1.2; letter-spacing: -.035em }
.quiz-body h2:focus, .result-copy h2:focus, #gallery-title:focus, #catalog-title:focus { outline: none }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 9px }
.answer { position: relative; display: block; cursor: pointer }
.answer input { position: absolute; opacity: 0; width: 1px; height: 1px }
.answer span { display: flex; align-items: center; gap: 12px; padding: 12px 15px; min-height: 48px; background: #fffdfa; border: 1px solid var(--line); border-radius: 10px; font-size: 15px }
.answer span::before { content: ""; flex: 0 0 16px; height: 16px; box-sizing: border-box; border: 1px solid #b6a8a1; border-radius: 50%; background: white }
.answer input:checked + span { background: #faebed; border-color: #bc6877 }
.answer input:checked + span::before { border: 5px solid var(--berry) }
.actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 24px }
.secondary { border: 0; background: transparent; color: var(--muted); padding: 9px 2px; font-size: 14px }
.secondary:hover { text-decoration: underline }
.result-art { height: 150px; background: var(--tint) }
.result-art img { height: 92%; max-width: 80%; object-fit: contain; mask-image: radial-gradient(ellipse 75% 80%,black 62%,transparent 95%) }
.result-copy { padding-top: 24px }
.result-copy h2 { margin-bottom: 14px }
.result-copy p { color: #5b4a46 }
.signature { margin-top: 16px; font: italic 500 20px var(--serif); color: var(--berry) }
.hero-art { z-index: 2 }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
dialog.award-dialog { width: min(680px,calc(100% - 26px)) }
.award-view { padding: 29px }
.award-view h2 { margin: 9px 29px 19px 0; font-size: clamp(27px,4vw,36px); letter-spacing: -.04em; line-height: 1.2 }
.award-view h2:focus { outline: none }
#certificate { display: block; width: 100%; height: auto; border-radius: 2px; box-shadow: 0 3px 10px #4528181f }
.award-view details { margin-top: 15px; font-size: 14px; color: var(--muted) }
.award-view summary { cursor: pointer; width: fit-content }
.award-view details p { margin-top: 8px }
.award-view .actions { margin-top: 16px }
@media(max-width: 920px) {
  .wrap { width: calc(100% - 48px) }
  .card-grid { gap: 14px }
  .card-body { padding: 16px 15px 12px }
  .hero { padding-inline: 4.5%; min-height: 325px }
  .card-art { height: 140px }
}
@media(max-width: 680px) {
  .wrap { width: calc(100% - 32px) }
  .header-inner { min-height: 62px; gap: 6px }
  .brand { font-size: 21px; gap: 6px }
  .brandmark { width: 25px; height: 26px }
  nav { gap: 1px }
  nav a { gap: 4px; padding: 7px 9px; font-size: 12px }
  nav .icon { display: none }
  .hero { grid-template-columns: 1fr; margin-top: 18px; padding: 24px 23px 22px; min-height: 0 }
  .hero h1 { margin: 14px 0 15px; font-size: clamp(33px, 7.3vw, 49px); max-width: 68% }
  .hero-art { position: absolute; right: 6%; top: 16px; width: 27% }
  .photo { width: 100%; padding: 4px 4px 2px }
  .photo img { height: clamp(100px, 23vw, 141px) }
  .photo::before { height: 12px; top: -4px }
  .photo-caption { font-size: clamp(8px,2.4vw,12px); padding: 2px 0; white-space: nowrap }
  .letter-art { width: 48%; bottom: -7px; left: -23% }
  .hero p { font-size: 14px; max-width: 85% }
  .dedication { font-size: 10px }
  .hero-link { margin-top: 17px }
  #catalog { margin-top: 25px }
  .section-heading { margin-bottom: 14px }
  .card-grid { grid-template-columns: 1fr; gap: 17px }
  .card-art { height: 158px }
  .card-art img { height: 90% }
  .card-body { padding: 17px 20px 13px }
  .card h3 { font-size: 27px }
  .card p { max-width: none; margin-bottom: 16px }
  footer { align-items: flex-start; flex-wrap: wrap }
  #gallery-view { padding-top: 24px }
  .quiz-body, .result-copy { padding: 24px 20px }
  .award-view { padding: 22px 16px }
}
@media(max-width: 390px) {
  .brand { font-size: 18px }
  .brandmark { width: 20px }
  nav a { font-size: 11px; padding-inline: 6px }
  .hero { padding-left: 20px }
  .hero-art { top: 24px; width: 25% }
  .hero p { max-width: 100% }
  .wide-break { display: none }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { transition: none !important }
}
