/* Latest from Home Instead — styles ported from the Claude Design file.
   Colors: deep green #2c4f27, lime #deee6a, cream #faffef, sky #cfeafd */

:root {
  --green: #2c4f27;
  --green-dark: #1f3a1b;
  --lime: #deee6a;
  --cream: #faffef;
  --sky: #cfeafd;
  --ink: #1a1f18;
  --body: #3d4a39;
  --muted: #5a6655;
  --line: #e6ecd8;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }
a:hover { color: #1d3619; }
a:focus-visible, .btn:focus-visible, .card:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
.site-header { background: var(--green); padding: 0 clamp(20px, 5vw, 64px); }
.site-header .inner {
  max-width: 1200px; margin: 0 auto; height: 76px;
  display: flex; align-items: center;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 44px; width: auto; display: block; }
.logo .wordmark { font-family: var(--serif); font-size: 28px; color: var(--cream); }

main { flex: 1; padding: 0 clamp(20px, 5vw, 64px); }
.wrap { max-width: 1200px; margin: 0 auto; }

/* Intro */
.intro { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.intro h1 {
  font-family: var(--serif); font-weight: 400; color: var(--green);
  font-size: clamp(40px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.01em;
  margin: 0 0 20px; text-wrap: balance;
}
.intro p {
  font-size: clamp(17px, 1.6vw, 20px); line-height: 1.5; color: var(--body);
  margin: 0; text-wrap: pretty;
}

/* Debbie's photo floats to the right of the headline */
.intro.has-photo {
  display: grid; grid-template-columns: 1fr auto; column-gap: clamp(20px, 5vw, 72px);
  align-items: center; padding-top: clamp(32px, 5vw, 56px);
}
.intro.has-photo h1 { grid-column: 1; align-self: end; }
.intro.has-photo p { grid-column: 1; align-self: start; }
.debbie {
  grid-column: 2; grid-row: 1 / span 2; margin: 0; position: relative;
  width: clamp(124px, 21vw, 260px);
}
.debbie img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 18px 28px rgba(44, 79, 39, 0.28));
}
@media (max-width: 560px) {
  .intro.has-photo h1 { font-size: clamp(34px, 10vw, 44px); }
}

/* Featured email */
.feature {
  background: #fff; border-radius: 28px; padding: clamp(20px, 4vw, 56px);
  display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); align-items: center;
  box-shadow: 0 1px 0 rgba(44,79,39,0.06), 0 24px 60px -30px rgba(44,79,39,0.25);
}
.feature-visual {
  flex: 1 1 340px; min-width: 0; background: var(--sky); border-radius: 22px;
  padding: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px) 0; overflow: hidden;
  display: block;
}
.browser {
  background: #fff; border-radius: 16px 16px 0 0;
  box-shadow: 0 20px 50px -20px rgba(20,40,60,0.35); overflow: hidden;
}
.browser-bar {
  height: 36px; display: flex; align-items: center; gap: 7px;
  padding: 0 14px; border-bottom: 1px solid #eef0e8;
}
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e3e6dc; }
.browser-view { max-height: clamp(360px, 42vw, 520px); overflow: hidden; background: var(--cream); }
.browser-view img { width: 100%; height: auto; display: block; }
.browser-view.empty {
  height: clamp(360px, 42vw, 520px);
  background: repeating-linear-gradient(135deg, #f3f7e6 0 10px, #eaf0d8 10px 20px);
}

.feature-text {
  flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column;
  align-items: flex-start; gap: 20px;
}
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill {
  background: var(--lime); color: var(--green); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px;
}
.date { font-size: 15px; color: var(--muted); }
.feature-title {
  font-family: var(--serif); font-weight: 400; color: var(--green);
  font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; margin: 0; text-wrap: balance;
}
.feature-preview {
  font-size: 18px; line-height: 1.55; color: var(--body);
  margin: 0; max-width: 440px; text-wrap: pretty;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green); color: #fff; text-decoration: none; font-weight: 700;
  border-radius: 999px;
  transition: background .2s, transform .2s, box-shadow .2s, color .2s;
}
.btn:hover { background: var(--green-dark); color: var(--lime); transform: translateY(-2px); }
.btn-lg {
  margin-top: 12px; font-size: 17px; padding: 18px 28px;
  box-shadow: 0 8px 20px -10px rgba(44,79,39,0.6);
}
.btn-lg:hover { box-shadow: 0 14px 28px -12px rgba(44,79,39,0.7); }
.btn-sm { font-size: 16px; padding: 14px 24px; }

/* Opt-in band */
.optin {
  margin: clamp(40px, 6vw, 64px) 0; background: var(--lime); border-radius: 20px;
  padding: 20px clamp(20px, 3vw, 32px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.optin p { margin: 0; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); color: var(--green); }

/* Opt-in popup */
.modal {
  border: 0; padding: 0; background: #fff; color: var(--ink);
  width: min(92vw, 520px); max-height: 92vh; border-radius: 28px;
  box-shadow: 0 30px 80px -30px rgba(20, 40, 20, 0.55);
}
.modal::backdrop { background: rgba(26, 31, 24, 0.55); }
.modal-inner { position: relative; padding: clamp(28px, 6vw, 48px); }
.modal h2 {
  font-family: var(--serif); font-weight: 400; color: var(--green);
  font-size: clamp(30px, 5vw, 38px); line-height: 1.08; margin: 0 40px 12px 0;
}
.modal p { font-size: 17px; line-height: 1.5; color: var(--body); margin: 0 0 24px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: var(--cream); color: var(--green);
  font-size: 26px; line-height: 1; cursor: pointer; transition: background .2s;
}
.modal-close:hover { background: var(--lime); }
.modal-inner.bare { padding: 16px; }
.modal-inner.bare .modal-form { min-height: 120px; }
.modal-close { z-index: 2; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.placeholder-form { display: flex; flex-direction: column; gap: 14px; }
.placeholder-form input {
  width: 100%; padding: 16px 22px; font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1.5px solid #c9d6b4; border-radius: 999px;
}
.placeholder-form input:focus { outline: 3px solid var(--lime); border-color: var(--green); }
.placeholder-form .btn { justify-content: center; margin-top: 0; border: 0; cursor: pointer; font-family: inherit; }
.placeholder-form .note { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }

/* Archive */
.archive { padding-bottom: clamp(64px, 8vw, 112px); }
.archive h2 {
  font-family: var(--serif); font-weight: 400; color: var(--green);
  font-size: clamp(30px, 3.4vw, 42px); margin: 0 0 32px;
}
.archive .empty {
  margin: 0; padding: 32px; background: #fff; border: 1px dashed #c9d6b4;
  border-radius: 20px; font-size: 18px; line-height: 1.5; color: var(--muted);
}
.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: 20px;
  overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-4px); color: inherit;
  box-shadow: 0 18px 40px -22px rgba(44,79,39,0.45); border-color: #c9d6b4;
}
.card-thumb {
  aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(135deg, #f3f7e6 0 10px, #eaf0d8 10px 20px);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-date { font-size: 14px; color: var(--muted); }
.card h3 {
  font-family: var(--serif); font-weight: 400; color: var(--green);
  font-size: 22px; line-height: 1.2; margin: 0 0 8px; text-wrap: pretty;
}
.card-link {
  margin-top: auto; font-size: 15px; font-weight: 700; color: var(--green);
  display: flex; align-items: center; gap: 6px;
}

/* Footer */
.site-footer { background: var(--green); color: var(--cream); padding: 32px clamp(20px, 5vw, 64px); }
.site-footer .inner {
  max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.5;
}
.site-footer strong { font-weight: 700; }
.site-footer span { color: #d6e2cf; }

@media (prefers-reduced-motion: reduce) {
  .btn, .card { transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
