@font-face {
  font-family: "Nunito Black";
  src: url("assets/nunito-black.ttf") format("truetype");
  font-weight: 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #101010;
  --blue: #00a9e0;
  font-family: Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
.page { max-width: 1256px; margin: 0 auto; padding: 40px 48px 56px; }
.masthead {
  border-top: 12px solid var(--ink);
  display: grid;
  grid-template-columns: minmax(0, 524fr) minmax(0, 580fr);
  gap: 56px;
  align-items: center;
  padding: 38px 0 48px;
}
.logo { display: block; width: 100%; max-width: 379.5px; height: auto; min-width: 0; }
.intro { padding: 0; margin: 0; min-width: 0; width: 100%; }
h1 {
  margin: 0 0 30px;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -.045em;
  line-height: .99;
  font-weight: 700;
}
.intro h1 { margin: 0; min-width: 0; }
.tagline-artwork { display: block; width: 100%; max-width: 440px; height: auto; }
.gift-link {
  position: relative;
  isolation: isolate;
  display: flex;
  width: max-content;
  min-width: 113.844px;
  /* Align to the visible letters and keep a 14px gap below their baseline. */
  margin-left: min(5.1667%, 22.733px);
  margin-top: calc(14px - min(8.8333%, 38.867px));
  min-height: 40.8px;
  align-items: center;
  justify-content: center;
  /* Offset the label toward the optical center of the arrow silhouette. */
  padding: 6.8px 13.2px 6.8px 7.2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: .85rem;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.025em;
  text-decoration: none;
}
.gift-link::before { content: ""; position: absolute; inset: -4px; }
.gift-link::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #f58220; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); pointer-events: none; }
.gift-link span { transform: translateY(1.67px); }
.gift-link:hover::after { background: #ed7514; }
.locations { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.location { border-top: 10px solid var(--ink); padding-top: 16px; }
h2 {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  letter-spacing: -.04em;
  line-height: 1.02;
  font-weight: 700;
  margin: 0 0 26px;
}
address { font-style: normal; font-size: 1.375rem; line-height: 1.3; }
.hours { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 26px 0 14px; font-size: 1.25rem; line-height: 1.3; }
.hours span:last-child { font-weight: 700; }
.directions {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.directions:hover { text-decoration-thickness: 4px; }
a:focus-visible, button:focus-visible, .photographs:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 900px) {
  .page { padding: 24px 24px 40px; }
  .masthead { gap: 24px; padding: 26px 0 32px; border-top-width: 9px; }
  h1 { font-size: clamp(1.85rem, 5.7vw, 2.7rem); letter-spacing: -.045em; margin-bottom: 20px; line-height: 1.05; }
  .gift-link { white-space: nowrap; }
  .locations { grid-template-columns: 1fr; gap: 30px; }
  .location { border-top-width: 8px; padding-top: 13px; }
  h2 { font-size: clamp(2rem, 12vw, 3rem); margin-bottom: 18px; }
  address { font-size: 1.125rem; }
  .hours { font-size: 1.125rem; margin: 20px 0 8px; gap: 20px; }
  .directions { font-size: 1rem; }
}
@media (max-width: 359px) {
  .page { padding-right: 18px; padding-left: 18px; }
  .masthead { gap: 16px; }
}
@media (min-width: 601px) {
  .masthead { column-gap: clamp(24px, 4.4586vw, 56px); }
}
@media (max-width: 600px) {
  /* Preserve the phone proportions while preventing a second header row. */
  .masthead { grid-template-columns: minmax(0, 50.6%) minmax(0, 1fr); }
}

/* A two-stop graphic and lettered location markers echo the wayfinding grid. */
.stop-line { display: flex; justify-content: space-between; align-items: center; position: relative; margin: 0 0 28px; height: 22px; }
.stop-line::before { content: ""; position: absolute; left: 10px; right: 10px; top: 9px; height: 4px; background: var(--blue); }
.stop-line span { position: relative; display: block; width: 22px; height: 22px; border: 4px solid var(--blue); border-radius: 50%; background: #fff; }
.location h2 { display: flex; align-items: center; gap: 14px; }
.location-mark { display: inline-flex; flex: 0 0 48px; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--blue); border-radius: 50%; color: var(--ink); font-size: 1.625rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
@media (max-width: 900px) {
  .stop-line { margin-bottom: 24px; }
  .location h2 { gap: 10px; font-size: clamp(1.75rem, 10.5vw, 3rem); }
  .location-mark { flex-basis: 36px; width: 36px; height: 36px; font-size: 1.25rem; }
}

.carousel { --media-height: clamp(14rem, 36vw, 28rem); margin: 0 0 40px; }
.photographs { position: relative; display: flex; gap: 0; padding: 0; margin: 0; overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; scrollbar-width: none; }
.photographs::-webkit-scrollbar { display: none; }
.photo { flex: 0 0 calc(var(--media-height) * var(--media-ratio, 1.7777777778)); width: calc(var(--media-height) * var(--media-ratio, 1.7777777778)); margin: 0; padding: 0; border: 0; min-width: 0; scroll-snap-align: start; scroll-snap-stop: normal; }
.photo-frame { height: var(--media-height); width: 100%; position: relative; overflow: hidden; background: #f4f4f4; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-complete img { object-fit: contain; }
.photo-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--ink); }
.photo-frame video:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.photo-cups img { object-position: 50% 80%; }
.photo-counter img { object-position: 50% 75%; }
figcaption { margin-top: 8px; font-size: .8125rem; line-height: 1.35; color: #555; }
.carousel-status { display: flex; justify-content: flex-end; margin-top: 8px; }
.carousel-status[hidden] { display: none; }
.photo-count { min-width: 42px; margin: 0; text-align: center; font-size: .875rem; font-variant-numeric: tabular-nums; color: #555; }
@media (max-width: 600px) {
  .carousel { margin-bottom: 28px; }
}
