@font-face {
  font-family: Poppins;
  src: url("assets/fonts/poppins-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("assets/fonts/poppins-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #FAFBFC;
  --ink: #293034;
  --gold: #916B37;
  --muted: #435565;
  --line: rgb(41 48 52 / 18%);
  --point: #74899B;
  --light-origin: max(0px, calc(50vw - 900px));
  --sky-shade: linear-gradient(rgb(255 255 255 / 8%), rgb(255 255 255 / 8%));
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Follow the OS directly. No saved preference or JavaScript is needed. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111D28;
    --ink: #F1F5F9;
    --gold: #D5B57A;
    --muted: #CCD8E3;
    --line: rgb(204 216 227 / 22%);
    --point: #AABECF;
    /* Keep the sky luminous near the original charcoal logo. The overlay
       belongs to the page; the transparent brand image stays unchanged. */
    --sky-shade: radial-gradient(ellipse 610px 390px at var(--light-origin) 0,
      rgb(12 23 34 / 0%) 0%, rgb(12 23 34 / 8%) 25%,
      rgb(12 23 34 / 48%) 45%, rgb(12 23 34 / 80%) 70%,
      rgb(12 23 34 / 93%) 100%);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--sky-shade), url("assets/hineh-sky-dawn.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page {
  min-height: 100svh;
  max-width: 1800px;
  margin-inline: auto;
  padding: 28px 6.2vw 28px;
  display: flex;
  flex-direction: column;
}
.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo {
  display: block;
  width: 128px;
  height: auto;
  background: transparent;
}
main {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 495px;
  padding: 50px 7.4vw 102px;
}
.intro { position: relative; z-index: 1; }
h1 {
  font-family: Baskerville, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(88px, 10.4vw, 156px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.055em;
  margin: 0;
}
h1 em { font-weight: 400; color: var(--gold); }
.description {
  margin: 32px 0 0 5px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.horizon {
  position: absolute;
  right: 0;
  bottom: 28%;
  width: 28%;
  height: 1px;
}
.horizon-line {
  position: absolute;
  inset: 0;
  background: var(--line);
}
.horizon-point {
  position: absolute;
  top: -3px;
  right: 28%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--point);
}
.contact {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-height: 46px;
  margin: 26px 0 0 5px;
  padding-bottom: 5px;
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.contact:hover { color: var(--muted); }
.contact:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.contact::after { content: "↗"; font-size: 22px; }
.footer {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 640px) {
  .page { padding: 22px 27px 24px; }
  .brand-logo { width: 104px; }
  .header { gap: 18px; }
  main { min-height: 480px; padding: 60px 0 105px; }
  h1 { font-size: clamp(84px, 21vw, 116px); }
  .description { margin-left: 2px; font-size: 12px; }
  .contact { margin-left: 2px; }
  .horizon { width: 31%; bottom: 45px; }
  .footer { font-size: 10px; }
}
@media (max-width: 360px) {
  .page { padding-inline: 22px; }
  .brand-logo { width: 96px; }
  main { min-height: 440px; padding-top: 45px; }
  h1 { font-size: 80px; }
}
@media (prefers-color-scheme: dark) and (max-width: 640px) {
  :root {
    --sky-shade: radial-gradient(ellipse 365px 240px at 0 0,
      rgb(12 23 34 / 0%) 0%, rgb(12 23 34 / 8%) 25%,
      rgb(12 23 34 / 48%) 45%, rgb(12 23 34 / 80%) 70%,
      rgb(12 23 34 / 93%) 100%);
  }
}
