/* ==========================================================================
   1. Base: variables, reset, shared elements
   ========================================================================== */
:root { --green:#1d4e89; --green-dark:#173b66; --ink:#1d2320; --muted:#5b6660; --bg:#f6f5f1; --card:#ffffff; --line:#e2e0d8; }
* { box-sizing: border-box; }
body { margin:0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color:var(--ink); background:var(--bg); line-height:1.6; font-size:17px; }
a { text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }

/* ==========================================================================
   2. Header, navigation and buttons
   ========================================================================== */
header {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  background:#fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
} 

header .wrap { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.nav { display:flex; gap:28px; }
.nav a { color:var(--ink); text-decoration:none; font-weight:500; font-size:15px; }
.nav a:hover { color:var(--green); }
.nav a.current { color:var(--green); border-bottom:2px solid #e8a33d; padding-bottom:2px; }
@media (max-width:760px){ .nav { display:none; } }

.btn { display:inline-block; background:#e8a33d; color:var(--ink); text-decoration:none; padding:14px 26px; border-radius:8px; font-weight:600; }
.btn:hover { background:#d4902a; }

/* ==========================================================================
   3. Page heading
   ========================================================================== */
.page-head { padding: clamp(50px, 5.5vw, 73px) 0 48px; }
.eyebrow { text-transform:uppercase; letter-spacing:.12em; font-size:13px; color:var(--green); font-weight:700; margin:0 0 12px; }
h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 4.5vw, 52px); line-height:1.15; color:var(--green-dark); margin:0 0 16px; }
.lead { font-size:19px; color:var(--muted); max-width:640px; margin:0; }

/* ==========================================================================
   4. Post listing
   ========================================================================== */
.posts { padding: 0 0 96px; }
.post-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap:37px; }
.post { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:32px; display:flex; flex-direction:column; overflow:hidden; }
.post-thumb { aspect-ratio: 16 / 9; background:#c6d7ea; margin:-32px -32px 24px; display:block; object-fit:cover; width:calc(100% + 64px); }
.post-tag { display:inline-block; font-size:12px; letter-spacing:.14em; text-transform:uppercase; font-weight:700; color:var(--green); background:#e6eef8; padding:5px 10px; border-radius:6px; align-self:flex-start; margin-bottom:16px; }
.post h2 { font-family: Georgia, 'Times New Roman', serif; font-size:23px; line-height:1.3; color:var(--green-dark); margin:0 0 12px; }
.post p { color:var(--muted); margin:0 0 20px; }
.post-meta { font-size:14px; color:var(--muted); margin-top:auto; padding-top:16px; border-top:1px solid var(--line); }

/* ==========================================================================
   5. Subscribe box
   ========================================================================== */
.subscribe { background:var(--green-dark); color:#fff; border-radius:14px; padding:44px 36px; display:flex; align-items:center; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-top:64px; }
.subscribe h3 { font-family: Georgia, 'Times New Roman', serif; font-size:24px; margin:0 0 6px; }
.subscribe p { margin:0; color:#c6d7ea; }

/* ==========================================================================
   6. Footer
   ========================================================================== */
.site-footer { background:var(--green-dark); color:#c6d7ea; padding:64px 0 28px; font-size:15px; }
.site-footer .foot-grid { display:grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap:40px; }
.site-footer p { margin:0 0 10px; color:#c6d7ea; line-height:1.60; max-width:40ch; }
.site-footer .btn, .site-footer .btn:hover { color:var(--ink); text-decoration:none; }
.site-footer h4 { font-family: Inter, system-ui, sans-serif; text-transform:uppercase; letter-spacing:.12em; font-size:12px; color:#fff; margin:0 0 16px; }
.site-footer ul { list-style:none; padding:0; margin:0; }
.site-footer li { margin-bottom:10px; }
.site-footer a { color:#c6d7ea; text-decoration:none; }
.site-footer a:hover { color:#fff; text-decoration:underline; }
.site-footer .foot-bottom { margin-top:48px; padding-top:22px; border-top:1px solid rgba(198,215,234,.25); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:13px; color:#9fb3cc; }
@media (max-width:800px){ .site-footer .foot-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .site-footer .foot-grid { grid-template-columns:1fr; } }

/* ==========================================================================
   7. Mobile header menu
   Order matters: these rules override the header and nav rules above.
   ========================================================================== */
.nav-toggle { display:none; }
@media (max-width:760px){
  .nav { display:none; }
  .nav.open { display:flex; flex-direction:column; gap:16px; order:3; width:100%; padding:12px 0 4px; }
  .nav-toggle { display:inline-block; order:1; margin-left:auto; background:transparent; color:var(--green-dark); border:2px solid var(--green); border-radius:8px; padding:6px 14px; font-size:22px; line-height:1.2; cursor:pointer; }
  header .wrap > .btn { order:2; margin-left:0; }
  header .wrap > .brand { order:0; }
}
@media (max-width:420px){
  header .wrap { gap:12px; }
  header .wrap > .btn { padding:14px 14px; font-size:15px; }
}

html { scroll-padding-top: 80px; }

.site-footer .foot-disclaimer { max-width:none; font-size:13px; color:#9fb3cc; margin:32px 0 0; }