/* ─────────────────────────────────────────────────────────────────────────
   Anna's Kitchen — warm & rustic
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --cream:        #FAF5EC;
  --cream-2:      #F4EADA;
  --paper:        #FBF7EE;
  --ink:          #2E241B;
  --ink-soft:     #55463A;
  --ink-muted:    #8A7B6C;
  --terracotta:   #C25A3A;
  --terracotta-d: #A14726;
  --sage:         #7A8A6E;
  --wood:         #6B4423;
  --wood-d:       #4A2E16;
  --gold:         #C98D2B;

  --serif:        'Fraunces', 'Georgia', serif;
  --sans:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius:       14px;
  --radius-lg:    22px;
  --shadow-sm:    0 1px 2px rgba(46, 36, 27, 0.07);
  --shadow:       0 6px 18px -8px rgba(46, 36, 27, 0.28);
  --shadow-lg:    0 30px 50px -30px rgba(46, 36, 27, 0.35);

  --maxw:         1120px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body.site {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 0% 0%, #F8ECD4 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 10%, #F5E1CA 0%, transparent 55%),
    var(--cream);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--terracotta-d); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--wood-d); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

/* Header */
.site-header {
  background: rgba(250, 245, 236, 0.85);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(107, 68, 35, 0.12);
  position: sticky; top: 0; z-index: 10;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.site-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink);
  text-decoration: none;
}
.site-brand__mark {
  color: var(--terracotta);
  font-size: 1.4rem;
  transform: translateY(1px);
}
.site-nav {
  display: flex; gap: 26px;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}
.site-nav a:hover { color: var(--terracotta-d); }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 56px;
  overflow: hidden;
}
.hero__backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 80% 30%, rgba(194, 90, 58, 0.14) 0%, transparent 60%),
    radial-gradient(500px 260px at 10% 70%, rgba(122, 138, 110, 0.16) 0%, transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto; }
.hero__kicker {
  font-family: var(--serif);
  font-style: italic;
  color: var(--terracotta-d);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  margin-bottom: 10px;
}
.hero__title { margin-bottom: 14px; }
.hero__body { color: var(--ink-soft); font-size: 1.15rem; max-width: 620px; margin: 0 auto; }

/* Section titles */
.section-title {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin: 40px 0 24px;
  position: relative;
  padding-left: 38px;
}
.section-title::before {
  content: '';
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--terracotta), transparent);
  border-radius: 2px;
}

/* Post grid */
.posts { padding-bottom: 40px; }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.post-card {
  background: var(--paper);
  border: 1px solid rgba(107, 68, 35, 0.10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__link { display: block; color: inherit; text-decoration: none; }
.post-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-2);
}
.post-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms ease;
}
.post-card:hover .post-card__image img { transform: scale(1.04); }
.post-card__image--placeholder {
  display: flex; align-items: center; justify-content: center;
  color: rgba(194, 90, 58, 0.5);
  font-size: 3rem;
  background:
    repeating-linear-gradient(45deg, var(--cream) 0 20px, var(--cream-2) 20px 40px);
}
.post-card__body { padding: 22px 24px 26px; }
.post-card__date {
  font-family: var(--serif);
  font-style: italic;
  color: var(--terracotta-d);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}
.post-card__title {
  font-size: 1.35rem;
  margin: 6px 0 10px;
  line-height: 1.25;
}
.post-card__excerpt {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 14px;
}
.post-card__more {
  color: var(--terracotta-d);
  font-weight: 500;
  font-size: 0.92rem;
}

.empty {
  background: var(--paper);
  border: 1px dashed rgba(107, 68, 35, 0.2);
  border-radius: var(--radius);
  padding: 48px 32px;
  text-align: center;
}

/* Archive */
.archive-strip { padding: 24px 0 56px; }
.archive-list {
  display: flex; flex-wrap: wrap; gap: 12px;
  list-style: none; padding: 0; margin: 0;
}
.archive-list a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: var(--paper);
  border: 1px solid rgba(107, 68, 35, 0.12);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
}
.archive-list a:hover { background: var(--cream-2); border-color: var(--terracotta); }
.archive-list__count {
  background: var(--cream-2);
  color: var(--ink-soft);
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 999px;
}
.archive-list--full { flex-direction: column; gap: 8px; }
.archive-list--full a { justify-content: space-between; width: 100%; max-width: 420px; }

.archive h1 { margin-bottom: 24px; }
.archive-posts {
  list-style: none; padding: 0; margin: 0;
  max-width: 620px;
}
.archive-posts li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(107, 68, 35, 0.18);
}
.archive-posts time { color: var(--ink-muted); font-size: 0.9rem; min-width: 110px; }
.archive-posts a { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.archive-posts a:hover { color: var(--terracotta-d); }
.back-link { font-size: 0.9rem; color: var(--ink-muted); }

/* Single post */
.post { padding: 40px 0 24px; max-width: 760px; }
.post__header { text-align: center; margin-bottom: 28px; }
.post__date { font-family: var(--serif); font-style: italic; color: var(--terracotta-d); margin-bottom: 6px; }
.post__title { font-size: clamp(2rem, 4vw, 3rem); }
.post__hero {
  margin: 0 0 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.post__hero img { width: 100%; height: auto; display: block; }
.post__hero figcaption {
  background: var(--paper);
  color: var(--ink-soft);
  padding: 10px 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  text-align: center;
}
.post__body {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}
.post__body h2, .post__body h3, .post__body h4 { margin-top: 1.6em; }
.post__body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.post__body blockquote {
  margin: 1.5em 0;
  padding: 8px 20px;
  border-left: 3px solid var(--terracotta);
  color: var(--ink-soft);
  font-style: italic;
}

.post__gallery { margin-top: 48px; }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery__item { margin: 0; }
.gallery__item img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.gallery__item figcaption {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
  text-align: center;
}

/* Comments */
.comments { max-width: 760px; padding-bottom: 64px; }
.comments__empty { color: var(--ink-muted); font-style: italic; }
.comments__list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(107, 68, 35, 0.10);
}
.comment__head {
  display: flex; gap: 12px; align-items: baseline;
  margin-bottom: 6px;
}
.comment__head time { color: var(--ink-muted); font-size: 0.85rem; }
.comment__body { margin: 0; color: var(--ink); }

.comment-form {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(107, 68, 35, 0.10);
}
.comment-form h4 { margin-top: 0; font-size: 1.35rem; }
.comment-form__note { font-size: 0.9rem; color: var(--ink-muted); }
.comment-form label { display: block; margin-bottom: 14px; }
.comment-form label span { display: block; font-size: 0.9rem; margin-bottom: 5px; color: var(--ink-soft); }
.comment-form label em { color: var(--ink-muted); font-style: normal; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(107, 68, 35, 0.18);
  border-radius: 10px;
  background: var(--cream);
  font: inherit;
  color: var(--ink);
}
.comment-form textarea { resize: vertical; min-height: 100px; }
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(194, 90, 58, 0.15);
}
.hp { position: absolute; left: -9999px; }

.flash-note {
  background: rgba(122, 138, 110, 0.15);
  border: 1px solid rgba(122, 138, 110, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(107, 68, 35, 0.2);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn--primary {
  background: var(--terracotta);
  color: #FFF8EF;
  border-color: var(--terracotta-d);
}
.btn--primary:hover { background: var(--terracotta-d); color: #FFF8EF; }
.btn--danger {
  background: transparent;
  color: var(--terracotta-d);
  border-color: rgba(194, 90, 58, 0.35);
}
.btn--danger:hover { background: rgba(194, 90, 58, 0.08); }

/* About */
.about { padding: 48px 0 64px; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 720px) {
  .about__grid { grid-template-columns: 1fr 1.3fr; gap: 56px; }
}
.about__image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about__text h1 { margin-bottom: 18px; }
.about__body p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.75; }

/* Footer */
.site-footer {
  margin-top: 64px;
  padding: 36px 0 28px;
  background: var(--wood-d);
  color: rgba(250, 245, 236, 0.85);
}
.site-footer a { color: rgba(250, 245, 236, 0.85); text-decoration: none; }
.site-footer a:hover { color: #F8DAB1; }
.site-footer__row {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.site-footer__brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 1.15rem; color: #F8DAB1; }
.site-footer__nav { display: flex; gap: 22px; }
.site-footer__copy { margin: 0; font-size: 0.88rem; color: rgba(250, 245, 236, 0.55); }

/* Responsive */
@media (max-width: 560px) {
  .site-header__inner { padding: 14px 20px; }
  .site-nav { gap: 16px; font-size: 0.9rem; }
  .hero { padding: 48px 0 32px; }
  .post-grid { gap: 18px; }
  .post-card__body { padding: 18px 20px 22px; }
}
