/* Draycott Elders — site styles
   Brand colours and type from brand/README.md */

:root {
  --navy: #0B1328;
  --gold: #C9A75A;
  --silver: #C9CED6;
  --bone: #E9E2D2;

  --text: var(--bone);
  --muted: rgba(201, 206, 214, 0.62);
  --rule: rgba(201, 167, 90, 0.22);

  --font-display: "Michroma", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);

  color-scheme: dark;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

::selection { background: var(--gold); color: var(--navy); }

:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Hero (home, 404) ---------- */

.hero {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  padding: 96px var(--gutter);
  overflow: hidden;
}

.seed {
  position: absolute;
  width: min(1100px, 150vw);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  opacity: 0.07;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero__logo { margin: 0; }

.hero__logo img {
  width: min(420px, 78vw);
  margin: 0 auto;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Labels and links ---------- */

.label {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.email {
  display: inline-block;
  margin-top: 48px;
  padding-bottom: 6px;
  font-family: var(--font-display);
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--gold);
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.25s ease;
  overflow-wrap: anywhere;
}

.email:hover { border-color: var(--gold); }

/* ---------- Document pages (terms) ---------- */

.topbar {
  padding: 24px var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.topbar a { display: inline-block; }

.doc {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) var(--gutter);
}

.doc h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 32px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.3;
}

.doc__meta {
  margin: 12px 0 48px;
  color: var(--muted);
  font-size: 14px;
}

.doc h2 {
  margin: 40px 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.doc p { margin: 0 0 16px; color: var(--silver); }

.doc a {
  color: var(--gold);
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}

.doc a:hover { text-decoration-color: var(--gold); }

/* ---------- Footer ---------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer p { margin: 0; }

.footer a {
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer a:hover { color: var(--gold); }

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
