/* Grustl — site styles */
:root {
  --ink: #111111;
  --ink-soft: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-alt: #f6f6f4;
  --accent: #ff5a1f;
  --accent-dark: #d9450f;
  --radius: 14px;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 38px; width: auto; }

.nav-toggle { display: none; }

.nav-toggle-label {
  display: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform .2s ease, background .2s ease;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after { content: ""; position: absolute; left: 0; }
.nav-toggle-label span::before { top: -7px; }
.nav-toggle-label span::after { top: 7px; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.main-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--ink); color: #fff; }

@media (max-width: 760px) {
  .nav-toggle-label { display: block; }
  .main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .main-nav ul { flex-direction: column; padding: 12px 24px 20px; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 16px; }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked ~ .nav-toggle-label span::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label span::after { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Typography ---------- */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; margin-top: 1.6em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul.list, ol.list { padding-left: 1.25em; margin: 0 0 1.2em; }
ul.list li, ol.list li { margin-bottom: .45em; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.lead { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(255, 90, 31, .12), transparent 60%),
    linear-gradient(180deg, #fff, var(--bg-alt));
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 20ch; }
.hero .lead { max-width: 58ch; }
.page-hero { padding: 64px 0 48px; }
.page-hero h1 { max-width: 22ch; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section > .container > h2:first-child,
.section-head h2 { margin-top: 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: #cfcfcf; box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}

.post-card { display: flex; flex-direction: column; }
.post-card .meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--accent-dark); }
.post-card .more { margin-top: auto; font-weight: 600; text-decoration: none; }

.callout {
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  padding: 18px 22px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.6em 0;
}

.cta {
  background: var(--ink);
  color: #fff;
  border-radius: 22px;
  padding: 48px;
  text-align: center;
}
.cta h2 { color: #fff; margin-top: 0; }
.cta p { color: #cfcfcf; max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta .btn-primary { background: var(--accent); border-color: var(--accent); }
.cta .btn-primary:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Article ---------- */
.article { padding: 56px 0 80px; }
.article .meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Contact ---------- */
.contact-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-box .big { font-size: 1.25rem; font-weight: 700; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0 32px;
  font-size: 15px;
  color: var(--muted);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-brand img { height: 30px; width: auto; margin-bottom: 10px; }
.footer-brand p { max-width: 36ch; margin: 0; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.footer-nav a { color: var(--ink-soft); text-decoration: none; }
.footer-nav a:hover { color: var(--accent-dark); }
.copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 12px; top: 12px; }
