/* Oriens: one page, dawn colours. System fonts only, so no visitor data goes to a font CDN. */
:root {
  --night: #0f1424;
  --dusk: #2a2547;
  --ember: #e8774a;
  --sun: #ffc46b;
  --bg: #fbf8f3;
  --text: #1f1c18;
  --muted: #6d675e;
  --line: #e7e1d6;
  --card: #ffffff;
  --accent: #c9542a;
  --on-accent: #ffffff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12141c;
    --text: #ece7de;
    --muted: #a49d91;
    --line: #262a36;
    --card: #191c26;
    --accent: #ff9a6b;
    --on-accent: #1f130c;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 24px; }

/* --- Hero: night sky turning to dawn, with the sun coming up ------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff7ec;
  background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 45%, #7a3b4f 72%, var(--ember) 92%, var(--sun) 100%);
}
.hero::before { /* a few quiet stars in the dark upper sky */
  content: "";
  position: absolute;
  inset: 0 0 45% 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 32%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 47% 12%, #fffa 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 26%, #fff6 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 14%, #fff9 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 34%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 8%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 40%, #fff5 50%, transparent 51%);
  pointer-events: none;
}
.sun {
  position: absolute;
  left: 50%;
  bottom: -44vmin;
  width: 76vmin;
  height: 76vmin;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff3d6 0%, var(--sun) 38%, #ff9b55 70%, rgba(255, 155, 85, 0) 71%);
  box-shadow: 0 0 120px 40px rgba(255, 170, 90, 0.35);
  animation: rise 2.4s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise {
  from { transform: translate(-50%, 22vmin); opacity: 0.4; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}
.nav {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 15px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}
.nav a.navlink { color: #fff7ecc8; text-decoration: none; margin-left: 22px; }
.nav a.navlink:hover { color: #fff; }
.hero-body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 34vmin;
  text-align: center;
  animation: fade 1.6s .3s ease both;
}
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.eyebrow { font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; color: #ffd9b0; margin: 0 0 18px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 auto 22px;
  max-width: 14ch;
}
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); color: #fff1e0d9; max-width: 34rem; margin: 0 auto; }

/* --- Sections --------------------------------------------------------------------------------- */
section.block { padding-top: 88px; padding-bottom: 24px; }
.kicker { font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.15; margin: 0 0 14px; }
.intro { color: var(--muted); max-width: 36rem; margin: 0 0 40px; font-size: 18px; }

.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.app {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.app:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(40, 20, 10, .35); }
.app-head { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; display: block; }
.app h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; margin: 0; line-height: 1.1; }
.tag { display: inline-block; font-size: 12.5px; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.app p { margin: 0; color: var(--muted); }
.app .links { margin-top: auto; padding-top: 6px; font-size: 15px; }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 8px; }
.principle h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0 0 6px; }
.principle p { margin: 0; color: var(--muted); font-size: 16px; }
.principle .num { font-family: var(--serif); color: var(--accent); font-size: 15px; margin-bottom: 6px; display: block; }

.contact {
  margin: 96px 0 0;
  padding: 72px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(232, 119, 74, .08));
  border-top: 1px solid var(--line);
}
.contact h2 { margin-bottom: 10px; }
.contact p { color: var(--muted); margin: 0 0 22px; }
.button {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .01em;
}
.button:hover { filter: brightness(1.07); }
.foot { padding-top: 26px; padding-bottom: 40px; font-size: 14px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot a { color: var(--muted); }

/* --- Document pages (privacy policy) ---------------------------------------------------------- */
.doc-top { background: linear-gradient(90deg, var(--night), var(--dusk) 60%, #7a3b4f); color: #fff7ec; }
.doc-top .nav { padding: 20px 0; }
.doc { max-width: 700px; margin: 0 auto; padding: 56px 24px 40px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 5vw, 46px); line-height: 1.12; margin: 0 0 8px; }
.doc h2 { font-size: 24px; margin: 40px 0 8px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }

@media (prefers-reduced-motion: reduce) {
  .sun, .hero-body { animation: none; }
  .app { transition: none; }
}
@media (max-width: 560px) {
  .nav a.navlink { margin-left: 14px; }
  .wordmark { font-size: 17px; letter-spacing: .26em; }
  section.block { padding-top: 64px; }
}
