/* Home — docs/design/01-Main-EN-fonts.png. Mobile first; desktop layout from 48em (wide grids from 64em).
   Section backgrounds deepen into light as the chapters go on: black → deep → dark → burgundy. */

.oo-home > section,
.oo-home-chapter { padding-block: 4.5rem; }
.oo-home .oo-eyebrow { margin-bottom: 0.75rem; }
.oo-home-notices { padding-top: 1.5rem; }

/* Hero ------------------------------------------------------------------ */
.oo-home-hero { padding-block: 2rem 3rem; }
.oo-home-hero__inner { display: grid; gap: 3rem; align-items: center; }
.oo-home-hero__text { display: grid; gap: 1.25rem; justify-items: start; }
.oo-home-hero .oo-eyebrow { margin-bottom: 0; }
.oo-home-hero__intro {
  max-width: 36rem;
  font-family: var(--oo-font-display); font-weight: 300; font-size: 1.25rem; line-height: 1.6;
  color: var(--oo-text-strong);
}
.oo-home-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.75rem; }

/* Gold moon behind a dark disc that holds the hero ornament. */
.oo-home-hero__art { position: relative; width: min(100%, 30rem); aspect-ratio: 1.3; margin-inline: auto; }
.oo-home-hero__moon { position: absolute; left: 0; top: 0; width: 77%; aspect-ratio: 1; border-radius: 50%; background: var(--oo-gold); }
.oo-home-hero__disc {
  position: absolute; right: 0; top: 0; width: 77%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
}
.oo-home-hero__img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }

/* Pre-order -------------------------------------------------------------- */
.oo-home-preorder__lead { margin-top: 1rem; color: var(--oo-text-muted); }
.oo-home-preorder__cards { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.oo-home-card { padding: 2rem 2.25rem 2.5rem; border-radius: 0.25rem; display: grid; gap: 1rem; align-content: start; }
.oo-home-card--preorder { background: var(--oo-burgundy-7421); }
.oo-home-card--after    { background: var(--oo-burgundy); }
.oo-home-card__label { font-size: 0.8125rem; letter-spacing: 0.2em; color: var(--oo-gold); }
.oo-home-card__title { font-family: var(--oo-font-display); font-weight: 300; font-size: 1.5rem; line-height: 1.3; color: var(--oo-text-strong); }
.oo-home-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.oo-home-card__note { color: var(--oo-text-muted); }
.oo-home-card .oo-stars { margin-top: 0.5rem; color: var(--oo-text-muted); }

/* Story ------------------------------------------------------------------ */
.oo-home-story { background: var(--oo-burgundy-dark); }
.oo-home > .oo-home-story { padding-block: 6rem; }
.oo-home-story__inner { display: grid; justify-items: center; gap: 2rem; text-align: center; }
.oo-home-story__star { width: 2.5rem; height: auto; } /* ~40 × 55, matching mockup 01 */
.oo-home-story__lines {
  font-family: var(--oo-font-display); font-style: italic; font-weight: 300;
  font-size: 1.375rem; line-height: 1.7; color: var(--oo-text-strong);
}

/* Chapters --------------------------------------------------------------- */
.oo-home-chapter--1 { background: var(--oo-black); }
.oo-home-chapter--2 { background: var(--oo-burgundy-deep); }
.oo-home-chapter--3 { background: var(--oo-burgundy-dark); }
.oo-home-chapter--4 { background: var(--oo-burgundy); }

.oo-home-chapter__head { display: grid; gap: 1.5rem; }
.oo-home-chapter__intro { display: grid; gap: 0.5rem; }
/* Chapter lead on one line at every width: shrinks with the viewport so the longest (~30em) fits the container. */
.oo-home-chapter__intro .oo-lead { color: var(--oo-text-strong); white-space: nowrap; font-size: min(1rem, calc((100vw - 2 * var(--oo-gutter)) / 31)); }
.oo-home-chapter__intro .oo-small { color: var(--oo-text-subtle); }

.oo-ornaments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1rem; margin-block: 3rem; }
/* A column as tall as its row: the price sits on the bottom edge, so prices line up when a one-liner wraps. */
.oo-ornament { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; text-align: center; }
.oo-ornament__link { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1rem; width: 100%; color: inherit; }
.oo-ornament__img { width: min(100%, 15rem); aspect-ratio: 1; border-radius: 50%; object-fit: cover; transition: transform 0.3s; }
.oo-ornament__link:hover .oo-ornament__img,
.oo-ornament__link:focus-visible .oo-ornament__img { transform: scale(1.03); }
.oo-ornament .oo-design-name { color: var(--oo-gold); }
.oo-ornament .oo-design-line-en { color: var(--oo-text); }
.oo-ornament__price { margin-top: auto; padding-top: 0.5rem; color: var(--oo-text-subtle); }


/* Chapter set bar */
.oo-set {
  display: grid; gap: 1.25rem; align-items: center;
  padding: 1.75rem 2rem; border: 1px solid var(--oo-line-strong); border-radius: 0.25rem;
}
.oo-home-chapter--4 .oo-set { background: var(--oo-shade); }
.oo-set__title { font-family: var(--oo-font-display); font-style: italic; font-weight: 300; font-size: 1.5rem; line-height: 1.3; color: var(--oo-gold); }
.oo-set__contents { margin-top: 0.75rem; color: var(--oo-text-muted); }
.oo-set__note { color: var(--oo-text-subtle); }
.oo-set__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

/* WooCommerce's AJAX script adds a "View cart" link after the button. */
.oo-home a.added_to_cart { font-size: 0.875rem; color: var(--oo-text-muted); text-decoration: underline; text-underline-offset: 0.3em; }
.oo-home .add_to_cart_button.loading { opacity: 0.5; }
.oo-home .add_to_cart_button.added { display: none; }

/* Full collection -------------------------------------------------------- */
.oo-home-full { background: var(--oo-burgundy); }
.oo-home-full__inner { display: grid; gap: 2.5rem; align-items: center; }
.oo-home-full__text { display: grid; gap: 1rem; }
.oo-home-full__text .oo-eyebrow { margin-bottom: 0; }
.oo-home-full__title { font-family: var(--oo-font-price); font-weight: 400; font-size: 1.625rem; line-height: 1.3; color: var(--oo-text-strong); }
.oo-home-full__text .oo-stars { margin-top: 0.5rem; }
.oo-home-full__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0.25rem; font-size: 1.5rem; }
.oo-home-full__img--whole { height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 0; } /* the product image from wp-admin, uncropped */
.oo-home-full--photo .oo-home-full__img { order: 1; }  /* small screens: text, photo, price */
.oo-home-full--photo .oo-home-full__buy { order: 2; }
.oo-home-full__buy { display: grid; justify-items: start; gap: 1rem; }
.oo-home-full__note { color: var(--oo-text-muted); }

/* One of a kind (cream) -------------------------------------------------- */
.oo-home-unique__points { display: grid; gap: 2.5rem; margin-block: 3rem; }
.oo-home-unique__points > div { display: grid; gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--oo-plum-7644); }
.oo-home-unique .oo-h2-en,
.oo-home-unique .oo-h3-en { color: var(--oo-burgundy); }
.oo-home-unique .oo-h3-en { font-weight: 400; }

.oo-home-glow {
  display: grid; gap: 1.5rem; align-items: center;
  padding: 2rem 2.5rem; border-radius: 0.25rem;
  background: var(--oo-burgundy-7421); color: var(--oo-text);
}
.oo-home-glow__name { font-family: var(--oo-font-display); font-style: italic; font-weight: 300; font-size: 2.5rem; line-height: 1.1; color: var(--oo-gold); }
.oo-home-glow__price { font-family: var(--oo-font-display); font-weight: 300; font-size: 1.5rem; line-height: 1.3; color: var(--oo-text-strong); }

/* The box ----------------------------------------------------------------- */
.oo-home-box { background: var(--oo-burgundy); }
.oo-home-box__inner { display: grid; gap: 2.5rem; align-items: center; }
.oo-home-box__img { aspect-ratio: 1; border-radius: 0.25rem; background: var(--oo-cream); overflow: hidden; }
.oo-home-box__img img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.oo-home-box__text { display: grid; gap: 1rem; }
.oo-home-box__text .oo-eyebrow { margin-bottom: 0; }

/* Your lights ------------------------------------------------------------- */
.oo-home-lights { background: var(--oo-black); }
.oo-home-lights__head { display: grid; gap: 1rem; align-items: end; }
.oo-home-lights__head .oo-lead { color: var(--oo-text-muted); }
.oo-home-lights__tag { color: var(--oo-gold); }
.oo-home-lights__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.oo-home-lights__grid li { aspect-ratio: 4 / 5; }

/* Archive sign-up --------------------------------------------------------- */
.oo-home-archive { background: var(--oo-burgundy-dark); }
.oo-home-archive__inner { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.oo-home-archive__inner .oo-eyebrow { margin-bottom: 0; }
.oo-home-archive__inner .oo-lead { color: var(--oo-text-muted); }
.oo-signup { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; width: min(100%, 33rem); margin-top: 1.5rem; }
.oo-signup input[type="email"] {
  flex: 1 1 16rem; min-height: 3rem; padding-inline: 1.25rem;
  background: transparent; border: 1px solid var(--oo-gold); border-radius: var(--oo-radius-pill);
}
.oo-signup input[type="email"]:disabled { opacity: 0.6; }

/* Desktop ----------------------------------------------------------------- */
@media (min-width: 48em) {
  .oo-home > section,
  .oo-home-chapter { padding-block: 7rem; }
  .oo-home > .oo-home-story { padding-block: 8rem; }

  .oo-home-hero { padding-block: 3rem 6rem; }
  .oo-home-hero__inner { grid-template-columns: 1fr 1fr; }
  .oo-home-hero__intro { font-size: 1.5rem; }

  .oo-home-preorder__cards { grid-template-columns: 1fr 1fr; }
  .oo-home-card__title { font-size: 1.625rem; }

  .oo-home-story__lines { font-size: 2rem; }
  .oo-home-story__keep { white-space: nowrap; } /* a sentence's closing phrase wraps as one piece */

  .oo-ornaments { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-block: 4rem; }
  /* The one-liner may reach 1rem into the gap on each side, so the longest ones stay on one line. */
  .oo-ornament .oo-design-line-en { margin-inline: -1rem; }
  /* English one-liners shrink a little with the window (18px at 1440, 14px at the least) to stay on one line. */
  .oo-ornament .oo-design-line-en:not(:lang(ko)) { font-size: clamp(0.875rem, 1.2vw, 1.125rem); }
  .oo-set__title { font-size: 1.625rem; }

  .oo-home-full__title { font-size: 1.875rem; }
  .oo-home-unique__points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .oo-home-glow { grid-template-columns: 1fr auto; }
  .oo-home-glow__price { font-size: 2rem; }

  .oo-home-box__inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .oo-home-lights__head { grid-template-columns: 1fr auto; }
  .oo-home-lights__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 64em) {
  .oo-set { grid-template-columns: 1fr auto auto auto; gap: 2rem; padding-inline: 2rem; }
  .oo-set__note { max-width: 14rem; }
  .oo-home-chapter__head { grid-template-columns: 1fr auto; align-items: start; } /* title left, one-line lead right */
  .oo-home-full__inner { grid-template-columns: 1fr 1fr; gap: 3rem; } /* mockup 01: text left, price right; no image */
  /* With the photo, on tablets: text over price on the left, photo on the right. */
  .oo-home-full--photo .oo-home-full__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); align-items: start; }
  .oo-home-full--photo .oo-home-full__img { grid-column: 2; grid-row: 1 / span 2; order: 0; }
  .oo-home-full--photo .oo-home-full__buy { grid-column: 1; order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .oo-ornament__img { transition: none; }
}

/* Full collection with its photo, wide screens: text left, photo in the middle, price right. */
@media (min-width: 75em) {
  .oo-home-full--photo .oo-home-full__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 20rem) minmax(0, 1fr); align-items: center; }
  .oo-home-full--photo .oo-home-full__img { grid-column: auto; grid-row: auto; order: 1; }
  .oo-home-full--photo .oo-home-full__buy { grid-column: auto; grid-row: auto; order: 2; }
}
