/* Ellie website: one landing page, a legal notice and a 404.
   Charter: Cormorant Garamond names, Mulish explains; two papers that alternate (night blue to show, ivory to explain),
   a navy band to conclude; one gold, used as ink and as a hairline. No gradient, no glow, no shadow.
   Contrast measured on the rendered pages: text 4.5 or more. Nothing to read under 14 px. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/mulish-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/mulish-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Mulish"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/mulish-latin-600-normal.woff2) format("woff2"); }

:root {
  --f-display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --f-body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --night: #051022; --navy: #0b2447; --ivory: #f7f3ea; --ink: #0b1a33; --gold: #d8b873;
  --gutter: clamp(1.5rem, 6vw, 6rem);
  --air: clamp(6rem, 4rem + 9vw, 12rem);
}
/* the three papers */
.night, .navy { --bg: var(--night); --fg: #f7f3ea; --muted: #c2bcaf; --over: #d8b873; --rule: #2a4470; --alert: #e09a8a; color-scheme: dark; }
.navy { --bg: var(--navy); --rule: #3a5788; }
.paper { --bg: var(--ivory); --fg: var(--ink); --muted: #5c636f; --over: #7a5c22; --rule: #d9d2c0; --alert: #a4503f; color-scheme: light; }
.night, .navy, .paper { background: var(--bg); color: var(--fg); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, figure, ul { margin: 0; }
p, li { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--over, #d8b873); outline-offset: 5px; }
h1, h2, .line { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.008em; line-height: 1.15; text-wrap: balance; }
h1 em, h2 em, .line em { font-style: italic; }

/* small spaced capitals: the signature, the overlines, the footer */
.over { font-size: .875rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--over); line-height: 1.5; }
.hair { display: block; width: 3rem; height: 1px; background: var(--gold); border: 0; margin: 0; }
.muted { color: var(--muted); }
.tbc { color: var(--alert); font-weight: 500; }

/* links: a hairline of gold under the words, nothing else */
.lnk { font-size: .875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  padding-bottom: .5rem; border-bottom: 1px solid var(--gold); transition: border-color .6s ease; }
.lnk:hover { border-bottom-color: currentColor; }
/* the one filled button of the page */
.btn { display: inline-block; background: var(--gold); color: var(--ink); text-decoration: none; border-radius: 2px;
  font-size: .875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; line-height: 1.4;
  padding: 1.15rem 2.2rem; border: 1px solid var(--gold); transition: background-color .6s ease, color .6s ease; }
.btn:hover { background: transparent; color: var(--gold); }

/* ---------- the way into the application, fixed top right of every page, on its own solid paper */
body { position: relative; }
.signin { position: fixed; z-index: 10; top: calc(env(safe-area-inset-top, 0px) + clamp(1rem, 3vh, 2rem)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); background: var(--bg); color: var(--fg);
  font-size: .875rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; line-height: 1.4;
  padding: .7rem 1.1rem; border: 1px solid var(--rule); border-radius: 2px; transition: border-color .6s ease; }
.signin:hover { border-color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .signin { transition: none; } }

/* ---------- 1. the logotype, the signature, one sentence */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); min-height: 100vh; min-height: 100svh; }
.hero-text { display: flex; flex-direction: column; justify-content: space-between; gap: 4rem; padding: clamp(2.5rem, 6vh, 4.5rem) var(--gutter); }
.mark { color: var(--gold); display: grid; gap: 1.4rem; justify-items: start; }
.mark svg { display: block; width: clamp(9rem, 12vw, 11.5rem); height: auto; }
.hero h1 { font-size: clamp(2.25rem, 1.2rem + 2.9vw, 3.75rem); max-width: 15em; }
.hero h1::before { content: ""; display: block; width: 3rem; height: 1px; background: var(--gold); margin-bottom: clamp(2rem, 4vh, 3rem); }
.hero-img { position: relative; min-height: 20rem; }
.hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: 44svh auto; min-height: 0; }
  .hero-img { order: -1; min-height: 0; }
  .hero-img img { object-position: 50% 38%; }
  .hero-text { gap: 3.5rem; padding-block: 3rem 4rem; }
}

/* ---------- 2. what the guest lives */
.told { padding: var(--air) var(--gutter); }
.told-in { max-width: 46rem; margin-inline: auto; display: grid; justify-items: center; text-align: center; }
.lines { list-style: none; padding: 0; margin-top: clamp(3rem, 6vh, 4.5rem); display: grid; justify-items: center; }
.line { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); max-width: 19em; }
.lines li + li::before { content: ""; display: block; width: 3rem; height: 1px; background: var(--gold); margin: clamp(2rem, 4.5vh, 3rem) auto; }
.told .what { margin-top: clamp(3.5rem, 8vh, 5.5rem); max-width: 34rem; color: var(--muted); }

/* ---------- a photograph, alone */
.plate img { width: 100%; height: clamp(20rem, 78vh, 46rem); object-fit: cover; object-position: 50% 62%; }

/* ---------- 3. discretion */
.kept { padding: var(--air) var(--gutter); }
.kept-in { max-width: 72rem; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 4rem clamp(3rem, 8vw, 8rem); align-items: start; }
.kept h2 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); margin-top: 2rem; max-width: 9em; }
.facts { list-style: none; padding: 0; border-top: 1px solid var(--gold); max-width: 34rem; }
.facts li { padding: 1.9rem 0; border-bottom: 1px solid var(--rule); }
.facts li:last-child { border-bottom: 0; }
@media (max-width: 820px) { .kept-in { grid-template-columns: 1fr; gap: 3rem; } }

/* ---------- 4. one way in */
.way { padding: var(--air) var(--gutter); text-align: center; }
.way-in { max-width: 40rem; margin-inline: auto; display: grid; justify-items: center; }
.way h2 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); margin-top: 2rem; }
.way .btn { margin-top: clamp(3rem, 6vh, 4rem); }

/* ---------- footer */
.ftr { padding: 2.75rem var(--gutter) 3rem; border-top: 1px solid var(--rule); font-size: .875rem; color: var(--muted);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 1rem 3rem; }
.ftr .over { color: var(--muted); font-weight: 500; }
.ftr-end { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.ftr a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: .15rem; }
.ftr a:hover { color: var(--fg); border-bottom-color: var(--gold); }

/* ---------- the two plain pages: legal notice, page not found */
.top { padding: clamp(2rem, 5vh, 3.5rem) var(--gutter) 0; }
.top a { display: inline-block; color: var(--over); padding: .5rem 0; }
.night .top a { color: var(--gold); }
.top svg { display: block; width: 7.5rem; height: auto; }
.page { padding: clamp(4rem, 12vh, 8rem) var(--gutter) var(--air); }
.page-in { max-width: 42rem; }
.page h1 { font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.5rem); margin-top: 2rem; }
.page h2 { font-size: 1.75rem; margin: 4rem 0 1.25rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.page h1 + h2 { margin-top: 3.5rem; border-top-color: var(--gold); }
.page p + p { margin-top: 1rem; }
.page .lede { margin-top: 2rem; color: var(--muted); }
.page .lnk { display: inline-block; margin-top: 3.5rem; }
.page p a { text-underline-offset: .22em; text-decoration-color: var(--gold); }
body.night { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body.night main { flex: 1; }

/* ---------- motion: rare and slow, and none at all if the visitor asks for less */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transition: opacity 1.8s ease; }
  .js .reveal.in { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lnk, .btn { transition: none; }
}
