/* Baketly's blog. The tokens are the ones index.html carries inline; the home
   page stays a single self-contained file, so these are deliberately a second
   copy rather than a shared import. Change a colour in one, change it in both. */
:root {
  --cream: #fbf6ec;
  --white: #ffffff;
  --green: #063930;
  --olive-deep: #5f6a2c;
  --olive-600: #6a7532;
  --tint: #eef0dd;
  --ink: #063930;
  --body: #2f2a1f;
  --muted: #6b6555;
  --hairline: #e6dccb;
  --edge: #ddd3c1;
  --display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 32px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--body);
  font-family: var(--text); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--olive-deep); }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--olive-deep); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }
.measure { max-width: 680px; margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 14px;
  font-family: var(--text); font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--olive-600); color: #ffffff; }
.btn-primary:hover { background: var(--olive-deep); color: #ffffff; }

/* ---- header, shared with the home page ---- */
.site-head {
  border-bottom: 1px solid var(--hairline); background: var(--cream);
  position: sticky; top: 0; z-index: 10;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark img { width: 17px; height: 27px; object-fit: contain; }
.wordmark span { font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: -0.01em; color: var(--green); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { font-size: 14px; color: var(--body); text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--green); }
.site-nav .btn { min-height: 44px; font-size: 14px; padding: 0 20px; }
@media (max-width: 860px) { .site-nav a:not(.btn) { display: none; } }
.site-nav .cta-tail { margin-left: 0.3em; }
@media (max-width: 440px) { .site-nav .cta-tail { display: none; } }

/* ---- breadcrumbs ---- */
.crumbs { padding-block: 26px 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.crumbs li { display: flex; gap: 8px; color: var(--muted); }
.crumbs li + li::before { content: "/"; color: var(--edge); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.crumbs [aria-current="page"] { color: var(--body); }

/* ---- article ---- */
.post { padding-block: 26px 72px; }
.post h1 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.post-meta { font-size: 13px; color: var(--muted); margin-bottom: 30px; }
.post-meta time { font-variant-numeric: tabular-nums; }
.standfirst {
  font-size: 18px; color: var(--body); border-left: 3px solid var(--olive-deep);
  padding-left: 18px; margin-bottom: 36px;
}
.post-body > * + * { margin-top: 20px; }
.post-body h2 { font-size: clamp(23px, 2.8vw, 30px); margin-top: 48px; }
.post-body h3 { font-family: var(--text); font-size: 18px; font-weight: 600; margin-top: 32px; }
.post-body p, .post-body li { color: var(--body); }
.post-body ul, .post-body ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.post-body strong { color: var(--ink); }
.post-body blockquote {
  margin: 0; padding: 18px 22px; background: var(--tint);
  border-radius: 14px; font-size: 16px;
}

/* Numbers are the argument, so the tables get the tabular treatment. */
.figures { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.figures caption { text-align: left; font-size: 13px; color: var(--muted); padding-bottom: 10px; }
.figures th, .figures td { padding: 11px 12px; border-bottom: 1px solid var(--hairline); text-align: right; }
.figures th:first-child, .figures td:first-child { text-align: left; }
.figures thead th { font-weight: 600; color: var(--ink); border-bottom-color: var(--edge); }
.figures tbody tr:last-child td { border-bottom: 0; }
.figures .total td { font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- questions ---- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: var(--white); border: 1px solid var(--hairline); border-radius: 16px; padding: 4px 20px; }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-size: 16px;
  font-weight: 500; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--olive-deep); border-bottom: 2px solid var(--olive-deep);
  transform: rotate(45deg); transform-origin: 70% 70%; transition: transform 0.15s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); }
.faq-list details p { padding: 0 0 18px; font-size: 15px; color: var(--body); }

/* ---- the closing card ---- */
.endcap {
  background: var(--green); color: var(--cream); border-radius: 22px;
  padding: 36px; margin-top: 56px; text-align: center;
}
.endcap h2 { color: var(--cream); font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; }
.endcap p { color: #d9e0c4; margin: 0 auto 24px; max-width: 46ch; }
.endcap .btn { background: var(--cream); color: var(--green); }
.endcap .btn:hover { background: #fff; color: var(--green); }

/* ---- index ---- */
.blog-head { padding-block: 26px 8px; }
.blog-head h1 { font-size: clamp(32px, 4.6vw, 46px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; }
.blog-head p { color: var(--body); font-size: 17px; max-width: 54ch; }
.posts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; padding-block: 40px 72px; }
.posts li { background: var(--white); border: 1px solid var(--hairline); border-radius: 18px; }
.posts a { display: block; padding: 26px 28px; text-decoration: none; }
.posts a:hover { border-radius: 18px; background: #fffdf9; }
.posts h2 { font-size: 22px; margin-bottom: 8px; color: var(--ink); }
.posts p { color: var(--body); font-size: 15px; margin-bottom: 12px; }
.posts time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--hairline); padding-block: 40px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; }
.foot-links a { color: var(--body); text-decoration: none; }
.foot-links a:hover { color: var(--green); }
.site-foot small { font-size: 13px; color: var(--muted); }
/* ---- the home page design (design 7) ---- */
h1, h2, h3 { color: var(--green); letter-spacing: -0.03em; }
.k { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--olive-deep); }
.k::before { content: ''; width: 22px; height: 2px; background: currentColor; }

/* header and footer, exactly as on the home page */
.nav { background: var(--cream); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; height: 76px; gap: 40px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: var(--green); text-decoration: none; }
.brand:hover { color: var(--green); }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.links { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.links a { color: var(--body); text-decoration: none; }
.links a:hover, .links a[aria-current] { color: var(--olive-deep); }
.nav .btn { margin-left: auto; min-height: 0; height: 42px; padding: 0 20px; font-size: 13.5px; }
.navcta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.navcta .login { font-size: 14px; font-weight: 500; color: var(--body); text-decoration: none; }
.navcta .login:hover { color: var(--olive-deep); }
.navcta .btn { margin-left: 0; }
.btn.ink { background: var(--green); color: #fff; }
.btn.ink:hover { background: #0a4a3e; color: #fff; }
.home-foot { background: #052c25; color: rgba(255,247,232,.6); padding: 34px 0; font-size: 13px; }
.home-foot .wrap { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.home-foot .brand { color: #fff7e8; font-size: 17px; }
.home-foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-left: auto; }
.home-foot a { color: rgba(255,247,232,.6); text-decoration: none; }
.home-foot nav a:hover { color: #fff7e8; }

/* index pages: a header like a home page section, with a photo */
.blog-head { display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 56px; align-items: center; padding-block: 34px 10px; }
.blog-head h1 { font-size: 52px; line-height: 1.06; margin: 16px 0 18px; }
.blog-head p { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 54ch; }
.bh-pic { height: 320px; border-radius: 28px; overflow: hidden; background: #d8c4a0; }
.bh-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; padding-block: 44px 96px; }
.posts li { border: 0; border-radius: 24px; background: var(--white); box-shadow: inset 0 0 0 1px var(--hairline); transition: transform .15s, box-shadow .15s; }
.posts li:nth-child(4n+1), .posts li:nth-child(4n+4) { background: #f6efe2; }
.posts li:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--hairline), 0 18px 40px rgba(30,20,8,.10); }
.posts a { height: 100%; display: flex; flex-direction: column; padding: 28px 28px 24px; }
.posts a:hover { background: none; }
.posts h2 { font-size: 21px; line-height: 1.25; color: var(--green); }
.posts p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin-bottom: 18px; }
.posts time { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }
.posts time::after { content: 'Read it  →'; font-size: 13px; font-weight: 600; color: var(--olive-deep); white-space: pre; }

/* articles */
.crumbs { padding-block: 30px 0; }
.post { padding-block: 30px 96px; }
.post h1 { font-size: clamp(34px, 4.8vw, 50px); line-height: 1.08; letter-spacing: -0.03em; }
.standfirst { font-size: 18px; line-height: 1.65; border-left: 0; padding: 20px 24px; background: var(--tint); border-radius: 18px; color: var(--body); }
.post-body h2 { color: var(--green); }
.post-body blockquote { background: #f6efe2; border-radius: 18px; }
.faq-list details { border: 0; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--hairline); }
.faq-list summary { font-weight: 600; color: var(--green); }
.endcap { background: var(--green); border-radius: 28px; padding: 44px 36px; }
.endcap h2 { color: #fff7e8; }
.endcap p { color: rgba(255,247,232,.75); }
.endcap .btn { background: #fff; color: var(--green); height: 50px; min-height: 0; }

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .links, .navcta .login { display: none; }
  .navcta .btn { display: inline-flex; height: 40px; padding: 0 16px; font-size: 13px; }
  .nav .wrap { height: 64px; }
  .home-foot .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .home-foot nav { margin-left: 0; }
  .blog-head { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .blog-head h1 { font-size: 36px; }
  .bh-pic { height: 220px; }
  .posts { grid-template-columns: minmax(0,1fr); gap: 14px; padding-block: 30px 70px; }
  .posts a { padding: 22px 22px 20px; }
  .endcap { padding: 32px 22px; }
}
