/* Fonts are self-hosted (font-src 'self'); licences in /fonts/OFL-*.txt */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(/fonts/playfair-display-latin.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/montserrat-latin.woff2) format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/source-sans-pro-400-latin.woff2) format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/source-sans-pro-700-latin.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #000;
  --hero-bg: #161616;
  --text: #e2e2e2;
  --muted: #969696;
  --field-label: #ababab;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Source Sans Pro", arial, sans-serif;
  --logo: "Montserrat", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--sans); }
a { color: inherit; }

/* Hero: logo over a full-width night sky, title centred */
.hero {
  position: relative; display: flex; flex-direction: column; min-height: 499px;
  background: var(--hero-bg) url(/img/hero-night.svg) center / cover no-repeat;
  color: #fff; text-align: center;
}
.hero-bar { padding: 24px 24px 0; }
.logo {
  font: 700 24px/28.8px var(--logo); letter-spacing: 4px; text-transform: uppercase;
  color: #fff; text-decoration: none;
}
.hero-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px 24px 72px; }
.hero h1 { margin: 0; font: 400 48px/1.2 var(--serif); text-shadow: 0 1px 12px rgb(0 0 0 / .35); }

/* Contact */
.contact { padding: 56px 24px; text-align: center; }
.contact h2 { margin: 0; font: 400 38px/53.2px var(--serif); color: var(--muted); }
.contact hr { width: 50px; height: 0; margin: 24px auto 40px; border: 0; border-top: 1px solid #808080; }
.contact h3 { margin: 0 0 24px; font: 400 22px/27.5px var(--sans); color: var(--text); }
.form { max-width: 608px; margin: 0 auto; text-align: left; }
.field { position: relative; margin-bottom: 24px; }
.field input, .field textarea {
  display: block; width: 100%; margin: 0; padding: 23px 16px 7px;
  border: 1px solid #fff; border-radius: 4px; background: transparent;
  color: var(--text); font: 16px/normal var(--sans); outline: none;
}
.field textarea { height: 202px; padding: 16px; line-height: 28px; resize: vertical; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 1px #fff; }
.field label {
  position: absolute; left: 17px; top: 16px; color: var(--field-label);
  pointer-events: none; transition: top .15s, font-size .15s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label { top: 5px; font-size: 12px; }
.field textarea::placeholder { color: var(--field-label); opacity: 1; }
.form-actions { text-align: center; }
.btn {
  min-height: 56px; padding: 8px 32px; border: 0; border-radius: 4px; background: #fff; color: #000;
  font: 700 14px/normal var(--sans); letter-spacing: 1px; text-transform: uppercase; cursor: pointer;
}
.btn:hover { background: #e2e2e2; }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.form-note { min-height: 21px; margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 56px 34px; font-size: 14px; line-height: 21px; color: var(--muted);
}
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* Inner pages (about, privacy, errors) keep their simple markup */
.wrap { max-width: 44rem; margin: 0 auto; padding: 1rem 24px; }
header.wrap { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; }
.brand { font: 700 18px/1 var(--logo); letter-spacing: 3px; text-transform: uppercase; text-decoration: none; color: #fff; }
nav a { margin-left: 1rem; color: var(--muted); text-decoration: none; }
nav a:hover { color: #fff; }
main.wrap h1, main.wrap h2 { font-family: var(--serif); font-weight: 400; color: #fff; }
main.wrap h1 { font-size: 38px; line-height: 1.4; }
main.wrap a { color: #fff; }
footer.wrap { font-size: 14px; color: var(--muted); }
footer.wrap a { color: var(--muted); }

@media (max-width: 767px) {
  .hero { min-height: 420px; }
  .logo { font-size: 20px; letter-spacing: 3px; }
  .hero h1 { font-size: 36px; }
  .contact { padding: 48px 16px; }
  .contact h2 { font-size: 32px; line-height: 1.4; }
  .site-footer { justify-content: center; text-align: center; padding: 40px 16px; }
}
@media (prefers-reduced-motion: reduce) { .field label { transition: none; } }
