/* Homer & Mae — quiet editorial */
:root {
  --black: #080706;
  --ink: #14110e;
  --cream: #efe8dc;
  --paper: #f7f1e6;
  --muted: #6a6358;
  --line: rgba(20, 17, 14, 0.13);
  --line-deep: rgba(20, 17, 14, 0.22);
  --brass: #8a7355;
  --brass-soft: rgba(138, 115, 85, 0.45);
  --brass-whisper: rgba(138, 115, 85, 0.22);
  --max: 1080px;
  --read: 40rem;
  --serif: "Fraunces", "Source Serif 4", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
  --ui: "Outfit", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --grain:
    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%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { hanging-punctuation: first last; }

body {
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(138, 115, 85, 0.07), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(20, 17, 14, 0.04), transparent 50%),
    var(--grain);
  background-blend-mode: normal, normal, soft-light;
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.2rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(20, 17, 14, 0.12); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ——— Nav ——— */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 6vw;
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a { text-decoration: none; }
.nav a:hover { color: inherit; opacity: 0.7; }
.nav-links { display: flex; gap: 1.4rem; font-weight: 500; flex-wrap: nowrap; }
.nav-logo img { height: 48px; width: auto; }
.nav.on-light { color: var(--ink); }
.nav.on-dark { color: #fff; }
.nav.on-light .nav-logo img { filter: invert(1); }

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 70vh;
  background:
    radial-gradient(ellipse 90% 70% at 15% 90%, rgba(138, 115, 85, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 55% at 85% 20%, rgba(255, 248, 235, 0.06), transparent 50%),
    linear-gradient(180deg, #0c0a08 0%, #080706 55%, #0a0907 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8.5rem 0 4.75rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grain);
  opacity: 0.12;
  pointer-events: none;
  mix-blend-mode: soft-light;
}
.hero-inner,
.hero > .wrap {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-style: italic;
  color: #fff;
  max-width: 16ch;
  text-wrap: balance;
  font-size: clamp(2.45rem, 5.6vw, 4.15rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 0 0 1.35rem;
}
.hero .kicker {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.22em;
  margin-bottom: 1.35rem;
  display: inline-block;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--brass-soft);
}
.hero .lede {
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
  text-wrap: pretty;
  font-size: 1.18rem;
  line-height: 1.65;
}
.hero a:hover { color: var(--cream); }
.btn.light {
  background: var(--cream);
  color: var(--black);
  border-color: var(--cream);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: transparent;
}
.btn.light:hover,
.btn.ghost:hover {
  opacity: 1;
  background: #fff;
  color: var(--black);
  border-color: #fff;
  transform: translateY(-1px);
}

/* ——— Layout ——— */
.wrap { width: min(var(--max), 88vw); margin: 0 auto; }
.read { width: min(var(--read), 88vw); margin: 0 auto; }
.band {
  padding: 5.75rem 0 6.25rem;
  position: relative;
}
.band.paper {
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(138, 115, 85, 0.05), transparent 60%),
    var(--grain);
  background-blend-mode: normal, soft-light;
}

.kicker {
  font-family: var(--ui);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.15rem;
  font-weight: 500;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.2;
  font-optical-sizing: auto;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 4.8vw, 3.6rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.35rem); margin: 0 0 0.95rem; max-width: 28ch; }
.lede { font-size: 1.22rem; max-width: 38rem; color: var(--ink); text-wrap: pretty; }

/* ——— Journal list ——— */
.journal-list { list-style: none; margin: 2.4rem 0 0; padding: 0; }
.journal-list li { border-top: 1px solid var(--line); }
.journal-list li:last-child { border-bottom: 1px solid var(--line); }
.journal-list a {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem 2rem;
  padding: 1.65rem 0.35rem 1.65rem 0;
  text-decoration: none;
  align-items: baseline;
  transition: padding-left 0.25s var(--ease), opacity 0.25s var(--ease);
}
.journal-list a:hover {
  padding-left: 0.45rem;
  opacity: 1;
}
.journal-list a:hover h3 { color: var(--ink); }
.journal-list a:hover .date { color: var(--brass); }
.journal-list .date {
  font-family: var(--ui);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.25s var(--ease);
}
.journal-list h3 {
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  font-style: italic;
  text-wrap: balance;
  color: var(--ink);
  font-weight: 500;
}
.journal-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  text-wrap: pretty;
  line-height: 1.55;
}

/* ——— Buttons ——— */
.cta-row { margin-top: 2.6rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn {
  font-family: var(--ui);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 1rem 1.45rem;
  display: inline-block;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    background 0.28s var(--ease),
    color 0.28s var(--ease),
    border-color 0.28s var(--ease),
    transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}
.btn.solid {
  background: var(--black);
  color: var(--cream);
  border-color: var(--black);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.btn.solid:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
  opacity: 1;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 14px rgba(8, 7, 6, 0.12);
}
.btn:hover {
  opacity: 1;
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ——— Signup ——— */
.signup { display: flex; gap: 0.65rem; flex-wrap: wrap; margin-top: 1.4rem; max-width: 30rem; }
.signup input[type="email"] {
  flex: 1 1 16rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-deep);
  padding: 0.9rem 0;
  font: inherit;
  color: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}
.signup input::placeholder { color: var(--muted); }
.signup input:focus { border-bottom-color: var(--ink); }

/* ——— Article ——— */
.article { padding: 8.5rem 0 5.5rem; }
.article .meta {
  font-family: var(--ui);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.article h1 {
  font-style: italic;
  font-weight: 500;
  max-width: 18ch;
  font-size: clamp(2.3rem, 5vw, 3.5rem);
  line-height: 1.15;
}
.article .lede {
  margin-bottom: 2.25rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.2rem;
}
.prose {
  margin-top: 0.25rem;
}
.prose p {
  margin: 0 0 1.35rem;
  text-wrap: pretty;
  orphans: 3;
  widows: 3;
}
.prose p:first-of-type::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 4.35rem;
  line-height: 0.78;
  padding: 0.22rem 0.65rem 0.1rem 0;
  margin: 0.08rem 0.05rem 0 0;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
}

/* ——— Contact form ——— */
form.contact { display: grid; gap: 1.15rem; max-width: 32rem; }
form.contact label {
  font-family: var(--ui);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
}
form.contact input,
form.contact textarea {
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-deep);
  padding: 0.75rem 0;
  color: inherit;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease;
}
form.contact input:focus,
form.contact textarea:focus { border-bottom-color: var(--ink); }
form.contact textarea { min-height: 8rem; resize: vertical; }

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.75rem 6vw 3rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 1.5rem 2rem;
  font-family: var(--ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 2.5rem;
  height: 1px;
  background: var(--brass-soft);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-brand span {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.16em;
}
.footer-brand::after {
  content: "·";
  color: var(--brass);
  font-size: 0.85rem;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.7;
  margin-top: 0.15rem;
}
.footer-season {
  margin: 0.45rem 0 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.85rem;
  font-family: var(--body);
  color: var(--muted);
  font-style: italic;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.35rem;
  justify-content: center;
}
.footer-email {
  justify-self: end;
  text-align: right;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.note { color: var(--muted); font-size: 1rem; }
.note.mailto-fallback { margin-top: 0.65rem; }
.note.mailto-fallback a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* Legacy start-here (unused; keep inert) */
.season-line {
  margin: 1.1rem 0 0;
  font-family: var(--ui);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.start-here { padding: 2.6rem 0 2.8rem; }
.start-here .kicker { margin-bottom: 1rem; }
.path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-family: var(--ui);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.path-list a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
}
.path-list a:hover { border-bottom-color: var(--ink); }

/* ——— Featured note ——— */
.featured-note {
  margin: 1.85rem 0 0.5rem;
  padding: 2.15rem 2rem 2.25rem 2.15rem;
  background: var(--cream);
  border: 1px solid var(--line);
  max-width: 38rem;
  position: relative;
  box-shadow: inset 3px 0 0 var(--brass-soft);
}
.band.paper .featured-note { background: var(--cream); }
.featured-note .kicker {
  margin-bottom: 0.85rem;
  letter-spacing: 0.18em;
}
.featured-note h2 {
  font-style: italic;
  font-size: clamp(1.85rem, 3.4vw, 2.45rem);
  margin: 0 0 0.7rem;
  max-width: none;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.featured-note .dek {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 32rem;
  text-wrap: pretty;
  line-height: 1.6;
}
.featured-note .more {
  font-family: var(--ui);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--brass-whisper);
  padding-bottom: 0.15rem;
  font-weight: 500;
  transition: border-color 0.2s ease;
}
.featured-note .more:hover { border-bottom-color: var(--ink); }

/* ——— Notes panel ——— */
.notes-panel {
  padding: 2.65rem 2.35rem 2.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  max-width: min(var(--max), 88vw);
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 0 1px transparent;
}
.notes-panel::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  border: 1px solid var(--brass-whisper);
  pointer-events: none;
}
.notes-panel .kicker,
.notes-panel h2,
.notes-panel .lede,
.notes-panel .signup {
  position: relative;
  z-index: 1;
}
.notes-panel .lede { max-width: 34rem; }
.notes-panel h2 { max-width: 22ch; }

/* ——— Practices ——— */
.pick-one {
  margin: 0.55rem 0 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--muted);
  line-height: 1.4;
}
.pick-one::before {
  content: "·";
  color: var(--brass);
  margin-right: 0.55rem;
  font-style: normal;
  opacity: 0.8;
}
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.35rem;
}
.practice-grid article {
  padding: 1.75rem 1.55rem 1.85rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: none;
  box-shadow: inset 0 2px 0 0 var(--brass-soft), inset 0 3px 0 0 var(--cream);
  scroll-margin-top: 5rem;
  transition:
    transform 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}
.practice-grid article:hover {
  transform: translateY(-1px);
  border-color: var(--line-deep);
  box-shadow:
    inset 0 2px 0 0 var(--brass),
    inset 0 3px 0 0 var(--cream),
    0 6px 18px rgba(8, 7, 6, 0.05);
}
.band.paper .practice-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: none;
  box-shadow: inset 0 2px 0 0 var(--brass-soft), inset 0 3px 0 0 var(--paper);
}
.band.paper .practice-grid article:hover {
  box-shadow:
    inset 0 2px 0 0 var(--brass),
    inset 0 3px 0 0 var(--paper),
    0 6px 18px rgba(8, 7, 6, 0.05);
}
.practice-grid article .kicker {
  letter-spacing: 0.18em;
  margin-bottom: 0.95rem;
}
.practice-grid article h3 {
  font-size: 1.55rem;
  font-style: italic;
  margin: 0 0 0.65rem;
  text-wrap: balance;
  line-height: 1.22;
}
.practice-grid article p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  text-wrap: pretty;
  font-size: 1.05rem;
}
.practice-grid .more {
  font-family: var(--ui);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--brass-whisper);
  padding-bottom: 0.12rem;
  transition: border-color 0.2s ease;
}
.practice-grid .more:hover { border-bottom-color: var(--ink); }

/* ——— Responsive ——— */
@media (min-width: 901px) {
  .band { padding: 6.5rem 0 7rem; }
}

@media (max-width: 800px) {
  .practice-grid { grid-template-columns: 1fr; }
  h2 { max-width: none; }
  .footer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding-top: 2.5rem;
  }
  .footer-links { justify-content: flex-start; }
  .footer-email { justify-self: start; text-align: left; }
  .footer-brand::after { display: none; }
}

@media (max-width: 700px) {
  .journal-list a {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1.35rem 0;
  }
  .journal-list a:hover { padding-left: 0; }
  .nav { padding: 1rem 5vw; letter-spacing: 0.08em; }
  .nav-links { gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; }
  .hero { padding: 6.75rem 0 3.5rem; min-height: 64vh; }
  .hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .nav-logo img { height: 40px; }
  .article h1 { max-width: none; }
  .featured-note {
    padding: 1.65rem 1.4rem 1.75rem 1.5rem;
    box-shadow: inset 2px 0 0 var(--brass-soft);
  }
  .notes-panel {
    padding: 1.85rem 1.4rem 2rem;
  }
  .notes-panel::before {
    top: 0.55rem;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.55rem;
  }
  .path-list { gap: 0.65rem 1.4rem; }
  .band { padding: 4.5rem 0 5rem; }
  .prose p:first-of-type::first-letter {
    font-size: 3.6rem;
    padding-right: 0.5rem;
  }
}

@media (max-width: 480px) {
  .nav-links { gap: 0.55rem; font-size: 0.65rem; letter-spacing: 0.1em; }
}

/* Mobile menu leftover (unused; kept inert — nav-links stay visible) */
.nav-menu {
  display: none;
  position: relative;
  margin: 0;
}
.nav-menu summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 0.35rem 0;
  user-select: none;
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-left: 0.45rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
  vertical-align: middle;
  opacity: 0.7;
}
.nav-menu[open] summary::after {
  transform: translateY(0.1rem) rotate(-135deg);
}
.nav-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  min-width: 11rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.55rem 0;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(11, 11, 11, 0.08);
  z-index: 30;
}
.nav-menu nav a {
  display: block;
  padding: 0.7rem 1.15rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
}
.nav-menu nav a:hover { background: rgba(26, 22, 18, 0.04); opacity: 1; }
.nav.on-dark .nav-menu summary { color: #fff; }
.nav.on-dark .nav-menu[open] summary { color: #fff; }

/* Form status */
[data-form-status] {
  margin: 0.9rem 0 0;
  font-size: 1.02rem;
  color: var(--muted);
  font-style: italic;
}
[data-form-status].is-ok { color: var(--ink); }
[data-form-status].is-error { color: #6b3a2e; font-style: normal; }
form.contact button:disabled,
.signup button:disabled { opacity: 0.55; cursor: wait; }
.signup [data-form-status],
form.contact [data-form-status] {
  flex: 1 1 100%;
  width: 100%;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
  .practice-grid article:hover,
  .btn:hover,
  .btn.solid:hover,
  .btn.light:hover,
  .btn.ghost:hover {
    transform: none;
  }
  .journal-list a:hover { padding-left: 0; }
}
