:root {
  color-scheme: light;
  --ink: #212926;
  --muted: #4e5a54;
  --line: #cbd0c8;
  --accent: #d4df3a;
  --paper: #fafbf8;
  font: 100%/1.5 "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #176e94; outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -6rem; background: white; padding: .65rem; z-index: 1; }
.skip:focus { top: .5rem; }
.wrap { width: min(68rem, calc(100% - 2.5rem)); margin-inline: auto; }
header { background: white; border-bottom: 1px solid var(--line); }
nav, .actions { display: flex; align-items: center; flex-wrap: wrap; }
.brand { display: block; width: fit-content; max-width: 100%; }
.brand img { display: block; width: clamp(9rem, 18vw, 13rem); max-width: 100%; height: auto; }
nav { gap: .125rem 1.25rem; }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .94rem; font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.contact { padding-block: clamp(1rem, 2.5vw, 1.8rem); }
.contact-grid { display: grid; gap: .75rem 1.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; }
h1, h2, p, figure { margin: 0; }
h1, h2 { line-height: 1.1; letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
.subtitle { margin-top: .35rem; font-size: clamp(1rem, 2vw, 1.25rem); font-weight: 600; color: var(--muted); }
address { font-style: normal; }
.person { font-weight: 700; }
.person span { font-weight: 400; color: var(--muted); }
.details { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-block: .2rem .7rem; }
.details a { overflow-wrap: anywhere; }
.actions { gap: .45rem; }
.action { display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem; padding: .4rem 1.35rem; font-weight: 650; border: 1px solid #939d92; border-radius: .3rem; background: white; text-decoration: none; }
.action:first-child { background: var(--accent); border-color: var(--accent); }
.action:hover { background: var(--ink); border-color: var(--ink); color: white; }
.gallery, .form-section { padding-block: clamp(1.35rem, 3vw, 2.2rem); }
.gallery { max-width: 58rem; }
.gallery-heading, .slide-controls { display: flex; align-items: center; gap: .5rem; }
.gallery-heading { justify-content: space-between; margin-bottom: .7rem; }
.gallery [hidden] { display: none; }
.gallery button { color: inherit; cursor: pointer; background: white; border: 1px solid #939d92; border-radius: .25rem; }
.slide-controls button { width: 2.5rem; height: 2.5rem; font: 1.7rem/1 Arial, sans-serif; }
.slide-controls button:hover { background: var(--accent); }
.slide-count { min-width: 3.5rem; text-align: center; color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.slide figcaption { padding-block: .35rem; font-weight: 650; }
.slide-photos { display: grid; height: clamp(14rem, 51vh, 28rem); background: #e8ebe5; }
.slide-photos.pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; background: var(--paper); }
.photo { display: block; min-height: 0; position: relative; background: #e8ebe5; touch-action: pan-y pinch-zoom; }
.photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-label { position: absolute; bottom: .55rem; left: .55rem; font-size: .875rem; font-weight: 650; line-height: 1.3; background: var(--paper); color: var(--ink); padding: .2rem .55rem; }
.thumbnails { display: flex; gap: .375rem; overflow-x: auto; padding: .3rem; }
.thumbnails button { display: flex; flex: 0 0 4rem; height: 2.75rem; padding: 2px; overflow: hidden; gap: 1px; }
.thumbnails button[aria-current="true"] { background: var(--accent); outline: 2px solid var(--ink); outline-offset: -1px; }
.thumbnails button:focus-visible { outline: 3px solid #176e94; outline-offset: 1px; }
.thumbnails img { flex: 1; width: 0; height: 100%; object-fit: cover; }
.form-section h2 { margin-bottom: .65rem; }
footer { border-top: 1px solid var(--line); padding-block: 1rem; color: var(--muted); }
@media (max-width: 44rem) {
  .contact-grid { grid-template-columns: 1fr; gap: .9rem; }
  .wrap { width: min(100% - 2rem, 68rem); }
  nav { gap: .7rem; }
}
@media (max-width: 31rem) {
  .slide-photos { height: clamp(19rem, 54vh, 27rem); }
  .slide-photos.pair { grid-template-columns: 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .photo-label { bottom: .25rem; left: .25rem; }
}
