/* Eileen Jubilee — personal site
   Plain CSS, no build step. Edit values in :root to reskin. */

:root {
  --paper:      #FBF8F3;
  --paper-warm: #F4EFE5;
  --ink:        #17150F;
  --ink-soft:   #4C4739;
  --ink-faint:  #7C7566;
  --rule:       #E3DCCD;
  --accent:     #C4552C;
  --accent-2:   #2E5D4F;

  --measure: 34rem;          /* reading column */
  --wide: 60rem;             /* outer container */
  --step: clamp(3rem, 7vw, 5.5rem);   /* vertical rhythm between sections */

  --serif: "Fraunces", Iowan Old Style, Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { width: min(100% - 2.5rem, var(--wide)); margin-inline: auto; }
.column { max-width: var(--measure); }

a { color: inherit; text-decoration-color: var(--rule); text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--accent); color: var(--accent); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.is-stuck { border-bottom-color: var(--rule); }
.nav__inner {
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.9rem 0;
}
.nav__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.nav__links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}
.nav__links a { text-decoration: none; color: var(--ink-soft); }
.nav__links a:hover,
.nav__links a[aria-current="true"] { color: var(--accent); }

@media (max-width: 34rem) {
  .nav__inner { flex-wrap: wrap; gap: 0.6rem 1rem; }
  .nav__name { margin-right: 0; width: 100%; }
  .nav__links { gap: 0.9rem; font-size: 0.78rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: min(82vh, 44rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#hero-canvas canvas { display: block; width: 100% !important; height: 100% !important; }
.hero::after {           /* keeps the type readable over the field */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 80% at 20% 50%,
    color-mix(in srgb, var(--paper) 92%, transparent) 0%,
    color-mix(in srgb, var(--paper) 55%, transparent) 55%,
    transparent 100%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; padding: var(--step) 0; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 1.1rem;
}
.hero__lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.4;
  max-width: 28ch;
  margin: 0 0 1.4rem;
  color: var(--ink);
}
.hero__meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}
.hero__meta a { text-decoration-color: var(--accent); }

/* ---------- sections ---------- */

section { padding: var(--step) 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: none; }

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
}
h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.prose p + p { margin-top: 0; }
.prose { max-width: var(--measure); }

/* offerings */

.offerings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.offerings li { border-top: 2px solid var(--ink); padding-top: 0.9rem; }
@media (min-width: 40rem) { .offerings { grid-template-columns: 1fr 1fr; } }
.offerings p { font-size: 0.97rem; color: var(--ink-soft); }

/* writing list */

.entries { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.entries li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.entries li:first-child { border-top: 1px solid var(--rule); }
.entries h3 { margin-bottom: 0.15rem; }
.entries .date { font-size: 0.8rem; color: var(--ink-faint); letter-spacing: 0.04em; }
.entries p { font-size: 0.95rem; color: var(--ink-soft); margin: 0.35rem 0 0; }

.note {
  max-width: var(--measure);
  padding: 1.1rem 1.25rem;
  background: var(--paper-warm);
  border-left: 2px solid var(--accent);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* contact */

.contact-mail {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 2px solid var(--rule);
  display: inline-block;
  padding-bottom: 0.1em;
}
.contact-mail:hover { border-bottom-color: var(--accent); }

.elsewhere {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 0;
  margin: 1.75rem 0 0;
  font-size: 0.92rem;
}

footer {
  padding: 2.5rem 0 3.5rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
}
footer p { margin: 0; }

/* fade sections in on scroll — skipped entirely for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms ease, transform 700ms ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
