/* Self-hosted fonts: latin + latin-ext only. 300 and 400 share one variable file. */
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 300; font-display: swap;
  src: url("fonts/fraunces-italic-300-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces'; font-style: italic; font-weight: 300; font-display: swap;
  src: url("fonts/fraunces-italic-300-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 300 400; font-display: swap;
  src: url("fonts/fraunces-300_400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces'; font-style: normal; font-weight: 300 400; font-display: swap;
  src: url("fonts/fraunces-300_400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 300 400; font-display: swap;
  src: url("fonts/jetbrainsmono-300_400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono'; font-style: normal; font-weight: 300 400; font-display: swap;
  src: url("fonts/jetbrainsmono-300_400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --black:    #000000;
  --bone:     #EFE9DA;
  --bone-dim: rgba(239,233,218,0.72);
  --bone-text:rgba(239,233,218,0.86);
  --bone-faint:rgba(239,233,218,0.16);
  --hot:      #FF6A2C;     /* the single warm light */
  --line:     rgba(239,233,218,0.10);

  --display:  'Fraunces', 'Bodoni Moda', Didot, Georgia, serif;
  --mono:     'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  color-scheme: dark;
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  background: var(--black);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: var(--hot); color: var(--black); }
:focus-visible { outline: 1px solid var(--hot); outline-offset: 4px; }
a { color: inherit; }

/* ============== ATMOSPHERE — single warm light + grain ============== */

/* The warm light, off-center, very soft, very slow breath */
.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70vw 60vh at 50% 38%, rgba(255,106,44,0.16), rgba(200,19,42,0.06) 35%, transparent 70%),
    radial-gradient(ellipse 40vw 40vh at 50% 50%, rgba(255,106,44,0.08), transparent 70%);
  filter: blur(20px);
  animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}

/* True-black vignette to keep the edges absolute black */
.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 100% 80% at 50% 50%, transparent 35%, rgba(0,0,0,0.55) 70%, #000 100%);
}

/* Film grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@keyframes fade-in {
  to { opacity: 1; }
}

/* ============== PAGE ============== */
main { position: relative; z-index: 10; }

/* === Hero — pitch black, wordmark only, first full screen === */
.stage {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 0 clamp(20px, 5vw, 64px);
}

.mark {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: min(78vw, 880px);
  aspect-ratio: 1079/600;
  opacity: 0;
  transform: scale(0.985);
  animation: mark-in 2.6s cubic-bezier(.2,.6,.2,1) .25s forwards;
  will-change: transform, opacity;
}
.mark img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 10px 40px rgba(0,0,0,0.85))
    drop-shadow(0 0 60px rgba(255,106,44,0.18));
}
/* slow infinite micro-breath after entrance */
.mark.lit {
  animation:
    mark-in 2.6s cubic-bezier(.2,.6,.2,1) .25s forwards,
    mark-breath 11s ease-in-out 3.2s infinite;
}
@keyframes mark-in {
  0%   { opacity: 0; transform: scale(0.985); filter: blur(6px); }
  100% { opacity: 1; transform: scale(1);     filter: blur(0); }
}
@keyframes mark-breath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.012); }
}

/* === About / Contact === */
.about {
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(48px, 10vh, 120px) 16px clamp(40px, 8vh, 96px);
  text-align: center;
}
.about h1, .doc h1 {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--bone);
}
.lede {
  margin: 0 auto 3rem;
  max-width: 34rem;
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.45;
  color: var(--bone-text);
}
.contact {
  margin: 0;
  display: grid;
  gap: 1.75rem;
  font-size: 15px;
  color: var(--bone-text);
}
.contact dt {
  margin-bottom: .35rem;
  font-size: 14px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone-dim);
}
.contact dd { margin: 0; }
.contact dd p { margin: 0 0 1rem; }
.contact dd p:last-child { margin-bottom: 0; }
.contact a, .doc a {
  color: var(--bone);
  text-decoration: underline;
  text-decoration-color: rgba(255,106,44,0.55);
  text-underline-offset: 4px;
  transition: text-decoration-color .3s ease;
}
.contact a:hover, .doc a:hover { text-decoration-color: var(--hot); }

/* === Long-form document (privacy, 404) === */
.doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) 16px clamp(40px, 8vh, 80px);
  font-size: 15px;
  line-height: 1.7;
  color: var(--bone-text);
}
.home-mark { display: block; width: 140px; margin: 0 auto 3rem; }
.home-mark img { display: block; width: 100%; height: auto; }
.doc h1 { text-align: center; }
.doc.center { text-align: center; min-height: 70svh; display: flex; flex-direction: column; justify-content: center; }

/* === Footer — in normal flow at the bottom === */
.site-foot {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 2.5rem 28px 28px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.9;
  color: rgba(239,233,218,0.82);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  opacity: 0;
  animation: fade-in 1.4s ease-out 2.6s forwards;
}
.site-foot p { margin: 0; }
.foot-note { text-align: center; color: var(--bone-dim); font-size: 12px; max-width: 60rem; margin: 0 auto; text-wrap: balance; }
.foot-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 24px; }
.foot-row > :first-child { text-align: left; }
.foot-row > * { white-space: nowrap; }
.foot-row > :nth-child(2) { text-align: center; }
.foot-row > :last-child { text-align: right; }
.site-foot a { color: inherit; text-decoration: none; transition: color .3s ease; }
.site-foot a:hover { color: var(--bone); text-decoration: underline; text-decoration-color: rgba(239,233,218,0.35); text-underline-offset: 4px; }
.foot-note a { text-decoration: underline; text-decoration-color: rgba(239,233,218,0.35); text-underline-offset: 4px; }
@media (max-width: 1180px) { .site-foot { letter-spacing: 0.16em; } }
@media (max-width: 1024px) {
  .site-foot { padding: 2rem 16px 24px; gap: 1.25rem; letter-spacing: 0.14em; text-align: center; }
  .foot-row { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .foot-row > * { text-align: center !important; white-space: normal; }
}

/* === Home: one screen — wordmark centered, footer along the bottom (in flow, page can still scroll) === */
body.home { display: flex; flex-direction: column; min-height: 100svh; }
body.home main { flex: 1; display: flex; }
body.home .stage { flex: 1; min-height: 0; padding-block: 48px 24px; }
body.home .mark { max-width: min(78vw, 880px, calc((100svh - 320px) * 1.8)); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .mark { opacity: 1; transform: none; }
}
