/* DXN Limited. One stylesheet, no scripts, no third-party requests (the CSP in
   nginx/default.conf.template allows only this origin). */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-opsz-italic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f5f3ee;
  --ink: #15181d;
  --muted: #5a5f68;
  --rule: #d9d5cb;
  --accent: #1e3a66;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

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

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101317;
    --ink: #ece9e2;
    --muted: #9ba1ab;
    --rule: #2a2f37;
    --accent: #93b1e6;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* ---- Layout: masthead, hero, colophon filling the viewport --------------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  color: var(--ink);
  text-decoration: none;
}

.wordmark {
  display: block;
  width: auto;
  height: clamp(20px, 1.2rem + 0.6vw, 28px);
}

.wordmark-dot {
  fill: var(--accent);
}

.hero {
  align-self: center;
  padding-block: clamp(64px, 12vh, 160px);
  max-width: 62rem;
}

.eyebrow,
.label,
.colophon {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(20px, 3vw, 32px);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--accent);
}

h1 {
  margin: 0;
  font-weight: 380;
  font-size: clamp(3rem, 1.6rem + 6.4vw, 8rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 em {
  font-style: italic;
  font-weight: 340;
  color: var(--accent);
}

.lede {
  margin: clamp(28px, 4vw, 48px) 0 0;
  max-width: 34ch;
  font-size: clamp(1.1875rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}

.contact {
  margin-top: clamp(40px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  max-width: 34rem;
}

.label {
  margin: 0 0 8px;
}

.email {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  letter-spacing: -0.01em;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.22em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.email:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.colophon p {
  margin: 0;
}

/* ---- Arrival: a short, quiet rise. Skipped for anyone who asks for less motion. */

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero > :nth-child(2) { animation-delay: 80ms; }
  .hero > :nth-child(3) { animation-delay: 180ms; }
  .hero > :nth-child(4) { animation-delay: 280ms; }

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

@media print {
  .hero > * {
    animation: none;
  }
}
