/* ========================================
   michaelplant.com — "old Lakewood calling card"
   Paper, ink, engraved portrait, single-ruled sheet, small-caps display,
   Garamond body. Mirrors the printed card.
   ======================================== */

:root {
  --paper: #efe8da;
  --ink: #1f1c18;
  --ink-soft: #4a443b;
  --faint: #857b6d;
  --rule: #1f1c18;
  --rule-soft: rgba(31, 28, 24, 0.28);
  --wash: rgba(31, 28, 24, 0.04);

  --display: "Cormorant SC", "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --body: "EB Garamond", Garamond, "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --measure: 34rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 2.5rem;
  --space-2xl: 3.5rem;

  /* Compatibility names used by search.css (neighborhood pages) */
  --color-bg: var(--paper);
  --color-bg-alt: var(--wash);
  --color-border: var(--rule-soft);
  --color-text: var(--ink);
  --color-text-muted: var(--ink-soft);
  --color-text-light: var(--faint);
  --color-real-estate: var(--ink);
  --font-body: var(--body);
  --radius: 0;

  color-scheme: light;
}

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

html { background: var(--paper); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.6;
  padding: 28px 16px 40px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .25  0 0 0 0 .2  0 0 0 0 .12  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- The sheet ---------- */
.sheet {
  max-width: var(--measure);
  margin-inline: auto;
  border: 1.5px solid var(--rule);
  padding: clamp(1.75rem, 6vw, 2.75rem) clamp(1.25rem, 6vw, 2.75rem) 2rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Wider sheet for long reading pages (neighborhood guides, essays) */
.sheet--wide { max-width: 42rem; }

/* ---------- Type ---------- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(1.9rem, 7vw, 2.4rem); }
h2 { font-size: 1.4rem; margin-top: var(--space-lg); margin-bottom: var(--space-sm); }
h3 { font-size: 1.15rem; margin-top: var(--space-md); margin-bottom: var(--space-xs); }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: 0.35rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-lg) 0; }
strong { font-weight: 500; }
blockquote { margin: var(--space-md) 0; padding-left: var(--space-md); border-left: 1px solid var(--rule); font-style: italic; color: var(--ink-soft); }

/* ---------- Masthead (inner pages) ---------- */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-sm);
  flex-wrap: wrap;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--rule);
}

.masthead-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}

/* Real-estate pages: brokerage shown at the same size as the name (Ohio OAC 1301:5-1-02) */
.masthead-brokerage {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}

.masthead-sep { color: var(--faint); margin: 0 0.35em; font-weight: 500; }

.masthead-place {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

/* ---------- Page header + body ---------- */
.page-content { display: flex; flex-direction: column; gap: var(--space-lg); }
.page-hero { display: flex; flex-direction: column; gap: 0.5rem; }
.page-kicker {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0;
}

.page-body > *:first-child { margin-top: 0; }
.page-body > p:first-child { font-size: 1.3rem; line-height: 1.5; }

/* ---------- Calling-card top (home + /connect) ---------- */
.top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.portrait { width: min(18rem, 80%); display: block; margin-bottom: 0.6rem; }

.name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 7vw, 2.4rem);
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0;
}

.place {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin: 0;
}

.intro { display: flex; flex-direction: column; gap: 0.9rem; }
.intro p { margin: 0; }
.hi { font-weight: 500; font-size: 1.45rem; line-height: 1.3; }
.lead { font-size: 1.3rem; line-height: 1.5; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.6rem; }

.btn {
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.35rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn.solid { background: var(--ink); color: var(--paper); }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--ink-soft); }

.number { margin: 0; color: var(--ink-soft); font-size: 1.05rem; font-variant-numeric: lining-nums; }

.copy {
  font: inherit;
  font-size: 0.95rem;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--faint);
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0;
  margin-left: 0.4rem;
}

/* ---------- Sections + ruled entry lists ---------- */
section { display: flex; flex-direction: column; gap: 0.75rem; }
section > h2 { margin: 0; font-size: 1.3rem; }

.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.list li { border-bottom: 1px solid var(--rule); margin: 0; }

.entry {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.1rem 1rem;
  align-items: baseline;
  padding: 0.9rem 0.1rem;
  text-decoration: none;
  color: var(--ink);
}

.entry .t { font-weight: 500; font-size: 1.2rem; min-width: 0; }
.entry .d { grid-column: 1 / 2; color: var(--ink-soft); font-size: 1.05rem; min-width: 0; }
.entry .go { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 1rem; white-space: nowrap; transition: transform 0.15s ease; }
a.entry:hover .go { transform: translateX(3px); }
a.entry:hover .t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Coffee / contact block ---------- */
.bottom { gap: 0.25rem; }
.bottom .big { font-family: var(--display); font-weight: 600; font-size: 1.7rem; letter-spacing: 0.03em; margin: 0; line-height: 1.2; }
.bottom .sub { margin: 0 0 0.75rem; font-style: italic; color: var(--ink-soft); font-size: 1.2rem; }

.contact { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; margin: 0; font-size: 1.05rem; }
.contact dt { color: var(--faint); }
.contact dd { margin: 0; font-variant-numeric: lining-nums; min-width: 0; overflow-wrap: anywhere; }

.toast { min-height: 1.4em; font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* ---------- Fine print ---------- */
.fine {
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--faint);
}

.fine p { margin: 0 0 0.35rem; }
.fine a { color: var(--ink-soft); }
.fine-links a { margin-right: 0.9rem; }

.brokerage-logo { display: block; width: 130px; margin: 0 0 0.6rem; }

/* ---------- Content helpers used in markdown ---------- */
.callout, .key-takeaway {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: var(--space-md) 0;
  margin: var(--space-lg) 0;
}

.key-takeaway-heading {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0 0 var(--space-xs);
}

.key-takeaway ul { margin-bottom: 0; }

.pull-quote {
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  border-left: 1px solid var(--rule);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
}

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

.page-cta-inline { border-top: 1px solid var(--rule); padding-top: var(--space-md); }
.page-cta-inline p { margin-bottom: 0.25rem; }

.projects-cta { margin: var(--space-md) 0; }

/* ---------- Mobile contact bar ---------- */
.contact-bar { display: none; }

@media (max-width: 640px) {
  .contact-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    background: var(--paper);
    border-top: 1.5px solid var(--rule);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .contact-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    font-weight: 500;
    font-size: 1.05rem;
    text-decoration: none;
  }

  .contact-bar a + a { border-left: 1px solid var(--rule); }

  /* The site's one primary action gets the filled cell and twice the width (thumb-friendly, 52px+). */
  .contact-bar { display: flex; }
  .contact-bar a { flex: 1; }
  .contact-bar a.primary { flex: 2; background: var(--ink); color: var(--paper); }

  body.has-contact-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
  /* Phones: drop the ruled frame so content gets the full width (16px gutter stays). */
  body { font-size: 1.125rem; padding-top: 16px; }
  .sheet { border: 0; padding: 0.5rem 0 1.5rem; }
  .portrait { width: min(13rem, 62%); }
  .top--compact .portrait { width: min(9.5rem, 45%); }
  .lead, .page-body > p:first-child { font-size: 1.2rem; }
  .entry { grid-template-columns: 1fr; }
  .entry .go { grid-column: 1; grid-row: auto; margin-top: 0.3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  body { background: none; padding: 0; }
  .contact-bar, .actions { display: none; }
}

/* ---------- CTA system (shared by all three sites) ----------
   One filled button per page = the site's primary action. Everything else is outlined or a text link.
   It appears at the top, again after the proof (.cta-block), and in the phone bar. */
.reassure { margin: 0.35rem 0 0; font-size: 1rem; color: var(--ink-soft); font-style: italic; }
.cta-block { border-top: 1.5px solid var(--rule); border-bottom: 1.5px solid var(--rule); padding: 1.1rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.cta-block .big { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.03em; line-height: 1.2; margin: 0; }
.cta-block p { margin: 0; }
.cta-block .actions { margin-top: 0.2rem; }
.text-link { font-size: 1.05rem; }

/* Answer-first Q&A and bylines (realtor + Reclaim) */
.faq-list { display: flex; flex-direction: column; gap: 0.35rem; }
.faq-list h2 { margin: 0 0 0.4rem; }
.faq-list h3 { margin: 0.9rem 0 0.1rem; font-family: var(--body); font-weight: 500; font-size: 1.15rem; letter-spacing: 0; }
.faq-list p { margin: 0; color: var(--ink-soft); }
.byline { margin: 0; font-size: 0.95rem; color: var(--faint); font-style: italic; }
.facts { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 0.4rem 1rem; margin: 0; border-top: 1px solid var(--rule); padding-top: 0.8rem; }
.facts dt { color: var(--faint); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 0.1rem; } .facts dd { margin-bottom: 0.6rem; } }
