/* ==========================================================================
   Proper Tools — home.css

   Homepage-specific styles.
   Loaded after main.css. All var() references are from main.css.
   Fibonacci spacing. φ type scale. Doves Headline at display size.

   Newsletter form styles live in main.css as a shared component.
   They apply here by inheritance — no duplication needed.

   "Wind blowing between words."
   ========================================================================== */


/* ── Hero section ── */

.hero-section {
  margin-top: var(--sp-5);       /* 40px — generous but not vast */
}

.hero-section .section-card {
  padding-top: var(--sp-5);
  padding-bottom: calc(var(--sp-5) + 4px);
}

.hero-kicker {
  font-family: system-ui, sans-serif;   /* deliberate contrast with Doves */
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(138,90,62,0.92);          /* --pt-accent, slightly softened */
  margin-bottom: 14px;
}

/* Doves Headline at true display scale.
   max-width: 10.5ch forces the line break without a <br> dependency.
   text-wrap: balance keeps the two lines optically even. */
.hero-section .section-card h1 {
  font-size: clamp(2.45rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 10.5ch;
  text-wrap: balance;
  margin-bottom: var(--sp-3);
}

.hero-section .section-card h1 em {
  font-style: italic;
  color: var(--pt-accent);
  /* Doves italic at this size: the knife going in */
}

.hero-body {
  max-width: 52ch;
  margin-top: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.hero-body p {
  font-size: 1.02rem;
  color: rgba(0,0,0,0.79);
  line-height: 1.66;
  margin-top: var(--sp-2);
}

.hero-body p:first-child {
  margin-top: 0;
}

/* The Titanic line.
   Doves Headline italic, slightly larger than body, left-ruled.
   People who know will feel it land.
   People who don't will read it as the most precise thing on the page,
   which it is. */
.titanic-line {
  font-family: "Doves Headline", Georgia, serif;
  font-style: italic;
  font-size: 1.38rem;
  max-width: 31ch;
  padding-left: var(--sp-2);
  border-left: 2px solid rgba(138,90,62,0.24);
  color: var(--pt-ink);
  line-height: 1.45;
  margin-top: var(--sp-3);
}


/* ── Hero handoff ──
   Single italic preview line + primary CTA button.
   Sets up the Practice positioning before the click. */

.hero-handoff {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(0,0,0,0.08);
  font-size: 1.02rem;
}

.hero-handoff .handoff-line {
  font-style: italic;
  color: rgba(0,0,0,0.72);
  margin: 0 0 var(--sp-2);
  max-width: 52ch;
}

.hero-handoff a.handoff-link {
  font-weight: 500;
}


/* ── Card accent colours ──
   Chromatic hierarchy down the page:
     stakes  → brown   (the problem, somber)
     work    → neutral (operational, utilitarian)
     ethics  → green   (values, singular green card)
     notes   → neutral (archive, quiet)
*/

.card-stakes  { border-left-color: rgba(138,90,62,0.35); }
.card-work    { border-left-color: rgba(0,0,0,0.10);     }
.card-notes   { border-left-color: rgba(0,0,0,0.10);     }


/* ── Section h2 — slightly tighter than main.css default ── */

.section-card h2 {
  font-size: 1.72rem;
  letter-spacing: -0.02em;
}


/* ── Deadline block ── */

.deadline-block {
  margin: var(--sp-3) 0;
  border-left: 2px solid rgba(138,90,62,0.2);
  padding-left: var(--sp-3);
}

.deadline-row {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.deadline-row:last-child {
  border-bottom: none;
}

/* Doves Headline figures at this size are extraordinary.
   Let them do the heavy lifting. */
.deadline-date {
  font-family: "Doves Headline", Georgia, serif;
  font-size: 1.34rem;
  color: rgba(138,90,62,0.97);
  white-space: nowrap;
  min-width: 9ch;
  flex-shrink: 0;
  line-height: 1.3;
}

.deadline-now {
  color: var(--pt-green);
  font-style: italic;
}

.deadline-desc {
  font-size: var(--fs-sm);
  color: rgba(0,0,0,0.65);
  line-height: 1.45;
}

.deadline-desc code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: rgba(0,0,0,0.05);
  padding: 1px 4px;
  border-radius: 2px;
}


/* ── Pullquote ── */
/* .essay .lede register, adapted for section-card context */

.pullquote {
  font-family: "Doves Headline", Georgia, serif;
  font-size: 1.34rem;
  line-height: 1.5;
  color: rgba(0,0,0,0.80);
  padding-left: var(--sp-2);
  border-left: 3px solid rgba(0,0,0,0.14);
  margin: var(--sp-3) 0;
  font-style: normal;
}


/* ── Work + Commons combined card ──
   Commons appears as a sub-block inside .card-work,
   separated by a faint rule. */

.card-work .work-commons {
  margin-top: var(--sp-5);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(0,0,0,0.08);
}

.card-work .work-commons-kicker {
  font-size: var(--fs-sm);
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.52);
  margin-bottom: var(--sp-1);
}

.card-work .work-commons h3 {
  font-family: "Doves Headline", Georgia, serif;
  font-size: var(--fs-md);
  margin: 0 0 var(--sp-2);
  color: var(--pt-ink);
}

.card-commons .commons-card-kicker {
  font-size: var(--fs-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: var(--sp-1);
}

.card-commons .commons-lede {
  font-style: italic;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: var(--sp-2);
}

/* ── Ethics card ──
   The sole green-accented card on the homepage.
   Chromatic sibling to the Oath page and the Oath Beneath coda
   on /ethics/. Quiet but present. */

.card-ethics {
  border-left: 3px solid rgba(76,125,74,0.35);
  background:
    linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0.98)),
    radial-gradient(circle at top left, rgba(76,125,74,0.04), transparent 50%);
}

.card-ethics .ethics-kicker {
  font-size: var(--fs-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(76,125,74,0.82);
  margin-bottom: var(--sp-1);
}

.card-ethics h2 {
  font-family: "Doves Headline", Georgia, serif;
  margin-top: 0;
}

.card-ethics .ethics-lede {
  font-family: Georgia, "Iowan Old Style", serif;
  font-style: italic;
  font-size: 1.08rem;
  color: rgba(0,0,0,0.74);
  padding: var(--sp-1) 0 var(--sp-1) var(--sp-2);
  border-left: 2px solid rgba(76,125,74,0.22);
  margin: var(--sp-2) 0 var(--sp-3);
}


/* ── Field Notes teasers ── */

.field-notes-list {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(0,0,0,0.08);
}

.field-note-teaser {
  margin-top: var(--sp-3);
}

.field-note-teaser:first-child {
  margin-top: 0;
}

.field-note-teaser .teaser-meta {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.50);
  margin-bottom: 2px;
}

.field-note-teaser .teaser-title {
  font-family: "Doves Headline", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.25;
  margin: 0 0 4px;
}

.field-note-teaser .teaser-title a {
  color: var(--pt-ink);
  text-decoration: none;
}

.field-note-teaser .teaser-title a:hover {
  text-decoration: underline;
  text-decoration-color: rgba(76,125,74,0.5);
}

.field-note-teaser .teaser-desc {
  font-size: var(--fs-sm);
  color: rgba(0,0,0,0.70);
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}

.field-notes-archive-link {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
}

/* Tighter newsletter block inside Field Notes card */
.card-notes .newsletter-form-block {
  margin-top: var(--sp-5);
}


/* ── Responsive ── */

@media (max-width: 600px) {
  .hero-section .section-card h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    letter-spacing: -0.02em;
  }

  .deadline-row  { gap: var(--sp-2); }
  .deadline-date { min-width: 7ch; font-size: var(--fs-base); }
}
