/* Tokens */
:root {
  --font-body: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", YuMincho, "Hiragino Mincho ProN", serif;
  --font-display: "Cormorant Garamond", "Shippori Mincho", "Noto Serif JP", "Yu Mincho", YuMincho, serif;
  --ink: #f2f2f2;
  --muted: #b8b8b8;
  --soft: #dedede;
  --silver: #e7e7e4;
  --silver-dim: #a9aba9;
  --text-strong: #ffffff;
  --page-bg: #050505;
  --page-bg-alt: #0b0b0b;
  --page-bg-elevated: #101010;
  --surface-bg: #0b0b0b;
  --surface-bg-alt: #171717;
  --page-gradient-start: #050505;
  --page-gradient-mid: #111111;
  --page-gradient-end: #070707;
  --section-gradient: linear-gradient(180deg, var(--page-bg-elevated) 0%, var(--page-bg) 100%);
  --hero-overlay-a: linear-gradient(90deg, rgba(5, 5, 5, 0.82) 0%, rgba(5, 5, 5, 0.58) 46%, rgba(5, 5, 5, 0.24) 100%);
  --hero-overlay-b: linear-gradient(0deg, rgba(5, 5, 5, 0.78) 0%, rgba(5, 5, 5, 0.16) 38%, rgba(5, 5, 5, 0.34) 100%);
  --hero-overlay-mobile-a: linear-gradient(180deg, rgba(5, 5, 5, 0.76) 0%, rgba(5, 5, 5, 0.5) 44%, rgba(5, 5, 5, 0.88) 100%);
  --hero-overlay-mobile-b: linear-gradient(90deg, rgba(5, 5, 5, 0.74) 0%, rgba(5, 5, 5, 0.18) 100%);
  --impression-accent-overlay: linear-gradient(180deg, rgba(5, 5, 5, 0.08), rgba(5, 5, 5, 0.58));
  --message-overlay-a: linear-gradient(180deg, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0.44) 44%, rgba(5, 5, 5, 0.78) 100%);
  --message-overlay-b: linear-gradient(90deg, rgba(5, 5, 5, 0.62) 0%, rgba(5, 5, 5, 0.32) 48%, rgba(5, 5, 5, 0.54) 100%);
  --message-overlay-mobile-a: linear-gradient(180deg, rgba(5, 5, 5, 0.74) 0%, rgba(5, 5, 5, 0.5) 42%, rgba(5, 5, 5, 0.82) 100%);
  --message-overlay-mobile-b: linear-gradient(90deg, rgba(5, 5, 5, 0.64) 0%, rgba(5, 5, 5, 0.36) 100%);
  --message-grid-bg: linear-gradient(180deg, rgba(5, 5, 5, 0.14), rgba(5, 5, 5, 0.06));
  --message-grid-bg-mobile: linear-gradient(180deg, rgba(5, 5, 5, 0.18), rgba(5, 5, 5, 0.08));
  --border-soft: rgba(222, 222, 222, 0.24);
  --border-strong: rgba(242, 242, 242, 0.42);
  --line: var(--border-soft);
  --line-strong: var(--border-strong);
  --image-frame-line: rgba(242, 242, 242, 0.16);
  --image-frame-line-soft: rgba(242, 242, 242, 0.12);
  --image-frame-line-strong: rgba(242, 242, 242, 0.3);
  --button-primary-bg: #e7e7e4;
  --button-primary-text: #050505;
  --button-secondary-bg: rgba(255, 255, 255, 0.02);
  --button-hover-bg: #ffffff;
  --button-hover-text: #050505;
  --message-label: rgba(231, 231, 228, 0.78);
  --message-lead: rgba(242, 242, 242, 0.86);
  --message-term: rgba(231, 231, 228, 0.74);
  --message-grid-line: rgba(242, 242, 242, 0.34);
  --message-item-line: rgba(242, 242, 242, 0.28);
  --message-item-divider: rgba(242, 242, 242, 0.24);
  --shadow-image: 0 24px 80px rgba(0, 0, 0, 0.48);
  --shadow-text-strong: 0 3px 24px rgba(0, 0, 0, 0.58);
  --shadow-text-soft: 0 2px 18px rgba(0, 0, 0, 0.58);
  --shadow-text-message: 0 2px 16px rgba(0, 0, 0, 0.66);
  --radius-button: 8px;
  --radius-card: 0;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page-bg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 2.02;
}

body.page-product {
  min-width: 320px;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
dt,
dd {
  line-break: strict;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin: 0;
}

.product-page {
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--page-gradient-start) 0%, var(--page-gradient-mid) 42%, var(--page-gradient-end) 100%);
}

/* Layout */
.section {
  position: relative;
  padding: 104px 0;
  background: var(--page-bg);
}

.section--base {
  background: var(--page-bg);
}

.section--alt {
  background: var(--page-bg-alt);
}

.section--gradient {
  background: var(--section-gradient);
}

.section-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.narrow-inner {
  width: min(920px, calc(100% - 40px));
}

/* Shared components */
.section-heading {
  max-width: 820px;
  margin-bottom: 40px;
}

.section-label {
  margin-bottom: 14px;
  color: var(--silver-dim);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.section-title {
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 2.58rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
}

.section-lead {
  max-width: 720px;
  margin-top: 24px;
  color: var(--soft);
  font-size: 1.02rem;
  line-height: 2.22;
}

.section-body {
  color: var(--soft);
  font-size: 0.98rem;
  line-height: 2.12;
}

.text-block {
  display: grid;
  gap: 12px;
}

.image-wrap {
  overflow: hidden;
  background: var(--surface-bg);
}

.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-grid {
  display: grid;
  gap: 18px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
}

.product-meta span + span {
  position: relative;
  padding-left: 18px;
}

.product-meta span + span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 1.1em;
  background: var(--line-strong);
  content: "";
  transform: translateY(-50%);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button-primary {
  border-color: var(--button-primary-bg);
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
}

.button-secondary {
  background: var(--button-secondary-bg);
  color: var(--silver);
}

.button:hover {
  border-color: var(--button-hover-bg);
  background: var(--button-hover-bg);
  color: var(--button-hover-text);
}

/* Product hero */
.product-hero {
  display: grid;
  min-height: 86svh;
  align-items: center;
  padding: 78px 0 60px;
  background: var(--page-bg);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  object-position: center center;
  filter: saturate(0.82) brightness(0.78);
}

.product-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay-a), var(--hero-overlay-b);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  gap: 56px;
  align-items: end;
}

.hero-copy {
  max-width: 680px;
  min-width: 0;
}

.hero-title {
  color: var(--text-strong);
  font-family: var(--font-display);
  font-size: 6.9rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.88;
}

.hero-tagline {
  margin-top: 24px;
  color: var(--silver);
  font-size: 1.44rem;
  font-weight: 400;
  line-height: 1.85;
}

.page-blend .hero-tagline {
  font-size: 1.6rem;
  line-height: 1.8;
}

.hero-lead {
  margin-top: 28px;
}

.hero-meta {
  margin-top: 34px;
  font-size: 1.16rem;
}

.hero-product {
  width: min(100%, 310px);
  justify-self: end;
  border: 1px solid var(--image-frame-line-strong);
  box-shadow: var(--shadow-image);
}

.hero-product img {
  aspect-ratio: 3 / 4;
  object-position: center center;
}

/* Product impression */
.product-impression {
  overflow: hidden;
  padding-top: 118px;
  padding-bottom: 161px;
}

.impression-accent {
  position: absolute;
  top: 168px;
  left: max(20px, calc((100% - 1120px) / 2));
  z-index: 0;
  width: min(36vw, 420px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  opacity: 0.28;
  pointer-events: none;
}

.impression-accent::after {
  position: absolute;
  inset: 0;
  background: var(--impression-accent-overlay);
  content: "";
}

.impression-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.product-impression .section-inner {
  position: relative;
  z-index: 1;
}

.product-impression .section-heading {
  max-width: 760px;
}

.impression-copy {
  max-width: 640px;
  margin-left: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* Product message */
.product-message {
  overflow: hidden;
  padding: 122px 0 118px;
  background: var(--page-bg);
}

.message-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.message-background img {
  object-position: center center;
  filter: saturate(0.82) brightness(0.78);
  transform: scale(1.03);
}

.product-message::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--message-overlay-a), var(--message-overlay-b);
  content: "";
}

.product-message .section-inner {
  position: relative;
  z-index: 2;
}

.product-message .section-label {
  color: var(--message-label);
}

.product-message .section-title {
  color: var(--text-strong);
  text-shadow: var(--shadow-text-strong);
}

.product-message .section-lead {
  color: var(--message-lead);
  text-shadow: var(--shadow-text-soft);
}

.message-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.product-message .message-grid {
  border-top-color: var(--message-grid-line);
  background: var(--message-grid-bg);
}

.message-item {
  min-height: 184px;
  padding: 28px 28px 30px 0;
  border-bottom: 1px solid var(--line);
}

.product-message .message-item {
  border-bottom-color: var(--message-item-line);
  text-shadow: var(--shadow-text-message);
}

.message-item:nth-child(odd) {
  padding-right: 34px;
}

.message-item:nth-child(even) {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.product-message .message-item:nth-child(even) {
  border-left-color: var(--message-item-divider);
}

.message-item dt {
  color: var(--silver-dim);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.75;
}

.product-message .message-item dt {
  color: var(--message-term);
}

.message-item dd {
  margin-top: 14px;
  color: var(--silver);
  font-size: 1.12rem;
  font-weight: 400;
  line-height: 2;
}

.product-message .message-item dd {
  color: var(--text-strong);
}

/* Product notes */
.notes-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 64px;
  align-items: start;
}

.note-panel {
  border-top: 1px solid var(--line-strong);
}

.note-list {
  display: grid;
}

.note-item {
  display: grid;
  grid-template-columns: minmax(108px, 0.38fr) minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.note-item dt {
  color: var(--silver-dim);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.82;
}

.note-item dd {
  color: var(--silver);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.86;
}

.notes-prose {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.notes-prose h3,
.story-block h3 {
  color: var(--silver);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.82;
}

.product-notes {
  padding-bottom: 122px;
}

/* Product story */
.product-story {
  padding-top: 128px;
}

.story-feature {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.story-visual {
  border: 1px solid var(--image-frame-line-soft);
}

.story-visual img {
  height: auto;
  object-fit: contain;
}

.story-intro {
  max-width: 100%;
  line-height: 2.24;
}

.story-intro p:nth-child(4),
.story-intro p:nth-child(5) {
  margin-bottom: 18px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 58px;
}

.story-block {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  color: var(--soft);
}

.story-block p {
  margin-top: 12px;
  line-height: 2.08;
}

/* Product cta */
.product-cta {
  padding-top: 128px;
  padding-bottom: 118px;
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(320px, 380px);
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
  padding-top: 52px;
  border-top: 1px solid var(--line-strong);
}

.cta-copy {
  max-width: 500px;
}

.cta-panel {
  display: grid;
  gap: 24px;
  justify-items: stretch;
}

.cta-meta {
  font-size: 1.22rem;
}

.cta-product {
  width: min(100%, 230px);
  aspect-ratio: 3 / 4;
  align-self: center;
  justify-self: start;
  overflow: hidden;
  border: 1px solid var(--image-frame-line);
}

.cta-product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.cta-panel .cta-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.cta-panel .button-primary {
  grid-column: span 2;
}

.cta-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.9;
}

/* Responsive 980 */
@media (max-width: 980px) {
  .section {
    padding: 86px 0;
  }

  .product-impression {
    padding-bottom: 143px;
  }

  .product-notes {
    padding-bottom: 104px;
  }

  .product-story {
    padding-top: 108px;
  }

  .product-message {
    padding: 100px 0 96px;
  }

  .section-title {
    font-size: 2.12rem;
    line-height: 1.58;
  }

  .section-heading,
  .section-lead,
  .section-body {
    min-width: 0;
  }

  .section-heading {
    max-width: 340px;
  }

  .hero-inner,
  .notes-layout,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    gap: 30px;
  }

  .hero-copy {
    max-width: 360px;
  }

  .hero-lead,
  .hero-lead p {
    width: min(100%, 350px);
    max-width: 350px;
  }

  .hero-title {
    font-size: 5.3rem;
  }

  .hero-product {
    width: min(290px, 72%);
    justify-self: end;
  }

  .notes-layout {
    gap: 34px;
  }

  .notes-prose,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-feature {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 36px;
  }

  .cta-inner {
    align-items: start;
    gap: 38px;
  }

  .cta-copy {
    max-width: 560px;
  }

  .cta-product {
    width: min(250px, 58%);
  }
}

/* Responsive 720 */
@media (max-width: 720px) {
  body {
    line-height: 1.96;
  }

  .section,
  .product-impression,
  .product-cta {
    padding: 72px 0;
  }

  .product-impression {
    padding-bottom: 129px;
  }

  .product-notes {
    padding-bottom: 88px;
  }

  .product-story {
    padding-top: 92px;
  }

  .section-inner,
  .narrow-inner {
    width: calc(100% - 28px);
    max-width: 1120px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-title {
    font-size: 1.72rem;
    line-height: 1.68;
  }

  .section-lead,
  .section-body {
    font-size: 0.94rem;
    line-height: 2.08;
  }

  .product-hero {
    min-height: 88svh;
    padding: 60px 0 34px;
  }

  .product-hero::before {
    background: var(--hero-overlay-mobile-a), var(--hero-overlay-mobile-b);
  }

  .hero-background img {
    object-position: center center;
  }

  .hero-title {
    font-size: 4.12rem;
  }

  .hero-tagline {
    margin-top: 18px;
    font-size: 1.1rem;
    line-height: 1.9;
  }

  .page-blend .hero-tagline {
    font-size: 1.22rem;
    line-height: 1.86;
  }

  .hero-lead {
    margin-top: 22px;
    line-height: 2.02;
  }

  .hero-meta {
    margin-top: 24px;
  }

  .hero-product {
    width: min(250px, 68%);
    margin-top: -8px;
  }

  .product-hero .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-hero .hero-copy,
  .product-hero .section-lead,
  .product-hero .section-lead p {
    max-width: 100%;
    min-width: 0;
  }

  .impression-accent {
    top: 154px;
    left: -54px;
    width: 260px;
    opacity: 0.18;
  }

  .product-message {
    padding: 84px 0 80px;
  }

  .product-message::before {
    background: var(--message-overlay-mobile-a), var(--message-overlay-mobile-b);
  }

  .message-background img {
    object-position: center center;
  }

  .product-message .message-grid {
    background: var(--message-grid-bg-mobile);
  }

  .cta-group,
  .cta-panel .cta-group {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .cta-panel .button-primary {
    grid-column: span 1;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .message-grid,
  .story-feature {
    grid-template-columns: 1fr;
  }

  .message-item,
  .message-item:nth-child(odd),
  .message-item:nth-child(even) {
    min-height: 0;
    padding: 24px 0 26px;
    border-left: 0;
  }

  .message-item dd {
    font-size: 1rem;
  }

  .note-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px 0;
  }

  .notes-prose {
    gap: 32px;
    margin-top: 46px;
  }

  .story-feature {
    gap: 28px;
  }

  .story-grid {
    gap: 30px;
    margin-top: 44px;
  }

  .cta-inner {
    padding-top: 38px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .cta-product {
    width: min(230px, 64%);
    justify-self: start;
  }
}

/* Page-specific adjustments */
.page-diamonds .hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}

.page-diamonds .hero-product {
  width: min(100%, 340px);
}

.page-diamonds .product-notes {
  position: relative;
  overflow: hidden;
}

.page-diamonds .notes-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-diamonds .notes-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.9) brightness(0.68);
  opacity: 0.56;
  transform: scale(1.04);
}

.page-diamonds .product-notes::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.78) 0%, rgba(5, 5, 5, 0.48) 48%, rgba(5, 5, 5, 0.78) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.74) 0%, rgba(5, 5, 5, 0.28) 50%, rgba(5, 5, 5, 0.78) 100%);
  content: "";
  pointer-events: none;
}

.page-diamonds .product-notes .section-inner {
  position: relative;
  z-index: 2;
}

@media (max-width: 980px) {
  .page-diamonds .hero-inner {
    grid-template-columns: 1fr;
  }

  .page-diamonds .hero-product {
    width: min(310px, 74%);
  }
}

@media (max-width: 720px) {
  .page-diamonds .hero-product {
    width: min(270px, 72%);
  }

  .page-diamonds .notes-background img {
    object-position: center top;
    opacity: 0.44;
  }
}

/* Theme overrides */
body[data-theme="midnight"] {
  /* Midnight is the default token set in :root; add overrides here for variants. */
}
