/* Fanoon Atelier MVP design system: light, premium, product-led. */
:root {
  color-scheme: light;
  --ink: #182326;
  --muted: #5f6a68;
  --subtle: #87908c;
  --paper: #fffdf8;
  --ivory: #f8f3e9;
  --linen: #efe6d7;
  --mist: #e8f0ed;
  --teal: #073b3a;
  --teal-soft: #d8e8e4;
  --ocean: #0f6b78;
  --emerald: #17664e;
  --garnet: #8c3f35;
  --gold: #c7974a;
  --gold-deep: #8d6427;
  --shadow: 0 24px 80px rgba(24, 35, 38, 0.14);
  --shadow-soft: 0 12px 36px rgba(24, 35, 38, 0.09);
  --border: 1px solid rgba(24, 35, 38, 0.12);
  --border-strong: 1px solid rgba(24, 35, 38, 0.22);
  --radius: 8px;
  --radius-small: 6px;
  --max: 1180px;
  --measure: 66ch;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  background:
    linear-gradient(180deg, rgba(232, 240, 237, 0.7), transparent 26rem),
    var(--paper);
  color: var(--ink);
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: rgba(199, 151, 74, 0.65);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(15, 107, 120, 0.55);
  outline-offset: 3px;
}

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-small);
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 7rem);
}

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

.section--dark {
  background: var(--teal);
  color: #fffaf0;
}

.section__header {
  display: grid;
  gap: 0.8rem;
  max-width: 720px;
  margin-bottom: clamp(1.75rem, 4vw, 3.25rem);
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section--dark .eyebrow {
  color: #f3cc83;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 12vw, 8rem);
}

h2 {
  font-size: clamp(2rem, 5.5vw, 4.2rem);
}

h3 {
  font-size: clamp(1.45rem, 3vw, 2.3rem);
}

p {
  margin: 0;
}

.lede {
  max-width: var(--measure);
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.fine-print {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(24, 35, 38, 0.08);
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark img {
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(199, 151, 74, 0.45);
}

.brand-word {
  display: grid;
  line-height: 1;
}

.brand-word strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.brand-word span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.nav-links a,
.nav-links button {
  min-height: 42px;
  padding: 0.6rem 0.75rem;
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links button:hover {
  background: rgba(216, 232, 228, 0.7);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: min(860px, calc(100vh - 74px));
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: var(--teal);
  color: #fffaf0;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.96) contrast(1.02);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 59, 58, 0.88), rgba(7, 59, 58, 0.45) 54%, rgba(7, 59, 58, 0.12)),
    linear-gradient(0deg, rgba(7, 59, 58, 0.84), transparent 52%);
}

.hero__content {
  display: grid;
  gap: 1.25rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding-block: clamp(4rem, 10vw, 8rem);
}

.hero__copy {
  display: grid;
  gap: 1.25rem;
  max-width: 680px;
}

.hero__copy .lede {
  color: rgba(255, 250, 240, 0.88);
}

.hero__actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.1rem;
  border: var(--border-strong);
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.button--primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #18120b;
}

.button--dark {
  border-color: var(--teal);
  background: var(--teal);
  color: #fffaf0;
}

.button--ghost {
  background: rgba(255, 253, 248, 0.08);
  color: inherit;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.product-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  min-width: 0;
}

.product-card__media,
.product-detail__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--linen);
  box-shadow: var(--shadow-soft);
}

.product-card__media {
  aspect-ratio: 4 / 5;
}

.product-detail__media {
  aspect-ratio: 16 / 12;
}

.product-card__media img,
.product-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.025);
}

.product-card__body,
.product-detail__body {
  display: grid;
  gap: 0.75rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.price {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(19rem, 0.96fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 5rem);
  border-top: 1px solid rgba(24, 35, 38, 0.12);
}

.product-detail:first-child {
  border-top: 0;
}

.product-list {
  display: grid;
}

.product-facts {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.product-facts div {
  display: grid;
  gap: 0.2rem;
}

.product-facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.product-facts dd {
  margin: 0;
}

.size-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem 0.9rem;
  align-items: end;
  padding: 0.9rem;
  border: var(--border);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.72);
}

.size-picker label {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 760;
}

.size-picker select {
  min-height: 46px;
  width: 100%;
  border: var(--border);
  border-radius: var(--radius-small);
  background: #fff;
  color: var(--ink);
  padding: 0.65rem 0.75rem;
}

.size-picker .price {
  white-space: nowrap;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1.1fr);
  gap: clamp(1.25rem, 5vw, 4rem);
  align-items: center;
}

.page {
  min-height: calc(100vh - 74px);
}

.prose {
  display: grid;
  gap: 1rem;
  max-width: 820px;
}

.prose h1 {
  max-width: 12ch;
}

.prose h2 {
  margin-top: 1.5rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.prose ul {
  margin-block: 0;
  padding-left: 1.2rem;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.swatch {
  width: 1.35rem;
  aspect-ratio: 1;
  border: 1px solid rgba(24, 35, 38, 0.24);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, 0.85);
}

.field,
.form-grid {
  display: grid;
  gap: 0.45rem;
}

.field label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 760;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: var(--border);
  border-radius: var(--radius-small);
  background: #fff;
  color: var(--ink);
  padding: 0.72rem 0.8rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ocean);
  outline: 3px solid rgba(15, 107, 120, 0.18);
}

.notice {
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(248, 243, 233, 0.72);
  color: var(--muted);
  font-size: 0.92rem;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(7, 22, 24, 0.52);
}

.dialog {
  width: min(100%, 560px);
  max-height: min(760px, calc(100vh - 2rem));
  overflow: auto;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.dialog__inner {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.dialog__close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  min-width: 40px;
  aspect-ratio: 1;
  place-items: center;
  border: var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.icon-button:hover {
  border-color: var(--gold);
}

.form-message {
  min-height: 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-message[data-state="error"] {
  color: #9d2f26;
}

.form-message[data-state="success"] {
  color: var(--emerald);
}

.privacy-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 250;
  display: grid;
  gap: 0.9rem;
  width: min(calc(100% - 2rem), 760px);
  margin-inline: auto;
  padding: 1rem;
  border: var(--border);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.site-footer {
  padding-block: 3rem;
  background: #071618;
  color: rgba(255, 250, 240, 0.82);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-links a,
.footer-links button {
  min-height: 40px;
  border: 0;
  background: transparent;
  color: inherit;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 920px) {
  .site-nav,
  .footer-grid {
    align-items: start;
    flex-direction: column;
  }

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

  .product-detail {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .container {
    width: min(100% - 1rem, var(--max));
  }

  .site-nav {
    min-height: auto;
    padding-block: 0.85rem;
  }

  .brand-word span {
    font-size: 0.64rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: 720px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(7, 59, 58, 0.44), rgba(7, 59, 58, 0.9)),
      linear-gradient(90deg, rgba(7, 59, 58, 0.78), rgba(7, 59, 58, 0.18));
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .size-picker {
    grid-template-columns: 1fr;
  }
}
