/* ===== Aisha Bluebear's Portfolio — cleaner refresh ===== */
:root {
  --bg: #f7f4ee;
  --card: #fffdf9;
  --ink: #1f1c18;
  --muted: #6d685f;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --yellow: #ffd23f;
  --purple: #7c3aed;
  --line: rgba(31, 28, 24, 0.10);
  --shadow: 0 10px 30px rgba(31, 28, 24, 0.10);
  --shadow-lg: 0 22px 50px rgba(31, 28, 24, 0.16);
  --radius: 18px;
  --wrap: 1080px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1 0 auto; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.05; font-weight: 700; letter-spacing: -0.01em; }
a { color: var(--blue-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ===== Header ===== */
.site-header { padding: 22px 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-title {
  font-family: var(--serif); font-weight: 900; font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem);
  color: var(--ink); text-decoration: none; letter-spacing: -0.02em;
}
.site-nav { display: flex; gap: 8px; }
.site-nav a {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 8px 16px; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.site-nav a:hover { background: rgba(37, 99, 235, 0.10); }
.site-nav a[aria-current="page"] { background: var(--blue); color: #fff; }

/* ===== Banner (marquee) ===== */
.banner {
  background: var(--yellow);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  overflow: hidden; white-space: nowrap;
}
.banner__track {
  display: inline-flex; gap: 3rem; padding: 10px 0;
  font-family: var(--serif); font-weight: 700; font-size: 1.05rem; font-style: italic;
  animation: marquee 22s linear infinite;
}
.banner__track span { padding-left: 3rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .banner__track { animation: none; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-block; background: var(--blue); color: #fff; text-decoration: none;
  font-weight: 800; padding: 13px 26px; border-radius: 999px; font-size: 1rem;
  box-shadow: 0 6px 0 var(--blue-dark); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--blue-dark); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--blue-dark); }

/* ===== Hero ===== */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: 40px 22px 64px;
}
.hero__title { font-size: clamp(3rem, 1.8rem + 6vw, 6rem); margin: 0 0 18px; }
.hero__title em { font-style: italic; color: var(--purple); }
.hero__sub { font-size: 1.2rem; color: var(--muted); max-width: 30ch; margin: 0 0 26px; }
.hero__art img {
  border-radius: var(--radius); transform: rotate(4deg); box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.hero__art { transition: transform .3s ease; }
.hero__art:hover { transform: rotate(0deg) scale(1.01); }

/* ===== Latest / News sections ===== */
.latest { padding: 8px 22px 64px; }
.latest__head, .news-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.latest__head h2 { font-size: 2rem; margin: 0; }
.latest__all { font-weight: 800; text-decoration: none; }
.latest__all:hover { text-decoration: underline; }

.news-header { display: block; padding-top: 18px; }
.news-header h1 { font-size: clamp(2.6rem, 2rem + 3vw, 4rem); margin: 0 0 6px; }
.news-header p { color: var(--muted); margin: 0; font-size: 1.15rem; }

/* ===== Card grid ===== */
.card-grid {
  display: grid; gap: 26px; padding-bottom: 40px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card__media { aspect-ratio: 4 / 3; background: #ece8df; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 18px 20px 22px; }
.card__date { color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; }
.card__title { font-size: 1.35rem; margin: 0 0 8px; line-height: 1.12; }
.card__excerpt { color: var(--muted); font-size: .98rem; margin: 0; }

/* ===== Post ===== */
.post { max-width: 760px; padding-top: 24px; padding-bottom: 72px; }
.post__header { margin-bottom: 22px; }
.post__date { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; margin: 0 0 8px; }
.post__title { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); margin: 0; }
.post__teaser { font-size: 1.3rem; line-height: 1.5; margin: 0 0 28px; }
.post__teaser p { margin: 0 0 0.6em; }
.post__teaser p:last-child { margin-bottom: 0; }
.post__figure { margin: 0 0 28px; }
.post__figure img { border-radius: var(--radius); box-shadow: var(--shadow); border: 5px solid #fff; width: 100%; }
.post__caption {
  font-family: var(--serif); font-style: italic; color: var(--muted);
  font-size: 1.05rem; line-height: 1.4; text-align: center; margin: 14px auto 0; max-width: 90%;
}
.post__cta { margin: 28px 0 8px; }

.post__nav { display: flex; justify-content: space-between; gap: 16px; margin: 48px 0 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.post__nav-link { text-decoration: none; color: inherit; max-width: 48%; display: flex; flex-direction: column; gap: 2px; }
.post__nav-link--next { text-align: right; margin-left: auto; align-items: flex-end; }
.post__nav-dir { color: var(--blue-dark); font-weight: 800; font-size: .9rem; }
.post__nav-name { font-family: var(--serif); font-weight: 700; }
.post__nav-link:hover .post__nav-name { text-decoration: underline; }
.post__back a { font-weight: 800; text-decoration: none; }
.post__back a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #f7f4ee; margin-top: 40px; padding: 40px 0; flex-shrink: 0; }
.site-footer__inner { text-align: center; }
.site-footer__name { font-family: var(--serif); font-weight: 800; font-size: 1.3rem; margin: 0 0 6px; }
.site-footer__meta { color: #b9b3a8; margin: 0; font-size: .92rem; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; gap: 8px; padding-bottom: 36px; text-align: left; }
  .hero__art { order: -1; max-width: 320px; }
  .hero__sub { max-width: none; }
  .site-header__inner { justify-content: space-between; }
}

/* ===== 404 ===== */
.notfound { text-align: center; padding: 80px 22px; }
.notfound h1 { font-size: clamp(3rem, 2rem + 8vw, 7rem); margin: 0; }
.notfound p { color: var(--muted); font-size: 1.2rem; }
