/* daywardllc.com — "Meridian"
   Dayward = toward the day. The horizon band is computed from the
   visitor's local clock, on their machine. No webfonts, no CDN,
   no external requests: the page is set in the system's own type. */

:root {
  --paper: #fafaf7;
  --ink: #1c1c1e;
  --muted: #6e6e73;
  --faint: #d9d9d4;
  /* sky tokens — overwritten by local-time JS */
  --sky-top: #b8d4f0;
  --sky-bottom: #e8f0f8;
  --sun: #fff3d6;
  --sun-x: 50%;
  --sun-y: 130%; /* below the horizon until the sky engine places it */
  --sun-glow: rgba(255, 220, 160, 0.55);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0e10;
    --ink: #f2f2f4;
    --muted: #98989e;
    --faint: #2c2c30;
  }
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

/* ————— column grid: one 680px text column throughout ————— */
.hero, main, footer {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ————— hero ————— */
.hero { padding-top: clamp(48px, 9vh, 96px); }
.wordmark {
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.wordmark .llc {
  font-size: 0.32em;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  vertical-align: 0.5em;
  margin-left: 0.35em;
}
.tagline {
  margin-top: 18px;
  font-size: clamp(21px, 3.2vw, 28px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: 21em;
}
.subline {
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
  max-width: 34em;
}

/* ————— the horizon: full-bleed ————— */
.horizon {
  position: relative;
  margin-top: clamp(40px, 7vh, 72px);
}
.sky {
  position: relative;
  height: clamp(130px, 24vh, 210px);
  background: linear-gradient(to top, var(--sky-bottom), var(--sky-top));
  overflow: hidden;
  transition: background 2s linear;
}
.sun {
  position: absolute;
  left: var(--sun-x);
  top: var(--sun-y);
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 34px 12px var(--sun-glow);
}
.stars {
  position: absolute;
  inset: 0;
  opacity: var(--stars-o, 0);
  transition: opacity 2s linear;
}
.stars i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background: #fff;
  animation: twinkle 6s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.6); }
}
.moon {
  position: absolute;
  left: var(--moon-x, 50%);
  top: var(--moon-y, 130%);
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border-radius: 50%;
  background: #f0eddf;
  box-shadow: 0 0 26px 8px rgba(215, 225, 255, 0.28);
  opacity: var(--moon-o, 0);
  overflow: hidden;
  transition: opacity 2s linear;
}
.moon-shadow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--moon-shadow-c, #141a38);
  transform: translateX(var(--moon-shadow-x, 0px));
}
.horizon-line {
  height: 1px;
  background: var(--ink);
  opacity: 0.85;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky, .sun, .stars, .moon { transition: none; }
  .stars i { animation: none; }
}

/* ————— sections ————— */
section { padding-top: clamp(56px, 10vh, 104px); }
section:last-of-type { padding-bottom: clamp(56px, 10vh, 104px); }
h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.prose p { margin-bottom: 1.1em; max-width: 36em; }
.prose p:last-child { margin-bottom: 0; }
.lede { font-size: 20px; letter-spacing: -0.01em; line-height: 1.55; }

/* ————— work list ————— */
.work-list { margin-top: 26px; }
.work-item { padding: 18px 0; border-top: 1px solid var(--faint); }
.work-item:last-child { border-bottom: 1px solid var(--faint); }
.work-item h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.work-item p { color: var(--muted); font-size: 15.5px; margin-top: 3px; }

/* ————— contact ————— */
.book-wrap { margin-top: 22px; }
.book {
  display: inline-block;
  margin: 6px 0 26px;
  padding: 13px 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.book:hover { opacity: 0.85; }
.contact-links { list-style: none; padding: 0; margin-top: 8px; }
.contact-links li { margin-bottom: 10px; }
.contact-links a { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }

/* ————— footer ————— */
footer {
  padding-top: 28px;
  padding-bottom: 44px;
  border-top: 1px solid var(--faint);
  color: var(--muted);
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
