@font-face {
  font-family: "Noto Serif Rosarium";
  src: url("assets/noto-serif-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --background: #f6f4ef;
  --ink: #202521;
  --muted: #626660;
  --rule: #d4d5ce;
  --brass: #947d51;
  --check-green: #2e7549;
  --sans: "DM Sans", Arial, sans-serif;
  --surface: #eaece6;
  --surface-strong: #dfe4da;
  --control-active: #263e30;
  --control-active-text: #f6f4ef;
  --button-text: #ffffff;
  --button-hover: #3d493f;
  --selection: #d9d5c8;
  --app-light-display: block;
  --app-dark-display: none;
  --logo-light-display: block;
  --logo-dark-display: none;
  --screen-background: #ffffff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --background: #252a32;
    --ink: #f1f0e5;
    --muted: #a8b3c4;
    --rule: #3a4655;
    --brass: #cab581;
    --check-green: #8bcca3;
    --surface: #252f3b;
    --surface-strong: #303c4b;
    --control-active: #d3deee;
    --control-active-text: #252a32;
    --button-text: #252a32;
    --button-hover: #d7e1ef;
    --selection: #40536b;
    --app-light-display: none;
    --app-dark-display: block;
    --logo-light-display: none;
    --logo-dark-display: block;
    --screen-background: #172229;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --background: #252a32;
  --ink: #f1f0e5;
  --muted: #a8b3c4;
  --rule: #3a4655;
  --brass: #cab581;
  --check-green: #8bcca3;
  --surface: #252f3b;
  --surface-strong: #303c4b;
  --control-active: #d3deee;
  --control-active-text: #252a32;
  --button-text: #252a32;
  --button-hover: #d7e1ef;
  --selection: #40536b;
  --app-light-display: none;
  --app-dark-display: block;
  --logo-light-display: none;
  --logo-dark-display: block;
  --screen-background: #172229;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--background); color: var(--ink); font-family: var(--sans); font-size: 1rem; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 6px; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2 { margin: 0; }
::selection { background: var(--selection); color: var(--ink); }
.container { width: min(1100px, 88%); margin-inline: auto; }
.site-header { position: relative; text-align: center; padding-block: 36px 24px; border-bottom: 1px solid var(--rule); }
.site-header h1 { font-size: inherit; font-weight: inherit; }
.company-logo { position: relative; display: block; width: min(260px, 100%); aspect-ratio: 1; margin-inline: auto; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; appearance: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.company-logo-theme { position: absolute; inset: 0; }
.company-logo img, .company-logo-motion svg { width: 100%; height: auto; }
.company-logo-static, .company-logo-motion { position: absolute; inset: 0; pointer-events: none; transition: opacity 240ms ease; }
.company-logo-static { opacity: 1; }
.company-logo-motion { opacity: 0; }
.company-logo.is-playing .company-logo-static { opacity: 0; }
.company-logo.is-playing .company-logo-motion { opacity: 1; }
.company-logo.is-initial .company-logo-static, .company-logo.is-initial .company-logo-motion { transition: none; }
.company-logo .company-logo-light { display: var(--logo-light-display); }
.company-logo .company-logo-dark { display: var(--logo-dark-display); }
.wordmark { font-family: Georgia, "Times New Roman", serif; font-size: 2.55rem; font-weight: 700; letter-spacing: .13em; line-height: 1.35; }
nav { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 25px; margin-top: 26px; }
nav a { padding-block: 6px; transform-origin: center; transition: color .18s, transform .32s cubic-bezier(.2,.7,.2,1); }
nav a:hover { color: var(--brass); }
.nav-divider { width: 1px; height: 17px; background: var(--rule); }
.rosarium-brand { font-family: "Noto Serif Rosarium", Georgia, serif; font-weight: 720; letter-spacing: .18em; text-transform: uppercase; }
.nav-rosarium { font-size: .875rem; }
.book-title-lockup { display: inline-flex; align-items: center; justify-content: center; gap: .22em; padding-bottom: .233em; font-weight: 400; line-height: 1.2; }
.book-title-lockup > span { min-width: 0; }
.book-title-lockup svg { display: block; max-width: none; }
/* Center on the main letter bodies; reserve the long y descender below them.
   The cover's outlines occupy .744em above that tail and .977em in total. */
.book-title-main { display: block; flex: none; height: .744em; }
.book-the { display: block; flex: 0 0 auto; font-size: .55em; font-style: italic; font-weight: 400; letter-spacing: 0; line-height: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.nav-book { font-size: 1.125rem; padding-bottom: calc(6px + .233em); }
.nav-book .book-the { font-size: .72em; }
.product { text-align: center; padding-block: 42px 58px; scroll-margin-top: 28px; }
.product-category { font-size: .75rem; text-transform: uppercase; letter-spacing: .17em; line-height: 1.6; color: var(--muted); }
.product-visual { position: relative; display: flex; align-items: center; justify-content: center; margin: 25px auto 32px; }
.rosarium-visual { width: fit-content; height: 390px; max-width: 100%; }
.galaxy-device { display: block; position: relative; height: 100%; aspect-ratio: 519 / 1073; flex: none; overflow: hidden; filter: drop-shadow(3px 7px 5px #18251f1a); }
/* Original Samsung front photograph, cropped by its transparent outer bounds.
   The app and camera remain unmodified source images; no synthetic device frame. */
.device-photo { position: absolute; max-width: none; width: 385.356%; height: auto; left: -142.967%; top: -43.150%; pointer-events: none; }
.device-display { position: absolute; display: block; left: 3.66%; top: 1.77%; width: 92.10%; height: 96.46%; overflow: hidden; border-radius: 8.368% / 3.865%; background: var(--screen-background); }
.device-display img { width: 100%; height: 100%; object-fit: contain; }
.device-display .app-screen-light { display: var(--app-light-display); }
.device-display .app-screen-dark { display: var(--app-dark-display); }
.device-camera { clip-path: circle(.70% at 49.975% 25.45%); }
.product-details { width: min(540px, 100%); margin-inline: auto; }
.rosarium-title { font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.3; }
.product-description { margin-top: 17px; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.product-facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.product-facts li { display: inline-flex; align-items: center; gap: 9px; }
.product-facts li::before { content: ""; flex: none; width: 6px; height: 10px; border: solid var(--check-green); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.product-facts li + li { border-left: 1px solid var(--rule); padding-left: 16px; }
.product-actions { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--ink); color: var(--button-text); min-height: 47px; padding: 12px 19px; border: 1px solid var(--ink); font-size: .875rem; line-height: 1.5; transition: background .18s; }
.button:hover { background: var(--button-hover); }
.button span { font-size: 1.05rem; }
.google-play-badge { display: inline-block; flex: none; margin-block: 12px; border-radius: 6px; }
.store-badges { display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: 24px; }
.google-play-badge img, .app-store-badge img { width: auto; height: 48px; }
.google-play-badge img { transition: transform .2s ease; }
.app-store-availability { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 12px; }
.app-store-badge { display: block; padding: 0; border: 0; border-radius: 6px; background: transparent; appearance: none; cursor: default; filter: grayscale(1); opacity: .45; }
.store-status { color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.christmas-product { border-top: 1px solid var(--rule); padding-top: 44px; padding-bottom: 20px; }
.book-visual { width: min(640px, 92%); margin-top: 30px; margin-bottom: 34px; }
.book-cover { width: 100%; height: auto; box-shadow: 0 2px 3px #14221816, 0 15px 25px -14px #14221840; }
.rosarium-visual, .book-visual { transform-origin: center; transition: transform .32s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .google-play-badge:hover img { transform: translateY(-3px); }
  .rosarium-visual:hover,
  .book-visual:hover,
  .nav-rosarium:hover,
  .nav-book:hover { transform: scale(1.04); }
}
@media (prefers-reduced-motion: no-preference) {
  .google-play-badge:focus-visible img { transform: translateY(-3px); }
  .rosarium-visual:focus-visible,
  .book-visual:focus-visible,
  .nav-rosarium:focus-visible,
  .nav-book:focus-visible { transform: scale(1.04); }
}
.book-title { font-size: clamp(2rem, 4.2vw, 2.85rem); }
.book-detail { margin-top: 13px; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.book-status { display: inline-block; margin-top: 25px; border-top: 1px solid var(--brass); padding: 14px 20px 0; font-size: .8125rem; color: var(--muted); }
.site-footer { border-top: 1px solid var(--rule); margin-top: 38px; padding-block: 27px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-wordmark { font-size: 1rem; letter-spacing: .1em; }
.site-footer small { color: var(--muted); font-size: .75rem; }
.skip-link { position: absolute; top: 8px; left: 12px; z-index: 20; padding: 12px 18px; background: var(--ink); color: var(--button-text); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

/* Same expanding icon control and interaction states as brantly.com. */
.theme-toggle { display: flex; flex-direction: row-reverse; align-items: center; gap: 4px; position: relative; z-index: 10; }
.theme-toggle[hidden] { display: none; }
.site-header > .theme-toggle { position: absolute; right: 0; top: 15px; }
.theme-menu-options { display: flex; flex-direction: row-reverse; align-items: center; gap: 3px; background: var(--surface); border: 1px solid var(--rule); border-radius: 24px; padding: 4px; position: absolute; right: 43px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(5px); transition: opacity 160ms ease, transform 160ms ease, visibility 160ms; }
.theme-toggle.is-open .theme-menu-options { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
.theme-menu-options::after { content: ""; position: absolute; right: -10px; top: 0; width: 10px; height: 100%; }
.theme-trigger, .theme-option { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; padding: 0; cursor: pointer; appearance: none; flex: none; }
.theme-trigger { border: 1px solid var(--rule); background: transparent; color: var(--muted); transition: color 160ms ease, background 160ms ease; }
.theme-option { border: 0; background: transparent; color: var(--muted); }
.theme-option:hover { background: var(--surface-strong); color: var(--ink); }
.theme-trigger:hover, .theme-toggle.is-open .theme-trigger { background: var(--control-active); color: var(--control-active-text); }
.theme-symbol { display: flex; }
.theme-trigger-symbol svg { animation: theme-arrive 200ms ease both; }
@keyframes theme-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 960px) {
  .product {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: clamp(40px, 5vw, 72px);
    padding-block: 64px;
    text-align: left;
  }
  .product-category { grid-column: 1; grid-row: 2; margin-bottom: 18px; }
  .product-details { grid-column: 1; grid-row: 3; width: 100%; min-width: 0; margin: 0; }
  .product-visual { grid-column: 2; grid-row: 1 / 5; align-self: center; margin: 0 auto; }
  .rosarium-visual { height: clamp(430px, 36vw, 460px); }
  .book-visual { width: 100%; }
  .product-facts, .store-badges { justify-content: flex-start; }
  .product-actions { align-items: flex-start; }
}

@media (max-width: 600px) {
  .container { width: 88%; }
  .site-header { padding-block: 48px 20px; }
  .company-logo { width: min(240px, 100%); }
  .wordmark { font-size: clamp(1.9rem, 7vw, 2.4rem); }
  nav { gap: 17px; margin-top: 22px; }
  .nav-rosarium { font-size: .875rem; }
  .nav-book { font-size: 1rem; }
  .product { padding-top: 32px; padding-bottom: 38px; }
  .rosarium-visual { height: 365px; margin-top: 22px; margin-bottom: 26px; }
  .product-description { font-size: 1rem; }
  .product-facts { gap: 8px 12px; }
  .product-facts li + li { padding-left: 12px; }
  .product-actions { margin-top: 24px; }
  .button { gap: 18px; padding-inline: 17px; }
  .christmas-product { padding-top: 34px; padding-bottom: 10px; }
  .book-visual { width: 100%; margin-block: 25px 28px; }
  .book-title { font-size: clamp(1.75rem, 6.8vw, 2.5rem); }
  .site-footer { margin-top: 30px; }
  .footer-wordmark { font-size: .9375rem; }
}
@media (max-width: 540px) {
  .theme-trigger, .theme-option { width: 34px; height: 34px; }
  .theme-menu-options { right: 39px; }
}
@media (max-width: 400px) {
  .store-badges { gap: 16px; }
  .google-play-badge img, .app-store-badge img { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
