/* Friends of Hermunkulus — warm cozy storybook theme
   Palette pulled from his coat: honey, oatmeal, soft brown, cream. */

:root {
  --cream:      #fbf4e9;
  --cream-deep: #f4e8d4;
  --oatmeal:    #efe1c8;
  --honey:      #e0a850;
  --honey-deep: #c8863a;
  --tan:        #b07a42;
  --cocoa:      #5c4128;
  --cocoa-soft: #7a5c3c;
  --ink:        #3a2a1a;
  --white:      #fffdf8;
  --shadow:     rgba(92, 65, 40, 0.16);
  --shadow-soft:rgba(92, 65, 40, 0.09);
  --radius:     22px;
  --radius-sm:  14px;
  --maxw:       1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(224,168,80,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(176,122,66,0.12), transparent 55%),
    var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  color: var(--cocoa);
  line-height: 1.1;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

a { color: var(--honey-deep); text-decoration: none; }
a:hover { color: var(--tan); }

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

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--cocoa);
}
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
  box-shadow: 0 3px 10px var(--shadow);
}
.brand-text { font-family: "Fraunces", serif; font-weight: 600; font-size: 1.15rem; }
.brand-text em { color: var(--honey-deep); font-style: italic; }
.site-nav a {
  margin-left: 1.4rem;
  font-weight: 600;
  color: var(--cocoa-soft);
  font-size: 0.98rem;
}
.site-nav a:hover { color: var(--honey-deep); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 1.5rem auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: visible;
}
.hero-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow:
    0 18px 50px var(--shadow),
    0 4px 12px var(--shadow-soft);
  background: #111;
  transform: rotate(-1.2deg);
  transition: transform 0.4s ease;
}
.hero-photo img:hover { transform: rotate(0deg) scale(1.01); }
.hero-badge {
  position: absolute;
  bottom: 18px; right: -10px;
  background: var(--honey);
  color: var(--cocoa);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px var(--shadow);
  transform: rotate(3deg);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tan);
  margin: 0 0 0.6rem;
}
.hero-copy h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  margin-bottom: 0.15em;
}
.tagline {
  font-family: "Fraunces", serif;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 500;
  color: var(--cocoa-soft);
  font-style: italic;
  margin: 0 0 1rem;
}
.lede { font-size: 1.08rem; color: var(--cocoa-soft); max-width: 46ch; }
.cta {
  display: inline-block;
  margin-top: 1rem;
  background: var(--cocoa);
  color: var(--cream);
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  box-shadow: 0 8px 20px var(--shadow);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cta:hover { background: var(--honey-deep); color: var(--white); transform: translateY(-2px); }

/* ---------- Sections ---------- */
section { scroll-margin-top: 1.5rem; }
.section-head { text-align: center; max-width: var(--maxw); margin: 0 auto 2rem; padding: 0 1.5rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-sub { color: var(--cocoa-soft); font-style: italic; margin: 0; }

/* ---------- News / posts ---------- */
.news { padding: 2rem 0 4rem; }
.posts {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.post {
  background: var(--white);
  border: 1px solid var(--oatmeal);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--shadow-soft);
  overflow: hidden;
}
.post-photo { width: 100%; max-height: 480px; object-fit: cover; background: #111; }
.post-body { padding: 1.5rem 1.7rem 1.7rem; }
.post-date {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--honey-deep);
  margin: 0 0 0.4rem;
}
.post h3 { font-size: 1.5rem; margin-bottom: 0.35em; }
.post-text { color: var(--cocoa-soft); white-space: pre-wrap; margin: 0; }

.loading, .empty {
  text-align: center;
  color: var(--cocoa-soft);
  font-style: italic;
  padding: 2rem;
  background: var(--white);
  border: 1px dashed var(--oatmeal);
  border-radius: var(--radius);
}

/* ---------- About ---------- */
.about { padding: 1rem 1.5rem 4rem; }
.about-card {
  max-width: 760px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--cream-deep), var(--white));
  border: 1px solid var(--oatmeal);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 14px 40px var(--shadow-soft);
}
.about-card h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.about-card p { color: var(--cocoa-soft); font-size: 1.06rem; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin: 1.8rem 0 0;
}
.facts div {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--oatmeal);
}
.facts dt {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--tan);
}
.facts dd { margin: 0.15rem 0 0; font-family: "Fraunces", serif; font-weight: 600; color: var(--cocoa); }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  color: var(--cocoa-soft);
  background:
    radial-gradient(700px 300px at 50% 120%, rgba(224,168,80,0.15), transparent 60%);
}
.footer-paws { font-size: 1.6rem; margin: 0 0 0.3rem; }
.site-footer p { margin: 0.2rem 0; }
.footer-fine { font-size: 0.85rem; color: var(--tan); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; margin-bottom: 2.5rem; }
  .hero-copy { order: 2; }
  .hero-photo { order: 1; max-width: 420px; margin: 0 auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-badge { right: 10px; }
}
@media (max-width: 480px) {
  .site-nav a { margin-left: 1rem; }
  .brand-text { font-size: 1rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-photo img { transform: none; transition: none; }
}
