:root {
  --bg: #ffffff;
  --text: #0c0d0f;
  --muted: #5b626b;
  --border: #e6e8ec;
  --panel: #fafbfc;
  --link: #0c0d0f;
  --linkHover: #0f6a3a;
  --cta: #0b0c0f;
  --ctaHover: #000000;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.08);

  --wrap: 1120px;
  --gap: 24px;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 700px at 30% -10%, #f4f6f9 0%, var(--bg) 55%);
  font-family: var(--sans);
  line-height: 1.55;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover { color: var(--linkHover); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--linkHover);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 18px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transform: translateY(-140%);
  transition: transform 150ms ease;
  z-index: 999;
}
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header {
  position: static;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(18px 18px at 30% 20%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 65%),
    linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
  font-family: var(--serif);
  font-size: 18px;
}
.brand-name { white-space: nowrap; }

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.site-nav a:hover {
  background: #f2f4f7;
}
.site-nav .cta {
  background: var(--cta);
  color: #fff;
  text-decoration: none;
}
.site-nav .cta:hover {
  background: var(--ctaHover);
  color: #fff;
}

/* Page title */
.hero {
  padding: 34px 0 14px;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.2px;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.12;
}
.hero p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

/* Layout */
.content {
  padding: 16px 0 70px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--gap);
  align-items: start;
}
.grid.grid-one {
  grid-template-columns: 1fr;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.card.pad { padding: 18px; }

/* Post list */
.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.post-item {
  padding: 18px;
  border-bottom: 1px solid var(--border);
}
.post-item:last-child { border-bottom: 0; }

.post-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.25;
}
.post-title a { text-decoration: underline; }

.post-meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.post-excerpt {
  margin: 10px 0 0;
  color: #1f2937;
}

.post-tags {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 4px 8px;
  border-radius: 999px;
  color: #111827;
}

/* Article */
.article h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.2px;
}
.article h1.seo-h1 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: 0;
}
.article h2.article-title {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.2px;
}
.article .lede {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 16px;
}
.article h2 {
  margin: 22px 0 10px;
  font-family: var(--serif);
  font-size: 22px;
}
.article p { margin: 12px 0; }
.article ul { margin: 10px 0 10px 22px; }
.article li { margin: 6px 0; }
.article .note {
  border-left: 4px solid var(--cta);
  background: #f5f7fa;
  padding: 12px 14px;
  border-radius: 12px;
  margin: 16px 0;
}
.article .pager {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.article .pager a {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  font-weight: 600;
}
.article .pager a:hover { background: #f2f4f7; }

.article .article-cta {
  margin-top: 18px;
  padding: 14px 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.article .article-cta p {
  margin: 0;
  color: #1f2937;
  font-weight: 600;
}
.article .article-cta a.cta-button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,0.12);
}
.article .article-cta a.cta-button:hover {
  background: var(--ctaHover);
  color: #fff;
}

/* Contact form */
.contact-form {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

/* Jotform embed: visually mask the free-plan branding bar at the bottom of the iframe.
   Note: this does not remove it from the iframe; it's only an overlay on our site. */
.jotform-wrapper { position: relative; }
.jotform-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: #fff;
  pointer-events: none;
}
.form-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px 22px;
  align-items: start;
}
.form-label label, .form-label span {
  display: inline-block;
  font-weight: 700;
  color: #111827;
}
.req { color: #c81e1e; }
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #cfd6df;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.form-field textarea { resize: vertical; min-height: 170px; }
.form-field.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.checks { display: grid; gap: 10px; }
.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: #111827;
  font-size: 14px;
}
.check input { margin-top: 2px; }
.form-actions {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}
button.submit {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  background: var(--cta);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
button.submit:hover { background: var(--ctaHover); }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 880px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-field.two { grid-template-columns: 1fr; }
}

/* Sidebar */
.sidebar h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 18px;
}
.latest {
  margin: 0;
  padding: 0;
  list-style: none;
}
.latest li { border-top: 1px solid var(--border); }
.latest li:first-child { border-top: 0; }
.latest a {
  display: block;
  padding: 12px 0;
  text-decoration: underline;
}
.latest a[aria-current="page"] {
  color: var(--linkHover);
}

.sidebar .box {
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed #cfd6df;
  border-radius: 14px;
  background: #fbfcfe;
}
.sidebar .box strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  margin-bottom: 6px;
}
.sidebar .box p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.sidebar .box a {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
}
.sidebar .box a:hover { background: var(--ctaHover); color: #fff; }

/* Index blocks */
.index-block h2 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}
.index-block .hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.link-item a {
  display: block;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  text-decoration: underline;
  font-weight: 700;
}
.link-item a:hover {
  background: #f5f7fa;
}
.link-item .sub {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
}

/* Footer */
.site-footer {
  background: #0b0c0f;
  color: rgba(255,255,255,0.86);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  padding: 34px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.site-footer h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0.2px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin: 6px 0; }
.site-footer a { color: rgba(255,255,255,0.86); text-decoration: underline; }
.site-footer a:hover { color: #fff; }
.fineprint {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 0;
  color: rgba(255,255,255,0.66);
  font-size: 13px;
}

/* Embeds */
.jotform-badge-cover {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 86px;
  background: #fff;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  html.js .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  html.js nav.site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    display: none;
    padding: 10px 18px 14px;
  }
  html.js nav.site-nav.open { display: grid; }
  html.js nav.site-nav a { padding: 10px 12px; }
  .footer-inner { grid-template-columns: 1fr; }
}
