/* Reset, chrome, and the components shared by every page. */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--voice);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

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

::selection { background: var(--blush); color: var(--ink); }

/* ---- shared type roles -------------------------------------------- */

.label {
  font-family: var(--util);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.4;
}

.display {
  font-size: var(--t-display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.title {
  font-size: var(--t-title);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lead {
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.45;
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: var(--s-3); }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.num {
  font-family: var(--util);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* A block opens with a 1px blush rule. This is the only separator
   on the site — no borders, no boxes, no shadows. */
.rule {
  border: 0;
  border-top: var(--hair) solid var(--blush);
  margin: 0;
}

/* ---- the call button — the only rounded object anywhere ----------- */

.call {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 52px;
  padding: 0 var(--s-4);
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--util);
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;          /* never let the number wrap into a blob */
  cursor: pointer;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.call:hover { background: var(--deep); }
.call:active { transform: scale(0.985); }
.call--light { background: var(--paper); color: var(--ink); }
.call--light:hover { background: #fff; }

.call-note {
  font-family: var(--util);
  font-size: var(--t-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* A phone number written inline in running text. */
.tel {
  font-family: var(--util);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: var(--hair) solid var(--blush);
  padding-bottom: 1px;
}
.tel:hover { border-bottom-color: var(--ink); }

/* ---- header -------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: var(--hair) solid transparent;
  transition: border-color var(--fast) var(--ease);
}
.masthead[data-stuck="true"] { border-bottom-color: color-mix(in srgb, var(--ink) 12%, transparent); }

.masthead__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 72px;
}

.wordmark {
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark em { font-style: italic; color: var(--ink-soft); }

.nav { display: none; gap: var(--s-4); align-items: center; }
.nav a {
  font-family: var(--util);
  font-size: var(--t-label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: var(--s-1);
  transition: color var(--fast) var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.masthead .call { min-height: 44px; padding-inline: var(--s-3); gap: 0.4rem; }

/* On a phone the masthead has no room for the full number, so it carries
   the word and the hero carries the number. Both dial the same line. */
@media (max-width: 767px) {
  .wordmark { font-size: 1.125rem; }
  .masthead__in { min-height: 64px; gap: var(--s-2); }
  .masthead .call__num { display: none; }
}

@media (min-width: 1024px) {
  .nav { display: flex; }
}

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

.foot {
  background: var(--deep);
  color: var(--paper);
  padding-block: var(--s-7) var(--s-4);
  margin-top: var(--s-8);
}
.foot a { color: inherit; }
.foot .label { color: color-mix(in srgb, var(--paper) 62%, transparent); }

.foot__grid {
  display: grid;
  gap: var(--s-6);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.foot__block h3 { font-size: var(--t-body); font-weight: 400; margin-bottom: var(--s-2); }
.foot__block p, .foot__block li { color: color-mix(in srgb, var(--paper) 78%, transparent); }
.foot__block li { margin-bottom: 0.35rem; }
.foot__block li a { text-decoration: none; }
.foot__block li a:hover { text-decoration: underline; text-underline-offset: 3px; }

.hours {
  font-family: var(--util);
  font-size: var(--t-small);
  font-variant-numeric: tabular-nums;
  line-height: 1.9;
  color: color-mix(in srgb, var(--paper) 78%, transparent);
}
.hours b { font-weight: 500; color: var(--paper); }

.foot__bottom {
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  border-top: var(--hair) solid color-mix(in srgb, var(--paper) 18%, transparent);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  justify-content: space-between;
  font-family: var(--util);
  font-size: var(--t-label);
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
}

/* ---- reveal — the only entrance motion, 1 element at a time -------- */

.rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease);
}
.rise.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-2) var(--s-3);
  z-index: 100;
  font-family: var(--util);
  font-size: var(--t-small);
}
.skip:focus { left: var(--s-2); top: var(--s-2); }
