/* Egg Bus Daily — styles */
:root {
  --cream: #fff8e7;
  --shell: #fdf1d6;
  --yolk: #ffc21a;
  --yolk-deep: #f59f00;
  --dark: #2b1d0e;
  --dark-soft: #5a4630;
  --white: #fffdf8;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(43, 29, 14, .12), 0 2px 6px rgba(43, 29, 14, .08);
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--dark);
  background:
    radial-gradient(circle at 12% -10%, rgba(255, 194, 26, .22), transparent 40%),
    radial-gradient(circle at 100% 20%, rgba(255, 194, 26, .12), transparent 35%),
    var(--cream);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
main { flex: 1; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo {
  font-family: var(--display); font-weight: 700; font-size: 1.6rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: .4em;
  letter-spacing: -.01em;
}
.logo .egg {
  width: 1.15em; height: 1.45em; background: var(--white);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: inset -4px -5px 0 rgba(43, 29, 14, .08), 0 2px 0 var(--dark);
  border: 2.5px solid var(--dark);
  position: relative; display: inline-block;
}
.logo .egg::after {
  content: ""; position: absolute; left: 50%; top: 56%; width: .55em; height: .55em;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--yolk);
}
.logo span.daily { color: var(--yolk-deep); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  font-family: var(--display); font-weight: 600; text-decoration: none;
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover, .nav a:focus-visible { background: var(--shell); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: 12px 20px; border-radius: 999px; border: 2.5px solid var(--dark);
  background: var(--yolk); color: var(--dark); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 var(--dark); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--dark); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--dark); }
.btn.secondary { background: var(--white); }
.btn svg { width: 1em; height: 1em; }

/* Hero */
.hero { padding: 10px 0 40px; }
.kicker {
  display: inline-block; font-family: var(--display); font-weight: 600;
  background: var(--dark); color: var(--yolk); padding: 4px 14px; border-radius: 999px;
  font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
}
.hero-card {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: center;
}
.hero-figure {
  margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--shell);
  border: 3px solid var(--dark); box-shadow: 8px 8px 0 var(--yolk), var(--shadow);
}
.hero-figure img { width: 100%; height: auto; max-height: 78vh; object-fit: contain; }
.hero-text h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.05; margin: 14px 0 12px; letter-spacing: -.02em;
}
.caption { font-size: 1.15rem; color: var(--dark-soft); margin: 0 0 18px; }
.meta { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.meta li { display: flex; gap: 10px; align-items: baseline; }
.meta b {
  font-family: var(--display); font-weight: 600; min-width: 5.2em; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .05em; color: var(--yolk-deep);
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.date { color: var(--dark-soft); font-size: .95rem; }

/* Sections */
.section { padding: 36px 0; }
.section h2 {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 18px; letter-spacing: -.01em;
}
.section h2 .count { color: var(--yolk-deep); }

/* Gallery */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  list-style: none; padding: 0; margin: 0;
}
.card {
  background: var(--white); border: 2.5px solid var(--dark); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; display: flex; flex-direction: column; height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 0 var(--dark);
}
.card:hover, .card:focus-visible { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 8px 0 var(--dark); }
.card .thumb { aspect-ratio: 16 / 10; background: var(--shell); overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px 16px 16px; }
.card .day { font-family: var(--display); font-weight: 600; color: var(--yolk-deep); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.card h3 { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin: 2px 0 4px; line-height: 1.2; }
.card .style { font-size: .9rem; color: var(--dark-soft); margin: 0; }
.empty { color: var(--dark-soft); font-style: italic; }
.more-wrap { text-align: center; margin-top: 26px; }

/* About */
.about {
  background: var(--dark); color: var(--cream); border-radius: calc(var(--radius) + 8px);
  padding: 34px clamp(20px, 5vw, 50px); display: grid; gap: 10px;
}
.about h2 { color: var(--yolk); margin: 0; }
.about p { margin: 0; max-width: 62ch; font-size: 1.05rem; }
.about a { color: var(--yolk); }

/* Post page nav */
.post-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Ad slots — collapsed until filled with an ad unit */
.ad-slot { margin: 24px auto; text-align: center; max-width: var(--max); }
.ad-slot:empty { display: none; }
.ad-slot.is-empty { display: none; }

/* Footer */
.site-footer { padding: 34px 0 40px; margin-top: 30px; border-top: 2px dashed rgba(43, 29, 14, .2); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer p { margin: 0; color: var(--dark-soft); font-size: .95rem; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* 404 */
.notfound { text-align: center; padding: 60px 0; }
.notfound .big { font-size: clamp(4rem, 14vw, 8rem); line-height: 1; margin: 0; }
.notfound h1 { font-family: var(--display); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px);
  background: var(--dark); color: var(--cream); padding: 10px 18px; border-radius: 999px;
  font-family: var(--display); transition: transform .25s ease; z-index: 10;
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 820px) {
  .hero-card { grid-template-columns: 1fr; gap: 22px; }
  .hero-figure { box-shadow: 5px 5px 0 var(--yolk), var(--shadow); }
  .logo { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
