:root {
  --background: #f4f3ef;
  --surface: #fff;
  --ink: #292b27;
  --muted: #706e65;
  --line: #d8d8cf;
  --olive: #626b55;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--background); font: 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--olive); outline-offset: 5px; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { width: min(1140px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 30; padding: 10px 16px; background: white; }
.skip-link:focus { top: 12px; }
.draft-note { padding: 8px 20px; text-align: center; color: white; background: var(--olive); font-size: 14px; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 90px; border-bottom: 1px solid var(--line); }
.brand { font-size: 17px; font-weight: 500; letter-spacing: -.4px; }
nav { display: flex; gap: 31px; font-size: 14px; }
nav a:hover { color: var(--olive); }

.hero { padding-block: 61px 79px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 82px; }
.hero-photo { min-width: 0; width: 100%; }
.hero-photo .photo-placeholder { width: 100%; aspect-ratio: 3/4; background: #e5e4dd; }
.hero-real-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-copy { min-width: 0; padding-block: 7px; }
.hero-kicker { margin: 0 0 27px; font: italic 21px/1.5 var(--serif); }
h1 { margin: 0; font: normal clamp(65px, 6.9vw, 98px)/1.02 var(--serif); letter-spacing: -3.8px; }
h1 em { font-weight: normal; }
.hero-intro { max-width: 390px; margin: 29px 0 27px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 22px; }
.hero-actions time { color: var(--muted); font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 49px; max-width: 100%; padding: 12px 22px; border: 1px solid transparent; border-radius: 0; font-size: 14px; line-height: 1.4; text-align: center; cursor: pointer; transition: background-color .18s, border-color .18s; }
.primary { color: white; background: var(--ink); }
.primary:hover { background: #474b40; }
.outline { color: var(--ink); border-color: #a4a79b; background: transparent; }
.outline:hover { border-color: var(--ink); background: #ffffff5c; }
.button:disabled { cursor: default; }
.hero-portraits { width: min(100%, 435px); margin: 35px 0 0; }
.portrait-triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 14px; }
.portrait-button { position: relative; display: block; width: 100%; max-width: none; aspect-ratio: 3/4; overflow: hidden; padding: 0; border: 0; border-radius: 0; background: #e5e4dd; cursor: zoom-in; }
.portrait-button:nth-child(2) { margin-top: 16px; }
.portrait-button img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.portrait-button:nth-child(2) img { object-position: 50% 60%; }
.portrait-button:nth-child(3) img { object-position: 50% 45%; }
.hero-portraits figcaption { margin-top: 15px; color: #626659; text-align: center; font: italic 16px/1.5 var(--serif); }
.hero-portraits figcaption span { margin-left: 3px; color: var(--olive); }
.portrait-button:hover img, .photo-button:hover img { opacity: .94; }

.album-section { padding-block: 69px 65px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; margin-bottom: 39px; }
.eyebrow { margin: 0 0 16px; color: var(--olive); font-size: 12px; font-weight: 500; line-height: 1.6; letter-spacing: 1.5px; text-transform: uppercase; }
h2 { margin: 0; font: normal clamp(37px, 3.6vw, 49px)/1.14 var(--serif); letter-spacing: -1.35px; }
h2 em { font-weight: normal; }
.section-aside { max-width: 300px; margin: 0 0 4px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.energy-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: 72px; margin-bottom: 43px; padding-block: 2px 12px; }
.energy-intro h2 { font-size: clamp(34px, 3.6vw, 47px); }
.energy-intro .section-aside { max-width: none; margin: 0; padding-left: 29px; border-left: 1px solid #bfc4b4; color: #5c6254; font: normal 19px/1.7 var(--serif); }
.memory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 34px; }
.memory { min-width: 0; padding: 0; }
.photo-button { display: block; width: 100%; padding: 0; border: 0; border-radius: 0; background: #e5e4dd; cursor: zoom-in; }
.photo-button img { display: block; width: 100%; height: auto; max-width: 100%; }
.memory-date { margin: 23px 0 10px; color: var(--muted); font-size: 12px; line-height: 1.6; letter-spacing: .55px; text-transform: uppercase; }
.memory h3 { margin: 21px 0 13px; font: normal 25px/1.25 var(--serif); letter-spacing: -.55px; }
.memory-date + h3 { margin-top: 0; }
.memory-text { margin: 0; color: #67675d; font-size: 16px; line-height: 1.85; }
.empty-photo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; min-height: 240px; padding: 24px; background: #e6e6dd; color: var(--muted); text-align: center; }
.empty-photo span { font-size: 14px; }
.more-section { padding-block: 24px 79px; }
.more-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 35px; margin-bottom: 34px; }
.more-heading h2 { font-size: clamp(32px, 3.1vw, 42px); }
.more-heading p { margin: 0; color: var(--muted); font-size: 16px; }
.photo-scraps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 35px 25px; }
figure.scrap { margin: 0; }
.scrap { min-width: 0; padding: 0; }
.scrap .photo-button { aspect-ratio: auto; }
.scrap img { display: block; width: 100%; height: auto; }
.scrap figcaption { padding-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.album-footnote { margin: 34px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.album-footnote.gallery-ending { max-width: 650px; margin: 42px auto 0; color: #5c6254; text-align: center; font: normal 18px/1.75 var(--serif); }

.sticker-note { display: grid; grid-template-columns: 165px auto; justify-content: center; align-items: center; gap: 39px; padding-block: 27px 51px; }
.hero + .sticker-note, .more-section + .sticker-note { padding-top: 0; }
.sticker-image { display: block; width: 165px; height: auto; max-height: 215px; object-fit: contain; mix-blend-mode: multiply; }
.sticker-note p { margin: 0; font: italic 29px/1.4 var(--serif); letter-spacing: -.4px; }
.sticker-note-reverse { grid-template-columns: auto 165px; padding-bottom: 58px; }
.sticker-note-reverse .sticker-image { grid-column: 2; grid-row: 1; }
.sticker-note-reverse p { grid-column: 1; grid-row: 1; text-align: right; }

.letter-section { padding-block: 79px; border-block: 1px solid #d0d2c6; background: #eaece3; }
.letter-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; gap: 85px; }
.letter-side h2 { font-size: clamp(37px, 3.9vw, 52px); }
.letter-card { min-width: 0; padding-left: 45px; border-left: 1px solid #bfc4b4; }
.letter-salutation { margin: 0 0 19px; font: normal 25px/1.4 var(--serif); }
.letter-preview { margin: 0 0 26px; color: #626659; font-size: 16px; line-height: 1.85; }
.signature { margin: 26px 0 0; color: #4c5243; font: italic 22px/1.5 var(--serif); }
.cat-note { display: grid; grid-template-columns: 190px auto; justify-content: center; align-items: center; gap: 47px; padding-block: 71px 30px; }
.cat-image { display: block; width: 190px; height: auto; }
.cat-note p { margin: 0; font: italic 39px/1.3 var(--serif); letter-spacing: -.8px; }
.wish-section { padding-block: 49px 50px; text-align: center; }
.wish-sticker { width: 138px; margin: 0 auto 25px; }
.wish-sticker img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.wish-sticker figcaption { margin-top: 11px; color: #535b49; font: italic 18px/1.4 var(--serif); }
.wish-section h2 { font-size: clamp(37px, 4vw, 50px); }
.wish-section > p:not(.eyebrow) { margin: 23px auto; color: var(--muted); font-size: 16px; }
.wish-section .button { min-width: 157px; margin-top: 3px; }
.wish-result { min-height: 54px; max-width: 520px; }
#sparkles { display: none; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

dialog { width: min(650px, calc(100% - 32px)); max-height: 88dvh; padding: 0; border: 0; border-radius: 0; color: var(--ink); background: #f9f9f5; box-shadow: 0 20px 80px #15191035; }
dialog::backdrop { background: #24291fbd; backdrop-filter: blur(4px); }
.dialog-inner { position: relative; padding: 49px 45px 37px; }
.dialog-inner h2 { margin-bottom: 29px; font-size: 43px; }
.letter-body p { color: #5b6054; font-size: 16px; line-height: 1.95; }
.letter-body .letter-salutation { color: var(--ink); font: normal 25px/1.4 var(--serif); }
.close-button { position: absolute; z-index: 10; top: 11px; right: 11px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; color: var(--ink); background: #e7e9e0; font: 28px/1 var(--sans); cursor: pointer; }
.close-button:hover { background: #d9ddcf; }
body:has(dialog[open]) { overflow: hidden; }
#photo-dialog { width: min(1080px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 14px; color: #eeeee8; background: #22251f; }
#full-photo { display: block; max-width: 100%; max-height: 75dvh; width: auto; height: auto; margin: auto; object-fit: contain; }
#photo-caption { margin: 16px 22px 6px; text-align: center; font-size: 15px; line-height: 1.65; }
.noscript-note { margin: 20px; padding: 20px; background: white; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero-layout { gap: 50px; }
  h1 { font-size: 82px; }
  .hero-kicker { font-size: 19px; }
  .hero-actions { gap: 17px; }
  .hero-actions time { width: 100%; }
  .hero-portraits { margin-top: 29px; }
  .portrait-triptych { gap: 12px; }
  .energy-intro { gap: 42px; }
  .energy-intro .section-aside { padding-left: 25px; font-size: 18px; }
  .memory-grid { gap: 26px; }
  .memory h3 { font-size: 23px; }
  .letter-layout { gap: 48px; }
  .letter-card { padding-left: 30px; }
}

@media (max-width: 820px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { min-height: 78px; }
  .hero { padding-block: 35px 60px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; max-width: 490px; margin-inline: auto; }
  .hero-copy { padding: 0; }
  .hero-kicker { margin-bottom: 23px; font-size: 21px; }
  h1 { font-size: clamp(59px, 11vw, 82px); letter-spacing: -2.8px; }
  .hero-intro { margin-block: 25px; }
  .hero-actions time { width: auto; }
  .hero-portraits { margin-top: 30px; }
  .portrait-triptych { gap: 14px; }
  .album-section { padding-block: 55px 49px; }
  .section-heading { gap: 30px; }
  .energy-intro { display: block; padding-bottom: 0; margin-bottom: 33px; }
  .energy-intro .section-aside { max-width: 500px; margin-top: 23px; padding-left: 22px; font-size: 19px; }
  .memory-grid { grid-template-columns: minmax(0, 1fr); gap: 45px; max-width: 490px; margin-inline: auto; }
  .memory h3 { font-size: 27px; }
  .memory-text { font-size: 16px; }
  .photo-scraps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .more-section { padding-block: 21px 59px; }
  .more-heading { display: block; margin-bottom: 30px; }
  .more-heading p { margin-top: 15px; }
  .letter-section { padding-block: 55px; }
  .letter-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 490px; }
  .letter-card { padding: 29px 0 0; border-top: 1px solid #bfc4b4; border-left: 0; }
  .letter-side h2 { font-size: 45px; }
  .cat-note { gap: 34px; padding-block: 56px 28px; }
  .sticker-note { gap: 30px; padding-bottom: 43px; }
  .sticker-note-reverse { padding-bottom: 49px; }
  .wish-section { padding-block: 39px 32px; }
  .wish-result { min-height: 75px; }
}

@media (max-width: 500px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 72px; gap: 20px; }
  .brand { font-size: 16px; }
  nav { gap: 20px; font-size: 14px; }
  .hero { padding-top: 24px; }
  .hero-layout { gap: 30px; }
  .hero-kicker { font-size: 20px; line-height: 1.55; margin-bottom: 22px; }
  h1 { font-size: clamp(54px, 13vw, 65px); letter-spacing: -2.7px; }
  .hero-intro { margin-block: 23px 25px; }
  .hero-actions { gap: 19px; }
  .hero-actions time { width: 100%; }
  .hero-portraits { margin-top: 28px; }
  .portrait-triptych { gap: 10px; }
  .portrait-button:nth-child(2) { margin-top: 12px; }
  .hero-portraits figcaption { margin-top: 13px; font-size: 15px; }
  .section-heading { display: block; margin-bottom: 31px; }
  .section-aside { margin-top: 22px; }
  .energy-intro h2 { font-size: 35px; }
  .energy-intro .section-aside { padding-left: 19px; font-size: 18px; line-height: 1.75; }
  .eyebrow { font-size: 11px; letter-spacing: 1.3px; }
  h2 { font-size: 38px; }
  .memory-date { margin-top: 21px; }
  .memory h3 { font-size: 25px; }
  .more-heading h2 { font-size: 34px; }
  .photo-scraps { gap: 26px 14px; }
  .scrap figcaption { font-size: 13px; padding-top: 10px; }
  .album-footnote { max-width: 260px; margin: 29px auto 0; font-size: 12px; }
  .album-footnote.gallery-ending { margin-top: 30px; }
  .sticker-note { grid-template-columns: 145px minmax(0, 1fr); gap: 23px; padding-bottom: 39px; }
  .sticker-image { width: 145px; max-height: 190px; }
  .sticker-note p { font-size: 25px; }
  .sticker-note-reverse { grid-template-columns: minmax(0, 1fr) 145px; padding-bottom: 45px; }
  .letter-side h2 { font-size: 39px; }
  .letter-salutation { font-size: 24px; }
  .cat-note { grid-template-columns: 145px minmax(0, 1fr); gap: 25px; padding-top: 49px; }
  .cat-image { width: 145px; }
  .cat-note p { font-size: 31px; }
  .wish-section h2 { font-size: 37px; }
  .wish-sticker { width: 126px; margin-bottom: 23px; }
  .wish-section > p:not(.eyebrow) { max-width: 270px; }
  footer { padding-block: 22px; font-size: 12px; }
  .dialog-inner { padding: 54px 24px 29px; }
  .dialog-inner h2 { font-size: 38px; }
  #photo-dialog { padding: 9px; }
  #photo-caption { margin: 14px 9px 6px; font-size: 14px; }
  #full-photo { max-height: 72dvh; }
}

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