/* Lopiparo Press — Starter Library
   Palette drawn from the RD Pugs book cover + kitchen safety card */

:root {
  --ink: #1B2942;
  --ink-soft: #2A3B5C;
  --ivory: #F6F1E5;
  --ivory-dim: #EFE8D8;
  --gold: #C9A574;
  --gold-line: rgba(201, 165, 116, 0.55);
  --charcoal: #2A2620;
  --forest: #34513A;
  --rust: #7C3728;
  --display: 'Cormorant Garamond', serif;
  --body: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- Top band ---------- */
.band {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: 2.5rem 1.5rem 2.75rem;
}

.band .eyebrow { color: var(--gold); }

.band h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin: 0.5rem 0 0.75rem;
  letter-spacing: 0.01em;
}

.band p.sub {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  margin: 0;
}

/* ---------- Branch divider (signature element) ---------- */
.branch {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
  height: 64px;
}

.branch-wide {
  max-width: 100%;
  height: 90px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  text-align: center;
}

.hero img {
  width: 100%;
  max-width: 560px;
  border-radius: 2px;
  box-shadow: 0 18px 40px rgba(27, 41, 66, 0.18);
  border: 1px solid var(--gold-line);
}

.hero-copy {
  max-width: 620px;
  margin: 2rem auto 0;
}

.hero-copy p {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

/* ---------- Family photo ---------- */
.family-photo {
  max-width: 460px;
  margin: 2.5rem auto 0;
  text-align: center;
}

.family-photo img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(27, 41, 66, 0.14);
  border: 1px solid var(--gold-line);
}

.family-photo p {
  font-family: var(--display);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0.75rem 0 0;
}

/* ---------- Meet the Pugs ---------- */
.meet-pugs {
  max-width: 1080px;
  margin: 1rem auto 3rem;
  padding: 0 1.5rem;
}

.pug-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .pug-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .pug-cards { grid-template-columns: 1fr; }
}

.pug-card {
  background: #fff;
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  overflow: hidden;
  text-align: center;
}

.pug-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

.pug-card .pug-info {
  padding: 1.25rem 1rem 1.5rem;
}

.pug-card h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 0.15rem;
}

.pug-card .pug-title {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.pug-card p.pug-bio {
  font-size: 0.9rem;
  color: var(--charcoal);
  margin: 0 0 0.9rem;
}

.pug-card .pug-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}

.pug-card .pug-link:hover { color: var(--rust); }

/* ---------- Section: two books ---------- */
.library {
  max-width: 980px;
  margin: 1.5rem auto 3rem;
  padding: 0 1.5rem;
}

.library-title {
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ink);
  margin-bottom: 2.25rem;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  padding: 2rem 1.75rem;
  text-align: left;
}

.card .tag {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: block;
}

.card.companion .tag { color: var(--rust); }

.card h3 {
  font-family: var(--display);
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
}

.card p {
  font-size: 0.95rem;
  color: var(--charcoal);
  margin: 0;
}

/* ---------- Follow Along (link cards) ---------- */
.cards.follow-cards {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 720px) {
  .cards.follow-cards { grid-template-columns: 1fr; }
}

a.card {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

a.card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* ---------- Email capture ---------- */
.capture {
  max-width: 560px;
  margin: 0 auto 4rem;
  padding: 2.5rem 2rem;
  background: var(--ivory-dim);
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  text-align: center;
}

.capture h3 {
  font-family: var(--display);
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0 0 0.4rem;
}

.capture p.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}

/* Formspree form lands inside this wrapper */
.signup-form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signup-form-wrapper .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-form-wrapper input[type="email"] {
  display: block;
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 2px;
  width: 100%;
  max-width: 320px;
  background: #fff;
  color: var(--charcoal);
  box-sizing: border-box;
  margin: 0 0 0.85rem;
}

.signup-form-wrapper input[type="email"]:focus {
  outline: none;
  border-color: var(--ink);
}

.signup-form-wrapper button,
.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  background: var(--ink);
  color: var(--ivory);
  border: none;
  padding: 0.9rem 1.75rem;
  border-radius: 2px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: background 0.2s ease;
}

.signup-form-wrapper button:hover,
.btn:hover { background: var(--ink-soft); }

.signup-form-wrapper button:disabled { opacity: 0.6; cursor: default; }

.capture .form-message {
  margin-top: 1rem;
  font-size: 0.85rem;
  min-height: 1rem;
}

.capture .form-message.success { color: var(--forest); font-weight: 600; }
.capture .form-message.error { color: var(--rust); font-weight: 600; }

.btn.gold {
  background: var(--gold);
  color: var(--ink);
}

.btn.gold:hover { background: #d9bd91; }

.fine-print {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 4rem;
  opacity: 0.8;
}

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: 2.25rem 1.5rem;
  font-size: 0.85rem;
}

footer .imprint {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

/* ---------- Delivery page specific ---------- */
.delivery-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
  text-align: center;
}

.delivery-main h2 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.delivery-main > p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.downloads {
  display: grid;
  gap: 1rem;
  max-width: 460px;
  margin: 0 auto 3rem;
}

.download-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  padding: 1.1rem 1.4rem;
  text-decoration: none;
  color: var(--ink);
  text-align: left;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.download-btn:hover {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.download-btn .dl-title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  display: block;
}

.download-btn .dl-sub {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.download-btn .arrow {
  font-size: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}

.soft-cta {
  max-width: 460px;
  margin: 0 auto 3rem;
  padding: 1.75rem;
  background: var(--ivory-dim);
  border-radius: 3px;
  text-align: center;
}

.soft-cta p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.teaser {
  max-width: 460px;
  margin: 0 auto 4rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--gold-line);
}

.teaser .eyebrow { color: var(--rust); }

.teaser p {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0.5rem 0 0;
}
