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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  line-height: 1.6;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

/* ---------- Theme ---------- */
:root {
  /* Paper + ink */
  --bg0: #fbf6ea;
  --bg1: #f4ecda;
  --ink: #1f1c16;
  --muted: rgba(31, 28, 22, 0.7);

  /* Strokes */
  --stroke: rgba(31, 28, 22, 0.14);
  --stroke2: rgba(31, 28, 22, 0.1);

  /* Shadows */
  --shadow: 0 18px 38px rgba(0, 0, 0, 0.1);
  --shadow2: 0 10px 22px rgba(0, 0, 0, 0.08);

  /* Radius */
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  /* Layout */
  --wrap: 980px;

  /* Type */
  --serif:
    ui-serif, Georgia, "Iowan Old Style", "Times New Roman", Times, serif;
  --sans:
    ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --paper-solid: #fbf6ea;
}

/* ---------- Background (paper + grain) ---------- */
body {
  color: var(--ink);
  font-family: var(--serif);
  background:
    radial-gradient(
      1200px 700px at 20% -10%,
      rgba(255, 255, 255, 0.65),
      transparent 55%
    ),
    radial-gradient(
      900px 520px at 90% 10%,
      rgba(255, 255, 255, 0.45),
      transparent 50%
    ),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  position: relative;
  overflow-x: hidden;
}

/* Subtle grain overlay (no images) */
/* Subtle grain + constellation dust (CSS-only) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background:
    /* tiny star dust (very subtle) */
    radial-gradient(
      1px 1px at 14% 18%,
      rgba(31, 28, 22, 0.08) 50%,
      transparent 55%
    ),
    radial-gradient(
      1px 1px at 22% 62%,
      rgba(31, 28, 22, 0.06) 50%,
      transparent 55%
    ),
    radial-gradient(
      1px 1px at 38% 28%,
      rgba(31, 28, 22, 0.07) 50%,
      transparent 55%
    ),
    radial-gradient(
      1px 1px at 52% 46%,
      rgba(31, 28, 22, 0.06) 50%,
      transparent 55%
    ),
    radial-gradient(
      1px 1px at 64% 22%,
      rgba(31, 28, 22, 0.07) 50%,
      transparent 55%
    ),
    radial-gradient(
      1px 1px at 78% 58%,
      rgba(31, 28, 22, 0.06) 50%,
      transparent 55%
    ),
    radial-gradient(
      1px 1px at 86% 30%,
      rgba(31, 28, 22, 0.07) 50%,
      transparent 55%
    ),
    /* soft bloom (keeps it from feeling void) */
    radial-gradient(
        900px 520px at 20% 35%,
        rgba(255, 255, 255, 0.32),
        transparent 62%
      ),
    radial-gradient(
      820px 520px at 85% 65%,
      rgba(255, 255, 255, 0.22),
      transparent 60%
    ),
    /* grain */
    repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.018) 0px,
        rgba(0, 0, 0, 0.018) 1px,
        transparent 2px,
        transparent 4px
      );
  mix-blend-mode: normal;
  opacity: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background:
    /* soften the image */
    linear-gradient(
      180deg,
      rgba(251, 246, 234, 0.55),
      rgba(244, 236, 218, 0.68)
    ),
    url("assets/img/Screenshot 2026-01-17 at 9.39.01 AM.png");

  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* Ensure content sits above grain */
body > * {
  position: relative;
  z-index: 2;
}

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--wrap), calc(100% - 44px));
  margin-inline: auto;
}

main.wrap {
  padding: 22px 0 56px;
}

/* Better line length for reading */
p,
li {
  max-width: 100ch;
}

.hero p {
  max-width: 68ch;
}

/* .narrow {
  max-width: 52ch;
}
main .narrow {
  margin-right: auto;
} */

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.1rem, 3.4vw, 2.85rem);
}

h2 {
  font-size: clamp(1.35rem, 2.1vw, 1.65rem);
  margin-top: 34px;
  text-align: left;
}

h3 {
  font-size: 1.08rem;
  margin-top: 22px;
}

p {
  margin: 0 0 14px;
  color: var(--ink);
}

.small {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--muted);
}

/* Page intro spacing: h1 + small line feels intentional */
h1 + .small {
  margin-top: -2px;
  margin-bottom: 18px;
}

/* ---------- Links ---------- */
a {
  color: inherit;
  text-decoration-color: rgba(31, 28, 22, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 160ms var(--ease);
}

a:hover {
  text-decoration-color: rgba(31, 28, 22, 0.65);
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg0);
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 180ms var(--ease);
  z-index: 1000;
  font-family: var(--sans);
}
.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid rgba(31, 28, 22, 0.55);
  outline-offset: 3px;
  border-radius: 10px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #dce3d7;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke2);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 14px 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo {
  width: 65px;
  height: 65px;
  object-fit: contain;
  display: block;
}
/* Brand */
.brand {
  font-family: var(--serif);
  text-decoration: none;
  letter-spacing: 0.06em;
  font-variant-caps: all-small-caps;
  font-size: 1.5rem;
  position: relative;
  padding: 8px 10px;
  border-radius: 12px;
}

/* Underline glow on hover */
.brand::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(31, 28, 22, 0.42),
    transparent
  );
  opacity: 0;
  transition: opacity 200ms var(--ease);
}
.brand:hover::after {
  opacity: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.95rem;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 999px;
  border: 3px solid transparent;
  transition:
    transform 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease);
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.4);
  border-color: var(--stroke2);
  transform: translateY(-1px);
}

.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--stroke);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 3px solid var(--stroke);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 9px 12px;
  font-family: var(--sans);
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    background 160ms var(--ease);
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Mobile nav */
@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  /* keep toggle pushed right on mobile */
  .nav-toggle {
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 62px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    margin: 0;
    background: rgba(251, 246, 234, 0.9);
    border-bottom: 1px solid var(--stroke2);
    backdrop-filter: blur(12px);
  }
  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 16px;
    border-color: var(--stroke2);
    background: rgba(255, 255, 255, 0.35);
    transform: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 46px 0 18px;
}

.hero .wrap {
  position: relative;
  border-radius: var(--r-lg);
  padding: clamp(20px, 3.8vw, 34px);
  border: 3px solid var(--stroke2);
  background:
    radial-gradient(
      700px 240px at 18% 20%,
      rgba(255, 255, 255, 0.65),
      transparent 60%
    ),
    radial-gradient(
      520px 220px at 90% 35%,
      rgba(255, 255, 255, 0.45),
      transparent 58%
    ),
    rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Halo ring ornament */
.hero .wrap::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -260px;
  top: -240px;
  border-radius: 50%;
  border: 3px solid rgba(31, 28, 22, 0.14);
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.22),
    transparent 60%
  );
  filter: blur(0.2px);
}

/* Thin bottom rule */
.hero .wrap::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(31, 28, 22, 0.24),
    transparent
  );
}

.hero h1 {
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.06rem;
  color: rgba(31, 28, 22, 0.9);
}

/* Center headings only where it feels intentional */
.hero h2,
.breath h2 {
  text-align: center;
}

.breath h2 {
  margin-top: -2px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
}

.cta-row .btn,
.cta-row .btn-outline {
  min-height: 42px;
}

/* ---------- Buttons ---------- */
.btn,
.btn-outline,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  text-decoration: none;
  border: 3px solid var(--stroke);
  cursor: pointer;
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    background 180ms var(--ease);
}

.btn {
  background: linear-gradient(
    180deg,
    rgba(31, 28, 22, 0.96),
    rgba(31, 28, 22, 0.86)
  );
  color: var(--bg0);
  border-color: rgba(31, 28, 22, 0.9);
  box-shadow: var(--shadow2);
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* ---------- Sections ---------- */
section {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--stroke2);
}

section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* ---------- Lists ---------- */
ul {
  margin: 10px 0 16px 20px;
  padding: 0;
}
li {
  margin: 8px 0;
  color: rgba(31, 28, 22, 0.92);
}

/* Improve list spacing inside cards */
.card ul {
  margin: 10px 0 10px 18px;
}
.card li {
  margin: 6px 0;
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Cards (unified system) ---------- */
.card,
article,
form {
  backdrop-filter: none;
  border-radius: var(--r-md);
  border: 3px solid var(--stroke2);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

/* Card base */
.card {
  padding: 16px 18px;
  background: var(--paper-solid);
}

.card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.card p {
  margin: 0 0 10px;
}
.card .small {
  margin: 0;
}
.card a {
  font-family: var(--sans);
}

/* Article inherits card look */
article {
  padding: 16px 18px 8px;
  margin-top: 14px;
  background: var(--paper-solid);
}
article h3 {
  margin-top: 0;
}

/* Form card */
form {
  margin-top: 18px;
  padding: 16px;
  background: #b6c2af;
  border-style: groove;
  border-color: #f4ecda;
}

/* Variants */
.card--soft {
  background: var (--paper-solid);
}

.card--ink {
  background: linear-gradient(
    180deg,
    rgba(31, 28, 22, 0.92),
    rgba(31, 28, 22, 0.82)
  );
  color: var(--bg0);
  border-color: rgba(31, 28, 22, 0.55);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
  position: relative;
  overflow: hidden;
}

.card--ink::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(
    600px 220px at 18% 10%,
    rgba(255, 255, 255, 0.14),
    transparent 55%
  );
  pointer-events: none;
}

.card--ink a {
  color: var(--bg0);
  text-decoration-color: rgba(251, 246, 234, 0.45);
}
.card--ink a:hover {
  text-decoration-color: rgba(251, 246, 234, 0.75);
}

.card--ink p {
  color: #f4ecda;
}

.card--ink h2 {
  color: #f4ecda;
}

/* Lift on hover (desktop) */
.card,
article,
form {
  transition:
    transform 200ms var(--ease),
    box-shadow 200ms var(--ease),
    border-color 200ms var(--ease);
}

.card:hover,
article:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.1);
  border-color: rgba(31, 28, 22, 0.18);
}

/* Reduce hover lift on touch devices */
@media (hover: none) {
  .card:hover,
  article:hover {
    transform: none;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
    border-color: var(--stroke2);
  }
}

/* ---------- Sigil Dot (CSS-only) ---------- */
.card h3 {
  position: relative;
  padding-left: 18px;
}

.card h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.65),
    rgba(255, 255, 255, 0.25) 40%,
    rgba(31, 28, 22, 0.55) 70%,
    rgba(31, 28, 22, 0.55)
  );
  box-shadow:
    0 0 0 1px rgba(31, 28, 22, 0.28),
    0 0 0 3px rgba(31, 28, 22, 0.08);
  opacity: 0.85;
  transition:
    transform 260ms var(--ease),
    opacity 260ms var(--ease),
    box-shadow 260ms var(--ease);
}

.card--ink h3::before {
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0.35) 45%,
    rgba(251, 246, 234, 0.85) 70%,
    rgba(251, 246, 234, 0.85)
  );
  box-shadow:
    0 0 0 1px rgba(251, 246, 234, 0.45),
    0 0 0 3px rgba(251, 246, 234, 0.18);
}

.card:hover h3::before {
  transform: scale(1.08);
  opacity: 1;
  box-shadow:
    0 0 0 1px rgba(31, 28, 22, 0.45),
    0 0 0 5px rgba(31, 28, 22, 0.1);
}

@media (hover: none) {
  .card:hover h3::before {
    transform: none;
    opacity: 0.85;
    box-shadow:
      0 0 0 1px rgba(31, 28, 22, 0.28),
      0 0 0 3px rgba(31, 28, 22, 0.08);
  }
}

/* ---------- Forms ---------- */
label {
  display: block;
  margin: 12px 0 10px;
  font-family: var(--sans);
  color: var(--muted);
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  margin-top: 6px;
  border-radius: var(--r-sm);
  border: 3px solid var(--stroke);
  background: rgba(251, 246, 234, 0.72);
  padding: 10px 12px;
  color: var(--ink);
}

input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(31, 28, 22, 0.4);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

button[type="submit"] {
  margin-top: 10px;
  background: linear-gradient(
    180deg,
    rgba(31, 28, 22, 0.96),
    rgba(31, 28, 22, 0.86)
  );
  color: var(--bg0);
  border-color: rgba(31, 28, 22, 0.9);
}

/* ---------- Breath blocks ---------- */
.breath {
  margin: 28px auto 34px;
  padding: 28px 30px;
  max-width: 760px;
  border-radius: var(--r-lg);
  background: #b6c2af;
  border: 3px solid var(--stroke2);
  box-shadow: var(--shadow2);
}

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

/* ---------- Sigil divider ---------- */
.sigil {
  margin: 40px 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(31, 28, 22, 0.35),
    transparent
  );
}

/* ---------- Footer ---------- */
/* =========================
   Footer (Stars in Her Bones)
========================= */
.site-footer {
  background: var(--bg1, #dde3d7);
  border-top: 1px solid rgba(29, 27, 21, 0.14);
  padding: 18px 0;
}

.footer-inner {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.footer-note {
  margin: 0;
  max-width: 60ch;
  font-size: 0.95rem;
  color: rgba(29, 27, 21, 0.85);
}

.footer-copy {
  margin: 0;
  white-space: nowrap;
  font-size: 0.95rem;
  color: rgba(29, 27, 21, 0.85);
  margin-left: -100px;
}

.footer-link {
  margin-left: 0;
  font-size: 0.95rem;
  color: rgba(29, 27, 21, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 27, 21, 0.25);
  padding-bottom: 2px;
}

.footer-link:hover {
  border-bottom-color: rgba(29, 27, 21, 0.55);
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-copy {
    white-space: normal;
  }
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- About layout (kills the essay feel) ---------- */
.about-layout {
  display: grid;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

@media (min-width: 980px) {
  .about-layout {
    grid-template-columns: 1.35fr 0.65fr; /* story + side rail */
  }
}

.about-rail {
  position: sticky;
  top: 92px; /* below sticky header */
}

/* Smaller headings inside side rail so it feels like an aside */
.about-rail h2 {
  font-size: 1.05rem;
  margin-top: 0;
}

/* Pullquote card (short, alive moments) */
.pull {
  padding: 18px 18px;
  border-radius: var(--r-md);
  border: 3px solid var(--stroke2);
  background:
    radial-gradient(
      520px 160px at 18% 0%,
      rgba(255, 255, 255, 0.6),
      transparent 62%
    ),
    rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

.pull p {
  margin: 0;
  font-size: 1.06rem;
}

.pull .small {
  margin-top: 10px;
}

/* Optional: small image / sigil block */
/* About side image block */
.about-mark {
  border-radius: var(--r-lg);
  border: 3px groove var(--stroke2);
  overflow: hidden;

  /* cream base */
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
  display: flex;
}

/* Make the image cover the block */
.about-mark img {
  width: 100%;
  height: 380px; /* adjust: 240–320 based on taste */
  object-fit: cover; /* covers the block */
  object-position: center;
  filter: saturate(0.95) contrast(1.05);
  display: block;

  /* This helps the PNG sit nicer on cream */
  background: #b6c2af;
}

/* Optional caption area */
.about-mark .cap {
  padding: 12px 14px;
  background: #fbf6ea;
}
