/* Homer & Mae */
:root {
  --black: #0b0b0b;
  --ink: #1a1612;
  --cream: #f3eee4;
  --paper: #faf6ee;
  --muted: #6f675c;
  --line: rgba(26,22,18,0.12);
  --max: 1080px;
  --read: 40rem;
  --serif: "Fraunces", "Source Serif 4", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
  --ui: "Outfit", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { hanging-punctuation: first last; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.2rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(26,22,18,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 {
  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 {
  min-height: 68vh;
  background: var(--black);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem 0 4.25rem;
}
.hero h1 {
  font-style: italic;
  color: #fff;
  max-width: 18ch;
  text-wrap: balance;
}
.hero .kicker { color: rgba(255,255,255,0.52); }
.hero .lede { color: rgba(255,255,255,0.84); max-width: 38rem; text-wrap: pretty; }
.hero a:hover { color: var(--cream); }
.btn.light { background: var(--cream); color: var(--black); border-color: var(--cream); }
.btn.ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn.light:hover, .btn.ghost:hover { opacity: 1; background: #fff; color: var(--black); border-color: #fff; }

.wrap { width: min(var(--max), 88vw); margin: 0 auto; }
.read { width: min(var(--read), 88vw); margin: 0 auto; }
.band { padding: 5rem 0 5.5rem; }
.band.paper { background: var(--paper); }

.kicker {
  font-family: var(--ui);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

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.65rem, 3vw, 2.25rem); margin: 0 0 0.9rem; max-width: 28ch; }
.lede { font-size: 1.22rem; max-width: 38rem; color: var(--ink); text-wrap: pretty; }

.journal-list { list-style: none; margin: 2.2rem 0 0; padding: 0; }
.journal-list li { border-top: 1px solid var(--line); }
.journal-list a {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem 2rem;
  padding: 1.55rem 0;
  text-decoration: none;
  align-items: baseline;
}
.journal-list a:hover h3 { color: var(--ink); }
.journal-list .date {
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.journal-list h3 { font-size: 1.45rem; margin: 0 0 0.3rem; font-style: italic; text-wrap: balance; }
.journal-list p { margin: 0; color: var(--muted); font-size: 1.02rem; text-wrap: pretty; }

.cta-row { margin-top: 2.4rem; display: flex; gap: 0.85rem; flex-wrap: wrap; }
.btn {
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  padding: 0.88rem 1.3rem;
  display: inline-block;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn.solid { background: var(--black); color: var(--cream); border-color: var(--black); }
.btn.solid:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); opacity: 1; }
.btn:hover { opacity: 1; color: var(--ink); border-color: var(--ink); }

.signup { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.25rem; max-width: 30rem; }
.signup input[type="email"] {
  flex: 1 1 16rem;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0.8rem 0;
  font: inherit;
  color: inherit;
  outline: none;
}
.signup input::placeholder { color: var(--muted); }
.signup input:focus { border-bottom-color: var(--ink); }

.article { padding: 8.2rem 0 5rem; }
.article .meta {
  font-family: var(--ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.article h1 { font-style: italic; font-weight: 500; max-width: 18ch; }
.prose p { margin: 0 0 1.2rem; text-wrap: pretty; orphans: 3; widows: 3; }
.prose p:first-of-type::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 3.6rem;
  line-height: 0.85;
  padding: 0.18rem 0.5rem 0 0;
  font-weight: 500;
  color: var(--ink);
}

form.contact { display: grid; gap: 1.1rem; max-width: 32rem; }
form.contact label {
  font-family: var(--ui);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: grid;
  gap: 0.4rem;
}
form.contact input, form.contact textarea {
  font: inherit;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  padding: 0.7rem 0;
  color: inherit;
  outline: none;
  width: 100%;
}
form.contact input:focus, form.contact textarea:focus { border-bottom-color: var(--ink); }
form.contact textarea { min-height: 8rem; resize: vertical; }

.footer {
  border-top: 1px solid var(--line);
  padding: 1.8rem 6vw 2.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--ui);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }
.note { color: var(--muted); font-size: 1rem; }

.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}
.practice-grid article {
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.band.paper .practice-grid article { background: var(--paper); border: 1px solid var(--line); }
.practice-grid article h3 {
  font-size: 1.5rem;
  font-style: italic;
  margin: 0 0 0.55rem;
  text-wrap: balance;
}
.practice-grid article p { margin: 0 0 1rem; color: var(--muted); text-wrap: pretty; }
.practice-grid .more {
  font-family: var(--ui);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

@media (max-width: 800px) {
  .practice-grid { grid-template-columns: 1fr; }
  h2 { max-width: none; }
}
@media (max-width: 700px) {
  .journal-list a { grid-template-columns: 1fr; gap: 0.3rem; padding: 1.3rem 0; }
  .nav { padding: 1rem 5vw; letter-spacing: 0.1em; }
  .nav-links { gap: 0.95rem; }
  .hero { padding: 6.5rem 0 3.2rem; min-height: 62vh; }
  .nav-logo img { height: 40px; }
  .article h1 { max-width: none; }
}
