/* Pepper's Cozy Corner. Colors and sizes follow the MailerLite version of the page. */
:root {
  color-scheme: light;
  --bg: #e6f1ec;
  --ink: #4a4040;
  --heading: #7b4335;
  --heading-hover: #5f3228;
  --violet: #6b5b8c;
  --violet-soft: #eeeaf5;
  --focus: #c9bedd;
  --rule: #c9bedd;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 768px) { .page { padding: 0 32px; } }

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

h1, h2 { margin: 0 0 12px; font-weight: 600; letter-spacing: -0.025rem; line-height: 1.15; text-wrap: balance; }
h1 { color: var(--heading); font-size: 36px; text-align: center; }
h2 { color: var(--violet); font-size: 20px; }
@media (min-width: 768px) { h1 { font-size: 40px; } }

p { margin: 0 0 8px; overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }

a { color: var(--violet); text-decoration: underline; }
a:hover { color: #978caf; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

hr {
  border: 0;
  border-top: 2px solid var(--rule);
  margin: 32px 0;
}

/* Welcome */
.welcome { padding-top: 24px; }
.banner { width: 100%; max-width: 1088px; margin: 0 auto 32px; border-radius: 12px; }
.lede { font-size: 24px; font-weight: 400; line-height: 1.5; text-align: center; color: var(--ink); }

/* Content blocks */
.block { padding: 0; }
.block p { max-width: 70ch; }
.block .actions { max-width: none; margin-top: 16px; text-align: center; }

.signoff { text-align: center; margin: 0 auto; }

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 24px;
}
@media (min-width: 1024px) { .about { grid-template-columns: 1fr 1fr; gap: 48px; } }
.portrait { width: 100%; max-width: 520px; border-radius: 12px; justify-self: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  padding: 2px 22px;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.375;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
@media (min-width: 768px) { .btn { width: auto; } }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.btn-primary { background: var(--heading); color: #fff; border: 2px solid var(--heading); }
.btn-primary:hover { background: var(--heading-hover); border-color: var(--heading-hover); color: #fff; }

.btn-secondary { background: #fff; color: var(--violet); border: 2px solid var(--violet); font-weight: 600; transition: background 0.2s ease; }
.btn-secondary:hover { background: var(--violet-soft); color: var(--violet); }

/* Footer */
.site-footer {
  max-width: 72rem;
  margin: 0 auto;
  padding: 24px 16px 48px;
  text-align: center;
}
@media (min-width: 768px) { .site-footer { padding-left: 32px; padding-right: 32px; } }
.site-footer .actions { margin: 0 0 32px; }
.legal { margin: 0; }
