/* All artwork, type, and effects are local. No font or image services. */
:root {
  color-scheme: light;
  --ink: #33453e;
  --muted: #616e65;
  --mint: #cee2d5;
  --paper: #fff;
  --canvas: #f4f6f2;
  --line: #dce2da;
  --accent: #3f6150;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .38; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid #336c57; outline-offset: 5px; }
a { color: inherit; }
button { border: 0; }
button[hidden], [hidden] { display: none !important; }
img { display: block; max-width: 100%; }
svg { display: block; }
h1, h2, p, figure { margin: 0; }
.site-header { min-height: 104px; padding: 24px max(32px, calc((100vw - 1320px) / 2)); display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; display: flex; align-items: center; gap: 13px; font-family: var(--serif); font-size: 24px; white-space: nowrap; }
.brand-mark { width: 35px; height: 42px; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-subtitle { display: block; font: 10px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; letter-spacing: 3.2px; margin-top: 4px; }
.header-note { margin-left: auto; font: italic 17px var(--serif); color: var(--muted); display: flex; align-items: center; gap: 9px; }
.tiny-heart { font: 27px var(--serif); color: var(--accent); }
.preview-label { padding: 8px 11px; border: 1px solid var(--line); border-radius: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.workspace { max-width: 1260px; padding: 0 40px 24px; margin: auto; }
.design-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0 25px; }
.eyebrow { font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: 2.1px; text-transform: uppercase; }
.design-description > p:last-child { font-size: 13px; color: var(--muted); margin-top: 7px; }
.design-switcher { display: flex; flex-wrap: wrap; padding: 5px; gap: 3px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff65; }
.design-switcher button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 13px; border-radius: 5px; background: none; font-size: 12px; white-space: nowrap; }
.design-switcher button[aria-pressed="true"] { background: white; box-shadow: 0 1px 6px #30433712; font-weight: 600; }
.design-switcher button:hover { background: #ffffffb8; }
.swatch { width: 9px; height: 9px; border-radius: 50%; border: 1px solid #0000000d; }
.swatch-mint { background: #bfd8c6; }
.swatch-journal { background: #dfc4a6; }
.swatch-moments { background: #efd774; }
.chapter-navigation { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-bottom: 27px; gap: 20px; }
.chapter-links { display: flex; gap: 30px; }
.chapter-links button { background: none; min-height: 59px; font-size: 13px; padding: 0 1px; position: relative; color: var(--muted); }
.chapter-links button > span { font-size: 10px; margin-right: 9px; color: var(--muted); }
.chapter-links button[aria-current] { color: var(--ink); font-weight: 600; }
.chapter-links button[aria-current]::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--accent); }
.chapter-hint { font: italic 15px var(--serif); color: var(--muted); }
#reader { outline: none; }
.loading-state { text-align: center; min-height: 480px; display: grid; place-content: center; gap: 20px; }
.loading-state h1 { font: 40px var(--serif); }
.loading-state p { color: var(--muted); line-height: 1.6; }
.loading-mark { color: var(--accent); font: 66px var(--serif); }
.reader-navigation { margin: 23px 0 28px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 16px; }
.page-turn { min-height: 48px; padding: 8px 3px; display: flex; align-items: center; gap: 18px; background: none; font-size: 12px; width: fit-content; }
.page-turn > span:only-child, .page-turn > span:first-child:not(:last-child) { line-height: 1; }
.page-turn > span[aria-hidden] { font-size: 26px; font-weight: 300; }
#next-chapter { justify-self: end; }
.page-position { text-align: center; display: grid; gap: 5px; }
#page-number { font-size: 13px; letter-spacing: 2px; }
#page-number span { color: var(--muted); }
#page-label { color: var(--muted); font-size: 11px; }
.site-footer { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.footer-heart { color: var(--accent); font-size: 16px; }
.load-status { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 5px; height: 5px; background: #a28242; border-radius: 50%; flex-shrink: 0; }
.load-status[data-state="ready"] .status-dot { background: #467057; }
.load-status[data-state="error"] .status-dot { background: #a83c36; }
#retry-load { min-height: 44px; background: none; text-decoration: underline; }
.visit-note { text-align: right; font-size: 10px; color: var(--muted); margin-top: 7px; line-height: 1.7; }
.photo-button { display: block; width: 100%; height: 100%; min-width: 0; min-height: 44px; padding: 0; background: #e9ede6; position: relative; }
.photo-button img { width: 100%; height: 100%; object-fit: cover; }
.photo-button::after { content: '↗'; position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 30px; height: 30px; background: #fffffff0; border-radius: 50%; color: var(--ink); opacity: 0; transition: opacity .2s; }
.photo-button:hover::after, .photo-button:focus-visible::after { opacity: 1; }
.photo-button:focus-visible { z-index: 2; outline-offset: -5px; }
.chapter-caption { font-size: 18px; line-height: 1.65; }

/* 01. Mint Keepsake: a restrained pair of paper pages. */
.book-spread { display: grid; grid-template-columns: 1fr; background: var(--paper); box-shadow: 0 15px 42px #334d3210, 0 2px 4px #334d320d; border: 1px solid #dde4db; position: relative; max-width: 640px; margin: auto; }
.intro-page { display: flex; flex-direction: column; align-items: flex-start; padding: 50px; position: relative; overflow: hidden; }
.ribbon { width: 32px; height: 61px; position: absolute; top: 0; left: 50px; background: var(--mint); clip-path: polygon(0 0,100% 0,100% 100%,50% 80%,0 100%); }
.intro-page > .eyebrow { margin-top: 45px; color: var(--muted); font-size: 9px; }
.intro-page h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.04; font-weight: 400; letter-spacing: -2.8px; margin-top: 23px; max-width: 350px; text-wrap: balance; }
.intro-page .chapter-caption { margin-top: 30px; max-width: 290px; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.5; }
.page-imprint { margin-top: auto; padding-top: 30px; display: flex; align-items: center; gap: 12px; font-size: 9px; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); }
.page-imprint::before { content: ''; width: 29px; height: 1px; background: var(--mint); }
.photo-page { min-width: 0; position: relative; }
.book-cover .photo-page { aspect-ratio: 1; }
.book-cover .photo-button img { object-position: 50% 60%; }
.cover-seal { position: absolute; bottom: 26px; right: 25px; width: 61px; height: 61px; background: #ffffffef; color: var(--ink); border-radius: 50%; display: grid; align-content: center; text-align: center; gap: 4px; pointer-events: none; font: italic 18px var(--serif); }
.cover-seal > span { font: 8px Arial, sans-serif; letter-spacing: 1.7px; }
.birthday-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; padding: 30px; min-height: 450px; }
.birthday-collage .photo-button:first-child { grid-row: 1 / -1; }
.birthday-collage img { object-position: 50% 60%; }
.birthday-collage .photo-button:nth-child(3) img { object-position: 50% 45%; }
.birthday-page { padding: 26px; display: grid; grid-template-columns: 1fr; justify-items: center; gap: 16px; }
.birthday-page .photo-button { height: 340px; background: white; }
.birthday-page .photo-button img { object-fit: contain; }
.birthday-page h1 { font-size: 28px; font-weight: 400; letter-spacing: -.8px; text-align: center; }
.birthday-page .chapter-caption { text-align: center; max-width: 360px; font-size: 17px; line-height: 1.5; }
.book-month .intro-page h1 { font-size: clamp(40px, 5vw, 61px); }
.book-month .photo-page { display: flex; align-items: center; padding: 25px; }
.book-month .photo-button { height: auto; aspect-ratio: 3 / 2; background: white; }
.book-month img { object-fit: contain; }
@media (min-width: 1000px) and (min-aspect-ratio: 4/3) {
  /* Give the chosen book the window's width and remaining height. The minimum
     reader height lets short windows scroll instead of squeezing the pages. */
  body[data-design="mint"] .site-header { padding-inline: clamp(24px, 2vw, 64px); }
  body[data-design="mint"] .workspace {
    max-width: none;
    padding-inline: clamp(24px, 2vw, 64px);
    min-height: calc(100svh - 104px);
    display: grid;
    grid-template-rows: auto auto minmax(485px, 1fr) auto auto auto;
  }
  body[data-design="mint"] #reader { display: grid; min-height: 0; contain: size; }
  .book-spread { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: none; min-height: 0; height: 100%; margin: 0; }
  .book-spread::after { content: ''; position: absolute; top: 0; bottom: 0; width: 20px; left: calc(50% - 10px); background: linear-gradient(90deg, transparent, #3d4d3f08, #ffffff60, transparent); pointer-events: none; }
  .intro-page { padding: clamp(32px, 3vw, 96px); }
  .intro-page > .eyebrow { margin-top: clamp(30px, 4vh, 80px); font-size: clamp(9px, .6vw, 14px); }
  .intro-page h1, .book-month .intro-page h1 { font-size: clamp(48px, min(4.8vw, 7.5vh), 144px); max-width: 10ch; }
  .intro-page .chapter-caption { font-size: clamp(21px, min(1.4vw, 2.3vh), 36px); max-width: 24ch; }
  .page-imprint { font-size: clamp(9px, .5vw, 16px); }
  .ribbon { left: clamp(32px, 3vw, 96px); width: clamp(32px, 2vw, 56px); height: clamp(61px, 6vh, 120px); }
  .book-cover .photo-page { aspect-ratio: auto; }
  .book-cover .photo-button { position: absolute; inset: 0; }
  .birthday-collage { height: auto; min-height: 0; grid-template-rows: repeat(2, minmax(0, 1fr)); padding: clamp(30px, 2vw, 64px); gap: clamp(14px, 1vw, 36px); }
  .birthday-page { min-height: 0; grid-template-rows: minmax(0, 1fr) auto auto; padding: clamp(26px, 2vw, 64px); gap: clamp(16px, 1.8vh, 38px); }
  .birthday-page .photo-button { height: 100%; min-height: 0; }
  .birthday-page h1 { font-size: clamp(28px, min(2.7vw, 4vh), 64px); }
  .birthday-page .chapter-caption { font-size: clamp(17px, min(1.3vw, 2vh), 30px); max-width: 36ch; }
  .book-month .photo-page { min-height: 0; padding: clamp(25px, 2vw, 64px); }
  .book-month .photo-button { height: 100%; aspect-ratio: auto; }
}
@media (min-width: 1000px) and (min-aspect-ratio: 21/9) {
  /* A very wide page should show the portrait rather than crop away the face. */
  .book-cover .photo-button img { object-fit: contain; background: var(--paper); }
}

/* 02. Family Journal: an unhurried, continuous photographic story. */
body[data-design="journal"] { --canvas: #faf6ef; --ink: #4c3f33; --muted: #786650; --accent: #8a674b; --line: #e4dacb; }
.journal { padding: 0 22px; }
.journal-chapter { scroll-margin-top: 24px; padding: 48px 0 65px; border-bottom: 1px solid var(--line); }
.journal-chapter:first-child { padding-top: 5px; }
.journal-intro { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); gap: 9%; align-items: center; }
.journal-intro .photo-button { aspect-ratio: 5 / 6; max-height: 590px; }
.journal-intro .photo-button img { object-position: 50% 60%; }
.journal-copy { padding: 22px 0; min-width: 0; }
.journal .eyebrow { color: var(--muted); font-size: 9px; }
.journal h1 { font: 400 clamp(48px, 6vw, 79px)/1.04 var(--serif); letter-spacing: -2.8px; margin: 28px 0 24px; max-width: 400px; text-wrap: balance; }
.journal-copy .chapter-caption { font: italic 23px/1.65 var(--serif); max-width: 290px; }
.journal-flourish { display: block; margin: 42px 0 20px; height: 1px; width: 63px; background: #bfa88c; }
.journal .page-imprint { font-size: 9px; margin: 0; padding: 0; }
.journal h2 { font: 400 clamp(38px, 4vw, 55px)/1.15 var(--serif); letter-spacing: -1px; margin: 17px 0 22px; text-wrap: balance; }
.journal-section-heading { max-width: 640px; margin-bottom: 32px; }
.journal-section-heading .chapter-caption { color: var(--muted); font: italic 21px/1.6 var(--serif); }
.journal-birthday-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.journal-birthday-photos .photo-button { aspect-ratio: 3 / 4; }
.journal-birthday-photos .photo-button:nth-child(2) { margin-top: 50px; }
.journal-birthday-photos .photo-button:last-child { grid-column: 1 / -1; max-width: 430px; margin: 25px auto 0; aspect-ratio: auto; height: 560px; background: transparent; }
.journal-birthday-photos .photo-button:last-child img { object-fit: contain; }
.journal-month .photo-button { aspect-ratio: 3 / 2; }
.journal-month .photo-button img { object-fit: contain; }
.journal-month .chapter-caption { font: italic 23px/1.6 var(--serif); text-align: center; margin: 23px 0 0; }

/* 03. Little Moments: a sunny box of photographs. */
body[data-design="moments"] { --canvas: #fcf8e9; --ink: #3f4c3b; --muted: #64705b; --accent: #547044; --line: #e5e2cb; }
.moments-page { position: relative; padding: 35px 42px 38px; border: 1px solid #e5e5ce; border-radius: 24px; background: #f1f2df; overflow: hidden; }
.moments-intro { display: grid; grid-template-columns: 1fr 1.1fr; gap: 7%; align-items: center; }
.moments-copy { position: relative; z-index: 1; }
.moments-copy .eyebrow { display: inline-block; background: #fff3ad; padding: 7px 13px; border-radius: 20px; font-size: 9px; letter-spacing: 1.4px; }
.moments-copy h1 { font-size: clamp(44px, 5.5vw, 70px); letter-spacing: -3px; line-height: 1.04; font-weight: 650; margin: 23px 0; max-width: 430px; text-wrap: balance; }
.moments-copy .chapter-caption { max-width: 310px; font: 21px/1.6 var(--serif); }
.moments-daisy { width: 65px; height: 65px; margin-top: 28px; color: #9eaf87; }
.moments-gallery { display: flex; gap: 20px; min-width: 0; padding: 22px 8px 12px; }
.moment-card { position: relative; min-width: 0; width: 100%; background: white; padding: 13px 13px 0; border-radius: 8px; box-shadow: 0 9px 20px #4a533414; transform: rotate(2deg); }
.moment-card::before { content: ''; position: absolute; top: -11px; left: calc(50% - 33px); width: 66px; height: 25px; background: #e9d895b8; transform: rotate(-5deg); z-index: 1; }
.moment-card .photo-button { aspect-ratio: 4 / 5; border-radius: 3px; overflow: hidden; }
.moment-card .photo-button img { object-position: 50% 60%; }
.moment-card figcaption { display: flex; align-items: center; justify-content: space-between; min-height: 42px; color: var(--muted); font-size: 10px; letter-spacing: 1.7px; }
.moment-card figcaption span:last-child { font: 22px var(--serif); }
.moments-birthday .moments-copy h1 { font-size: 46px; }
.moments-birthday .moments-copy { margin-bottom: 20px; }
.moments-birthday .moments-copy .chapter-caption { max-width: 570px; }
.moments-birthday .moment-card:nth-child(even) { transform: rotate(-2deg); margin-top: 25px; }
.moments-birthday .moment-card:nth-child(4) .photo-button { background: white; }
.moments-birthday .moment-card:nth-child(4) img { object-fit: contain; }
.moments-birthday .moment-card::before { background: #c5ddc4d4; }
.moments-month .moments-intro { grid-template-columns: .9fr 1.3fr; }
.moments-month .moment-card { transform: rotate(-2deg); }
.moments-month .photo-button { aspect-ratio: 3 / 2; background: white; }
.moments-month img { object-fit: contain; }
.moments-footnote { margin-top: 22px; color: var(--muted); font-size: 11px; }

/* The native modal supplies focus containment, inert background, and Escape. */
dialog { width: min(1000px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 16px 23px; border: 1px solid #dfe3d7; border-radius: 8px; color: var(--ink); background: #f9faf6; box-shadow: 0 30px 100px #00000050; }
dialog::backdrop { background: #1d2926dd; }
.lightbox-top, .lightbox-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.lightbox-top h2 { font: 18px/1.4 var(--serif); }
.icon-button { min-width: 48px; min-height: 48px; border: 1px solid #dce2d8; background: transparent; border-radius: 50%; font-size: 24px; }
.lightbox-image-wrap { display: flex; align-items: center; justify-content: center; height: min(68dvh, 700px); padding: 12px 0; }
#lightbox-image { width: 100%; height: 100%; object-fit: contain; }
#lightbox-counter { font-size: 13px; color: var(--muted); }
#lightbox-help { text-align: center; font-size: 11px; line-height: 1.6; margin-top: 8px; color: var(--muted); }
body:has(dialog[open]) { overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 10; padding: 14px 20px; background: white; }
.skip-link:focus { top: 12px; }
.noscript-note { margin: 20px; padding: 20px; border: 1px solid; }

@media (max-width: 1000px) {
  .design-bar { align-items: flex-start; flex-direction: column; gap: 18px; }
  .design-switcher { align-self: stretch; }
  .design-switcher button { flex: 1; }
  .chapter-hint { display: none; }
  .book-cover .photo-page, .book-month .photo-page { order: -1; }
  .book-cover .photo-page { aspect-ratio: 6 / 5; }
  .intro-page { padding: 35px; }
  .ribbon { display: none; }
  .intro-page > .eyebrow { margin-top: 0; }
  .intro-page h1 { max-width: 450px; }
  .book-month .photo-page { padding: 20px 20px 0; }
  .journal { padding: 0; }
  .journal-intro { gap: 6%; }
  .journal h1 { font-size: 54px; }
  .moments-page { padding: 30px; }
  .moments-intro { gap: 6%; }
  .moments-copy h1 { font-size: 50px; }
  .moments-birthday .moments-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
}
@media (max-width: 600px) {
  .site-header { padding: 18px 20px; min-height: 86px; gap: 10px; }
  .brand { font-size: 21px; gap: 9px; }
  .brand-mark { width: 28px; height: 36px; }
  .brand-subtitle { font-size: 9px; letter-spacing: 2.6px; }
  .header-note { display: none; }
  .preview-label { margin-left: auto; font-size: 8px; letter-spacing: 1px; padding: 7px 8px; }
  .workspace { padding: 0 18px 20px; }
  .design-bar { padding: 22px 0 18px; gap: 16px; }
  .design-description .eyebrow { font-size: 9px; }
  .design-description > p:last-child { font-size: 12px; }
  .design-switcher { padding: 4px; gap: 0; }
  .design-switcher button { font-size: 10px; padding: 8px 5px; gap: 5px; }
  .swatch { width: 7px; height: 7px; }
  .chapter-navigation { margin-bottom: 18px; }
  .chapter-links { width: 100%; gap: 0; justify-content: space-between; }
  .chapter-links button { min-height: 55px; font-size: 12px; padding: 0 5px; }
  .chapter-links button > span { font-size: 9px; margin-right: 6px; }
  .book-cover .photo-page { aspect-ratio: 1 / 1.06; }
  .cover-seal { right: 17px; bottom: 18px; width: 52px; height: 52px; font-size: 16px; }
  .intro-page { padding: 27px; }
  .intro-page h1, .book-month .intro-page h1 { font-size: 39px; letter-spacing: -1.5px; margin-top: 16px; max-width: 300px; }
  .intro-page .chapter-caption { font-size: 19px; margin-top: 20px; max-width: none; }
  .page-imprint { padding-top: 24px; }
  .birthday-collage { padding: 18px; gap: 10px; min-height: 360px; }
  .birthday-page { padding: 5px 23px 27px; gap: 17px; }
  .birthday-page .photo-button { height: 370px; }
  .birthday-page h1 { font-size: 29px; }
  .birthday-page .chapter-caption { font-size: 18px; }
  .reader-navigation { margin: 17px 0 22px; }
  .page-turn { gap: 9px; font-size: 11px; }
  .site-footer { flex-direction: column; gap: 9px; padding-top: 17px; }
  .visit-note { text-align: left; font-size: 10px; margin-top: 6px; }
  .journal-intro { display: flex; flex-direction: column; gap: 0; }
  .journal-intro .photo-button { aspect-ratio: 4 / 5; max-height: none; }
  .journal-copy { padding: 30px 10px 0; width: 100%; }
  .journal h1 { font-size: 52px; margin: 20px 0; letter-spacing: -2px; max-width: 290px; }
  .journal-copy .chapter-caption { font-size: 21px; max-width: none; }
  .journal-flourish { margin: 27px 0 20px; }
  .journal-chapter { padding: 38px 0; }
  .journal h2 { font-size: 39px; }
  .journal-section-heading { padding: 0 10px; }
  .journal-section-heading .chapter-caption { font-size: 20px; }
  .journal-birthday-photos { gap: 12px; grid-template-columns: 1fr 1fr; }
  .journal-birthday-photos .photo-button:nth-child(2) { margin-top: 30px; }
  .journal-birthday-photos .photo-button:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .journal-birthday-photos .photo-button:last-child { height: 430px; margin-top: 10px; }
  .journal-month .chapter-caption { font-size: 21px; padding: 0 10px; }
  .moments-page { padding: 24px 18px; border-radius: 18px; }
  .moments-intro, .moments-month .moments-intro { display: flex; flex-direction: column; gap: 12px; }
  .moments-copy { width: 100%; }
  .moments-copy .eyebrow { font-size: 8px; letter-spacing: 1.2px; padding: 7px 10px; }
  .moments-copy h1, .moments-birthday .moments-copy h1 { font-size: 42px; letter-spacing: -1.8px; margin: 18px 0; }
  .moments-copy .chapter-caption { font-size: 20px; max-width: none; }
  .moments-daisy { display: none; }
  .moments-gallery { width: 100%; padding: 21px 7px 12px; }
  .moment-card { padding: 10px 10px 0; }
  .moments-birthday .moments-gallery { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 23px 8px 24px; scrollbar-width: thin; scrollbar-color: #94a47f transparent; }
  .moments-birthday .moment-card { flex: 0 0 86%; scroll-snap-align: center; transform: none; margin-top: 0; }
  .moments-birthday .moment-card:nth-child(even) { transform: none; margin-top: 0; }
  .moments-birthday .moment-card .photo-button { aspect-ratio: 3 / 4; }
  .moments-footnote { margin-top: 15px; font-size: 11px; }
  dialog { padding: 12px 14px; }
  .lightbox-image-wrap { height: 62dvh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .design-bar, .chapter-navigation, .reader-navigation, .site-footer, .visit-note, .preview-label { display: none; }
  .workspace { padding: 0; }
  .book-spread { box-shadow: none; }
}

/* The selected Mint album and its private sign-in screen. */
.account-button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 5px; background: transparent; font-size: 13px; }
.auth-panel { min-height: calc(100svh - 104px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { position: relative; width: min(100%, 480px); padding: 65px 48px 38px; background: white; border: 1px solid var(--line); box-shadow: 0 15px 42px #334d3210; }
.auth-ribbon { position: absolute; width: 30px; height: 45px; top: 0; left: 48px; background: var(--mint); clip-path: polygon(0 0,100% 0,100% 100%,50% 80%,0 100%); }
.auth-card h1 { font: 400 43px/1.12 var(--serif); letter-spacing: -1.5px; margin: 20px 0 16px; }
.auth-intro { color: var(--muted); line-height: 1.6; font: italic 19px/1.6 var(--serif); }
#auth-message { line-height: 1.6; color: var(--muted); margin-top: 18px; }
.login-instructions { margin: 27px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
#login-form label { display: block; font-size: 13px; margin: 15px 0 8px; }
#login-form input { width: 100%; min-height: 48px; border: 1px solid #a9b9ad; border-radius: 4px; padding: 10px 13px; font: inherit; color: var(--ink); background: #fcfdfb; }
.password-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.password-control input { min-width: 0; }
.password-toggle { min-width: 116px; min-height: 48px; padding: 10px; border: 1px solid #a9b9ad; border-radius: 4px; background: #edf3ec; color: #3f6150; font-size: 12px; white-space: nowrap; }
.password-toggle:hover { background: #e1ebdf; }
input:focus-visible, select:focus-visible { outline: 3px solid #336c57; outline-offset: 3px; }
.primary-button { width: 100%; min-height: 50px; border-radius: 4px; background: #3f6150; color: white; margin-top: 25px; padding: 12px 17px; display: flex; justify-content: space-between; align-items: center; }
.auth-footnote { font: italic 14px var(--serif); color: var(--muted); text-align: center; padding-top: 29px; }
.form-error { margin-top: 20px; color: #9b382c; font-size: 14px; line-height: 1.6; }
.book-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 27px 0 24px; }
.toolbar-note { color: var(--muted); font-size: 13px; margin-top: 7px; }
.signed-in-name { color: var(--muted); font: italic 15px var(--serif); }
.contents-control { display: flex; gap: 15px; align-items: center; padding: 9px 0; min-width: 0; }
.contents-control label { font-size: 12px; color: var(--muted); }
.contents-control select { min-height: 44px; min-width: 220px; max-width: 100%; font: inherit; font-size: 13px; padding: 9px 30px 9px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: white; }
.album-page { min-height: 0; min-width: 0; display: flex; flex-direction: column; padding: clamp(22px, 2vw, 64px); gap: 18px; }
.album-page-heading { flex-shrink: 0; }
.album-page-heading .eyebrow { color: var(--muted); font-size: 9px; }
.album-page-heading h2 { margin-top: 10px; font-size: clamp(22px, 1.6vw, 42px); font-weight: 400; line-height: 1.2; text-wrap: balance; }
.page-grid { flex: 1; min-height: 0; min-width: 0; display: grid; gap: clamp(12px, 1vw, 30px); grid-template-columns: repeat(2,minmax(0,1fr)); grid-auto-rows: minmax(0,1fr); }
.page-grid.count-1 { grid-template-columns: minmax(0,1fr); }
.page-grid.count-3, .page-grid.count-4 { grid-template-rows: repeat(2,minmax(0,1fr)); }
.page-grid.count-3 > :first-child { grid-row: 1 / -1; }
.page-grid.count-5 { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); }
.page-grid.count-5 > :first-child { grid-row: 1 / -1; }
.album-photo { min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.album-photo .photo-button { flex: 1; min-height: 0; background: white; }
.album-photo img { object-fit: contain; }
.album-photo figcaption, .page-caption { flex-shrink: 0; font-size: clamp(16px, 1.05vw, 26px); line-height: 1.45; text-align: center; white-space: pre-line; }
.book-back { display: grid; grid-template-columns: 1fr; }
.book-back::after, .single-page-spread::after { display: none; }
.book-back .photo-button { min-height: 0; background: white; }
.book-back img { object-fit: contain; }
.single-page-spread { grid-template-columns: 1fr; }
.single-page-spread .album-page { max-width: none; }
@media (max-width: 999px), (max-aspect-ratio: 4/3) {
  .content-spread .album-page { min-height: 450px; }
  .content-spread .page-grid { grid-template-columns: minmax(0,1fr); grid-template-rows: auto; }
  .content-spread .page-grid > :first-child { grid-row: auto; }
  .content-spread .album-photo .portrait-photo { flex: none; height: auto; aspect-ratio: 3/4; }
  .content-spread .album-photo .landscape-photo { flex: none; height: auto; aspect-ratio: 3/2; }
  .book-back .photo-button { height: auto; aspect-ratio: 3/4; }
}
@media (max-width: 600px) {
  .site-header { flex-wrap: wrap; }
  .account-button { margin-left: auto; font-size: 12px; padding: 8px 12px; }
  .auth-card { padding: 60px 26px 30px; }
  .auth-ribbon { left: 26px; }
  .auth-card h1 { font-size: 37px; }
  .book-toolbar { padding: 22px 0 18px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .signed-in-name { font-size: 12px; }
  .contents-control { width: 100%; gap: 10px; }
  .contents-control select { min-width: 0; width: 100%; }
  .album-page { padding: 22px 18px; gap: 18px; }
}
