@font-face {
  font-family: 'GFS Bodoni';
  src: url('assets/gfs-bodoni.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
* { box-sizing: border-box; }
html { background: #f9f9f9; color: #000; }
body { margin: 0; font-family: 'GFS Bodoni', serif; font-weight: 400; }
h1, h2, p, figure { margin: 0; }
.brand { position: absolute; inset: 50px 0 auto; display: flex; justify-content: center; }
.brand h1 { line-height: 0; }
.brand img { display: block; width: 243.4119px; height: 20px; }
/* Reference: centered 548px photo at 1920px; side tracks reflow below 1200px. */
main { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) min(28.5416667vw, 548px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3.125vw, 60px); padding: 119px 50px 120px; }
/* Optical text bounds align to y482 at the desktop reference size. */
.intro, .contact { font-size: 20px; line-height: 40px; letter-spacing: .4px; margin-top: 27px; text-transform: uppercase; }
.intro { white-space: nowrap; }
.visual { position: relative; width: 100%; }
.photograph { display: block; width: 100%; height: auto; aspect-ratio: 548 / 685; object-fit: cover; }
/* The supplied monogram straddles the photograph edge at its visual midpoint. */
.monogram { position: absolute; width: 120px; height: 120px; top: calc(50% - 59.5px); right: -60px; }
.contact { justify-self: end; }
.contact h2 { font: inherit; }
address { font-style: normal; }
a { color: inherit; text-decoration: none; }
address a { display: block; width: fit-content; }
@media (min-width: 1201px) { .intro { margin-top: 67px; } }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
@media (max-width: 1200px) {
  .brand { position: static; padding-top: 25px; }
  .brand img { width: 182.5589px; height: 15px; }
  /* Reference: centered 548px photo at 1920px; side tracks reflow below 1200px. */
main { min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 36px 20px 10px; max-width: 560px; margin: auto; }
  .intro { text-align: center; font-size: 18px; line-height: 34px; letter-spacing: .36px; margin-top: 0; padding-left: 0; white-space: normal; }
  .visual { width: calc(100% - 40px); margin-top: 19px; }
  .photograph { aspect-ratio: 313 / 390; }
  .monogram { width: 80px; height: 80px; top: calc(50% - 40px); right: -40px; }
  .contact { margin-top: 63px; text-align: center; font-size: 18px; line-height: 34px; letter-spacing: .36px; }
  address a { margin-inline: auto; }
  .contact-break { display: none; }
}
@media (max-width: 370px) {
  .intro { font-size: 17px; letter-spacing: .5px; }
  .contact { font-size: clamp(14px, 4.58vw, 18px); letter-spacing: .2px; }
}

/* Accessibility enhancements leave the approved resting layout unchanged. */
.brand-name { display: none; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  width: auto;
  height: auto;
  clip-path: none;
  padding: 12px 16px;
  color: #000;
  background: #f9f9f9;
  outline: 2px solid currentColor;
  z-index: 10;
}
@media (forced-colors: active) {
  .brand img { display: none; }
  .brand-name { display: block; font: 400 24px/1 'GFS Bodoni', serif; color: CanvasText; }
}
body.error-page { min-height: 100svh; display: grid; place-items: center; padding: 24px; }
.error-page main { display: block; min-height: 0; max-width: 38rem; padding: 0; margin: 0; }
.error-page h1 { font-size: 32px; line-height: 1.2; margin-bottom: 24px; }
.error-page p { font-size: 20px; line-height: 1.6; margin-bottom: 20px; }
.error-page a { text-decoration: underline; text-underline-offset: 4px; }

.clock-line { min-height: 1lh; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The animation retains the original square canvas and monogram placement. */
button.monogram { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.monogram img { display: block; width: 100%; height: 100%; object-fit: contain; }
img.monogram { object-fit: contain; }
.monogram:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }



/* Controls follow the reference typography without adding visual chrome. */
.mood-controls { white-space: nowrap; }
.mood-controls button, .photo-control { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.mood-controls button { font: inherit; letter-spacing: inherit; text-transform: inherit; }
.mood-controls button:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.mood-controls button:focus-visible, .photo-control:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
.photo-control { position: relative; display: block; width: 100%; }
.photo-outgoing { position: absolute; inset: 0; height: 100%; pointer-events: none; }
.photo-control:disabled { cursor: progress; }

/* Hide the initial composition before paint; JS reveals it after resources settle.
   Reduced motion and no-JS retain immediate, fully visible content. */
@media (prefers-reduced-motion: no-preference) {
  .page-enter-pending :where(.brand h1, .intro > p:first-child, .clock-line,
    .mood-controls, .visual, .contact h2, .contact address a) { opacity: 0; }
}
