/* ==========================================================================
   Axe Hugger — static site
   Palette taken from the brand's own fabric swatch card (wine, jade, tobacco,
   brass) rather than an invented scheme. Layout motif: the sample book.
   ========================================================================== */

:root {
  --felt:        #23282a;
  --felt-deep:   #191d1f;
  --felt-raised: #2d3335;
  --paper:       #f3efe7;
  --paper-dim:   #e4ded2;
  --ink:         #1b1e1f;
  --ink-soft:    #4a504f;

  --wine:        #6e1420;
  --flash:       #c8102e;
  --brass:       #c9a227;
  --jade:        #0e4d4a;

  --stitch:      rgba(243, 239, 231, 0.14);

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 64ch;
  --gut: clamp(1.25rem, 4vw, 2.75rem);
  --rule: 1px solid var(--stitch);

  /* committed single-theme design: the brand is a dark one */
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--felt);
  color: var(--paper);
  font-family: var(--body);
  font-size: clamp(1.0625rem, .4vw + 1rem, 1.1875rem);
  line-height: 1.68;
  font-synthesis-weight: none;
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- shell -------------------------------------------------------- */

.wrap { width: min(1180px, 100% - (2 * var(--gut))); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - (2 * var(--gut))); margin-inline: auto; }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
section + section { border-top: var(--rule); }

/* ---------- type --------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  font-stretch: 112%;
}

h1 { font-size: clamp(2.6rem, 7.5vw, 5.25rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.01em; }
h4 { font-size: 1.05rem; font-weight: 700; font-stretch: 100%; }

p { margin: 0 0 1.15em; max-width: var(--measure); }
.lede { font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.5; color: var(--paper); }

.quiet { color: #b9b3a7; }

/* The one recurring brand device: a short wine rule that sits above a
   section heading, standing in for the stitched edge of a swatch card. */
.sewn { position: relative; padding-top: 1.4rem; }
.sewn::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 72px; height: 5px; border-radius: 3px;
  background: var(--flash);
}

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

.masthead {
  position: sticky; top: 0; z-index: 50;
  background: rgba(25, 29, 31, .92);
  backdrop-filter: blur(10px);
  border-bottom: var(--rule);
}
.masthead__inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: .85rem;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img.crest { width: 38px; height: 38px; }
.wordmark {
  font-family: var(--display); font-weight: 800; font-stretch: 112%;
  font-size: 1.32rem; letter-spacing: -.012em; color: var(--paper);
}
.wordmark b { color: var(--flash); font-weight: 800; }

.nav { display: flex; gap: clamp(.9rem, 2.2vw, 1.9rem); align-items: center; }
.nav a {
  font-family: var(--display); font-weight: 600; font-size: .95rem;
  text-decoration: none; color: var(--paper); opacity: .82;
  padding-block: .35rem; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { opacity: 1; border-bottom-color: var(--flash); }
.nav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--brass); }

@media (max-width: 720px) {
  .masthead__inner { flex-wrap: wrap; gap: .75rem 1rem; }
  .nav { width: 100%; overflow-x: auto; padding-bottom: .25rem; }
  .wordmark { font-size: 1.12rem; }
}

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

.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; border-top: 0; padding: 0; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(78deg, rgba(16,19,20,.93) 4%, rgba(16,19,20,.74) 42%, rgba(16,19,20,.22) 78%);
}
.hero__body { position: relative; padding-block: clamp(3rem, 9vw, 5.5rem); }
.hero h1 { max-width: 15ch; text-wrap: balance; }
.hero .lede { max-width: 44ch; }

.hero__patent {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: .8rem; letter-spacing: .04em;
  color: var(--brass); border: 1px solid rgba(201,162,39,.45);
  padding: .3rem .7rem; border-radius: 2px; margin-bottom: 1.6rem;
}

/* ---------- buttons ------------------------------------------------------ */

.btn {
  display: inline-block; font-family: var(--display); font-weight: 700;
  font-size: 1rem; text-decoration: none;
  padding: .85rem 1.6rem; border-radius: 2px;
  background: var(--flash); color: #fff; border: 2px solid var(--flash);
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--wine); border-color: var(--wine); }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(243,239,231,.4); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- swatch book (colourways) ------------------------------------- */

.swatches {
  display: grid; gap: clamp(.9rem, 1.6vw, 1.4rem);
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  margin-top: 2.5rem;
}
.swatch {
  background: var(--paper); border-radius: 2px; overflow: hidden;
  /* stitched edge — the sample-book device */
  box-shadow: inset 0 0 0 1px rgba(27,30,31,.1), 0 1px 0 rgba(0,0,0,.35);
  position: relative;
}
.swatch img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #fff; padding: .35rem; }
.swatch figcaption {
  font-family: var(--display); font-weight: 600; font-size: .88rem;
  color: var(--ink); padding: .6rem .75rem .75rem;
  border-top: 1px dashed rgba(27,30,31,.28);
  min-height: 3.1em;
}

/* ---------- two models --------------------------------------------------- */

.models { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 2.5rem; }
.model { background: var(--felt-raised); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; }
.model__img { background: #fff; padding: 1.25rem; }
.model__img img { margin-inline: auto; max-height: 380px; width: auto; }
.model__text { padding: 1.4rem 1.5rem 1.6rem; }
.model__text h3 { margin-bottom: .45rem; }
.model__text p { font-size: 1rem; margin-bottom: 0; }
.model__tag { font-family: var(--display); font-size: .78rem; font-weight: 700; color: var(--brass); display: block; margin-bottom: .5rem; }

/* ---------- stand compatibility strip ------------------------------------ */

.stands { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); margin-top: 2.5rem; }
.stands img { border-radius: 3px; width: 100%; aspect-ratio: 1060 / 400; object-fit: cover; }

/* ---------- editorial split ---------------------------------------------- */

.split { display: grid; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split--text-first > :first-child { order: -1; }
.split img { border-radius: 3px; }
.split .panel-img { background: #fff; border-radius: 3px; padding: 1.5rem; }

/* ---------- feature list ------------------------------------------------- */

.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: var(--measure); }
.ticks li { padding-left: 1.9rem; position: relative; margin-bottom: .75rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--flash);
}

/* ---------- steps (a genuine sequence) ----------------------------------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 2.5rem 0 0; max-width: 72ch; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 1.5rem 3.4rem; border-left: var(--rule); margin-left: 1rem;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: -1rem; top: -.15rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--flash); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: .95rem;
  display: grid; place-items: center;
}
.step-figs { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); margin: 2rem 0 0; }
.step-figs figure { margin: 0; background: var(--paper); border-radius: 2px; overflow: hidden; }
.step-figs img { width: 100%; }
.step-figs figcaption { font-family: var(--display); font-size: .75rem; font-weight: 600; color: var(--ink); padding: .4rem .5rem; }

/* ---------- pull quote --------------------------------------------------- */

.quote { border-left: 4px solid var(--brass); padding-left: clamp(1rem, 3vw, 2rem); max-width: 60ch; }
.quote p { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.42; font-style: italic; margin-bottom: .8rem; }
.quote cite { font-family: var(--display); font-style: normal; font-weight: 700; font-size: .95rem; color: var(--brass); }

/* ---------- FAQ ---------------------------------------------------------- */

.faq-group { margin-bottom: 3rem; }
.faq-group > h3 { color: var(--brass); border-bottom: var(--rule); padding-bottom: .5rem; }
details.qa { border-bottom: var(--rule); }
details.qa summary {
  cursor: pointer; list-style: none; padding: 1.05rem 2.5rem 1.05rem 0;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; position: relative;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--flash); line-height: 1;
}
details.qa[open] summary::after { content: "\2013"; }
details.qa .qa__body { padding-bottom: 1.25rem; }
details.qa .qa__body p:last-child { margin-bottom: 0; }

/* ---------- contact ------------------------------------------------------ */

.contact-grid { display: grid; gap: 2rem clamp(2rem, 5vw, 4rem); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 2.5rem; }
.contact-grid h4 { color: var(--brass); margin-bottom: .35rem; }
.contact-grid a { color: var(--paper); }
.contact-grid p { font-size: 1.05rem; }

/* ---------- blog --------------------------------------------------------- */

.posts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); margin-top: 2.5rem; list-style: none; padding: 0; }
.post-card { background: var(--felt-raised); border-radius: 3px; padding: 1.5rem; display: flex; flex-direction: column; }
.post-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--brass); }
.post-card p { font-size: .98rem; color: #b9b3a7; margin-bottom: 0; }

.article { max-width: var(--measure); }
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.article .meta { font-family: var(--display); font-size: .9rem; color: var(--brass); margin-bottom: 2rem; }
.article p { font-size: 1.1rem; }
.article blockquote { border-left: 3px solid var(--wine); margin-left: 0; padding-left: 1.25rem; font-style: italic; }
.back { display: inline-block; margin-top: 3rem; font-family: var(--display); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--flash); }

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

.foot { background: var(--felt-deep); border-top: var(--rule); padding-block: 3rem 2.25rem; }
.foot__grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot h4 { color: var(--brass); }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .45rem; }
.foot a { text-decoration: none; opacity: .85; }
.foot a:hover { opacity: 1; border-bottom: 1px solid var(--flash); }
.foot__legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: var(--rule); font-size: .88rem; color: #8e8a82; }
.foot__legal p { max-width: none; margin-bottom: .4rem; }

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

.order-form { margin-top: 2rem; display: grid; gap: 1.35rem; max-width: 34rem; }
.order-form .hp { position: absolute; left: -9999px; }
.field { display: grid; gap: .45rem; }
.field--short { max-width: 9rem; }
.field label {
  font-family: var(--display); font-weight: 600; font-size: .95rem;
}
.field .opt { font-weight: 400; color: #9d978c; font-size: .85rem; }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--paper);
  background: var(--felt-deep); border: 1px solid rgba(243,239,231,.22);
  border-radius: 2px; padding: .7rem .8rem; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid var(--brass); outline-offset: 2px; border-color: transparent;
}
.field select { appearance: none; background-image:
  linear-gradient(45deg, transparent 50%, var(--paper) 50%),
  linear-gradient(135deg, var(--paper) 50%, transparent 50%);
  background-position: calc(100% - 18px) 1.25rem, calc(100% - 12px) 1.25rem;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.4rem; }
.order-form .btn { justify-self: start; cursor: pointer; }
.form-note { font-size: .92rem; margin: 0; }

/* ---------- product pricing ---------------------------------------------- */

.model__price {
  font-family: var(--display); font-weight: 700; font-size: 1.45rem;
  color: var(--paper); margin-bottom: .55rem;
}
.model__ship { font-family: var(--body); font-weight: 400; font-size: .95rem; color: #a8a299; }
.model__colours { font-size: .95rem; }
.model__text .btn { margin-top: 1.1rem; }
.model__text p:last-of-type { margin-bottom: 0; }
