/* Shared styles for the blog pages. Colours and fonts match the homepage. */
:root {
  --forest: #1E4A3A;
  --teal: #2F7D6E;
  --orange: #E08A3A;
  --peach: #F6C08A;
  --rust: #A65A1C;
  --cream: #FAF7F0;
  --paper: #FFFDF9;
  --ink: #3F3A36;
  --muted: #5C5650;
  --mint: #EDF3F0;
  --line: #E2DACB;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Karla, "Segoe UI", sans-serif; font-size: 19px; line-height: 1.7; }
a { color: var(--forest); }
a:hover { color: var(--teal); }
img { display: block; max-width: 100%; }

header { background: var(--paper); border-bottom: 1px solid var(--line); }
nav { max-width: 1200px; margin: 0 auto; padding: 18px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
nav .links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-weight: 700; font-size: 16px; }
nav .links a { text-decoration: none; padding: 10px 0; }
nav .links a.current { color: var(--teal); }
nav .links a.cta { background: var(--forest); color: var(--paper); padding: 12px 22px; border-radius: 999px; }
nav .links a.cta:hover { background: var(--teal); }

.pill { display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 8px 18px; border-radius: 999px; color: #fff; background: var(--teal); margin: 0; }
.script { font-family: Courgette, cursive; font-weight: 400; }

/* Blog home */
.blog-head { max-width: 760px; margin: 0 auto; padding: 72px 24px 24px; text-align: center; }
.blog-head h1 { font-family: Courgette, cursive; font-weight: 400; font-size: 52px; line-height: 1.1; color: var(--forest); margin: 18px 0 12px; }
.blog-head p { color: var(--muted); margin: 0; }
.blog-head p.pill { color: #fff; }
.post-list { max-width: 760px; margin: 0 auto; padding: 24px 24px 80px; display: grid; gap: 24px; }
.post-card { display: grid; grid-template-columns: 220px 1fr; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 8px 28px rgba(30,74,58,0.10); text-decoration: none; color: inherit; }
.post-card img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.post-card .body { padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.post-card .date { font-size: 14px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rust); }
.post-card h2 { font-family: Courgette, cursive; font-weight: 400; font-size: 30px; line-height: 1.2; color: var(--forest); margin: 0; }
.post-card p { margin: 0; font-size: 17px; color: var(--ink); }
.post-card .more { font-weight: 800; color: var(--teal); font-size: 16px; }
.post-card:hover h2 { color: var(--teal); }

/* A single post */
article { max-width: 720px; margin: 0 auto; padding: 64px 24px 24px; }
article .meta { text-align: center; }
article .date { display: block; margin-top: 14px; font-size: 14px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--rust); }
article h1 { font-family: Courgette, cursive; font-weight: 400; font-size: 52px; line-height: 1.1; color: var(--forest); text-align: center; margin: 14px 0 8px; }
article .subtitle { font-family: Courgette, cursive; font-size: 26px; color: var(--teal); text-align: center; margin: 0 0 32px; }
article figure { margin: 0 0 36px; }
article figure img { width: 100%; max-height: 560px; object-fit: cover; border: 10px solid var(--paper); border-radius: 24px; box-shadow: 0 16px 40px rgba(30,74,58,0.18); }
article figcaption { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
article p { margin: 0 0 22px; }
article .signoff { font-family: Courgette, cursive; font-size: 28px; color: var(--forest); margin-top: 8px; }

.join { max-width: 720px; margin: 24px auto 80px; padding: 32px 36px; background: var(--paper); border-radius: 28px; box-shadow: 0 16px 40px rgba(20,48,38,0.15); border-top: 10px solid var(--orange); }
.join h2 { font-family: Courgette, cursive; font-weight: 400; font-size: 34px; color: var(--forest); margin: 0 0 8px; }
.join p { margin: 0 0 16px; font-size: 17px; }
.join .formkit-form { max-width: 100% !important; }
.join .formkit-submit { background-color: var(--forest) !important; border-radius: 999px !important; }
.join .formkit-input { border-radius: 12px !important; }
.back { max-width: 720px; margin: 0 auto 56px; padding: 0 24px; font-weight: 700; }

footer { background: var(--forest); color: #E6EEE3; text-align: center; padding: 40px 24px; font-size: 16px; }
footer a { color: var(--peach); }
footer p { margin: 6px 0; }

@media (max-width: 700px) {
  body { font-size: 18px; }
  nav { padding: 14px 20px; justify-content: center; }
  nav .links { justify-content: center; gap: 4px 18px; font-size: 15px; }
  nav svg { width: 170px; height: auto; }
  .blog-head h1, article h1 { font-size: 40px; }
  article .subtitle { font-size: 22px; }
  .post-card { grid-template-columns: 1fr; }
  .post-card img { min-height: 0; height: 220px; }
  .join { margin: 24px 16px 64px; padding: 26px 22px; }
  .pill { font-size: 12px; }
}
