@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

/* ---------- Tokens ---------- */
:root{
  --navy:#16324F;
  --navy-2:#0F2438;
  --steel:#5A8AB0;
  --steel-line:rgba(255,255,255,0.09);
  --yellow:#F0B429;
  --yellow-ink:#5C3D00;
  --manila:#EAD9AF;
  --manila-edge:#CDB47D;
  --paper:#FAF8F3;
  --ink:#20262C;
  --ink-soft:#54606A;
  --rust:#A8481D;
  --radius:2px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:'Inter', Arial, sans-serif;
  font-size:16.5px;
  line-height:1.7;
}

.eyebrow, .tag, nav a, .breadcrumb, .meta, .card-meta{
  font-family:'IBM Plex Mono', monospace;
  letter-spacing:0.04em;
}

h1, h2, h3, .brand{
  font-family:'Space Grotesk', Arial, sans-serif;
  color:var(--navy);
  letter-spacing:-0.01em;
}

a{color:var(--navy)}
a:hover{color:var(--rust)}

/* ---------- Header ---------- */
header.site-header{
  background:var(--navy);
  border-bottom:3px solid var(--yellow);
  padding:16px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
}
.brand{
  color:#fff;
  text-decoration:none;
  font-size:1.35rem;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:8px;
}
.brand::before{
  content:"";
  width:11px; height:11px;
  background:var(--yellow);
  display:inline-block;
  transform:rotate(45deg);
  border-radius:1px;
}
.brand span{color:var(--yellow)}
nav{display:flex; gap:22px; flex-wrap:wrap;}
nav a{
  color:#cfe0ee;
  text-decoration:none;
  font-size:0.78rem;
  font-weight:600;
  text-transform:uppercase;
  padding-bottom:3px;
  border-bottom:2px solid transparent;
}
nav a:hover{color:#fff; border-bottom-color:var(--yellow);}

/* ---------- Hero (index only) ---------- */
.hero{
  position:relative;
  background:
    repeating-linear-gradient(0deg, var(--steel-line) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, var(--steel-line) 0 1px, transparent 1px 32px),
    var(--navy);
  color:#fff;
  padding:64px 28px 56px;
  overflow:hidden;
}
.hero-inner{max-width:900px; margin:0 auto; position:relative;}
.hero .eyebrow{
  color:var(--yellow);
  font-size:0.78rem;
  text-transform:uppercase;
  font-weight:600;
  display:inline-block;
  margin-bottom:14px;
}
.hero h1{
  color:#fff;
  font-size:clamp(2.1rem, 4.5vw, 3.1rem);
  margin:0 0 16px;
  line-height:1.08;
}
.hero p{
  color:#c9d9e6;
  font-size:1.1rem;
  max-width:560px;
  margin:0;
}
.hero-mark{
  position:absolute;
  right:0; top:8px;
  width:150px; height:150px;
  opacity:0.5;
}
@media (max-width:700px){ .hero-mark{display:none} }

/* ---------- Main content ---------- */
main{max-width:760px; margin:0 auto; padding:44px 24px 70px;}
main.wide{max-width:980px;}

.breadcrumb{
  font-size:0.72rem;
  color:var(--ink-soft);
  text-transform:uppercase;
  margin-bottom:14px;
}
.breadcrumb a{color:var(--ink-soft)}

.tag{
  display:inline-block;
  background:var(--navy);
  color:var(--yellow);
  font-size:0.68rem;
  font-weight:600;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:2px;
  margin-bottom:12px;
}

main h1{font-size:2rem; margin:6px 0 8px;}
.meta{
  font-size:0.78rem;
  color:var(--ink-soft);
  text-transform:uppercase;
  margin-bottom:26px;
  padding-bottom:16px;
  border-bottom:1px dashed var(--manila-edge);
}

main h2{
  font-size:1.3rem;
  margin-top:38px;
  padding-left:20px;
  position:relative;
}
main h2::before{
  content:"";
  position:absolute;
  left:0; top:7px;
  width:11px; height:11px;
  background:var(--yellow);
  border-radius:2px;
}

p{margin:14px 0}
ul, ol{padding-left:22px}
li{margin-bottom:8px}

.callout{
  background:#fff;
  border:1px dashed var(--manila-edge);
  border-left:4px solid var(--yellow);
  border-radius:2px;
  padding:16px 20px;
  font-size:0.95rem;
  color:var(--ink);
  margin:26px 0;
  position:relative;
}
.callout::before{
  content:"NOTE";
  font-family:'IBM Plex Mono', monospace;
  font-size:0.65rem;
  font-weight:600;
  color:var(--rust);
  letter-spacing:0.08em;
  display:block;
  margin-bottom:6px;
}

.section-title{padding-left:0 !important; margin-top:0 !important;}
.section-title::before{display:none}

.legal h1{font-size:1.9rem}
.legal h2{padding-left:0}
.legal h2::before{display:none}
.legal .meta{border-bottom:none; padding-bottom:0;}

/* ---------- Article grid / hang-tag cards ---------- */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap:22px;
  margin-top:22px;
}
.card{
  background:var(--manila);
  border:1px solid var(--manila-edge);
  border-radius:3px;
  padding:20px 18px 18px;
  position:relative;
  text-decoration:none;
  color:inherit;
  transition:transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow:2px 3px 0 rgba(22,50,79,0.06);
}
.card:hover{
  transform:rotate(-1deg) translateY(-2px);
  box-shadow:3px 6px 0 rgba(22,50,79,0.12);
}
.card::before{
  content:"";
  position:absolute;
  top:10px; left:10px;
  width:9px; height:9px;
  border-radius:50%;
  background:var(--paper);
  border:1px solid var(--manila-edge);
}
.card .tag{
  margin-left:16px;
}
.card h3{
  font-size:1.08rem;
  margin:6px 0 8px;
  line-height:1.3;
}
.card .excerpt{
  font-size:0.9rem;
  color:var(--ink-soft);
  margin:0 0 12px;
}
.card a.read-more{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.72rem;
  font-weight:600;
  text-transform:uppercase;
  color:var(--navy);
  text-decoration:none;
}
.card a.read-more:hover{color:var(--rust)}

/* ---------- Footer ---------- */
footer{
  background:var(--navy-2);
  color:#a9bccb;
  padding:36px 28px;
  font-size:0.85rem;
  margin-top:20px;
}
footer .footer-inner{
  max-width:980px;
  margin:0 auto;
}
footer p{margin:6px 0}
footer a{color:#cfe0ee}
footer a:hover{color:var(--yellow)}
footer .meta{
  color:#7f93a3;
  font-size:0.75rem;
  border-bottom:none;
  padding-bottom:0;
  margin-top:14px;
}

@media (max-width:600px){
  header.site-header{padding:14px 18px}
  nav{gap:14px}
  main{padding:32px 18px 50px}
  .hero{padding:44px 18px 40px}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .card{transition:none}
  .card:hover{transform:none}
  html{scroll-behavior:auto}
}

/* Keyboard focus visibility */
a:focus-visible, button:focus-visible{
  outline:2px solid var(--yellow);
  outline-offset:2px;
}
