/* ==========================================================================
   Alder Street Dental — concept build
   Structure: a clinical chart. Every section is a narrow margin rail
   (number + label, sticky while you read) against a wide column of content,
   divided by a single vertical hairline that runs the height of the page.
   Palette: porcelain and eucalyptus — deliberately not the medical blue
   that every dental site in the country already uses.
   Type: Fraunces for the voice, Atkinson Hyperlegible for the reading —
   the latter was drawn for low vision, which a health practice should care
   about more than a fashionable grotesque.
   ========================================================================== */

:root {
  --porcelain: #f7f5f1;
  --panel:     #eceae3;
  --rule:      #ddd9d0;

  --ink:       #1e2321;   /* 14.6:1 */
  --ink-soft:  #5b665f;   /*  5.5:1 */
  --ink-faint: #5d6760;   /*  5.4:1 porcelain, 4.9:1 on the darker panel */
  --euc:       #46685a;   /*  5.7:1 */
  --euc-deep:  #33513f;

  --voice: 'Fraunces', Georgia, serif;
  --read:  'Atkinson Hyperlegible', system-ui, sans-serif;

  --wrap: 1180px;
  --rail: 172px;
  --bay:  clamp(64px, 8.5vw, 128px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--read);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--voice); font-weight: 400; letter-spacing: -0.012em; line-height: 1.14; }
p, dl, dd, ol { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 4vw, 44px); }

.skip { position: absolute; left: -9999px; background: var(--euc); color: #fff; padding: 12px 20px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------- concept */

.concept {
  background: var(--ink); color: #b3bcb6;
  font-size: 12px; letter-spacing: 0.04em;
  padding: 10px 0; text-align: center;
}
.concept a { color: #a9c6b6; }

/* --------------------------------------------------------------- top */

.top { position: sticky; top: 0; z-index: 80; background: rgba(247,245,241,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 78px; }

.mark { display: flex; align-items: baseline; gap: 8px; min-height: 44px; align-content: center; flex-wrap: wrap; text-decoration: none; }
.mark-name { font-family: var(--voice); font-size: 21px; color: var(--ink); letter-spacing: -0.01em; }
.mark-kind {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--euc);
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14.5px; color: var(--ink-soft); text-decoration: none;
  transition: color .18s ease;
}
.nav a:hover { color: var(--euc); }
.nav-tel { color: var(--ink) !important; font-weight: 700; }

.menu {
  display: none; width: 44px; height: 44px;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.menu span { width: 22px; height: 1px; background: var(--ink); display: block; }

.mnav { display: none; border-top: 1px solid var(--rule); padding-bottom: 12px; }
.mnav.open { display: block; }
.mnav a {
  display: block; padding: 15px clamp(20px, 4vw, 44px);
  font-size: 16px; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

/* --------------------------------------------- the chart: rail + column */

.bay { padding: var(--bay) 0; }
.bay-panel { background: var(--panel); }
.bay-open { padding-top: clamp(52px, 7vw, 96px); }

.rig {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.rail {
  position: sticky; top: 108px;
  display: grid; gap: 8px;
  padding-right: clamp(20px, 3vw, 34px);
  border-right: 1px solid var(--rule);
  min-height: 76px;
}
.rail-n { font-family: var(--voice); font-size: 27px; color: var(--euc); line-height: 1; }
.rail-t {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------ opening */

h1 { font-size: clamp(30px, 4.4vw, 58px); font-weight: 300; }
.bay h2 { font-size: clamp(24px, 3.1vw, 40px); font-weight: 300; }

.lede { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--ink-soft); margin-top: clamp(20px, 2.4vw, 30px); max-width: 56ch; }
.lede a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--euc); word-break: break-word;
}

.acts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: clamp(28px, 3.2vw, 40px); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: var(--euc); color: #fff;
  font-family: var(--read); font-size: 15px; font-weight: 700;
  text-decoration: none; border-radius: 0;
  transition: background .18s ease;
}
.btn:hover { background: var(--euc-deep); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.lnk { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--rule); }
.lnk:hover { color: var(--euc); border-color: var(--euc); }

/* --------------------------------------------------------- wide plate */

.wide { margin: 0; }
.wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; object-position: center 58%; }

/* ------------------------------------------------- minute by minute */

.clock { list-style: none; padding: 0; margin-top: clamp(34px, 4vw, 52px); }
.clock li {
  position: relative;
  display: grid; grid-template-columns: 74px minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  padding: 0 0 clamp(26px, 3vw, 36px);
}
/* the spine that runs between the marks */
.clock li::before {
  content: ""; position: absolute;
  left: 5px; top: 13px; bottom: 0; width: 1px;
  background: var(--rule);
}
.clock li.last::before { display: none; }

.t {
  position: relative;
  padding-left: 20px;
  font-size: 13px; font-weight: 700; color: var(--euc);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.t::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--porcelain); border: 1px solid var(--euc);
}
.clock h3 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 400; }
.clock p { margin-top: 8px; color: var(--ink-soft); font-size: 16px; max-width: 54ch; }

/* -------------------------------------------------------------- tariff */

.tariff { margin-top: clamp(34px, 4vw, 52px); border-top: 1px solid var(--rule); }
.tariff > div {
  display: flex; align-items: baseline; gap: 20px;
  padding: clamp(15px, 1.8vw, 20px) 0;
  border-bottom: 1px solid var(--rule);
}
.tariff dt { flex: 1; font-size: clamp(16px, 1.7vw, 19px); }
.tariff dd {
  flex: none;
  font-family: var(--voice); font-size: clamp(19px, 2vw, 24px);
  font-variant-numeric: tabular-nums; color: var(--ink);
}

.fine { margin-top: clamp(24px, 2.8vw, 32px); font-size: 15px; color: var(--ink-soft); max-width: 62ch; }
.fine em { color: var(--ink); font-style: normal; font-weight: 700; }

/* ----------------------------------------------------------------- who */

.who-grid { display: grid; grid-template-columns: 1fr .82fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.who-shot { margin: 0; }
.who-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.who-shot figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-faint); }

/* ----------------------------------------------------------------- end */

.bay-end { border-top: 1px solid var(--rule); }
.end-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(30px, 4.5vw, 62px); align-items: start; }

.tel { margin-top: clamp(18px, 2.2vw, 26px); }
.tel a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--voice); font-size: clamp(28px, 3.4vw, 44px);
  color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule);
  transition: color .18s ease, border-color .18s ease;
}
.tel a:hover { color: var(--euc); border-color: var(--euc); }

.rota { border-top: 1px solid var(--rule); }
.rota > div {
  display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 18px;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
}
.rota dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); padding-top: 4px; }
.rota dd { font-size: 16px; line-height: 1.6; }

/* -------------------------------------------------------------- footer */

.foot { background: var(--ink); color: #aab4ae; padding: clamp(40px, 5vw, 62px) 0; }
.foot-mark { font-family: var(--voice); font-size: clamp(21px, 2.2vw, 26px); color: var(--porcelain); }
.foot-fine { margin-top: 16px; font-size: 13px; line-height: 1.8; max-width: 74ch; }
.foot-fine a { color: #a9c6b6; }

/* ---------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: flex; }

  .rig { grid-template-columns: 1fr; gap: 26px; }
  .rail {
    position: static;
    grid-auto-flow: column; justify-content: start; align-items: baseline; gap: 14px;
    min-height: 0; padding: 0 0 16px;
    border-right: none; border-bottom: 1px solid var(--rule);
  }
  .rail-n { font-size: 21px; }

  .who-grid, .end-grid { grid-template-columns: 1fr; }
  .who-shot { order: -1; }
  .wide img { aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  .clock li { grid-template-columns: 1fr; gap: 6px; }
  .clock li::before { display: none; }
  .t { padding-left: 20px; }
  .tariff > div { flex-direction: column; gap: 4px; }
  .rota > div { grid-template-columns: 1fr; gap: 4px; }
  .acts .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
