:root{
  --rule: 1px solid var(--line);
}

body{
  background:
    linear-gradient(var(--bg), var(--bg)),
    repeating-linear-gradient(0deg, transparent 0 31px, color-mix(in srgb, var(--line) 28%, transparent) 31px 32px);
  background-blend-mode: normal;
  color: var(--text);
}

.section{
  background: transparent;
  border-top: var(--rule);
}
.section:first-of-type{ border-top: 0; }

/* Oversized editorial display headlines */
.hero-title,
h1, h2{
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.04;
}
.hero-title{
  font-weight: 800;
  letter-spacing: -0.02em;
}
h2{
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--text);
}
.muted, .hero-sub{ color: var(--text-2); }

/* Mulberry marks for links only */
.article a, .prose a, a.inline, p a{
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 3px;
}
.article a:hover{ text-decoration-color: var(--accent); }

/* Drop cap on lead article paragraph */
.article > p:first-of-type::first-letter{
  float: left;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 3.6em;
  line-height: .8;
  padding: .04em .12em .02em 0;
  color: var(--accent);
}

/* Hero: paper panel, generous & quiet */
.hero{
  background: var(--panel);
  border: var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line);
}
.fact{
  background: #0000;
  border-left: 3px solid var(--accent);
  border-radius: 0;
}
.fact b{ color: var(--text); font-family: var(--font-head); }

/* Cards — disciplined, hairline ruled */
.card, .feature{
  background: var(--panel);
  border: var(--rule);
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover, .feature:hover{
  border-color: var(--accent);
  transform: translateY(-2px);
}
.feature .icon{
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 50%;
}

/* Buttons — letterpress restraint */
.btn{
  border-radius: calc(var(--radius) - 4px);
  letter-spacing: .02em;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary{
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
}
.btn-primary:hover{ background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
.btn-ghost:hover{ color: var(--accent); border-color: var(--accent); }

/* Badge — editorial label */
.badge{
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Catalog tiles */
.tab{
  border: var(--rule);
  border-radius: 2px;
  background: var(--panel);
  letter-spacing: .04em;
  transition: color .2s ease, border-color .2s ease;
}
.tab.active{ background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tab:hover{ color: var(--accent); }
.tile{
  background: var(--panel);
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.tile:hover{ border-color: var(--accent); transform: translateY(-3px); }
.tile .gp{ color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.tile .nm{ color: var(--text); font-family: var(--font-head); font-weight: 600; }
.tile.noimg{
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 6%, var(--panel)), var(--panel));
}

/* Tables & FAQ */
.table{ border: var(--rule); }
.table th{ background: var(--panel-2); color: var(--text); border-bottom: 2px solid var(--text); }
.table td, .table th{ border-bottom: var(--rule); }
.faq-item{
  background: var(--panel);
  border: 0;
  border-bottom: var(--rule);
  border-radius: 0;
}
.faq-q{ color: var(--text); font-family: var(--font-head); font-weight: 600; }
.faq-q:hover{ color: var(--accent); }
.faq-item[open] .faq-q, .faq-q[aria-expanded="true"]{ color: var(--accent); }

/* Header & footer hairlines */
.site-header{ background: color-mix(in srgb, var(--panel) 88%, transparent); border-bottom: var(--rule); backdrop-filter: blur(6px); }
.site-footer, .foot{ border-top: 2px solid var(--text); background: var(--panel); }