:root {
  --pink: #e08db4;
  --pink-dark: #a24a74;
  --rose: #d16b86;
  --ink: #27241d;
  --text: #423d33;
  --muted: #625d52;
  --line: #e8e6e1;
  --bg: #faf9f7;
  --card: #fff;
  --tint: #fbeef3;
  --radius: 14px;
  --container: 1140px;
  --font: "Lora", Georgia, serif;
  --font-head: "DM Serif Display", Georgia, serif;
  --font-script: "Allura", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.75 var(--font); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pink-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.grid { display: grid; gap: 28px; }
.grid > * { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-size: 1.9rem; color: var(--ink); }
.brand__tag { font-family: var(--font-script); font-size: 1.4rem; color: var(--pink-dark); }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.primary-nav a:hover { color: var(--pink-dark); }
.nav-toggle { display: none; }

.hero { position: relative; display: grid; min-height: 560px; place-items: center; text-align: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(39, 36, 29, .35), rgba(39, 36, 29, .55)); }
.hero__inner { position: relative; z-index: 1; max-width: 760px; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; font-size: clamp(2.8rem, 7vw, 4.8rem); margin-bottom: .2em; }
.hero__lead { font-family: var(--font-script); font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.25; padding: 0 .4em; text-wrap: balance; }
.hero__quote { margin: 28px auto 0; padding: 16px 24px; max-width: 520px; border: 1px solid rgba(255, 255, 255, .6); border-radius: var(--radius); font-style: italic; }
.hero__quote p { margin: 0; }

.section { padding: 72px 0; }
.section--tint { background: var(--tint); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section__quote { font-style: italic; color: var(--muted); }
.section__quote--plain { font-style: normal; }

.posts { grid-template-columns: repeat(3, 1fr); }
.posts--4 { grid-template-columns: repeat(2, 1fr); }
.post { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--pink); border-radius: var(--radius); padding: 28px; }
.post__cat { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pink-dark); margin-bottom: .6em; }
.post h3 { margin-bottom: .6em; }
.post p:last-child { margin: 0; color: var(--muted); font-size: .96rem; }

.about { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.about__media { margin: 0; }
.about__media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about__quote { font-size: 1.15rem; font-style: italic; color: var(--ink); }
.about__note { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--pink); padding-left: 14px; }

.site-footer { background: var(--ink); color: #e8e6e1; text-align: center; padding: 40px 0; font-size: .95rem; }
.site-footer__thanks { font-style: italic; max-width: 680px; margin: 0 auto 1em; }
.site-footer p:last-child { margin: 0; color: #b5afa3; }

@media (max-width: 1023px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
  .nav-toggle__bar::before { position: absolute; top: -7px; }
  .nav-toggle__bar::after { position: absolute; top: 7px; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .06); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; padding: 8px 20px 16px; }
  .primary-nav a { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
}

@media (max-width: 767px) {
  .posts, .posts--4, .about { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { min-height: 480px; }
  .hero__inner { padding-left: 24px; padding-right: 24px; }
  .post { padding: 22px; }
  .brand__name { font-size: 1.6rem; }
}
