/* Northlane — the demo store at shop.wetryon.ai. Light only, system fonts,
   nothing loaded from elsewhere. Every text element sets its own colour. */
:root {
  --bg: #f8f6f2;
  --surface: #ffffff;
  --tint: #efebe4;
  --ink: #161514;
  --ink-2: #57534d;
  --ink-3: #8a857d;
  --line: #e2ddd4;
  --accent: #2f4a3c;
  --accent-ink: #ffffff;
  --accent-soft: #e3ebe5;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --max: 1240px;
}
@media (min-width: 760px) { :root { --gutter: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
h1, h2, h3, p { margin: 0; }
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 72px; }

/* ── Announcement + header ─────────────────────────────────────────────── */
.announce { background: var(--accent); color: var(--accent-ink); text-align: center; font-size: 13px; line-height: 1.4; padding: 9px var(--gutter); letter-spacing: .01em; }
.announce strong { color: var(--accent-ink); font-weight: 600; }

.header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.wordmark { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: .32em; margin-right: -.32em; justify-self: center; white-space: nowrap; }
.nav { display: none; }
.nav a, .menu__panel a { color: var(--ink); text-decoration: none; font-size: 14px; letter-spacing: .02em; }
.nav a[aria-current="page"], .menu__panel a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav a:hover, .menu__panel a:hover { color: var(--accent); }
.header__icons { display: flex; gap: 14px; justify-self: end; color: var(--ink); }
.icon { display: inline-flex; color: var(--ink); }

.menu { justify-self: start; }
.menu summary { list-style: none; cursor: pointer; color: var(--ink); display: inline-flex; padding: 6px; margin-left: -6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); display: grid; padding: 8px var(--gutter) 16px; }
.menu__panel a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
.menu__panel a:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .header__inner { grid-template-columns: auto 1fr auto; height: 72px; gap: 40px; }
  .wordmark { justify-self: start; }
  .menu { display: none; }
  .nav { display: flex; gap: 28px; justify-self: center; }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn { display: inline-block; background: var(--ink); color: #ffffff; text-decoration: none; font-size: 15px; font-weight: 600; letter-spacing: .02em; padding: 14px 28px; border-radius: 2px; }
.btn:hover { background: var(--accent); color: var(--accent-ink); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { display: grid; gap: 28px; margin: 24px 0 0; background: var(--tint); padding: 28px 20px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.hero__title { color: var(--ink); font-size: clamp(34px, 6vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -.02em; max-width: 14ch; }
.hero__line { color: var(--ink-2); font-size: 17px; max-width: 42ch; margin: 18px 0 26px; }
.hero__art { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 3 / 2; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; background: var(--surface); }
.hero__main { grid-row: 1 / 3; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 5fr 6fr; align-items: center; gap: 48px; padding: 56px; margin-top: 32px; }
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { margin-top: 64px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section__title { color: var(--ink); font-size: 24px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 22px; }
.section__more { color: var(--ink); font-size: 14px; text-underline-offset: 4px; }

/* Category tiles */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.tile__link { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface); text-decoration: none; }
.tile__link img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile__link:hover img { transform: scale(1.03); }
.tile__label { position: absolute; left: 12px; bottom: 12px; background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: .04em; padding: 8px 14px; }

/* Try-on strip */
.strip { margin-top: 64px; background: var(--accent-soft); border-left: 3px solid var(--accent); padding: 24px 20px; display: grid; gap: 6px; }
@media (min-width: 760px) { .strip { grid-template-columns: auto 1fr; gap: 32px; align-items: center; padding: 28px 36px; } }
.strip__title { color: var(--accent); font-size: 20px; font-weight: 600; white-space: nowrap; }
.strip__copy { color: var(--ink); font-size: 16px; }

/* Product grid */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 20px; } }
.card__link { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.card__media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface); margin-bottom: 8px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card__link:hover .card__media img { transform: scale(1.03); }
.card__name { color: var(--ink); font-size: 15px; line-height: 1.35; }
.card__link:hover .card__name { text-decoration: underline; text-underline-offset: 3px; }
.card__price { color: var(--ink-2); font-size: 15px; }

/* ── Breadcrumbs + collection ───────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { color: var(--ink-3); }
.crumbs [aria-current] { color: var(--ink); }

.collection__head { padding: 12px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.collection__title { color: var(--ink); font-size: clamp(32px, 5vw, 48px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.collection__blurb { color: var(--ink-2); margin-top: 10px; max-width: 60ch; }
.collection__count { color: var(--ink-3); font-size: 13px; margin-top: 14px; }

/* ── Product page ───────────────────────────────────────────────────────── */
.product { display: grid; gap: 28px; }
@media (min-width: 900px) { .product { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; } }
/* The whole photo is always shown (contain). On phones the box takes the
   photo's own shape; on desktop it is a square so the column lines up. */
.product__media { background: var(--surface); display: flex; align-items: center; justify-content: center; padding: 12px; }
.product__image { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
@media (min-width: 900px) {
  .product__media { aspect-ratio: 1 / 1; padding: 16px; }
  .product__image { height: 100%; max-height: none; }
}
.product__info { display: grid; gap: 18px; min-width: 0; }
@media (min-width: 900px) { .product__info { position: sticky; top: 104px; } }
.product__title { color: var(--ink); font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.product__price { color: var(--ink); font-size: 20px; margin-top: -6px; }
.product__text { color: var(--ink-2); }
.product__note { color: var(--ink-3); font-size: 13px; }

.option { border: 0; padding: 0; margin: 0; min-width: 0; }
.option__label { color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 0; margin-bottom: 10px; }
.option__value { color: var(--ink-2); font-weight: 400; text-transform: none; letter-spacing: 0; }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--swatch); box-shadow: inset 0 0 0 3px var(--surface); padding: 0; cursor: default; }
.swatch.is-selected { border-color: var(--ink); }
.size { min-width: 48px; height: 44px; padding: 0 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font: inherit; font-size: 14px; cursor: default; }

/* The loader inserts the Try it on button directly after .add, inside .buy. */
.buy { display: grid; gap: 12px; }
.add { width: 100%; height: 52px; font: inherit; font-size: 15px; font-weight: 600; letter-spacing: .04em; background: #d9d4cb; color: #6f6a62; border: 0; border-radius: 2px; cursor: not-allowed; }

.accordion { border-top: 1px solid var(--line); margin-top: 6px; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { color: var(--ink); cursor: pointer; list-style: none; padding: 16px 0; font-size: 15px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--ink-2); font-weight: 400; font-size: 20px; line-height: 1; }
.accordion details[open] summary::after { content: "−"; }
.accordion__body { color: var(--ink-2); font-size: 15px; padding: 0 0 18px; display: grid; gap: 10px; }
.accordion__body p { color: var(--ink-2); }
.accordion__body ul { color: var(--ink-2); margin: 0; padding-left: 18px; }
.accordion__body li { color: var(--ink-2); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: #e9e6e0; padding: 48px var(--gutter) 28px; }
.footer__inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 32px; }
@media (min-width: 760px) { .footer__inner { grid-template-columns: 2fr 1fr; } }
.footer__wordmark { color: #ffffff; font-weight: 700; letter-spacing: .32em; font-size: 18px; margin-bottom: 12px; }
.footer__copy { color: #bdb8b0; font-size: 14px; max-width: 46ch; }
.footer__links { display: grid; gap: 8px; align-content: start; }
.footer__heading { color: #ffffff; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.footer__links a { color: #bdb8b0; text-decoration: none; font-size: 14px; }
.footer__links a:hover { color: #ffffff; text-decoration: underline; }
.footer__legal { max-width: var(--max); margin: 40px auto 0; padding-top: 20px; border-top: 1px solid #34322f; color: #9d978e; font-size: 13px; }
.footer__legal a { color: #ffffff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
