/* ============================================================
   Dr. Mark Teunis, OD — concept redesign
   Editorial "heritage optical" system: warm paper, ink,
   tortoise-amber accent, Fraunces display + Archivo text.
   ============================================================ */

:root {
  --paper: #f6f2ea;
  --paper-deep: #efe9dd;
  --ink: #17140e;
  --ink-soft: #423d31;
  --muted: #6f6757;
  --hairline: #d8d0bf;
  --amber: #a15a20;
  --amber-deep: #7c4317;
  --dark: #14110b;
  --dark-soft: #211c13;
  --dark-text: #ece5d6;
  --dark-muted: #a89e88;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --w-max: 1220px;
  --gut: clamp(20px, 4vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--w-max);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

/* ---------- small-caps labels ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.kicker--light { color: var(--dark-muted); }

/* ---------- masthead ---------- */
.topline {
  border-bottom: 1px solid var(--hairline);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.topline .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.topline b { color: var(--amber-deep); font-weight: 600; }

.masthead {
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 242, 234, 0.94);
  backdrop-filter: blur(8px);
}
.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1.05;
}
.wordmark span {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}
.nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 30px);
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
  padding-top: clamp(44px, 7vw, 96px);
  padding-bottom: clamp(40px, 6vw, 84px);
}
.hero-copy {
  grid-column: 1 / span 7;
}
.hero-figure {
  grid-column: 8 / -1;
  align-self: end;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 100;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 18px 0 26px;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 430;
  color: var(--amber-deep);
}
.hero .lede {
  font-size: clamp(17px, 1.5vw, 19.5px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 54ch;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 28px;
  border: 1px solid var(--ink);
  transition: background-color .18s ease, color .18s ease;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:hover { background: none; color: var(--ink); }

figure.photo { position: relative; }
figure.photo img {
  width: 100%;
  height: auto;
  filter: saturate(0.82) contrast(1.03);
}
figure.photo figcaption {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  margin-top: 12px;
}
.rule-no {
  font-family: var(--serif);
  font-style: italic;
  color: var(--amber-deep);
}

/* ---------- generic section ---------- */
.section {
  border-top: 1px solid var(--hairline);
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.section-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
  margin-bottom: clamp(28px, 4vw, 52px);
}
.section-head h2 {
  grid-column: 1 / span 7;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section-head .aside {
  grid-column: 8 / -1;
  align-self: end;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- split (about / editorial) ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
}
.split .prose {
  grid-column: 1 / span 6;
}
.split .prose p + p { margin-top: 1.1em; }
.split .prose .drop {
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 24px);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 430;
}
.split .prose .body { color: var(--ink-soft); }
.fact-stack {
  grid-column: 8 / -1;
  border-top: 2px solid var(--ink);
}
.fact {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
}
.fact .no {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 430;
  font-style: italic;
  color: var(--amber-deep);
  line-height: 1.1;
}
.fact h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.fact p { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ---------- full-bleed frame wall ---------- */
.band {
  background: var(--dark);
  color: var(--dark-text);
}
.band .section-head h2 { color: var(--dark-text); }
.band .figure-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
  align-items: end;
}
.band .band-photo {
  grid-column: 1 / span 8;
}
.band .band-copy {
  grid-column: 9 / -1;
  padding-bottom: 12px;
}
.band .band-copy p {
  color: var(--dark-muted);
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 40ch;
}
.band figure.photo img { filter: saturate(0.9); }
.band figure.photo figcaption { color: var(--dark-muted); border-top-color: #3a3324; }

/* ---------- service index ---------- */
.svc-index {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--gut);
}
.svc-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 70px 5fr 4fr;
  gap: var(--gut);
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
  transition: background-color .15s ease;
}
.svc-row:last-child { border-bottom: 1px solid var(--hairline); }
.svc-row:hover { background: var(--paper-deep); }
.svc-row .no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--amber-deep);
}
.svc-row h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.01em;
  line-height: 1.12;
}
.svc-row p {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

/* ---------- reviews ---------- */
.quote {
  border-top: 1px solid var(--hairline);
  padding: clamp(30px, 4vw, 52px) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
}
.quote:last-of-type { border-bottom: 1px solid var(--hairline); }
.quote .qmark {
  grid-column: 1 / span 1;
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 60px);
  line-height: 0.7;
  color: var(--amber);
}
.quote blockquote {
  grid-column: 2 / span 8;
  font-family: var(--serif);
  font-weight: 430;
  font-size: clamp(21px, 2.4vw, 30px);
  line-height: 1.38;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.quote .attrib {
  grid-column: 10 / -1;
  align-self: end;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}
.quote .attrib b {
  display: block;
  color: var(--ink);
  font-weight: 700;
}
.stars { color: var(--amber); letter-spacing: 3px; font-size: 12px; }

.review-cta {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
}
.contact-info { grid-column: 1 / span 5; }
.contact-form-col { grid-column: 6 / -1; }

.hours {
  border-top: 2px solid var(--ink);
  margin-top: 26px;
}
.hours .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15.5px;
}
.hours .row span:first-child { font-weight: 600; letter-spacing: 0.04em; }
.hours .row .closed { color: var(--amber-deep); font-weight: 600; }

.addr {
  margin-top: 34px;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.45;
  font-weight: 430;
}
.addr small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.tel {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  color: var(--ink);
}
.tel small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.masknote {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 34ch;
}

form.concept {
  background: #fffdf8;
  border: 1px solid var(--hairline);
  padding: clamp(24px, 3vw, 40px);
}
form.concept .field { margin-bottom: 20px; }
form.concept label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
form.concept input,
form.concept textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
}
form.concept input:focus,
form.concept textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}
.form-halt {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
}
.form-halt a { color: var(--amber-deep); }

/* ---------- page banner (interior pages) ---------- */
.pagehead {
  padding-top: clamp(44px, 6vw, 84px);
  padding-bottom: clamp(36px, 5vw, 64px);
}
.pagehead .crumb {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.pagehead h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 16ch;
  text-wrap: balance;
}

/* ---------- footer ---------- */
footer {
  background: var(--dark);
  color: var(--dark-text);
  margin-top: clamp(48px, 7vw, 96px);
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gut);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: 28px;
}
.foot-brand { grid-column: 1 / span 5; }
.foot-brand .fm {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 480;
  line-height: 1.15;
}
.foot-brand p {
  color: var(--dark-muted);
  font-size: 15px;
  margin-top: 14px;
  max-width: 36ch;
  line-height: 1.65;
}
.foot-col { grid-column: span 2; }
.foot-col.wide { grid-column: span 3; }
.foot-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dark-muted);
  margin-bottom: 14px;
}
.foot-col ul { list-style: none; }
.foot-col li {
  font-size: 14.5px;
  padding: 4px 0;
  color: var(--dark-text);
}
.foot-col li .dim { color: var(--dark-muted); }
.foot-col a { text-decoration: none; color: var(--dark-text); }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-base {
  border-top: 1px solid #35301f;
  padding-top: 20px;
  padding-bottom: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--dark-muted);
  letter-spacing: 0.06em;
}
.foot-base a { color: var(--dark-text); text-decoration: none; border-bottom: 1px solid var(--amber); padding-bottom: 1px; }
.foot-base a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-copy { grid-column: 1 / -1; }
  .hero-figure { grid-column: 2 / -1; }
  .split .prose { grid-column: 1 / -1; }
  .fact-stack { grid-column: 1 / -1; margin-top: 12px; }
  .band .band-photo { grid-column: 1 / -1; }
  .band .band-copy { grid-column: 1 / -1; }
  .contact-info { grid-column: 1 / -1; }
  .contact-form-col { grid-column: 1 / -1; }
  .quote blockquote { grid-column: 2 / -1; }
  .quote .attrib { grid-column: 2 / -1; margin-top: 14px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col { grid-column: span 4; }
  .foot-col.wide { grid-column: span 4; }
  .svc-row { grid-template-columns: 48px 1fr; }
  .svc-row p { grid-column: 2; }
}
@media (max-width: 640px) {
  .topline .wrap .hide-s { display: none; }
  .masthead .wrap { flex-direction: column; gap: 12px; align-items: flex-start; }
  .hero-figure { grid-column: 1 / -1; }
  .svc-row h3 { font-size: 22px; }
  .foot-col, .foot-col.wide { grid-column: 1 / -1; }
}
