:root {
  color-scheme: light;
  --paper: #faf8f3;
  --ink: #26241f;
  --wine: #622b35;
  --gold: #a17b50;
  --line: #d9d3c7;
  --muted: #625e56;
  --serif: "Baskervville", Baskerville, "Baskerville Old Face", Georgia, serif;
  --sans: "DM Sans", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible { outline: 3px solid #8c683d; outline-offset: 4px; }
.page { width: min(88%, 90rem); min-height: 100vh; min-height: 100svh; margin: auto; display: flex; flex-direction: column; }
.masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.masthead { min-height: 6.5rem; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .85rem; }
.monogram { width: 3.25rem; height: auto; }
.wordmark { display: grid; color: var(--wine); justify-items: center; }
.wordmark span { font-family: var(--serif); font-size: 2.1rem; letter-spacing: .009em; line-height: 1; }
.wordmark small { margin-top: .3rem; text-transform: uppercase; font-size: .61rem; font-weight: 650; letter-spacing: .21em; }
.languages { display: flex; align-items: center; gap: .05rem; font-size: .85rem; color: var(--muted); }
.languages svg { margin-right: .55rem; }
.languages button { min-width: 2.25rem; min-height: 2.75rem; border: 0; background: transparent; }
.languages button[aria-pressed="true"] { color: var(--wine); font-weight: 750; }
.languages button:hover { text-decoration: underline; text-underline-offset: .25em; }
.languages span { color: #aca499; }
.hero { flex: 1; display: grid; grid-template-columns: .87fr 1.13fr; align-items: center; column-gap: clamp(2rem, 5vw, 6rem); padding: clamp(3rem, 6.6vh, 5.5rem) 0; }
.introduction { padding: 0 0 1rem; }
.status { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.65rem; color: var(--wine); font-size: .77rem; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; }
.status > :first-child { width: 2rem; height: 1px; background: var(--gold); }
h1 { margin: 0; font-family: var(--serif); font-size: clamp(5.5rem, 7.75vw, 8.6rem); line-height: .92; font-weight: 400; letter-spacing: -.055em; }
h1 span, h1 em { display: block; }
h1 em { font-family: "Baskervville", Baskerville, Georgia, serif; font-weight: 400; color: var(--wine); }
.description { max-width: 24rem; margin: 1.95rem 0 1.85rem; color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.13rem); line-height: 1.7; }
.gallery-launch { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; border: 1px solid var(--wine); background: var(--wine); color: #fffaf5; padding: .8rem 1.45rem; min-height: 3rem; font-weight: 550; font-size: .95rem; transition: background .18s; }
.gallery-launch:hover { background: #49222a; }
.photographs { isolation: isolate; width: 100%; max-width: 45rem; aspect-ratio: 1.15; justify-self: end; position: relative; }
.principal, .inset { position: absolute; }
.principal { inset: 0 2.2% 8% 15.5%; }
.principal::before { content: ""; position: absolute; z-index: -1; inset: -1.8% -2.5% 2% 2.5%; border: 1px solid #b4a07e; }
.principal img, .inset img { width: 100%; height: 100%; object-fit: cover; display: block; }
.principal img { object-position: 48% 45%; }
.inset { left: 0; bottom: 0; width: 44%; height: 36%; background: var(--paper); border: clamp(5px, .55vw, 9px) solid var(--paper); box-shadow: 0 3px 10px #2f1b0c1a; transform: rotate(-3deg); }
.inset img { object-position: center 63%; }
.photo-rule { position: absolute; right: 2.2%; bottom: 3%; width: 15%; height: 1px; background: var(--gold); }
.footer { min-height: 4.6rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.footer small { font-size: inherit; }
.footer > span { letter-spacing: .035em; }
dialog { border: 1px solid var(--line); width: min(94vw, 48rem); max-height: 94vh; max-height: 94dvh; padding: clamp(1rem, 2.5vw, 1.65rem); background: var(--paper); color: var(--ink); overscroll-behavior: contain; }
dialog::backdrop { background: rgb(30 23 20 / 78%); }
body:has(dialog[open]) { overflow: hidden; }
.gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.gallery-heading h2 { margin: 0; font: 400 clamp(1.65rem, 4vw, 2.2rem)/1.15 var(--serif); }
.close { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); }
.viewer { margin: 0; }
.viewer img { display: block; width: 100%; height: min(55vh, 34rem); height: min(55dvh, 34rem); object-fit: contain; background: #24211e; }
.viewer figcaption { color: var(--wine); margin: .75rem 0 .95rem; font: italic 1.25rem/1.3 Georgia, serif; }
.choices { display: flex; gap: .65rem; }
.choices button { width: 4.4rem; height: 3.1rem; padding: 2px; border: 1px solid transparent; background: transparent; }
.choices button[aria-pressed="true"] { border-color: var(--wine); }
.choices img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
  .page { width: 88%; }
  .masthead { min-height: 5.1rem; }
  .monogram { width: 2.75rem; }
  .wordmark span { font-size: 1.83rem; }
  .hero { grid-template-columns: 1fr; gap: 2.7rem; padding: 2.85rem 0 2rem; }
  .introduction { padding: 0; }
  .status { margin-bottom: 1.35rem; }
  h1 { font-size: clamp(4.55rem, 13vw, 6rem); }
  .description { margin: 1.4rem 0; }
  .photographs { max-width: 34rem; aspect-ratio: 1.22; justify-self: center; }
  .footer { min-height: 4rem; flex-wrap: wrap; padding: 1.1rem 0; gap: .4rem 1rem; }
}
@media (max-width: 390px) {
  .languages svg { display: none; }
  .footer { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
