/* Lumen Optical: the first screen is composed for a 1440 x 852 viewport (the
   coverflow preview), with the New in strip peeking in at the bottom; the rest
   of the page and the phone layout follow it. */

:root {
  --paper: #f4f2ee;
  --paper-2: #ebe8e2;
  --ink: #1c1e20;
  --ink-2: #46494c;
  --mute: #7b7d7e;
  --rule: #d9d5ce;
  --rule-strong: #bfbab1;
  --accent: #6b2b2d; /* oxblood */

  --ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --display: "Bodoni Moda", "Didot", Georgia, serif;

  --gutter: 48px;
  --announce-h: 32px;
  --header-h: 68px;
  --peek: 176px; /* how much of the New in strip shows under the hero */
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3, dl, dd, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

/* ---------- Announcement bar ---------- */
.announce {
  height: var(--announce-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  background: var(--ink);
  color: #d9d5cd;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}
.announce p:nth-child(2) { color: #f4f2ee; }
.announce p:nth-child(2) a {
  border-bottom: 1px solid rgba(244, 242, 238, 0.35);
  padding-bottom: 1px;
}
.announce p:last-child { text-align: right; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.logo {
  justify-self: start;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.logo span {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-2);
  transform: translateY(-3px);
}

.primary-nav ul {
  display: flex;
  gap: 32px;
}
.primary-nav a {
  font-size: 13.5px;
  font-weight: 450;
  letter-spacing: 0.005em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.primary-nav a[aria-current] { border-bottom-color: var(--ink); }
.primary-nav a:hover { border-bottom-color: var(--rule-strong); }

.utility {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 26px;
}
.utility li { display: flex; }
.util-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}
.util-link svg { color: var(--ink); }
.bag-count {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #f6efe9;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
}
.bag-count.is-bump { animation: bump 0.45s cubic-bezier(0.2, 0.7, 0.1, 1); }
@keyframes bump { 40% { transform: scale(1.35); } }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  height: clamp(480px, calc(100svh - var(--studio-bar-h, 0px) - var(--announce-h) - var(--header-h) - var(--peek)), 860px);
  display: grid;
  grid-template-columns: 528px 1fr 1fr;
  grid-template-rows: 100%;
  border-bottom: 1px solid var(--rule);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  padding: 46px 56px 28px var(--gutter);
  border-right: 1px solid var(--rule);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow-num {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
}
.eyebrow-sep {
  width: 24px;
  height: 1px;
  background: var(--rule-strong);
}

h1 {
  margin-top: 26px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 78px;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
h1 em {
  font-style: italic;
  font-weight: 400;
}

.lede {
  margin-top: 24px;
  max-width: 392px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.cta-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.btn:hover { background: #000; }
.text-link {
  font-size: 13.5px;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
}
.text-link span { margin-left: 4px; }

.promises {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.promises dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.promises dd {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--mute);
}

.hero-shot {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}
.hero-shot + .hero-shot { border-left: 1px solid var(--rule); }
.hero-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 28px;
  row-gap: 2px;
  align-items: baseline;
  padding: 11px 14px 12px 16px;
  background: rgba(244, 242, 238, 0.94);
  color: var(--ink);
}
.tag-name {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.1;
}
.tag-price {
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.tag-meta {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: var(--mute);
}

/* ---------- New in strip (peeks below the fold) ---------- */
.new-in {
  padding: 26px var(--gutter) 64px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.section-head h2 em { font-style: italic; }

.filters {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--ink-2);
}
.filters a { padding-bottom: 3px; border-bottom: 1px solid transparent; }
.filters a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.filters .view-all {
  color: var(--ink);
  font-weight: 500;
  padding-left: 24px;
  border-left: 1px solid var(--rule);
  border-bottom: 0;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--paper-2);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.badge {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.product-info {
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 2px;
  padding-top: 14px;
}
.product-info h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 18px;
}
.material { grid-column: 1; font-size: 12.5px; color: var(--mute); }
.price { grid-row: 1; grid-column: 2; font-size: 13px; font-weight: 500; }
.swatches { display: flex; gap: 6px; margin-top: 8px; }
.swatches li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.booking {
  aspect-ratio: 3 / 2;
  padding: 18px 22px;
  background: var(--ink);
  color: #e6e2da;
}
.booking-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a9a49b;
}
.booking h3 {
  margin-top: 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
  color: var(--paper);
}
.booking-meta {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #b9b4ab;
}
.slots { display: flex; gap: 8px; margin-top: 16px; }
.slots a {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid rgba(244, 242, 238, 0.3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

/* sits on the photo, so the card keeps its height (the eye-test card's width follows it) */
.product-frame { position: relative; }
.product-add {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 8px 12px;
  background: rgba(244, 242, 238, 0.94);
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}
.product-add:hover { background: var(--ink); color: var(--paper); }
.filters a { cursor: pointer; }

/* ---------- Eye tests ---------- */
.eye-tests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  padding: 112px var(--gutter);
  background: var(--ink);
  color: #e6e2da;
}
.eye-tests .eyebrow { color: #b9b4ab; }
.eye-tests .eyebrow-num { color: #d9a7a2; }
.eye-tests .eyebrow-sep { background: rgba(244, 242, 238, 0.3); }
.eye-tests h2,
.lenses h2 {
  margin-top: 24px;
  font-family: var(--display);
  font-size: 54px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.eye-tests h2 { color: var(--paper); }
.eye-tests h2 em,
.lenses h2 em { font-style: italic; }
.eye-tests__lede { max-width: 470px; margin-top: 24px; color: #b9b4ab; font-size: 15.5px; line-height: 1.6; }
.eye-tests__steps { counter-reset: step; margin-top: 36px; border-top: 1px solid rgba(244, 242, 238, 0.16); }
.eye-tests__steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 160px 1fr;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid rgba(244, 242, 238, 0.16);
}
.eye-tests__steps li::before { content: "0" counter(step); font-family: var(--display); font-size: 15px; color: #d9a7a2; }
.eye-tests__steps b { font-weight: 500; color: var(--paper); }
.eye-tests__steps span { color: #b9b4ab; font-size: 13.5px; }
.eye-tests__price { margin-top: 28px; color: #b9b4ab; font-size: 14px; }
.eye-tests__price b { color: var(--paper); font-family: var(--display); font-size: 22px; font-weight: 400; }

.booker { align-self: center; padding: 40px; background: #26292c; box-shadow: inset 0 0 0 1px rgba(244, 242, 238, 0.1); }
.booker fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.booker fieldset + fieldset { margin-top: 32px; }
.booker legend {
  padding: 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9b4ab;
}
.booker__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 14px; }
.booker__row--times { grid-template-columns: repeat(4, 1fr); }
.booker label { position: relative; cursor: pointer; }
.booker input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.booker label > span {
  display: grid;
  place-items: center;
  height: 44px;
  box-shadow: inset 0 0 0 1px rgba(244, 242, 238, 0.24);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.booker__days label > span { height: 64px; align-content: center; gap: 2px; font-family: var(--display); font-size: 22px; }
.booker__days b { font-family: var(--ui); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #b9b4ab; }
.booker label:hover > span { box-shadow: inset 0 0 0 1px rgba(244, 242, 238, 0.6); }
.booker input:checked + span { background: var(--paper); color: var(--ink); box-shadow: none; }
.booker input:checked + span b { color: var(--accent); }
.booker input:focus-visible + span { outline: 2px solid #d9a7a2; outline-offset: 3px; }
.booker input:disabled + span { color: rgba(230, 226, 218, 0.28); text-decoration: line-through; box-shadow: inset 0 0 0 1px rgba(244, 242, 238, 0.08); cursor: not-allowed; }
.booker__summary { min-height: 1.5em; margin-top: 28px; color: var(--paper); font-size: 14px; }
.booker .btn { width: 100%; justify-content: center; margin-top: 18px; background: var(--paper); color: var(--ink); }
.booker .btn:hover { background: #fff; }
.booker .btn:disabled { background: rgba(244, 242, 238, 0.14); color: rgba(244, 242, 238, 0.45); cursor: not-allowed; }

/* ---------- Lenses ---------- */
.lenses { padding: 112px var(--gutter) 120px; }
.lenses__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.lenses__head h2 { margin-top: 0; }
.lenses__head p { max-width: 420px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.lens-table { width: 100%; margin-top: 48px; border-collapse: collapse; }
.lens-table thead th {
  padding: 0 0 12px;
  border-bottom: 1px solid var(--ink);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
  color: var(--ink-2);
}
.lens-table tbody th,
.lens-table td { padding: 22px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: baseline; }
.lens-table tbody th { width: 30%; font-family: var(--display); font-size: 24px; font-weight: 400; }
.lens-table td { color: var(--ink-2); font-size: 14.5px; }
.lens-table td:last-child,
.lens-table thead th:last-child { width: 14%; text-align: right; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.footer { padding: 72px var(--gutter) 40px; background: var(--ink); color: #d9d5cd; }
.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244, 242, 238, 0.14);
}
.footer .logo { color: var(--paper); }
.footer .logo span { color: #b9b4ab; }
.footer__brand p { max-width: 320px; margin-top: 18px; color: #a9a49b; font-size: 14px; line-height: 1.6; }
.footer__visit h2 { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #a9a49b; }
.footer__visit p { margin-top: 12px; font-size: 14px; line-height: 1.6; }
.footer__links { display: grid; gap: 12px; align-content: start; font-size: 14px; }
.footer__links a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 5px; }
.footer__fine { margin-top: 28px; color: #8f8a82; font-size: 12.5px; }

/* ---------- Narrower windows ---------- */
@media (max-width: 1280px) {
  :root { --gutter: 32px; }
  .announce p:first-child, .announce p:last-child { display: none; }
  .announce { grid-template-columns: 1fr; text-align: center; }
  .primary-nav ul { gap: 22px; }
  .primary-nav li:last-child, .utility .utility__search, .utility .utility__account { display: none; }
  .hero { grid-template-columns: 440px 1fr 1fr; }
  .hero-copy { padding-right: 40px; }
  h1 { font-size: 64px; }
  .eye-tests { gap: 56px; }
  .booker { padding: 28px; }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 900px) {
  :root { --gutter: 20px; }

  .announce { height: auto; padding: 9px var(--gutter); line-height: 1.5; }

  .site-header { height: 64px; grid-template-columns: 1fr auto auto; gap: 20px; }
  .utility { gap: 0; }
  .utility .utility__visit { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; }
  .menu-toggle__bars { display: grid; gap: 5px; width: 18px; }
  .menu-toggle__bars i { display: block; height: 1.5px; background: currentColor; transition: transform 0.3s; }
  .is-open .menu-toggle__bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
  .is-open .menu-toggle__bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 8px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -28px rgba(28, 30, 32, 0.4);
  }
  .is-open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav li, .primary-nav li:last-child { display: block; }
  .primary-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 17px; }
  .logo { font-size: 24px; }

  .hero { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .hero-copy { grid-column: 1 / -1; padding: 36px var(--gutter) 32px; border-right: 0; border-bottom: 1px solid var(--rule); }
  h1 { margin-top: 20px; font-size: 56px; }
  .lede { font-size: 15px; }
  .cta-row { flex-wrap: wrap; gap: 18px 26px; }
  .promises { margin-top: 32px; gap: 14px; }
  .hero-shot { aspect-ratio: 4 / 5; }
  .shop-tag { left: 10px; right: 10px; bottom: 10px; column-gap: 10px; padding: 9px 10px; }
  .tag-name { font-size: 16px; }
  .tag-meta { font-size: 10.5px; }

  .new-in { padding: 32px var(--gutter) 64px; }
  .section-head { flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .filters { width: 100%; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .filters::-webkit-scrollbar { display: none; }
  .products { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .booking { grid-column: 1 / -1; aspect-ratio: auto; padding: 22px; }
  .product-add { right: 8px; bottom: 8px; padding: 7px 10px; font-size: 11.5px; }

  .eye-tests { grid-template-columns: 1fr; gap: 40px; padding: 72px var(--gutter); }
  .eye-tests h2, .lenses h2 { font-size: 40px; }
  .eye-tests__steps li { grid-template-columns: 36px 1fr; row-gap: 4px; }
  .eye-tests__steps span { grid-column: 2; }
  .booker { padding: 22px; }
  .booker__row { gap: 6px; }
  .booker__days label > span { height: 58px; font-size: 19px; }

  .lenses { padding: 72px var(--gutter) 80px; }
  .lenses__head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .lens-table { margin-top: 32px; }
  .lens-table thead { display: none; }
  .lens-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .lens-table tbody th, .lens-table td { width: auto; padding: 0; border: 0; }
  .lens-table tbody th { font-size: 21px; }
  .lens-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .lens-table td:last-child { width: auto; grid-column: 2; grid-row: 1; align-self: baseline; }

  .footer { padding: 56px var(--gutter) 40px; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px 20px; padding-bottom: 40px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .menu-toggle__label { display: none; }
  h1 { font-size: 50px; }
  .promises { grid-template-columns: 1fr; gap: 12px; }
  .promises div { display: flex; justify-content: space-between; gap: 16px; }
  .promises dd { margin-top: 0; text-align: right; }
}
