:root{
  --brand: #AF1C2E;
  --bg: #f7f4f4;
  --text: #111;
  --typebox: #ffffff;
  --muted: #6b6b6b;
  --max-width: 1100px;
  --divider: rgba(0,0,0,0.08);
  --radius: 8px;
  --gap: 1.25rem;
    /* font weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
    /* fonts */
  --mono: 'JetBrains Mono', ui-monospace, "Google Sans Code", SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
  --ui:  "Lexend", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Basic layout */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: var(--ui);
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.45;
  font-size:16px;
  -webkit-text-size-adjust:100%;
  --content-padding: 1.25rem;
  font-weight: var(--weight-regular);
}

h1, h2, h3, h4 {
  font-weight: var(--weight-semibold);
}

strong, b {
  font-weight: var(--weight-semibold);
}

.nav, .menu, button {
  font-weight: var(--weight-medium);
}

p, li, span {
  font-weight: var(--weight-regular);
}

.site-footer p {
  font-weight: 300;
}



/* Global code styling */
code, pre, pre code {
  font-family: var(--mono) !important;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 400;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Optional: nicer code block background */
pre {
  background:var(--typebox);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid rgba(0,0,0,0.06);
}

/* Optional: inline code style */
code {
  background:var(--typebox);
  padding: 2px 4px;
  border-radius: 4px;
}


a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
  color:var(--brand);
}
.ack { color:var(--text); }


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

/* Skip link */
.skip-link{
  position:absolute;
  left:0;
  top:-40px;
  background:#000;
  color:#fff;
  padding:.5rem;
  z-index:1000;
}
.skip-link:focus{top:8px}

/* Header */
.site-header{
  background:transparent;
  padding:.5rem 0 .25rem;
}
.header-inner{
  display:flex;
  gap:1rem;
  align-items:center;
  justify-content:space-between;
}
.brand .logo{
  font-weight:700;
  color:var(--brand);
  text-decoration:none;
  font-size:2rem;
  letter-spacing:.05em;
}
.brand .dot{ color:var(--text); opacity:.85; margin-left:.12rem }
.tagline{ margin:0; font-size:1rem; color:var(--muted) }

/* Nav */
.site-nav{ display:flex; align-items:center; gap:1rem; }
.nav-toggle{ display:none; background:transparent; border:0; font-size:1.05rem; cursor:pointer; color:var(--text) }
.nav-list{ list-style:none; display:flex; gap:1rem; margin:0; padding:0; align-items:center; }
.nav-list a{ text-decoration:none; color:var(--text); padding:.25rem .35rem; border-radius:4px; font-size:1.2rem; }
.nav-list a:focus, .nav-list a:hover{ outline-offset:3px; box-shadow:0 0 0 3px rgba(175,28,46,0.08) }
.nav-list a[aria-current="page"] {
  color: var(--brand) !important;
  font-weight: 600 !important;
}



/* Hero */
.hero{ padding:1.25rem 0 0 0; display:grid; align-items:center; gap:.2rem; }
.hero-title{ margin:0; font-size:2rem; font-weight: 600; color:var(--brand); line-height:1.08; }
.hero-sub{ margin:.5rem 0 0.5rem; color:var(--muted) }
.hero-ctas{ display:flex; gap:.75rem; flex-wrap:wrap; }

/* Buttons */
.btn{
  display:inline-block;
  padding:.45rem .7rem;
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
  border:1px solid transparent;
  font-size:.95rem;
}
.btn.primary{ background:var(--brand); color:#fff; box-shadow: none;}
.btn.primary.home{ background:var(--brand); color:#fff; box-shadow: none; margin-top: 1rem; margin-bottom: 2rem; margin-right: 2rem; }
.btn.ghost{ background:transparent; color:var(--brand); border-color:var(--brand); }

/* Divider (single line) */
.divider{ border:0; height:1px; background:var(--divider); margin:0; }

.h1fet { font-size:2rem; margin:0; color:var(--text); }

/* Grid */
.grid{ display:flex; gap:1rem; flex-wrap:wrap; margin-top:1rem; }
.grid.three .card{ flex:1 1 calc(33.333% - 1rem); min-width:240px; }

/* Card */
.card{ background:transparent; border-radius:6px; overflow:hidden; display:flex; flex-direction:column; gap:.6rem; }
.card-hero img{ width:100%; height:160px; object-fit:cover; display:block; border-radius:6px; }
.card-hero.placeholder{ background:linear-gradient(90deg,#f4f4f4,#fafafa); height:160px; border-radius:6px }
.card-body{ padding:.6rem 0; }
.card-body h3{ margin:.15rem 0; font-size:1.05rem; color:var(--text); }
.muted{ color:var(--muted); font-size:.95rem; }

/* Badges */
.badge{ display:inline-block; font-weight:600; font-size:.75rem; padding:.2rem .45rem; border-radius:999px; background:rgba(175,28,46,0.06); color:var(--brand); margin-right:.35rem; margin-top: .35rem; margin-bottom: .35rem; }

/* Specimen */

.specimen-controls{ margin-top:.6rem; display:flex; gap:.5rem; align-items:center; }
.specimen-controls input[type="range"]{ width:220px; }

/* Blog teaser */
.blog-teaser .post h3{ margin:.2rem 0; font-size:1.05rem; }
.post a{ color:var(--brand); text-decoration:none; }

/* Contact */
.contact-cta{ padding:1rem 0; }

/* Footer */
.site-footer{ margin-top:0rem; padding:1rem 0; background:transparent; }
.footer-inner{ display:flex; justify-content:space-between; gap:1rem; align-items:center; font-size:.95rem; color:var(--muted) }


/* Responsiveness */
@media (max-width:900px){
  .grid.three .card{ flex:1 1 calc(50% - 1rem) }
}
@media (max-width:640px){
  .grid.three .card{ flex:1 1 100% }
  .site-nav .nav-list{ display:none; position:absolute; right:1rem; top:68px; background:#fff; box-shadow:0 8px 20px rgba(0,0,0,0.06); padding:0.6rem; border-radius:8px; flex-direction:column; min-width:160px; }
  .nav-toggle{ display:block }
  .header-inner{ align-items:flex-start }
  .brand .tagline{ display:none }
}

@media (max-width: 768px) {
  html, body {
    margin-left: 0rem !important;
    margin-right: 0rem !important;
  }
}

/* ---------------------------------------
   MOBILE NAV + BRAND RESPONSIVE
---------------------------------------- */
@media (max-width: 640px) {

  /* brand area smaller */
  .brand .logo {
    font-size: 1.5rem;
    letter-spacing: .03em;
  }

  .tagline {
    font-size: .85rem;
  }

  /* show hamburger */
  .nav-toggle {
    display: block;
    font-size: 1.6rem;
    padding: .25rem .5rem;
  }

  /* hide the nav by default */
  .nav-list {
    display: none;
    flex-direction: column;
    gap: .75rem;
    background: white;
    width: 100%;
    padding: 1rem 0;
    margin-top: .5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
  }

  /* when nav-open class is applied (via JS) */
  .nav-list.open {
    display: flex;
  }

  /* links smaller & centered */
  .nav-list a {
    font-size: 1.1rem;
    text-align: center;
    padding: .5rem 1rem;
    width: 100%;
  }

  /* entire header stacked */
  .site-header .header-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 860px){
  .post-media {
    width: 100%;
    height: auto;      /* important */
  }
  .post-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }
}



/* small helpers */
code{ font-family: var(--mono); padding:.1rem .25rem; border-radius:4px; font-size:.92em; }

.page-root main,
.page-about main,
.page-fonts main,
.page-blog main,
.page-article main { min-height: calc(100vh - 180px); }
