/* Alani & Milo — warm storybook styling. Plain CSS, no frameworks. */
:root {
  --cream: #fdf6ec;
  --card: #fffdf8;
  --ink: #43302a;
  --muted: #8a7364;
  --gold: #c98f2d;
  --blue: #3a6ea5;
  --line: #ecdcc3;
  --shadow: 0 2px 10px rgba(67, 48, 42, 0.10);
}
* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}
h1, h2, h3, .site-title { font-family: Georgia, "Times New Roman", serif; }
a { color: var(--blue); }
a:hover { text-decoration: underline; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem;
  max-width: 820px; margin: 0 auto; padding: 1.1rem 1rem 0.6rem;
  border-bottom: 2px solid var(--line);
}
.site-title {
  font-size: 1.9rem; font-weight: bold; color: var(--ink); text-decoration: none;
}
.site-title:hover { text-decoration: none; color: var(--gold); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; font-size: 1.02rem; }
.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav a:hover { color: var(--gold); text-decoration: none; }

main { max-width: 820px; margin: 0 auto; padding: 1.2rem 1rem 2.5rem; }
.page-intro { color: var(--muted); font-size: 1.05rem; margin-top: -0.4rem; }

/* Comic entries: date, then strip, then caption — in that order. */
.comic {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 1.1rem 1.1rem 0.9rem; margin: 1.6rem 0;
}
.comic-date { font-family: Georgia, serif; font-size: 1.35rem; font-weight: bold; margin: 0; }
.comic-date a { color: var(--ink); text-decoration: none; }
.comic-date a:hover { color: var(--gold); }
.comic-title { font-size: 1.02rem; font-weight: normal; color: var(--muted); margin: 0.1rem 0 0.8rem; }
.comic-title a { color: var(--muted); text-decoration: none; }
.comic-title a:hover { color: var(--gold); }
.comic img.strip {
  display: block; width: 100%; height: auto; border-radius: 10px;
  background: #f3e9d8;
}
.comic .caption { font-size: 1.02rem; margin: 0.8rem 0 0.4rem; }
.latest-comic img.strip { max-width: 560px; margin: 0 auto; }

/* Like + share row */
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.9rem; }
.btn {
  appearance: none; border: 1px solid var(--line); background: var(--cream);
  color: var(--ink); border-radius: 999px; padding: 0.42rem 0.95rem;
  font-size: 0.95rem; cursor: pointer; text-decoration: none; line-height: 1.3;
}
.btn:hover { border-color: var(--gold); text-decoration: none; }
.like-btn.liked { background: #fdeeda; border-color: var(--gold); }
.like-btn .heart { color: #c25e5e; }
.share-note { font-size: 0.9rem; color: var(--muted); }

/* Prev / next navigation on permalink pages */
.comic-nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center;
  margin: 1.4rem 0 0.5rem;
}
.comic-nav .btn.disabled { opacity: 0.45; pointer-events: none; }

/* Archive */
.month h2 { margin: 1.8rem 0 0.6rem; border-bottom: 2px solid var(--line); padding-bottom: 0.3rem; }
.thumb-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.thumb-grid a { text-decoration: none; color: var(--ink); }
.thumb-grid a:hover .thumb-title { color: var(--gold); }
.thumb-grid img {
  width: 100%; height: auto; display: block; border-radius: 10px;
  border: 1px solid var(--line); background: #f3e9d8;
}
.thumb-date { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.thumb-title { font-size: 0.95rem; line-height: 1.3; }

/* Home page extras */
.big-link {
  display: block; text-align: center; font-family: Georgia, serif; font-size: 1.25rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 1rem; margin: 1.6rem 0; text-decoration: none; color: var(--ink);
}
.big-link:hover { border-color: var(--gold); text-decoration: none; }
.recent-list { list-style: none; padding: 0; }
.recent-list li { padding: 0.3rem 0; border-bottom: 1px solid var(--line); }
.recent-list .recent-date { color: var(--muted); font-size: 0.9rem; }

/* About page */
.about-dog { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 1.1rem 1.3rem; margin: 1.2rem 0; }
.about-dog h2 { margin-top: 0; }

/* Footer + subscribe */
.site-footer {
  max-width: 820px; margin: 0 auto; padding: 1.4rem 1rem 2.5rem;
  border-top: 2px solid var(--line);
}
.subscribe { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 1.1rem 1.3rem; }
.subscribe h2 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.subscribe p { margin: 0.3rem 0 0.8rem; color: var(--muted); }
.subscribe form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.subscribe input[type="email"] {
  flex: 1 1 220px; padding: 0.55rem 0.8rem; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
}
.subscribe button {
  padding: 0.55rem 1.2rem; font-size: 1rem; border-radius: 999px; cursor: pointer;
  background: var(--gold); color: #fff; border: 1px solid var(--gold);
}
.subscribe button:hover { background: #b57d22; }
.subscribe .rss-link { font-size: 0.95rem; }
.footer-note { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 1.4rem; }

@media (max-width: 560px) {
  .site-title { font-size: 1.6rem; }
  .comic { padding: 0.8rem 0.7rem; }
  .comic-date { font-size: 1.2rem; }
}
