/* ============================================================
   Phnoix And Zion — press on nails, hand painted
   palette: warm cream + plum/rose accent
   ============================================================ */

:root {
  --bg: #fdf8f4;
  --surface: #ffffff;
  --surface-2: #f7ece6;
  --ink: #2a1f26;
  --ink-soft: #5c4a53;
  --muted: #7a6670;
  --accent: #a8385f;
  --accent-ink: #ffffff;
  --accent-soft: #f0d3dd;
  --line: #e6d5cd;
  --shadow: 0 1px 2px rgb(42 31 38 / 0.05), 0 12px 32px -18px rgb(42 31 38 / 0.28);
  --radius: 14px;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --section-y: clamp(64px, 9vw, 120px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171216;
    --surface: #211a1f;
    --surface-2: #2a2127;
    --ink: #f6ecef;
    --ink-soft: #d8c8ce;
    --muted: #b6a3ab;
    --accent: #f08aa8;
    --accent-ink: #2a1018;
    --accent-soft: #3d2530;
    --line: #3a2d34;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -22px rgb(0 0 0 / 0.8);
  }
}

/* explicit toggle overrides */
html[data-theme="light"] {
  --bg: #fdf8f4;
  --surface: #ffffff;
  --surface-2: #f7ece6;
  --ink: #2a1f26;
  --ink-soft: #5c4a53;
  --muted: #7a6670;
  --accent: #a8385f;
  --accent-ink: #ffffff;
  --accent-soft: #f0d3dd;
  --line: #e6d5cd;
  --shadow: 0 1px 2px rgb(42 31 38 / 0.05), 0 12px 32px -18px rgb(42 31 38 / 0.28);
}
html[data-theme="dark"] {
  --bg: #171216;
  --surface: #211a1f;
  --surface-2: #2a2127;
  --ink: #f6ecef;
  --ink-soft: #d8c8ce;
  --muted: #b6a3ab;
  --accent: #f08aa8;
  --accent-ink: #2a1018;
  --accent-soft: #3d2530;
  --line: #3a2d34;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 16px 40px -22px rgb(0 0 0 / 0.8);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* layered gradient depth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 8% -5%, color-mix(in oklab, var(--accent) 12%, transparent) 0, transparent 62%),
    radial-gradient(ellipse 60% 45% at 100% 12%, color-mix(in oklab, #e8a13c 10%, transparent) 0, transparent 58%),
    radial-gradient(ellipse 80% 50% at 50% 108%, color-mix(in oklab, var(--accent) 8%, transparent) 0, transparent 60%);
}

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

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }

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

a { color: var(--accent); text-underline-offset: 3px; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  min-height: 44px;
}
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 8px;
  background: linear-gradient(140deg, var(--accent), #e8a13c);
  flex: none;
}
.brand-text {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-text em {
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.94rem;
  padding: 10px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1.5px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.nav .nav-cta {
  color: var(--accent-ink);
  background: var(--accent);
  padding: 10px 18px;
  border-radius: 999px;
  border-bottom: none;
  font-weight: 500;
}
.nav .nav-cta:hover { background: color-mix(in oklab, var(--accent) 84%, #000); border-bottom: none; }

.theme-toggle {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.7; }
.theme-toggle .ico-moon { display: none; }
html[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .theme-toggle .ico-sun { display: none; }
  html:not([data-theme]) .theme-toggle .ico-moon { display: block; }
}

@media (max-width: 860px) {
  .nav { display: none; }
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(40px, 6vw, 76px) clamp(48px, 7vw, 96px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 14px;
}

.hero h1 { margin-bottom: 0.45em; }
.ink-accent {
  font-style: italic;
  color: var(--accent);
}

.lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 84%, #000); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 0;
  margin: 30px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-facts li { position: relative; padding-left: 16px; }
.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface-2);
}
.hero-figure img {
  width: 100%;
  height: clamp(340px, 58vh, 620px);
  object-fit: cover;
}
.hero-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px 18px 14px;
  font-size: 0.82rem;
  color: #fff;
  background: linear-gradient(to top, rgb(20 10 16 / 0.78), transparent);
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure img { height: clamp(300px, 52vh, 460px); }
}

/* ---------- sections ---------- */

.section { padding-block: var(--section-y); }
.section-tint {
  background: color-mix(in oklab, var(--surface-2) 72%, transparent);
  border-block: 1px solid var(--line);
}

.section-head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 56px); }
.section-intro { color: var(--ink-soft); }

/* ---------- cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 0 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, border-color 220ms ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); }
.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 22px;
}
.card h3, .card p { padding-inline: 26px; }
.card p { font-size: 0.96rem; color: var(--ink-soft); }
.card-meta {
  margin-top: auto;
  padding-top: 14px;
  font-size: 0.8rem !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted) !important;
}

/* ---------- colour section ---------- */

.colour-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 800px) { .colour-grid { grid-template-columns: 1fr; } }

.ticks {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 10px;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.colour-swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.colour-swatches span {
  display: block;
  aspect-ratio: 1 / 1.55;
  border-radius: 999px 999px 40px 40px;
  background: var(--sw);
  box-shadow: inset 0 -8px 18px rgb(0 0 0 / 0.14), 0 6px 16px -8px rgb(0 0 0 / 0.4);
}
.colour-swatches span:nth-child(even) { transform: translateY(14px); }

/* ---------- steps ---------- */

.steps {
  list-style: none;
  counter-reset: s;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}
.steps li {
  counter-increment: s;
  position: relative;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute;
  top: 14px;
  left: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 600;
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { font-size: 0.96rem; color: var(--ink-soft); }

/* ---------- wear ---------- */

.wear-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 800px) { .wear-grid { grid-template-columns: 1fr; } }

.wear-points { display: grid; gap: 22px; }
.point {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
}
.point h3 { font-size: 1.05rem; margin-bottom: 0.3em; }
.point p { font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- faq ---------- */

.faq-wrap { max-width: 900px; }
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  position: relative;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- order ---------- */

.section-order {
  background: color-mix(in oklab, var(--surface-2) 72%, transparent);
  border-top: 1px solid var(--line);
}
.order-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 800px) { .order-grid { grid-template-columns: 1fr; } }

.contact-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
  font-size: 0.97rem;
}
.contact-list .label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.order-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color 160ms ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }

.order-form .btn { justify-self: start; }
.form-status { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.form-status.is-error { color: #b3261e; }
html[data-theme="dark"] .form-status.is-error { color: #ff9b93; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .form-status.is-error { color: #ff9b93; }
}

/* ---------- placeholders ---------- */

.ph {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  border-bottom: 1.5px dotted var(--accent);
  padding: 0 3px;
  border-radius: 3px;
  font-style: italic;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 64px) 24px;
  background: var(--bg);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
}
.foot-brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 4px;
}
.foot-brand em { font-style: italic; font-weight: 400; color: var(--muted); }
.foot-line { font-size: 0.92rem; color: var(--muted); margin: 0; }

.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.foot-nav a:hover { color: var(--accent); }

.foot-attr { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.muted { color: var(--muted); font-size: 0.85rem; margin: 0; }
.attribution a { color: var(--muted); text-decoration: underline; }
.attribution a:hover { color: var(--ink-soft); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeRise {
    from { opacity: 0; translate: 0 14px; }
    to { opacity: 1; translate: 0 0; }
  }
  @supports (animation-timeline: view()) {
    .section-head,
    .card,
    .steps li,
    .point,
    .colour-swatches,
    .order-form {
      animation: fadeRise 420ms cubic-bezier(.2,.7,.1,1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}
