/* HR Fashion — styles
   Palette taken from the shawls and the HR Fashion monogram. */
:root {
  --wool: #DCD7CF;      /* page ground: undyed wool grey */
  --felt: #EEEAE4;      /* raised surfaces: fields, panels */
  --kohl: #1F1A15;      /* text and dark bands (from the monogram) */
  --madder: #82291F;    /* primary action */
  --madder-deep: #6A2019;
  --thread: #22605D;    /* links: turquoise needlework, darkened for contrast */
  --gold: #B8914A;      /* rail, hooks, hairlines */
  --gold-light: #C9A35B;/* gold on dark */
  --muted: #4E463D;

  --display: "Marcellus", "Times New Roman", serif;
  --body: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --measure: 34em;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--wool);
  color: var(--kohl);
  font: 400 1.125rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
p { margin: 0; }

a { color: var(--thread); text-underline-offset: 0.18em; }
a:hover { color: var(--madder); }

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

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--kohl); color: var(--felt);
  padding: 10px 16px; z-index: 50; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--wool) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--kohl); text-decoration: none; }
.brand .monogram { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px color-mix(in srgb, var(--gold) 60%, transparent); }
.brand-name { font-family: var(--display); font-size: 1.45rem; letter-spacing: 0.02em; }
.site-header ul { display: flex; gap: clamp(14px, 2.4vw, 32px); list-style: none; margin: 0; padding: 0; align-items: center; }
.site-header nav a { color: var(--kohl); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: var(--madder); }
.site-header .nav-ask {
  background: var(--kohl); color: var(--gold-light);
  padding: 8px 18px; border-radius: 999px;
}
.site-header .nav-ask:hover { background: var(--madder); color: var(--felt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 500 1.05rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--madder); color: #FBF6F0; }
.btn-primary:hover { background: var(--madder-deep); color: #FBF6F0; }
.btn-quiet { border-color: var(--kohl); color: var(--kohl); background: transparent; }
.btn-quiet:hover { background: var(--kohl); color: var(--felt); }
.btn-light { border-color: var(--gold-light); color: var(--gold-light); background: transparent; }
.btn-light:hover { background: var(--gold-light); color: var(--kohl); }

/* ---------- The rail (signature) ---------- */
.rail {
  position: absolute; height: 5px; border-radius: 3px;
  background: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 240, 210, .55), 0 2px 3px rgba(31, 26, 21, .25);
}
.hanger { width: 100%; height: auto; color: var(--gold); overflow: visible; margin-bottom: -3px; position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px) var(--gutter);
  min-height: calc(100svh - 74px);
  overflow: hidden;
}
.hero-copy { max-width: 46rem; }
.hero-copy .lede { max-width: 32em; }
.place { color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.hero h1 { margin-bottom: 24px; }
.lede { font-size: 1.25rem; max-width: var(--measure); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.facts {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  list-style: none; padding: 0; margin: 40px 0 0;
  font-weight: 500;
}
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before {
  content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg);
}

.hero-hang { position: relative; padding-top: 22px; display: flex; justify-content: center; }
.rail-hero { top: 22px; left: 8%; right: 0; }
.hero-figure { margin: 0; display: flex; flex-direction: column; align-items: center; position: relative; top: -1px; width: min(380px, 30vw); }
.hero-media {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 74svh;
  overflow: hidden;
  background: var(--kohl);
  box-shadow: 0 30px 50px -28px rgba(31, 26, 21, .55);
}
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-figure figcaption { margin-top: 14px; color: var(--muted); font-size: 0.98rem; }

/* The one orchestrated moment: the shawl drops onto the rail. */
@media (prefers-reduced-motion: no-preference) {
  .hero-media { animation: drape 1.3s cubic-bezier(.2, .7, .2, 1) .25s both; }
  .hero-figure .hanger { animation: settle 1.3s cubic-bezier(.2, .7, .2, 1) .25s both; }
  @keyframes drape {
    from { clip-path: inset(0 0 100% 0); transform: translateY(-18px); }
    to   { clip-path: inset(0 0 0 0);   transform: translateY(0); }
  }
  @keyframes settle {
    from { transform: translateY(-18px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
}

/* ---------- Section rhythm ---------- */
.collection, .craft, .trade, .care, .enquire {
  padding: clamp(64px, 9vw, 128px) var(--gutter);
}
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
.section-head p { max-width: var(--measure); margin-top: 14px; color: var(--muted); }

/* ---------- Collection ---------- */
.collection { padding-right: 0; border-top: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.collection .section-head { padding-right: var(--gutter); }
.rail-controls { display: flex; gap: 10px; }
.rail-btn {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--kohl); background: transparent; color: var(--kohl);
  display: grid; place-items: center; cursor: pointer;
}
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn:hover { background: var(--kohl); color: var(--gold-light); }
.rail-btn:disabled { opacity: .35; cursor: default; background: transparent; color: var(--kohl); }

.rail-wrap { position: relative; }
.rail-wrap > .rail { top: 2px; left: 0; right: 0; }
.rail-track {
  list-style: none; margin: 0; padding: 0 var(--gutter) 24px 0;
  display: flex; gap: clamp(24px, 3vw, 44px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-left: 0;
  scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.rail-track:focus-visible { outline-offset: 6px; }
.piece {
  flex: 0 0 clamp(240px, 24vw, 310px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
}
.piece img {
  width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: var(--pos, 50% 45%);
  background: var(--felt);
  box-shadow: 0 22px 34px -24px rgba(31, 26, 21, .6);
}
.piece h3 { margin-top: 20px; }
.piece p { margin-top: 8px; color: var(--muted); font-size: 1.02rem; max-width: 28em; }
.piece .price { margin-top: 12px; color: var(--kohl); font-weight: 500; }
.piece .ask { margin-top: 6px; font-weight: 500; align-self: flex-start; }

/* ---------- Craft ---------- */
.craft {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  background: var(--felt);
}
.craft-figure { position: relative; margin: 0; max-width: 520px; }
.craft-figure img { width: 100%; height: auto; }
.spot {
  position: absolute; left: var(--x); top: var(--y);
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; border: 2px solid #FBF6F0;
  background: color-mix(in srgb, var(--madder) 88%, transparent);
  box-shadow: 0 0 0 5px rgba(31, 26, 21, .25);
  cursor: pointer; padding: 0;
  transition: transform .2s, background-color .2s, box-shadow .2s;
}
.spot:hover { transform: scale(1.1); }
.spot[aria-pressed="true"] {
  background: var(--gold-light);
  box-shadow: 0 0 0 6px rgba(201, 163, 91, .45), 0 0 0 7px var(--kohl);
}
.craft-copy > p { margin-top: 16px; max-width: var(--measure); color: var(--muted); }
.parts {
  display: flex; flex-wrap: wrap; gap: 6px 26px;
  margin: 34px 0 26px;
  border-bottom: 1px solid color-mix(in srgb, var(--kohl) 20%, transparent);
}
.parts button {
  background: none; border: 0; padding: 10px 0 12px; margin-bottom: -1px;
  font: 500 1.05rem var(--body); color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent;
}
.parts button[aria-selected="true"] { color: var(--kohl); border-bottom-color: var(--madder); }
.parts button:hover { color: var(--kohl); }
.part-panel { max-width: var(--measure); }
.part-panel h3 { font-size: 1.8rem; margin-bottom: 12px; }
.part-panel p { font-size: 1.2rem; line-height: 1.65; }

/* ---------- Dark "border" bands ---------- */
.film, .site-footer {
  background: var(--kohl); color: #E9E2D6;
  /* a double gold rule, like a shawl's border */
  border-top: 1px solid var(--gold);
  box-shadow: inset 0 6px 0 var(--kohl), inset 0 7px 0 color-mix(in srgb, var(--gold) 55%, transparent);
}

/* ---------- Film ---------- */
.film {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.film h2 { color: #F3ECE0; }
.film-copy p { margin: 16px 0 30px; max-width: var(--measure); color: #CFC6B8; }
.film-frame { justify-self: center; width: min(420px, 100%); }
.film-frame video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #000; }

/* ---------- Wholesale and retail ---------- */
.trade h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.trade-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.trade-cols > div { border-top: 2px solid var(--kohl); padding-top: 20px; }
.trade-cols h3 { margin-bottom: 10px; }
.trade-cols p { color: var(--muted); max-width: 30em; }

/* ---------- Care ---------- */
.care { background: var(--felt); }
.care h2 { margin-bottom: clamp(28px, 4vw, 48px); }
.care-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px);
}
.care-list h3 { font-size: 1.25rem; margin-bottom: 8px; }
.care-list p { color: var(--muted); font-size: 1.04rem; }

/* ---------- Order ---------- */
.enquire {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.enquire-copy p { margin-top: 16px; max-width: var(--measure); color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.contact-list a { font-weight: 500; font-size: 1.1rem; }

.enquire-form { display: grid; gap: 20px; max-width: 560px; }
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; }
.field label, .field legend { font-weight: 500; }
.field input[type="text"], .field select, .field textarea {
  width: 100%; font: 400 1.05rem/1.4 var(--body); color: var(--kohl);
  background: var(--felt); border: 1.5px solid color-mix(in srgb, var(--kohl) 30%, transparent);
  border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--madder); outline-offset: 1px; border-color: var(--madder);
}
.field [aria-invalid="true"] { border-color: var(--madder); }
.choice { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.choice legend { margin-bottom: 8px; width: 100%; }
.choice label { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--madder); }
.err { color: var(--madder); font-size: 0.98rem; }
.enquire-form .btn { justify-self: start; }
.form-note { color: var(--muted); min-height: 1.6em; }

/* ---------- Footer ---------- */
.site-footer {
  padding: clamp(48px, 7vw, 80px) var(--gutter) 36px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; align-items: center;
}
.foot-brand { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.foot-logo {
  width: clamp(150px, 18vw, 220px); height: auto;
  /* fade the logo's square edges into the dark band */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
}
.foot-brand p { color: #CFC6B8; max-width: 16em; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer a { color: var(--gold-light); font-weight: 500; }
.site-footer a:hover { color: #F3ECE0; }
.site-footer .small { grid-column: 1 / -1; color: #A79D8E; font-size: 0.95rem; border-top: 1px solid rgba(201, 163, 91, .3); padding-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .care-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .site-header nav li:not(:last-child) { display: none; }
  .hero {
    grid-template-columns: 1fr; padding-right: var(--gutter); min-height: 0;
  }
  .hero-hang { margin-top: 8px; }
  .rail-hero { left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); }
  .hero-figure { width: min(300px, 72vw); }
  .hero-media { max-height: none; }
  .craft, .film, .enquire { grid-template-columns: 1fr; }
  .craft-figure { justify-self: center; }
  .trade-cols { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .brand-name { font-size: 1.25rem; }
  .brand .monogram { width: 38px; height: 38px; }
  .foot-brand { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .rail-controls { display: none; }
  .piece { flex-basis: 76vw; }
  .care-list { grid-template-columns: 1fr; }
  .parts { gap: 4px 18px; }
}
