/* =========================================================================
   WrongFonts — the right words, the wrong fonts.
   Plain CSS, no build step. Custom properties + a few components.
   ========================================================================= */

:root {
  --paper: #f5f2ea;
  --paper-2: #ece6d8;
  --card: #fffdf8;
  --ink: #16140f;
  --ink-soft: #595446;
  --navy: #1b2236;
  --red: #e23b2e;
  --green: #2f9e44;
  --line: rgba(22, 20, 15, 0.14);
  --line-strong: rgba(22, 20, 15, 0.28);

  --font-display: "Saira Stencil One", "Arial Narrow", sans-serif;
  --font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --shadow: 0 1px 2px rgba(22, 20, 15, 0.06), 0 8px 30px rgba(22, 20, 15, 0.08);
  --radius: 4px;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- "wrong font" accent classes ---------------------------------------- */
.acc-script { font-family: "Dancing Script", cursive; }
.acc-stencil { font-family: var(--font-display); letter-spacing: 0.02em; }
.acc-chunky { font-family: "Bungee", sans-serif; }
.acc-western { font-family: "Rye", serif; }
.acc-neon { font-family: "Monoton", cursive; }
.acc-typewriter { font-family: "Space Mono", monospace; }

/* =========================================================================
   Header
   ========================================================================= */
.announce {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
}
.announce b { color: var(--red); font-weight: 700; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 242, 234, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand img { height: 26px; width: auto; }
.brand .wrong { color: var(--ink); }
.brand .fonts { color: var(--red); }

.nav {
  display: flex;
  gap: 26px;
  margin-left: 14px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.nav a:hover,
.nav a[aria-current="page"] {
  border-color: var(--red);
}

.head-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ghost-btn {
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ghost-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 9px 16px;
  border-radius: 100px;
  cursor: pointer;
}
.cart-count {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: 100px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
}

.menu-toggle { display: none; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(27, 34, 54, 0.92) 0%,
    rgba(27, 34, 54, 0.62) 46%,
    rgba(27, 34, 54, 0.25) 100%
  );
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.85;
}
.hero .wrap {
  position: relative;
  z-index: 2;
  padding: 96px 24px 104px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 11vw, 132px);
  line-height: 0.9;
  margin: 0;
  letter-spacing: 0.005em;
}
.hero h1 .fonts {
  color: var(--red);
  font-family: "Dancing Script", cursive;
  display: inline-block;
}
.hero .kicker {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(245, 242, 234, 0.7);
  margin: 0 0 18px;
}
.hero .lede {
  font-size: clamp(17px, 2.2vw, 22px);
  max-width: 30ch;
  margin: 26px 0 34px;
  color: rgba(245, 242, 234, 0.92);
}
.hero .lede em { color: var(--red); font-style: normal; font-weight: 700; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 15px 28px;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(226, 59, 46, 0.35); }
.btn.alt { background: var(--paper); color: var(--ink); }
.btn.alt:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.btn.block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* marquee strip */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: scroll-x 38s linear infinite;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  opacity: 0.85;
}
.marquee span::after { content: "✦"; color: var(--red); margin-left: 28px; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================================
   Sections
   ========================================================================= */
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 0.95;
  margin: 0;
}
.section-head p { margin: 8px 0 0; color: var(--ink-soft); max-width: 46ch; }
.section-head .link {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--red);
  padding-bottom: 3px;
  white-space: nowrap;
}

/* =========================================================================
   Product grid + cards
   ========================================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}
.grid.three { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.card-media {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover .card-media img { transform: scale(1.045); }
.card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 100px;
}
.card-tag.sold { background: var(--red); }
.card-quick {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}
.card:hover .card-quick { opacity: 1; transform: translateY(0); }
.card-quick button {
  width: 100%;
  font: inherit;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper);
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 11px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.card-quick button:hover { background: var(--ink); color: var(--paper); }
.card-body {
  padding: 14px 2px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.card-name {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.card-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.card-price { font-weight: 700; white-space: nowrap; }
.card-price .strike { color: var(--ink-soft); font-weight: 400; }

@media (hover: none) {
  .card-quick { opacity: 1; transform: none; }
}

/* filter bar */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.chip {
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* =========================================================================
   Product detail
   ========================================================================= */
.pdp {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  padding: 48px 0 80px;
}
.pdp-media {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; letter-spacing: 0.03em; }
.crumbs a:hover { color: var(--red); }
.pdp-info h1 {
  font-size: clamp(30px, 4.4vw, 50px);
  line-height: 0.98;
  margin: 6px 0 4px;
  font-weight: 400;
}
.pdp-info .price { font-size: 24px; font-weight: 700; margin: 14px 0 22px; }
.pdp-info .price .strike { color: var(--ink-soft); font-weight: 400; margin-left: 10px; }
.pdp-info .blurb { color: var(--ink-soft); font-size: 16.5px; max-width: 48ch; }

.opt-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 26px 0 10px;
}
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  font: inherit;
  min-width: 50px;
  padding: 11px 8px;
  text-align: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.size[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pdp-cta { margin-top: 28px; display: flex; gap: 12px; }
.notes {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 14px;
  color: var(--ink-soft);
  display: grid;
  gap: 8px;
}
.notes b { color: var(--ink); font-weight: 600; }

/* =========================================================================
   Cart drawer
   ========================================================================= */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(22, 20, 15, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 60;
}
.scrim.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100%);
  background: var(--paper);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.3, 0.9, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.18);
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.x {
  font: inherit;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.empty { text-align: center; color: var(--ink-soft); padding: 60px 10px; }
.empty .big { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin-bottom: 6px; }

.line-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.line-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.li-name { font-size: 14px; font-weight: 500; line-height: 1.25; }
.li-meta { font-size: 12.5px; color: var(--ink-soft); margin: 3px 0 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 100px; }
.qty button {
  font: inherit;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
}
.qty span { min-width: 24px; text-align: center; font-size: 13px; }
.li-price { font-weight: 700; font-size: 14px; text-align: right; }
.li-remove {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-align: right;
  width: 100%;
}
.li-remove:hover { color: var(--red); }

.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; }
.subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-bottom: 4px;
}
.subtotal b { font-size: 18px; }
.foot-note { font-size: 12px; color: var(--ink-soft); margin: 0 0 14px; }

/* =========================================================================
   Checkout / forms
   ========================================================================= */
.checkout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 48px;
  padding: 40px 0 80px;
}
.demo-banner {
  background: #fff6d6;
  border: 1px solid #e7d391;
  color: #6b551a;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 26px;
}
.demo-banner b { color: #4d3d10; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}
.field input:focus,
.field select:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row.three { grid-template-columns: 2fr 1fr 1fr; }
.form-h {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  margin: 30px 0 16px;
}
.summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 90px;
}
.summary h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0 0 16px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; }
.sum-line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 700; }
.sum-items { max-height: 240px; overflow-y: auto; margin-bottom: 14px; }
.sum-item { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 6px 0; color: var(--ink-soft); }
.sum-item b { color: var(--ink); font-weight: 500; }

/* =========================================================================
   About + content
   ========================================================================= */
.lede-block { max-width: 720px; }
.lede-block h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 8vw, 86px);
  line-height: 0.9;
  margin: 0 0 24px;
}
.prose { max-width: 660px; font-size: 17px; color: var(--ink-soft); }
.prose p { margin: 0 0 20px; }
.prose strong { color: var(--ink); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.bigfact {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  margin: 0;
}
.bigfact .red { color: var(--red); }

/* feature row */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.feat h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0 0 8px; }
.feat p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.feat .ico { font-size: 26px; margin-bottom: 12px; }

/* =========================================================================
   Newsletter + footer
   ========================================================================= */
.newsletter {
  background: var(--navy);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 54px 40px;
  text-align: center;
}
.newsletter h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 5vw, 44px); margin: 0 0 8px; }
.newsletter p { color: rgba(245, 242, 234, 0.78); margin: 0 0 24px; }
.nl-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.nl-form input {
  flex: 1;
  font: inherit;
  font-size: 15px;
  padding: 13px 16px;
  border: 1px solid rgba(245, 242, 234, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  border-radius: 100px;
}
.nl-form input::placeholder { color: rgba(245, 242, 234, 0.5); }
.nl-msg { font-size: 13px; margin-top: 12px; min-height: 18px; color: #9fe0a8; }

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 44px 0 36px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}
.foot-grid h4 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.foot-grid a { display: block; padding: 4px 0; font-size: 14px; }
.foot-grid a:hover { color: var(--red); }
.foot-brand { font-family: var(--font-display); font-size: 30px; margin-bottom: 10px; }
.foot-brand .fonts { color: var(--red); }
.foot-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  padding: 13px 22px;
  border-radius: 100px;
  font-size: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 90;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .checkout { grid-template-columns: 1fr; gap: 30px; }
  .summary { position: static; }
  .split { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav, .head-actions .ghost-btn { display: none; }
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    font-size: 18px;
    cursor: pointer;
  }
  .head-actions { margin-left: 12px; }
  .grid, .grid.three { grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
  .section { padding: 52px 0; }
  .hero .wrap { padding: 64px 24px 72px; }
  .newsletter { padding: 40px 22px; }
  .nl-form { flex-direction: column; }
  .nl-form .btn { width: 100%; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }

  /* mobile nav sheet */
  .mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--paper);
    padding: 10px 24px 20px;
  }
  .mobile-nav.open { display: block; }
  .mobile-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 15px;
  }
}
@media (min-width: 721px) { .mobile-nav { display: none; } }
