:root {
  color-scheme: light;
  --ink: #222421;
  --quiet: #5e6059;
  --paper: #f8f8f6;
  --line: #dcded8;
  --brand-navy: #051c40;
  --accent: #0567e7;
  --tile-min: 72px;
  --gap: 12px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: clamp(10px, 2vw, 28px); }
img { display: block; max-width: 100%; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }

.page-frame {
  display: flex;
  min-height: calc(100vh - 2 * clamp(10px, 2vw, 28px));
  min-height: calc(100svh - 2 * clamp(10px, 2vw, 28px));
  flex-direction: column;
}

.directory {
  width: min(100%, 1280px);
  margin-inline: auto;
  padding: clamp(38px, 15vh, 152px) clamp(24px, 4vw, 56px) 34px;
}

h2, p { margin: 0; }
h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }

.directory-sections {
  --section-gap: clamp(20px, 3.8vw, 62px);
  --website-row-height: 2.75rem;
  --website-row-gap: 16px;
  display: grid;
  grid-template-columns: minmax(145px, 1fr) minmax(0, 1.72fr);
  gap: calc(var(--section-gap) * 2);
}

.directory-sections section { min-width: 0; }
.personal { position: relative; }
.personal::after {
  position: absolute;
  inset: 12px calc(-1 * var(--section-gap)) 0 auto;
  width: 1px;
  background: var(--line);
  content: '';
}

.section-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 13px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.8vw, 2.7rem);
  font-style: italic;
  letter-spacing: -.06em;
  line-height: 1;
}

.business .section-heading h2 { color: var(--brand-navy); }

.portrait { width: 56px; height: 56px; overflow: hidden; border-radius: 50%; }
.portrait img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.8); transform-origin: 50% 5%; }
.brand-mark { display: grid; width: 154px; height: 56px; place-items: center; }
.brand-mark img { width: 100%; height: auto; max-height: 100%; object-fit: contain; }

.personal-links, .business-actions {
  display: grid;
  grid-auto-rows: minmax(var(--tile-min), 1fr);
  gap: var(--gap);
  list-style: none;
  padding: 0;
  margin: 0;
}

.business-links {
  display: grid;
  gap: var(--website-row-gap);
}

.business-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile {
  display: flex;
  height: 100%;
  min-height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 3px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.28;
  text-align: center;
  text-decoration: none;
}

.tile-icon {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  place-items: center;
}

.tile svg, .close-dialog svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-contact .tile-icon, .tile-booking .tile-icon { color: var(--accent); }

@media (hover: hover) {
  .tile:hover, .website-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
}

.website-link {
  display: inline-flex;
  min-height: var(--website-row-height);
  justify-self: center;
  align-items: center;
  padding: 4px 12px;
  color: var(--brand-navy);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

footer {
  margin-top: auto;
  padding: 12px;
  color: var(--quiet);
  font-size: .875rem;
  letter-spacing: .035em;
  text-align: center;
}

.contact-dialog {
  position: fixed;
  width: min(420px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 42px 24px 25px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  color: var(--ink);
  box-shadow: 0 20px 75px #17171333;
  text-align: center;
}

.contact-dialog::backdrop { background: #23242180; }
body:has(.contact-dialog[open]) { overflow: hidden; }
.contact-dialog h2 { font-size: clamp(1.9rem, 5vw, 2.45rem); letter-spacing: -.045em; }
.contact-dialog p { margin: 10px auto 0; max-width: 29ch; color: var(--quiet); line-height: 1.5; }
.contact-qr { width: min(224px, 100%); height: auto; margin: 14px auto 8px; }
.contact-dialog[data-mobile] .contact-qr { width: min(276px, 100%); }
.contact-actions { display: flex; flex-direction: column; align-items: center; }
.contact-dialog[data-mobile] .contact-actions { margin-top: 10px; gap: 4px; }
.contact-dialog:not([data-mobile]) .vcard-download { order: 1; }
.contact-code { width: 100%; }
.contact-dialog:not([data-mobile]) :is(.contact-code-toggle, .mobile-qr-instructions),
.contact-dialog[data-mobile] .desktop-qr-instructions,
.contact-code[open] .show-code,
.contact-code:not([open]) .hide-code { display: none; }
.close-dialog {
  position: absolute;
  inset: 9px 9px auto auto;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.vcard-download, .contact-code-toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--brand-navy);
  font-weight: 600;
  text-underline-offset: 3px;
}

.contact-code-toggle { list-style: none; cursor: pointer; text-decoration: underline; }
.contact-code-toggle::-webkit-details-marker { display: none; }

@media (orientation: landscape) and (max-height: 430px) {
  .contact-dialog[data-mobile] { padding: 28px 20px 12px; }
  .contact-dialog[data-mobile] .contact-actions { margin-top: 4px; gap: 0; }
  .contact-dialog[data-mobile] p { max-width: none; margin-top: 2px; font-size: .875rem; }
  .contact-dialog[data-mobile] .contact-qr {
    width: min(100%, clamp(132px, calc(100svh - 234px), 188px));
    margin-block: 4px 0;
  }
}

@media (max-width: 660px) {
  :root { --tile-min: 66px; --gap: 14px; }
  .directory { width: min(100%, 450px); padding: 20px 12px 14px; }
  .directory-sections { --website-row-gap: 14px; grid-template-columns: minmax(0, 1fr); gap: 21px; }
  .personal { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
  .personal::after { display: none; }
  .section-heading { gap: 5px; margin-bottom: 10px; }
  .portrait { width: 52px; height: 52px; }
  .brand-mark { width: 140px; height: 44px; }
  .personal-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 661px) {
  .personal-links { padding-block-start: calc(var(--website-row-height) + var(--website-row-gap)); }
  .tile { justify-content: flex-start; }
}

@media (min-width: 1024px) {
  :root { --tile-min: 88px; --gap: 20px; }
  .section-heading { gap: 10px; margin-bottom: 20px; }
  .section-heading h2 { font-size: clamp(2.8rem, 3.7vw, 3.4rem); }
  .portrait { width: 68px; height: 68px; }
  .brand-mark { width: 185px; height: 68px; }
  .personal-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .business-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile { padding-block: 8px; font-size: 1rem; }
  .tile-icon, .tile svg { width: 25px; height: 25px; }
  .tile-icon { flex-basis: 25px; }
  .website-link { font-size: 1.0625rem; }
}
