@import url("https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Noto+Sans+KR:wght@400;500;600;700&display=swap");

/* Cube Local is the shared type reference. Keep the storefront/quote shell's
   dedicated stylesheet authoritative; the other static pages use this base. */
:root {
  --site-canvas: #f7f3ed;
  --site-surface: #eef1eb;
  --site-ink: #252722;
  --site-body-font: "Noto Sans KR", "DM Sans", sans-serif;
  --site-display-font: "Gowun Dodum", "Noto Sans KR", sans-serif;
}

body:not([data-cube-shell]) {
  background-color: var(--site-canvas);
  font-family: var(--site-body-font);
}

body:not([data-cube-shell]) :is(h1, h2, h3) {
  font-family: var(--site-display-font);
  font-weight: 400;
  word-break: keep-all;
}

body:not([data-cube-shell]) :is(button, input, select, textarea) {
  font-family: var(--site-body-font);
}

body:not([data-cube-shell]) .checkout-form-panel legend span {
  font-family: var(--site-body-font);
}

body:not([data-cube-shell]) :is(.card-heading strong, .summary-grid strong, .brand small, .form-actions button),
body .purchase-actions .custom-order {
  font-family: var(--site-body-font);
}

body:not([data-cube-shell]) .card-heading strong {
  font-family: var(--site-display-font);
}

/* Quote's old monospace token was also inherited by Korean process labels.
   Keep it aligned with the Cube Local body face on both static and Worker pages. */
body.tp-page {
  --ph-font-mono: var(--site-body-font);
}

body.tp-page :is(.tp-intro h1, .tp-card-heading h2, .tp-next h2) {
  font-family: var(--site-display-font);
}

body[data-cube-shell] .ph-showroom-anchor-tag {
  font-family: var(--site-body-font);
}

body .result-card {
  background: #e9efe8;
}

body:not([data-cube-shell]) .cube-card {
  background: linear-gradient(155deg, #e9efe8 45%, #dce9e3);
}

body:not([data-cube-shell]) .cotton-card {
  background: linear-gradient(155deg, #f3eae4 45%, #f2ddd7);
}

body:not([data-cube-shell]) .login-panel {
  background: rgba(238, 241, 235, .94);
}

body:not([data-cube-shell]) :is(.admin-header, .operations-header),
body:not([data-cube-shell]):has(.admin-notice) > header {
  background: var(--site-canvas);
}

body.verification-page main > section {
  background: #e9efe8;
}

body .detail-panel,
body[data-cube-shell] .tp-next,
body.tp-page .tp-next,
body[data-cube-shell] .local-process,
body[data-cube-shell] .auth-gate,
body[data-cube-shell] .empty-state,
body.cube-local-page :is(.local-process, .auth-gate, .empty-state) {
  background: var(--site-surface);
}

body:not([data-cube-shell]) .collection {
  background: #f2eee7;
}

body:not([data-cube-shell]) .operations-header ~ main .panel,
body:not([data-cube-shell]) :is(.operations-notice, .admin-panel, .admin-tabs),
body:not([data-cube-shell]) main:has(.admin-panel) > .notice,
body:not([data-cube-shell]) .admin-menu > a,
body:not([data-cube-shell]) #product-form,
body:not([data-cube-shell]) .catalog-panel,
body:not([data-cube-shell]) .admin-notice,
body:not([data-cube-shell]) .settings-section {
  background: var(--site-surface);
}

body:not([data-cube-shell]) .settings-section .inventory-card {
  background: var(--site-canvas);
}

body:not([data-cube-shell]) .workspace textarea {
  background: #fbf9f5;
}

@media (min-width: 769px) {
  body:not([data-cube-shell]) .login-intro {
    padding-top: clamp(2rem, 4vw, 3.25rem);
  }
}

body .orders-header + main {
  padding-top: 74px;
}

body .orders-header + main > h1 {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1.2;
}

body.return-photos-page main {
  margin-top: clamp(80px, 8vw, 120px);
}

body.return-photos-page h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.2;
}

body.return-photos-page section {
  background: var(--site-surface);
}

@media (min-width: 681px) {
  body:not([data-cube-shell]) main:has(> .admin-intro) {
    padding-top: 74px;
  }
}

/* The heading belongs to the page, ahead of either checkout column. On a
   narrow screen the order total still precedes the payment form. */
body .checkout-shell > .checkout-page-intro {
  grid-column: 1 / -1;
  grid-row: 1;
  padding: 68px clamp(22px, 8vw, 110px) 12px;
}

body .checkout-page-intro .eyebrow {
  margin: 0 0 10px;
}

body .checkout-page-intro h1 {
  margin: 0;
  font-family: var(--site-display-font);
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.045em;
  word-break: keep-all;
}

body .checkout-page-intro .back-link {
  margin-top: 18px;
}

body .checkout-shell > .checkout-form-panel {
  grid-column: 1;
  grid-row: 2;
  padding-top: 28px;
}

body .checkout-shell > .order-summary {
  grid-column: 2;
  grid-row: 2;
  padding-top: 28px;
}

@media (max-width: 1180px) {
  body .checkout-shell > .order-summary {
    grid-column: 1;
    grid-row: 2;
  }

  body .checkout-shell > .checkout-form-panel {
    grid-column: 1;
    grid-row: 3;
  }
}

@media (max-width: 640px) {
  body .checkout-shell > .checkout-page-intro {
    padding: 38px 16px 16px;
  }

  body .checkout-page-intro h1 {
    font-size: 32px;
  }

  body .orders-header + main {
    padding-top: 30px;
  }

  body:not([data-cube-shell]) .login-intro h1 {
    font-size: 32px;
  }
}

/* Pages with a conventional heading share a compact reading rhythm. Full-bleed
   editorial heroes and checkout/result screens retain their own layout. */
body:not([data-cube-shell]) :is(.legal-shell, .admin-intro, .admin-hero, .page-heading) h1 {
  font-size: clamp(2rem, 4.2vw, 3.75rem);
  line-height: 1.2;
  letter-spacing: -0.045em;
}

body:not([data-cube-shell]) :is(.legal-shell, .admin-intro, .admin-hero, .page-heading) h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.3;
}

/* The Cotton photo stays full-bleed, while its heading matches the calmer Cube
   display scale and does not occupy most of a desktop or mobile viewport. */
.hero-copy h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.12;
}

@media (max-width: 680px) {
  .hero-copy h1 { font-size: clamp(2.25rem, 9vw, 3.25rem); }
}
