/* Joseph Micnerski — personal landing
   Warm night ink + paper light. Editorial, not startup. */

:root {
  --bg: #14110e;
  --bg-elevated: #1c1814;
  --ink: #f3ebe0;
  --ink-soft: #c9bdb0;
  --ink-mute: #8a7f74;
  --ember: #e8a87c;
  --gold: #d4b483;
  --sage: #8faf9a;
  --line: rgba(243, 235, 224, 0.12);
  --max: 38rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: var(--pad);
  top: var(--pad);
}

/* Atmosphere */
.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(232, 168, 124, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(143, 175, 154, 0.08), transparent 50%),
    radial-gradient(ellipse 50% 30% at 10% 60%, rgba(212, 180, 131, 0.06), transparent 45%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: calc(var(--pad) * 1.4) var(--pad) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.mark {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.mark-sub {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

main {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5.5rem) var(--pad) 4rem;
}

/* Hero */
.hero {
  margin-bottom: clamp(3rem, 8vw, 4.5rem);
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}

h1 {
  margin: 0 0 1.75rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.35rem, 1.6rem + 3.2vw, 3.55rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.lede {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.28rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Sections */
section + section {
  margin-top: clamp(2.75rem, 6vw, 3.75rem);
  padding-top: clamp(2.75rem, 6vw, 3.75rem);
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
}

.mission-text {
  margin: 0;
  padding: 0;
  border: none;
}

.mission-text p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}

.mission-text strong {
  font-weight: 600;
  color: var(--gold);
}

.prose p {
  margin: 0 0 1.15rem;
  max-width: 34rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Provocation */
.provocation {
  text-align: center;
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.provoke {
  margin: 0 auto;
  max-width: 28rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}

/* Close */
.close {
  text-align: left;
}

.signoff {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.name {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
}

/* Footer */
.site-footer {
  max-width: calc(var(--max) + 4rem);
  margin: 0 auto;
  padding: 0 var(--pad) calc(var(--pad) * 2);
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
  font-size: 0.88rem;
  color: var(--ink-mute);
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.footer-name {
  color: var(--ink-soft);
}

.dot {
  margin: 0 0.45rem;
  opacity: 0.5;
}

.site-footer a {
  color: var(--ink-mute);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold);
  border-bottom-color: rgba(212, 180, 131, 0.45);
}

.disclaimer {
  margin-top: 1.35rem !important;
  max-width: 34rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink-mute);
  opacity: 0.9;
}

.disclaimer strong {
  font-weight: 500;
  color: var(--ink-soft);
}

.footer-credo {
  margin-top: 1rem !important;
  max-width: 34rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Motion: gentle entrance, reduced if preferred */
@media (prefers-reduced-motion: no-preference) {
  .hero,
  .mission,
  .intro,
  .provocation,
  .close {
    animation: rise 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .mission { animation-delay: 0.08s; }
  .intro { animation-delay: 0.14s; }
  .provocation { animation-delay: 0.2s; }
  .close { animation-delay: 0.26s; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Print: clean paper version for the archive-minded */
@media print {
  .grain,
  .glow { display: none; }
  body {
    background: #fff;
    color: #111;
  }
  h1, h1 em, .mission-text p, .provoke, .name, .mark {
    color: #111 !important;
  }
}
