/* Glamora Girl — warm editorial blog theme (v2) */
:root {
  --paper: #ffffff;
  --cream: #faf5ec;
  --cream-deep: #f3ecdd;
  --ink: #2a2521;
  --muted: #6f665c;
  --line: #e8dfd2;
  --rust: #b5542d;
  --rust-dark: #8a3d1e;
  --bark: #241d17;
  --shadow: 0 14px 40px rgba(120, 72, 40, .10);
  --display: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; }
a { color: inherit; }
::selection { background: var(--rust); color: #fff; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }

/* ---------- header ---------- */
.masthead {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 0; }
.brand { font: 700 1.35rem/1 var(--display); text-decoration: none; letter-spacing: -.02em; }
.brand em { color: var(--rust); font-style: normal; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { text-decoration: none; font-size: .86rem; font-weight: 600; color: var(--muted); }
.nav-links a:hover { color: var(--rust); }
.nav-search { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 6px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip-link:focus { top: 12px; }

/* ---------- featured ---------- */
.featured { background: var(--cream); border-bottom: 1px solid var(--line); }
.featured-card {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px);
  align-items: center; padding: 56px 0;
}
.featured-media { overflow: hidden; box-shadow: var(--shadow); }
.featured-media img { aspect-ratio: 4/3.4; object-fit: cover; }
.kicker { color: var(--rust); font-weight: 700; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 14px; }
.featured-copy h1, .featured-copy h2 { font-family: var(--display); font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; }
.featured-copy h1 a, .featured-copy h2 a { text-decoration: none; }
.featured-copy h1 a:hover, .featured-copy h2 a:hover { color: var(--rust); }
.dateline { color: var(--muted); font-size: .82rem; margin: 0 0 12px; }
.excerpt { color: var(--muted); font-size: 1.02rem; max-width: 34rem; margin: 0 0 26px; }
.btn {
  display: inline-block; background: var(--rust-dark); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .85rem; letter-spacing: .04em; padding: 13px 26px;
  border-radius: 3px; transition: background .2s ease;
}
.btn:hover { background: var(--rust); }

/* ---------- main grid + sidebar ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 64px 0 80px; align-items: start; }
.section-title { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; margin: 0 0 8px; }
.section-sub { color: var(--muted); margin: 0 0 30px; font-size: .95rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
.card { display: flex; flex-direction: column; }
.card-media { overflow: hidden; background: var(--cream-deep); }
.card-media img { aspect-ratio: 16/10.5; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 18px 2px 0; }
.card-title { font-family: var(--display); font-size: 1.32rem; line-height: 1.22; margin: 8px 0 6px; }
.card-title a { text-decoration: none; color: var(--rust); }
.card-title a:hover { color: var(--rust-dark); }
.card .dateline { margin-bottom: 8px; }
.card .excerpt { font-size: .9rem; margin: 0; }
.view-all { text-align: center; margin-top: 44px; }
.btn-ghost {
  display: inline-block; border: 2px solid var(--ink); color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: .82rem; letter-spacing: .1em; padding: 12px 30px; border-radius: 3px;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* sidebar */
.sidebar { display: grid; gap: 34px; position: sticky; top: 96px; }
.widget { border: 1px solid var(--line); background: var(--cream); padding: 26px 24px; }
.widget h3 { font-family: var(--display); font-size: 1.15rem; margin: 0 0 12px; }
.widget p { color: var(--muted); font-size: .88rem; margin: 0 0 14px; }
.widget-photo { overflow: hidden; margin-bottom: 14px; }
.widget-photo img { aspect-ratio: 1/1; object-fit: cover; }
.recent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.recent-list a { text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--rust); line-height: 1.4; display: block; }
.recent-list a:hover { color: var(--rust-dark); }
.recent-list time { display: block; color: var(--muted); font-size: .76rem; font-weight: 400; margin-top: 2px; }

/* ---------- the edit strip ---------- */
.edit-strip { background: var(--cream); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.edit-strip .wrap { padding-top: 64px; padding-bottom: 72px; }
.edit-strip .section-title { color: var(--ink); }
.edit-strip .section-sub { color: var(--muted); }
.edit-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.edit-card { background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.edit-card img { aspect-ratio: 4/4.4; object-fit: cover; }
.edit-card .card-body { padding: 20px 22px 24px; }
.edit-card .card-title a { color: var(--ink); }
.edit-card .card-title a:hover { color: var(--rust); }
.edit-card .excerpt { color: var(--muted); font-size: .88rem; }
.edit-card .kicker { color: var(--rust); }

/* ---------- article page ---------- */
.article-hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.article-hero .wrap { padding-top: 54px; padding-bottom: 54px; max-width: 880px; }
.article-hero h1 { font-family: var(--display); font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 16px; }
.article-hero .dateline { font-size: .88rem; }
.article-media { max-width: 880px; margin: -8px auto 0; padding: 0 28px; }
.article-media img { box-shadow: var(--shadow); aspect-ratio: 16/9; object-fit: cover; }
.article-body { max-width: 760px; margin: 0 auto; padding: 44px 28px 30px; }
.article-body p { font-size: 1.06rem; line-height: 1.9; margin: 0 0 1.4em; color: #3a342d; }
.article-body p:first-child::first-letter {
  font-family: var(--display); font-size: 3.4em; float: left; line-height: .86;
  padding: 6px 10px 0 0; color: var(--rust);
}
.more-wrap { background: var(--cream); border-top: 1px solid var(--line); }
.more-wrap .wrap { padding-top: 56px; padding-bottom: 64px; }
.more-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

/* ---------- footer ---------- */
footer { background: var(--cream); color: var(--ink); border-top: 1px solid var(--line); }
.footer-inner { padding: 52px 0 30px; }
.footer-main { display: flex; justify-content: space-between; gap: 36px; align-items: flex-start; padding-bottom: 30px; flex-wrap: wrap; }
.footer-brand { font: 700 2rem/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); }
.footer-brand em { color: var(--rust); font-style: normal; }
.footer-tag { color: var(--muted); max-width: 24rem; font-size: .9rem; margin: 10px 0 0; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--ink); text-decoration: none; font-size: .84rem; border-bottom: 1px solid var(--line); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; font-size: .76rem; color: var(--muted); flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .blog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .edit-cards, .more-cards { grid-template-columns: 1fr 1fr; }
  .featured-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: .76rem; }
  .cards, .edit-cards, .more-cards { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .featured-card { padding: 40px 0; }
  .blog-layout { padding: 48px 0 60px; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- ads (Adsterra) ---------- */
.ad-slot { text-align: center; margin: 0 auto; }
.ad-label { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.ad-leaderboard { padding: 30px 0 2px; overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.ad-article { padding: 6px 0 36px; }
.widget-ad { border: none; background: transparent; padding: 0; display: flex; flex-direction: column; align-items: center; }
