@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&family=Noto+Sans+Thai:wght@400;500;600;700&family=Noto+Serif+Thai:wght@400;500;600;700&display=swap");

:root {
  --deep-red: #591b2a;
  --blush: #fce9ed;
  --red: #a7203d;
  --butter-yellow: #ffdf82;
  --ink: var(--deep-red);
  --paper: #fff8f6;
  --white: #ffffff;
  --surface-tint: #f8dce2;
  --muted: #754652;
  --line: #e5aeba;
  --input-line: #a46b77;
  --font-body: "Noto Sans Thai", Tahoma, sans-serif;
  --font-display: "Noto Serif Thai", Georgia, serif;
  --font-english: "DM Serif Text", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7.25rem; }
#site-header { position: sticky; top: 0; z-index: 10; background: var(--blush); border-bottom: 1px solid var(--line); }
body { margin: 0; background: var(--blush); color: var(--ink); font: 400 1rem/1.7 var(--font-body); }
img { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.24; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.45rem, 5.8vw, 5.25rem); }
h2 { font-size: clamp(2rem, 3.65vw, 3.45rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 0.28em; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
[id] { scroll-margin-top: 1.6rem; }
.wrap { width: min(1200px, calc(100% - clamp(2rem, 8vw, 7.5rem))); margin-inline: auto; }
.section { padding-block: clamp(3.6rem, 7vw, 7.5rem); }
.eyebrow { display: inline-block; color: var(--red); font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.145em; margin-bottom: 0.85rem; }
.muted { color: var(--muted); }
.section-heading { margin-bottom: 2.25rem; }
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center;
  padding: 0.66rem 1.45rem; gap: 0.5rem; border: 1px solid transparent; border-radius: 3px;
  color: var(--ink); background: var(--paper); font-weight: 700; font-size: 0.95rem;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--red); color: white; }
.button--primary:hover { background: var(--deep-red); }
.button--outline { border-color: var(--red); color: var(--red); background: transparent; }
.button--outline:hover { background: var(--surface-tint); }
.button--light { background: var(--butter-yellow); color: var(--deep-red); }
.button--light:hover { background: var(--blush); }
.text-link { color: var(--deep-red); font-weight: 700; text-decoration-thickness: 1px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: absolute; z-index: 2; top: 0.45rem; left: 0.45rem; background: var(--white); padding: .65rem 1rem; }
.ticker { position: relative; display: flex; color: var(--paper); background: var(--deep-red); }
.ticker-window { flex: 1; overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: marquee 37s linear infinite; }
.ticker-track > div { display: flex; align-items: center; gap: 1.4rem; padding: .35rem .7rem; }
.ticker-track span { white-space: nowrap; font-size: .875rem; font-weight: 600; letter-spacing: .02em; }
.ticker-toggle { border: 0; border-left: 1px solid #ffffff4a; min-width: 2.75rem; background: var(--deep-red); color: var(--paper); cursor: pointer; }
.ticker-toggle:focus-visible, #site-footer :focus-visible { outline-color: var(--butter-yellow); outline-offset: -4px; }
.ticker:hover .ticker-track, .ticker-paused .ticker-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.nav-bar { min-height: 5.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.nav-toggle { display: none; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { position: relative; width: 42px; height: 46px; border: 1px solid currentColor; color: var(--red); border-radius: 50% 50% 46% 46%; display: inline-block; }
.brand-mark::before, .brand-mark::after, .brand-mark i { content: ""; position: absolute; left: 50%; transform: translateX(-50%); }
.brand-mark::before { width: 23px; height: 13px; top: 20px; border: 1.5px solid; border-radius: 5px 5px 0 0; background: linear-gradient(transparent 47%, currentColor 49%, currentColor 52%, transparent 55%); }
.brand-mark::after { width: 8px; height: 9px; top: 8px; border: 1.5px solid; border-radius: 8px 8px 8px 1px; transform: translateX(-50%) rotate(45deg); }
.brand-mark i { width: 29px; bottom: 9px; border-top: 1.5px solid; }
.brand-lockup { display: grid; line-height: 1.2; }
.brand-lockup strong { font: 700 1.3rem/1.15 var(--font-display); }
.brand-lockup small { font: 400 .75rem/1.6 var(--font-english); letter-spacing: .12em; }
.nav-links, .footer-links { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.4rem); }
.nav-links a { padding-block: .55rem; text-decoration: none; white-space: nowrap; font-weight: 600; font-size: .95rem; }
.nav-links a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -2px var(--red); }
.nav-links a:hover, .footer-links a:hover { text-decoration: underline; }
.demo-notice { border-block: 1px solid var(--line); text-align: center; padding: .38rem 1rem; font-size: .875rem; color: var(--muted); }
.home-hero { display: grid; grid-template-columns: .91fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; padding-block: clamp(3rem, 6vw, 6.5rem); }
.hero-content h1 span { color: var(--red); }
.hero-content p { max-width: 31rem; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.18rem); }
.hero-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-figure img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--surface-tint); border-radius: 46% 46% 3px 3px / 38% 38% 3px 3px; }
.hero-figure figcaption { font-size: .875rem; color: var(--muted); text-align: right; padding-top: .45rem; }
.birthday-band { background: var(--red); color: var(--white); }
.birthday-band :focus-visible { outline-color: var(--deep-red); outline-offset: -5px; }
.birthday-content { padding-block: clamp(2.1rem, 4.5vw, 3.9rem); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem 2rem; }
.birthday-content .eyebrow { color: var(--butter-yellow); }
.birthday-content h2 { margin-bottom: .18em; }
.birthday-content p { margin-bottom: 0; }
.home-story { display: grid; grid-template-columns: 1fr .84fr; align-items: center; gap: clamp(1.9rem, 8vw, 7.8rem); }
.home-story p { color: var(--muted); max-width: 34rem; }
.story-figure img { width: 100%; max-height: 460px; aspect-ratio: 1.15; object-fit: cover; border-radius: 3px; background: var(--surface-tint); }
.review-section { background: var(--surface-tint); }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.review-grid figure { display: flex; flex-direction: column; padding: clamp(1.15rem, 3vw, 2.2rem); min-height: 12.7rem; border: 1px solid var(--line); background: var(--paper); }
.review-grid blockquote { font: 500 1.17rem/1.5 var(--font-display); padding-bottom: 1rem; }
.review-grid figcaption { margin-top: auto; color: var(--muted); font-size: .875rem; }
.quote-mark { font: 400 4rem/.72 var(--font-english); color: var(--red); }
.faq-layout { display: grid; grid-template-columns: .7fr 1fr; gap: 1rem 4rem; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list p { color: var(--muted); padding: 0 2.4rem .35rem 0; }
.faq-list summary { display: flex; justify-content: space-between; gap: .8rem; font-weight: 700; cursor: pointer; padding: 1.15rem 0; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--red); font-size: 1.35rem; flex-shrink: 0; line-height: 1.3; }
.faq-list details[open] summary::after { content: "−"; }
#site-footer { background: var(--ink); color: var(--paper); }
#site-footer .brand-mark { color: var(--butter-yellow); }
.footer-main { padding-block: 2.2rem; display: flex; gap: 1rem 2rem; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.footer-links { flex-wrap: wrap; font-size: .92rem; }
.footer-links a { text-decoration: none; }
.footer-main small { color: var(--blush); }
.reveal.is-visible { animation: appear .55s ease-out both; }
@keyframes appear { from { opacity: .4; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 180ms; }
@media (max-width: 1024px) {
  html { scroll-padding-top: 6rem; }
  .nav-bar { min-height: 4rem; }
  .nav-action { display: none; }
  .nav-toggle {
    display: grid; place-items: center; flex-shrink: 0;
    width: 44px; height: 44px; padding: 0;
    border: 1px solid var(--red); border-radius: 3px;
    background: var(--paper); color: var(--deep-red); cursor: pointer;
  }
  .nav-toggle__icon { display: grid; gap: 4px; width: 20px; }
  .nav-toggle__icon span { height: 2px; background: currentColor; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:first-child { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__icon span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .nav-links {
    display: none; position: absolute; inset: 100% 0 auto;
    padding: .45rem max(1rem, 4vw) .65rem;
    max-height: calc(100dvh - 6rem); overflow-y: auto;
    background: var(--paper); border-block: 1px solid var(--line);
  }
  .nav-toggle[aria-expanded="true"] + .nav-links { display: grid; gap: .25rem; }
  .nav-links a { min-height: 44px; padding: .55rem .75rem; }
}
@media (max-width: 760px) {
  .home-hero, .home-story, .faq-layout { grid-template-columns: 1fr; }
  .hero-figure { max-width: 34rem; }
  .story-figure { order: 1; }
  .review-grid { grid-template-columns: 1fr; }
  .review-grid figure { min-height: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .ticker-toggle { display: none; }
  .ticker-track { animation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
.photo-credit-wrap { border-top: 1px solid var(--line); }
.photo-credits { padding-block: .9rem 1.25rem; color: var(--muted); font-size: .875rem; }
.photo-credits summary { cursor: pointer; }
.photo-credits p { margin: 0; }

[hidden] { display: none !important; }
.cake-tools { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin: 1.2rem 0; }
.cake-tools label { display: grid; gap: .25rem; flex: 1 1 12rem; font-weight: 600; }
.cake-input { min-height: 44px; max-width: 100%; width: 100%; padding: .45rem .6rem; color: var(--ink); background: var(--white); border: 1px solid var(--input-line); border-radius: .3rem; font: inherit; }
