:root {
  --ink: #2d2117;
  --brown: #6d4423;
  --red: #c83d24;
  --blue: #166998;
  --green: #486b24;
  --leaf: #dfe7b8;
  --gold: #d89632;
  --paper: #fff4da;
  --paper-deep: #f4d4a2;
  --cream: #fff9eb;
  --shadow: 0 20px 50px rgba(51, 35, 18, 0.18);
  --line: rgba(83, 51, 21, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Trebuchet MS", Arial, sans-serif;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 34px)); margin-inline: auto; }

.site-header {
  position: absolute;
  z-index: 20;
  top: 14px;
  left: 50%;
  width: min(1180px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 14px;
  border: 2px solid rgba(91, 55, 22, 0.35);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 247, 224, 0.96), rgba(236, 206, 154, 0.94));
  box-shadow: 0 8px 22px rgba(41, 29, 15, 0.18);
}

.brand-sign {
  min-width: 206px;
  padding: 8px 17px 9px;
  color: var(--red);
  border: 2px solid rgba(104, 61, 24, 0.35);
  border-radius: 8px;
  background: rgba(255, 250, 233, 0.92);
  font-family: Georgia, "Trebuchet MS", serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 0.82;
  text-decoration: none;
  text-shadow: 0 1px #fff;
}
.brand-sign small { display: block; color: var(--ink); font-size: 1.05rem; letter-spacing: 0; }

.main-nav { display: flex; align-items: center; gap: 8px; overflow-x: auto; }
.main-nav a {
  flex: 0 0 auto;
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.58); color: var(--red); }

.hero {
  position: relative;
  overflow: hidden;
  background: #283d1c;
}
.hero-map {
  width: 100%;
  height: auto;
}
.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(35, 24, 15, 0.5), transparent);
  pointer-events: none;
}
.map-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.map-hotspot {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 249, 235, 0);
  border-radius: 8px;
  color: transparent;
  text-decoration: none;
  pointer-events: auto;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}
.map-hotspot span {
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 247, 222, 0.94);
  color: var(--brown);
  font-size: 0.84rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.map-hotspot:hover,
.map-hotspot:focus-visible {
  border-color: rgba(255, 249, 235, 0.88);
  background: rgba(255, 249, 235, 0.16);
  box-shadow: 0 0 0 4px rgba(200, 61, 36, 0.34);
  outline: 0;
}
.map-hotspot:hover span,
.map-hotspot:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}
.hotspot-betty { left: 1.6%; top: 5.4%; width: 10%; height: 16%; }
.hotspot-harley { left: 84.6%; top: 44%; width: 13.5%; height: 18%; }
.hotspot-dog-park { left: 38.8%; top: 35%; width: 23%; height: 36%; }
.hotspot-binx { left: 1.4%; top: 68%; width: 13%; height: 17%; }
.hotspot-lady { left: 86%; top: 5.5%; width: 11%; height: 16%; }
.hotspot-ahsoka { left: 89.4%; top: 78%; width: 9.4%; height: 14%; }
.hero-content {
  position: relative;
  width: min(650px, calc(100% - 34px));
  margin-left: max(17px, calc((100vw - 1160px) / 2));
  padding: 26px 28px 28px;
  border: 3px solid rgba(105, 63, 25, 0.48);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 247, 220, 0.95), rgba(239, 205, 145, 0.93));
  box-shadow: var(--shadow);
}
.eyebrow, .kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: Georgia, "Trebuchet MS", serif; letter-spacing: 0; line-height: 0.95; }
h1 { color: var(--ink); font-size: clamp(3.5rem, 8.5vw, 7.2rem); max-width: 9ch; }
h2 { font-size: clamp(2.35rem, 4.6vw, 4.2rem); }
h3 { font-size: 2rem; }
.hero-content p:not(.eyebrow) { max-width: 48ch; margin: 14px 0 0; font-size: 1.16rem; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button, button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font: 900 0.95rem "Trebuchet MS", Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.button.primary, button { color: #fff; background: var(--red); box-shadow: inset 0 -3px rgba(88, 22, 12, 0.22); }
.button.secondary { color: var(--ink); background: #fff7df; border: 2px solid rgba(105, 63, 25, 0.3); }
.scroll-cue {
  position: absolute;
  z-index: 4;
  right: max(18px, calc((100vw - 1160px) / 2));
  bottom: 1px;
  padding: 11px 16px;
  border-radius: 8px;
  background: rgba(255, 247, 222, 0.92);
  color: var(--brown);
  font-weight: 900;
  text-decoration: none;
}

.intro-ribbon {
  color: var(--ink);
  background: linear-gradient(180deg, #fff7df, #efcf94);
  border-top: 3px solid rgba(91, 55, 22, 0.28);
  border-bottom: 3px solid rgba(91, 55, 22, 0.22);
}
.ribbon-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
}
.ribbon-copy p { max-width: 780px; margin: 0; color: #604c36; font-weight: 900; }
.ribbon-copy h1 {
  max-width: none;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(2.35rem, 5vw, 4.7rem);
}
.intro-ribbon .hero-actions { margin-top: 0; justify-content: flex-end; }
.intro-ribbon .button.secondary { background: #fffdf2; }

.section { padding: 86px 0; }
.section-head { max-width: 780px; margin-bottom: 34px; }
.centered { text-align: center; margin-inline: auto; }
.section-head p { color: #644e36; font-size: 1.09rem; font-weight: 800; }
.books-section { background: linear-gradient(180deg, #fff9eb, #f8edcf); }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.book-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) 1fr;
  gap: 24px;
  align-items: center;
  padding: 22px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 38px rgba(76, 49, 19, 0.12);
}
.cover-wrap img { width: 100%; border-radius: 8px; box-shadow: 0 15px 24px rgba(58, 36, 17, 0.22); }
.pet-tag { display: inline-flex; margin-bottom: 10px; padding: 7px 10px; border-radius: 8px; background: #f8df9e; color: var(--brown); font-size: 0.85rem; font-weight: 900; }
.book-copy p, .story-panel p, .launch-box p, .note-grid span { color: #604c36; font-weight: 700; }
.text-link { color: var(--red); font-weight: 900; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.village-section { background: #dfe7b8; }
.village-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr); align-items: center; gap: 34px; }
.map-frame { overflow: hidden; border: 8px solid #fff6df; border-radius: 8px; box-shadow: var(--shadow); }
.map-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story-panel {
  padding: 30px;
  border: 2px solid rgba(105, 63, 25, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8df, #eed29c);
  box-shadow: var(--shadow);
}
.paw-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.paw-list span { padding: 8px 10px; border-radius: 8px; background: #fff; color: var(--green); font-weight: 900; }

.values-section { background: #fff9eb; }
.note-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.note-grid article {
  min-height: 178px;
  padding: 22px;
  border: 2px solid rgba(105, 63, 25, 0.28);
  border-radius: 8px;
  background: #fff3cf;
  box-shadow: 0 12px 28px rgba(74, 45, 19, 0.1);
}
.note-grid article:nth-child(2) { background: #e9f0cb; }
.note-grid article:nth-child(3) { background: #f6d9cc; }
.note-grid article:nth-child(4) { background: #dcebf3; }
.note-grid strong { display: block; margin-bottom: 8px; color: var(--brown); font-family: Georgia, "Trebuchet MS", serif; font-size: 1.7rem; line-height: 1; }

.launch-section { color: #fff; background: linear-gradient(135deg, #244b33, #166998); }
.launch-box { display: grid; grid-template-columns: 1fr minmax(320px, 0.78fr); align-items: center; gap: 34px; }
.launch-box .kicker, .launch-box p { color: rgba(255, 255, 255, 0.84); }
.signup-form { display: grid; gap: 12px; padding: 24px; border-radius: 8px; background: rgba(255, 249, 235, 0.14); border: 1px solid rgba(255,255,255,.22); }
.signup-form label { font-weight: 900; }
.form-row { display: flex; gap: 10px; }
input { width: 100%; min-height: 48px; border: 0; border-radius: 8px; padding: 0 13px; font: 700 1rem "Trebuchet MS", Arial, sans-serif; }
.signup-form p { margin: 0; font-size: .9rem; }

.about-section { background: #f8edcf; }
.about-grid { display: grid; grid-template-columns: minmax(260px, 0.62fr) 1fr; align-items: center; gap: 34px; }
.author-photo { overflow: hidden; border: 8px solid #fff6df; border-radius: 8px; box-shadow: var(--shadow); }
.author-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.author-copy .button { margin-top: 12px; }

.site-footer { padding: 44px 0 20px; color: #fff9eb; background: #2d2117; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-grid strong { font-family: Georgia, "Trebuchet MS", serif; font-size: 1.8rem; }
.footer-grid p { color: rgba(255, 249, 235, 0.72); }
.footer-grid a { display: block; width: max-content; color: rgba(255, 249, 235, 0.84); font-weight: 800; line-height: 2; text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.copyright { width: min(1160px, calc(100% - 34px)); margin: 26px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); color: rgba(255, 249, 235, 0.62); }

@media (max-width: 900px) {
  .site-header { position: absolute; align-items: flex-start; flex-direction: column; }
  .brand-sign { min-width: 0; }
  .main-nav { width: 100%; }
  .ribbon-grid, .book-card, .village-layout, .launch-box, .about-grid, .footer-grid { grid-template-columns: 1fr; }
  .ribbon-grid { display: grid; }
  .book-grid, .note-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 26px, 1160px); }
  .site-header { top: 8px; width: calc(100% - 16px); }
  .main-nav a { padding: 8px 10px; }
  h1 { font-size: clamp(3rem, 17vw, 4.6rem); }
  h2 { font-size: clamp(2.1rem, 11vw, 3rem); }
  .hero-actions, .form-row { display: grid; }
  .button, button { width: 100%; }
  .book-grid, .note-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .scroll-cue { display: none; }
  .map-hotspot span { display: none; }
}

.author-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
