/* ==========================================================================
   MERCHIX LLC — merchixllc.com
   Design system: "Care Label"
   Signal red on chalk. Schibsted Grotesk / Public Sans / Azeret Mono.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Azeret+Mono:wght@400;500&family=Public+Sans:wght@400;500;600&family=Schibsted+Grotesk:wght@500;700;800&display=swap');

/* ---------- Tokens ---------- */
:root {
  --paper:    #FCFCFB;
  --panel:    #F2F1ED;
  --panel-2:  #E8E6E0;
  --white:    #FFFFFF;
  --ink:      #1B1B19;
  --ink-70:   #56574F;
  --ink-45:   #85867E;
  --line:     #E2E0DA;
  --line-2:   #CFCCC4;
  --accent:   #D6392A;
  --accent-d: #A82A1E;
  --wash:     #FBEBE8;

  --shell:  1220px;
  --gutter: clamp(20px, 5vw, 46px);
  --sect:   clamp(64px, 9vw, 118px);

  --mono: 'Azeret Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --disp: 'Schibsted Grotesk', var(--body);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; font-family: var(--mono); font-size: .76rem; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Type ---------- */
.display {
  font-family: var(--disp); font-weight: 800;
  line-height: .98; letter-spacing: -.032em; margin: 0;
}
.d-xl { font-size: clamp(2.5rem, 6.6vw, 4.9rem); }
.d-lg { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.d-md { font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -.022em; }
.d-sm { font-size: 1.16rem; font-weight: 700; letter-spacing: -.015em; }

.label {
  font-family: var(--mono); font-size: .67rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 18px; display: block;
}
.label--quiet { color: var(--ink-45); }
.lede { font-size: clamp(1.04rem, 1.5vw, 1.18rem); color: var(--ink-70); max-width: 58ch; margin: 0; }
.muted { color: var(--ink-70); }

/* ---------- Shell ---------- */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sect); }
.section[id] { scroll-margin-top: 84px; }
.section--tight { padding-block: clamp(44px, 6vw, 78px); }
.section--edge { border-top: 1px solid var(--line); }
.section--panel { background: var(--panel); }

/* ---------- Header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.masthead__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 66px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand__type { font-family: var(--disp); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; text-transform: uppercase; }
.brand__dot { width: 6px; height: 6px; background: var(--accent); align-self: center; }
.brand__suffix { font-family: var(--mono); font-size: .58rem; letter-spacing: .18em; color: var(--ink-45); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-decoration: none; color: var(--ink-70); transition: color .2s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a.btn { color: var(--paper); font-size: .74rem; padding: 12px 20px; border: 1px solid var(--ink); letter-spacing: .08em; }
.nav a.btn:hover { color: #fff; border-color: var(--accent); }

.burger { display: none; background: none; border: 1px solid var(--line-2); width: 40px; height: 36px; cursor: pointer; padding: 0; align-items: center; justify-content: center; gap: 4px; flex-direction: column; }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 15px 24px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--wide { width: 100%; }
.btn__arrow { transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Signature: care-label strip ---------- */
.tape {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .63rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-45);
  padding: 9px 12px; border: 1px solid var(--line); background: var(--white);
  position: relative;
}
.tape::before, .tape::after {
  content: ""; position: absolute; top: 50%; transform: translateY(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: var(--line-2);
}
.tape::before { left: 5px; }
.tape::after { right: 5px; }
.tape span { padding-inline: 6px; }
.tape span + span { border-left: 1px solid var(--line); }
.tape em { font-style: normal; color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(36px, 5vw, 60px); }
.hero__grid { display: grid; grid-template-columns: 1.5fr .5fr; gap: clamp(26px, 4vw, 56px); align-items: end; }
.hero__grid > * { min-width: 0; }
.hero__sub { margin-top: 24px; }
.hero__facts { display: flex; flex-direction: column; gap: 11px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-45); }
.hero__facts span { display: inline-flex; align-items: center; gap: 9px; }
.hero__facts span::before { content: ""; width: 5px; height: 5px; background: var(--accent); flex: none; }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.grid > * { min-width: 0; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.prod { text-decoration: none; display: flex; flex-direction: column; }
.shot {
  position: relative; aspect-ratio: 4/5; background: var(--panel);
  border: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s var(--ease);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot__ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-45); text-align: center; padding: 12px;
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, rgba(0,0,0,.022) 11px 22px);
}
.shot img + .shot__ph { display: none; }
.prod:hover .shot { border-color: var(--accent); }
.prod__head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 16px; }
.prod__name { font-family: var(--disp); font-weight: 700; font-size: 1.02rem; letter-spacing: -.015em; }
.prod:hover .prod__name { color: var(--accent-d); }
.prod__price { font-family: var(--mono); font-size: .92rem; white-space: nowrap; }
.prod .tape { margin-top: 12px; }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 66px); align-items: start; }
.pdp > * { min-width: 0; }
.pdp .shot { aspect-ratio: 4/5; }
.pdp__price { font-family: var(--disp); font-weight: 800; font-size: 2.1rem; letter-spacing: -.03em; margin: 14px 0 4px; }
.pdp__tax { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-45); }
.spec { width: 100%; border-collapse: collapse; margin-top: 26px; }
.spec th, .spec td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: top; }
.spec th { font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); font-weight: 400; width: 132px; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.size { font-family: var(--mono); font-size: .7rem; padding: 7px 12px; border: 1px solid var(--line-2); color: var(--ink-70); }
.notice { border-left: 2px solid var(--accent); background: var(--wash); padding: 16px 20px; margin-top: 26px; }
.notice p { margin: 0; font-size: .92rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards > * { min-width: 0; }
.card { border: 1px solid var(--line); background: var(--white); padding: 26px 24px 30px; display: flex; flex-direction: column; transition: border-color .25s var(--ease); }
.card:hover { border-color: var(--accent); }
.card__no { font-family: var(--mono); font-size: .66rem; letter-spacing: .13em; color: var(--accent); margin-bottom: 26px; }
.card__t { font-family: var(--disp); font-weight: 700; font-size: 1.14rem; margin: 0 0 9px; letter-spacing: -.018em; }
.card p { margin: 0; color: var(--ink-70); font-size: .93rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4.5vw, 64px); align-items: start; }
.split--narrow { grid-template-columns: .8fr 1.2fr; }
.split > * { min-width: 0; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.table th, .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.table th { font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); font-weight: 400; border-bottom: 1px solid var(--line-2); }
.table td:last-child, .table th:last-child { text-align: right; font-family: var(--mono); font-size: .87rem; white-space: nowrap; }
.table tbody tr:hover { background: var(--wash); }
.table--plain td:last-child, .table--plain th:last-child { text-align: left; font-family: var(--body); font-size: .93rem; white-space: normal; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 21px 0;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 22px;
  font-family: var(--disp); font-weight: 700; font-size: 1.02rem; letter-spacing: -.015em;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "\\2013"; }
.faq details p { margin: 0 0 22px; color: var(--ink-70); max-width: 74ch; font-size: .95rem; }

/* ---------- Dark band ---------- */
.band { background: var(--ink); color: var(--paper); }
.band .lede, .band .muted { color: #B6B7AE; }
.band .label { color: #F08C7F; }
.band a { color: var(--paper); }
.mail-link { font-family: var(--disp); font-weight: 700; font-size: clamp(1.2rem, 3vw, 1.9rem); letter-spacing: -.025em; text-decoration: none; display: inline-block; margin-top: 16px; border-bottom: 2px solid var(--accent); padding-bottom: 4px; word-break: break-word; }
.mail-link:hover { color: #F08C7F; border-color: #F08C7F; }

.deflist { display: grid; margin: 0; }
.deflist div { display: grid; grid-template-columns: 138px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.deflist dt { font-family: var(--mono); font-size: .65rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-45); }
.deflist dd { margin: 0; font-size: .93rem; }
.band .deflist div { border-color: #2E2F2B; }
.band .deflist dt { color: #8C8D84; }

/* ---------- Form ---------- */
.form { display: grid; gap: 15px; }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--mono); font-size: .65rem; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-45); }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-2);
  padding: 13px 14px; width: 100%; border-radius: 0;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form__note { font-size: .81rem; color: var(--ink-45); margin: 0; }

/* ---------- Legal ---------- */
.legal { max-width: 790px; }
.legal h2 { font-family: var(--disp); font-weight: 700; font-size: 1.34rem; margin: 48px 0 13px; letter-spacing: -.02em; }
.legal h3 { font-size: 1rem; margin: 28px 0 8px; font-weight: 600; }
.legal p, .legal li { color: var(--ink-70); }
.legal ul, .legal ol { padding-left: 20px; display: grid; gap: 8px; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--accent-d); }
.legal__meta { font-family: var(--mono); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-45); padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 24px; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--panel); }
.foot__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px; padding-block: clamp(44px, 6vw, 68px); }
.foot__top > * { min-width: 0; }
.foot h4 { font-family: var(--mono); font-size: .65rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-45); font-weight: 400; margin: 0 0 15px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot ul a { text-decoration: none; font-size: .9rem; color: var(--ink-70); }
.foot ul a:hover { color: var(--accent); }
.foot__blurb { font-size: .9rem; color: var(--ink-70); max-width: 36ch; margin: 15px 0 0; }
.foot__addr { font-family: var(--mono); font-size: .68rem; line-height: 1.8; color: var(--ink-45); margin: 18px 0 0; font-style: normal; }
.foot__bar { border-top: 1px solid var(--line-2); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-family: var(--mono); font-size: .66rem; letter-spacing: .05em; color: var(--ink-45); }
.foot__bar a { text-decoration: none; }

/* ---------- Motion ---------- */
.rise { opacity: 0; transform: translateY(16px); }
.rise.is-in { opacity: 1; transform: none; transition: opacity .65s var(--ease), transform .65s var(--ease); }
.stagger > * { transition-delay: calc(var(--i, 0) * 60ms); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .split, .split--narrow, .pdp { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .grid, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .foot__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 66px 0 auto 0; background: var(--paper);
    border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px var(--gutter) 20px; transform: translateY(-125%);
    transition: transform .3s var(--ease); max-height: calc(100dvh - 66px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
  .nav a.btn { margin-top: 14px; border: 1px solid var(--ink); padding: 15px 22px; }
  .burger { display: inline-flex; }
  body { font-size: 16px; }
  .field--row { grid-template-columns: 1fr; }
  .deflist div { grid-template-columns: 1fr; gap: 4px; }
  .spec th { width: 108px; }
}
@media (max-width: 460px) {
  .grid, .grid--4 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .rise { opacity: 1; transform: none; }
}
