/* Tokens from the "Edouard de Becker Remy" design system:
   deBR navy, parchment, gold hairlines, Playfair Display and Inter. */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/playfair-display-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/playfair-display-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); }

:root {
  --paper: #ffffff;
  --parchment: #f7f3ea;
  --line: #d6d9de;
  --ink: #121a26;
  --ink-muted: #56606e;
  --navy: #002551;
  --gold: #b8913a;
  --gold-ink: #7a5c12;
  --chrome: #efece5;
  --chrome-line: #dcd7cc;

  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --text: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;

  --radius-window: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(16px, 4vw, 64px);
  --scale: 1;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--navy);
  color: var(--ink);
  font: 400 15px/24px var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--navy); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Backdrop: the photograph, with a navy scrim. */
.backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  animation: veil 1.6s var(--ease) both;
}
.scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 37, 81, .55) 0%, rgba(0, 37, 81, .35) 45%, rgba(0, 37, 81, .8) 100%);
}

/* Stage and window: the page fits the viewport, the window runs to the bottom edge. */
.stage {
  height: 100%;
  padding: clamp(24px, 9vh, 120px) var(--gutter) 0;
  display: flex;
  justify-content: center;
}
.window {
  width: min(calc(1180px * var(--scale)), 100%);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius-window) var(--radius-window) 0 0;
  box-shadow: 0 30px 80px -20px rgba(0, 18, 40, .55), 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: hidden;
  animation: lift 1.1s var(--ease) both .15s;
}

.chrome {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 18px;
  height: 52px;
  padding: 0 18px;
  background: var(--chrome);
  border-bottom: 1px solid var(--chrome-line);
  color: #7d7a73;
  zoom: var(--scale);
}
.chrome svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.chrome-nav { display: flex; align-items: center; gap: 14px; }
.chrome-nav a { color: var(--ink); display: grid; place-items: center; width: 28px; height: 28px; margin: -5px; border-radius: 6px; }
.chrome-nav a:hover { background: rgba(0, 0, 0, .05); }
.chrome-nav .dim { opacity: .4; }

.address {
  justify-self: center;
  width: min(560px, 100%);
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--paper);
  border: 1px solid var(--chrome-line);
  border-radius: 8px;
  color: var(--ink-muted);
  font: 500 13.5px/1 var(--text);
}
.address .lock { width: 14px; height: 14px; flex: none; }
.address .reload { width: 15px; height: 15px; margin-inline-start: auto; flex: none; }
.address .url { margin-inline-start: auto; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.address .path { color: var(--ink-muted); }
.caret {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-inline-start: 1px;
  vertical-align: -2px;
  background: var(--navy);
  animation: blink 1.1s steps(1) 4, fade .3s 4.4s forwards;
}

/* Languages: three short links, the current one in navy. */
.lang { display: flex; gap: 2px; }
.lang a {
  min-width: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 6px;
  color: var(--ink-muted);
  font: 500 12.5px/1 var(--text);
  letter-spacing: .04em;
  text-decoration: none;
}
.lang a:hover { background: rgba(0, 0, 0, .05); color: var(--ink); }
.lang a[aria-current] { color: var(--navy); box-shadow: inset 0 -1px 0 var(--gold); border-radius: 0; }

/* Page inside the window */
.viewport {
  container-type: size;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.viewport.is-doc { container-type: normal; overflow-y: auto; overscroll-behavior: contain; }

.hero {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px clamp(20px, 6cqi, 72px) clamp(32px, 8cqh, 72px);
}
.kicker {
  margin: 0 0 clamp(4px, 1.5cqh, 16px);
  font: italic 400 clamp(18px, min(3cqi, 5cqh), calc(30px * var(--scale)))/1.3 var(--display);
  color: var(--gold-ink);
  text-wrap: balance;
}
.hero h1 {
  margin: 0;
  font: 400 clamp(34px, min(9.5cqi, 20cqh), calc(124px * var(--scale)))/1.02 var(--display);
  letter-spacing: -.015em;
  color: var(--navy);
  overflow-wrap: anywhere;
}

/* Legal pages: a readable column on paper. */
.doc {
  flex: 1 0 auto;
  width: min(72ch, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vh, 64px) clamp(20px, 5vw, 48px) clamp(32px, 6vh, 56px);
}
.doc h1 {
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gold);
  font: 400 clamp(30px, 4vw, 42px)/1.15 var(--display);
  color: var(--navy);
}
.doc h2 { margin: 28px 0 6px; font: 400 20px/1.3 var(--display); color: var(--navy); }
.doc p { margin: 0 0 12px; }
.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
  margin: 16px 0 8px;
  padding: 18px 20px;
  background: var(--parchment);
  border-inline-start: 2px solid var(--gold);
}
.facts dt { font-weight: 500; color: var(--ink-muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.muted { color: var(--ink-muted); font-size: 13px; }

/* Footer: one quiet line. */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding: 14px clamp(20px, 5cqi, 56px);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}
.is-doc .footer { padding-inline: clamp(20px, 5vw, 56px); }
.footer p { margin: 0; }
.footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a { color: inherit; }
.footer a:hover, .footer a[aria-current] { color: var(--navy); }

/* Very large screens (ultrawide, 4K) */
@media (min-width: 2200px) and (min-height: 1250px) { :root { --scale: 1.25; } }
@media (min-width: 3000px) and (min-height: 1650px) { :root { --scale: 1.6; } }

/* Moving between pages: the photo and the window stay, the chrome updates
   in place and the page inside the window fades across (cross-document
   view transitions; browsers without them simply show the next page). */
@view-transition { navigation: auto; }
.chrome { view-transition-name: chrome; }
.viewport { view-transition-name: page; }
::view-transition-group(chrome) { animation-duration: .25s; }
::view-transition-old(page) { animation: page-out .18s var(--ease) both; }
::view-transition-new(page) { animation: page-in .42s var(--ease) both .1s; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

/* The opening animation plays only when a visit starts, not on every page. */
.no-intro .backdrop, .no-intro .window, .no-intro .rise { animation: none; }

/* Motion */
.rise { animation: rise .9s var(--ease) both; }
.hero .rise:nth-child(2) { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes lift { from { opacity: 0; transform: translateY(48px); } }
@keyframes veil { from { transform: scale(1.06); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fade { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}

/* Narrow windows */
@media (max-width: 720px) {
  .chrome { grid-template-columns: auto 1fr auto; gap: 10px; padding: 0 10px; height: 46px; }
  .lights { display: none; }
  .stage { padding-top: 32px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd + dt { margin-top: 10px; }
}
@media (max-width: 420px) {
  .address .lock, .address .reload { display: none; }
}
