/* ============================================================
   Emeline G. Cheung — artist, Montreal
   Warm editorial / painterly. Cream paper, muted naturals.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --paper:      #f6f0e6;
  --paper-deep: #efe6d8;
  --surface:    #fbf7f0;
  --ink:        #2a2521;
  --ink-soft:   #5d544b;
  --ink-faint:  #6f6558;
  --line:       #ddd0bd;
  --clay:       #a8563c;
  --clay-deep:  #8c4430;
  --sage:       #6d7a5f;
  --ochre:      #c08a3e;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 1200px;
  --section-y: clamp(64px, 9vw, 120px);

  --ease: cubic-bezier(.2, .7, .1, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #1a1714;
    --paper-deep: #221e19;
    --surface:    #241f1a;
    --ink:        #efe7db;
    --ink-soft:   #c3b7a7;
    --ink-faint:  #a89a88;
    --line:       #3b332b;
    --clay:       #d98a6c;
    --clay-deep:  #e5a184;
    --sage:       #9aa98a;
    --ochre:      #d9a860;
  }
}

/* explicit theme override from the header switch */
html[data-theme="light"] {
  --paper: #f6f0e6; --paper-deep: #efe6d8; --surface: #fbf7f0;
  --ink: #2a2521; --ink-soft: #5d544b; --ink-faint: #6f6558;
  --line: #ddd0bd; --clay: #a8563c; --clay-deep: #8c4430;
  --sage: #6d7a5f; --ochre: #c08a3e;
}
html[data-theme="dark"] {
  --paper: #1a1714; --paper-deep: #221e19; --surface: #241f1a;
  --ink: #efe7db; --ink-soft: #c3b7a7; --ink-faint: #a89a88;
  --line: #3b332b; --clay: #d98a6c; --clay-deep: #e5a184;
  --sage: #9aa98a; --ochre: #d9a860;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; max-width: 68ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 1.1rem;
  font-weight: 500;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 56ch;
}

.section { padding-block: var(--section-y); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
  padding-block: 0.75rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1.15;
  display: block;
}
.wordmark span {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.3rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}

.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-block: 0.6rem;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--clay); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
  flex: none;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-faint); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  html:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.menu-toggle { display: none; }

@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }
  .nav {
    order: 3;
    width: 100%;
    gap: 1.1rem;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid var(--line);
    padding-top: 0.25rem;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { font-size: 0.85rem; white-space: nowrap; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease);
}
.btn:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) var(--section-y); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-bottom: 1.4rem; }
.hero h1 em {
  font-style: italic;
  color: var(--clay);
}

.hero-figure { margin: 0; position: relative; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper-deep);
}
.hero-figure figcaption {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { order: -1; }
  .hero-figure img { aspect-ratio: 5 / 4; }
}

/* ---------- marquee strip of small facts ---------- */
.strip {
  border-block: 1px solid var(--line);
  background: var(--paper-deep);
}
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.5rem;
  padding-block: 1.1rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.strip-inner span { display: inline-flex; align-items: center; gap: 0.6rem; }
.strip-inner span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--clay);
  flex: none;
}

/* ---------- section heads ---------- */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head .eyebrow { margin-bottom: 0.8rem; }
.section-head p { margin: 0; }
@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- collections ---------- */
.collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 900px) { .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .collections { grid-template-columns: 1fr; } }

.collection {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.collection figure { margin: 0 0 1.1rem; overflow: hidden; background: var(--paper-deep); }
.collection img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: scale 700ms var(--ease);
}
.collection:hover img { scale: 1.035; }
.collection h3 { margin-bottom: 0.4rem; }
.collection p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 0.7rem;
}
.collection .meta {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: auto;
}

/* ---------- featured work (full-bleed) ---------- */
.feature {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.feature figure { margin: 0; }
.feature img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.feature h2 { margin-bottom: 1.1rem; }
.feature dl {
  margin: 1.6rem 0 0;
  display: grid;
  gap: 0.7rem;
  font-size: 0.92rem;
}
.feature dl div {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.feature dt { color: var(--ink-faint); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 0.15rem; }
.feature dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature img { aspect-ratio: 4 / 3; }
}

/* ---------- shop grid ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 900px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .shop-grid { grid-template-columns: 1fr; } }

.print { display: flex; flex-direction: column; }
.print figure {
  margin: 0 0 1rem;
  background: var(--paper-deep);
  overflow: hidden;
  position: relative;
}
.print img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: scale 700ms var(--ease);
}
.print:hover img { scale: 1.03; }
.print h3 { font-size: 1.12rem; margin-bottom: 0.25rem; }
.print .detail {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0 0 0.5rem;
}
.print .price {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0 0 0.9rem;
}
.print .price .fill {
  color: var(--clay);
  border-bottom: 1px dotted currentColor;
  font-style: italic;
}
.print .btn { align-self: flex-start; min-height: 44px; padding: 0.55rem 1.2rem; font-size: 0.85rem; }

/* ---------- process / three columns ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
@media (max-width: 760px) { .process { grid-template-columns: 1fr; } }
.process article { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.process .num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--clay);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.7rem;
}
.process h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.process p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid figure { margin: 0; }
.about-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-deep); }
.about-grid figcaption { margin-top: 0.8rem; font-size: 0.78rem; color: var(--ink-faint); }

.about-body h2 { margin-bottom: 1.3rem; }
.about-body p { color: var(--ink-soft); }

.pull {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.45;
  color: var(--ink);
  border-left: 2px solid var(--clay);
  padding-left: 1.4rem;
  margin: 2rem 0;
  max-width: 34ch;
}

/* ---------- licensing band ---------- */
.band {
  background: var(--paper-deep);
  border-block: 1px solid var(--line);
}
.band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}
.band h2 { margin-bottom: 0.8rem; }
.band p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .band-inner { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

input, select, textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0.8rem 0.9rem;
  min-height: 48px;
  width: 100%;
  transition: border-color 200ms var(--ease);
}
textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus {
  border-color: var(--clay);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clay) 18%, transparent);
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); opacity: 0.75; }

.form-status {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--sage);
}
.form-status[data-state="error"] { color: var(--clay); }

/* ---------- contact layout ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.contact-list li { border-top: 1px solid var(--line); padding-top: 1rem; }
.contact-list .k {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
}
.contact-list .v { font-size: 0.98rem; color: var(--ink-soft); }
.contact-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-bottom-color: var(--clay); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; max-width: 78ch; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 1.1rem;
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  font-family: var(--serif);
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: baseline;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.1rem;
  color: var(--clay);
  flex: none;
  transition: rotate 250ms var(--ease);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p {
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- page intro ---------- */
.page-intro { padding-block: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 56px); }
.page-intro h1 { margin-bottom: 1.2rem; max-width: 20ch; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding-block: clamp(48px, 6vw, 80px) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-grid a { text-decoration: none; font-size: 0.92rem; color: var(--ink-soft); }
.footer-grid a:hover { color: var(--ink); }
.footer-brand p { font-size: 0.92rem; color: var(--ink-soft); max-width: 34ch; margin-top: 0.9rem; }

.footer-base {
  margin-top: clamp(2.5rem, 4vw, 4rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.footer-base .attribution { margin: 0; }
.footer-base .attribution a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer-base .attribution a:hover { color: var(--ink); }

/* ---------- motion ---------- */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: fadeRise 480ms var(--ease) both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .collection:hover img, .print:hover img { scale: 1; }
}

/* ---------- small screens ---------- */
@media (max-width: 480px) {
  .hero-figure figcaption { flex-direction: column; gap: 0.2rem; }
  .feature dl div { grid-template-columns: 1fr; gap: 0.2rem; }
}
