/* Lore Hex — petrol & brass. IBM Plex family. */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Serif:wght@400;500;600&display=swap');

:root {
  --paper:      #F7F5F0;
  --paper-2:    #EFECE4;
  --ink:        #0F1419;
  --slate:      #59636E;
  --hairline:   #D9D4C8;
  --petrol:     #0D4A54;
  --petrol-2:   #12656F;
  --brass:      #9A6F24;
  --ok:         #1F6F4A;
  --warn:       #8A5A12;
  --shadow:     rgba(15,20,25,.07);
  --measure:    68ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:    #0B0F12;
    --paper-2:  #131A1F;
    --ink:      #E9E6DE;
    --slate:    #97A2AD;
    --hairline: #26313A;
    --petrol:   #56B5C0;
    --petrol-2: #7ACBD4;
    --brass:    #D2A24E;
    --ok:       #5FC08C;
    --warn:     #E0B25C;
    --shadow:   rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --paper: #0B0F12; --paper-2: #131A1F; --ink: #E9E6DE; --slate: #97A2AD;
  --hairline: #26313A; --petrol: #56B5C0; --petrol-2: #7ACBD4; --brass: #D2A24E;
  --ok: #5FC08C; --warn: #E0B25C; --shadow: rgba(0,0,0,.4);
}
:root[data-theme="light"] {
  --paper: #F7F5F0; --paper-2: #EFECE4; --ink: #0F1419; --slate: #59636E;
  --hairline: #D9D4C8; --petrol: #0D4A54; --petrol-2: #12656F; --brass: #9A6F24;
  --ok: #1F6F4A; --warn: #8A5A12; --shadow: rgba(15,20,25,.07);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 17px; line-height: 1.62; letter-spacing: -.003em;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.prose { max-width: var(--measure); }

h1, h2, h3 { font-family: "IBM Plex Serif", Georgia, serif; font-weight: 600; text-wrap: balance; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.08; margin: 0 0 .5em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.2; margin: 2.6em 0 .7em; }
h3 { font-size: 1.12rem; margin: 2em 0 .4em; }
p  { margin: 0 0 1.1em; }
a  { color: var(--petrol); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--petrol-2); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
code, .mono { font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
code { background: var(--paper-2); padding: .12em .38em; border-radius: 3px; }

/* ---- masthead ---- */
.masthead { border-bottom: 1px solid var(--hairline); position: sticky; top: 0; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); z-index: 20; }
.masthead .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "IBM Plex Serif", Georgia, serif; font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand svg { display: block; }
.nav { margin-left: auto; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.nav a { font-size: .93rem; color: var(--slate); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* ---- hero ---- */
.hero { padding: 88px 0 20px; border-bottom: 1px solid var(--hairline); }
.eyebrow { font-family: "IBM Plex Mono", monospace; font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: var(--brass); margin: 0 0 1.4em; }
.lede { font-size: 1.2rem; color: var(--slate); max-width: 58ch; }
.hero-meta { display: flex; gap: 34px; flex-wrap: wrap; margin: 40px 0 8px; padding-top: 26px; border-top: 1px solid var(--hairline); }
.hero-meta div { min-width: 110px; }
.hero-meta dt { font-family: "IBM Plex Mono", monospace; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); margin-bottom: 5px; }
.hero-meta dd { margin: 0; font-size: 1rem; font-weight: 500; font-variant-numeric: tabular-nums; }

section { padding: 8px 0 4px; }
.section-rule { display: flex; align-items: center; gap: 14px; margin: 3.2em 0 1.2em; }
.section-rule h2 { margin: 0; }
.section-rule::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

/* ---- model table ---- */
.tablewrap { overflow-x: auto; margin: 1.6em 0 1em; border: 1px solid var(--hairline); border-radius: 6px; background: var(--paper-2); }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .92rem; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
thead th { font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); font-weight: 500; background: var(--paper); }
tbody tr:last-child td { border-bottom: none; }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
td .mid { font-family: "IBM Plex Mono", monospace; font-size: .84rem; color: var(--ink); display: block; }
td .mname { color: var(--slate); font-size: .84rem; }

.pill { display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap; }
.pill.live { color: var(--ok); }
.pill.hold { color: var(--warn); }

.card { border: 1px solid var(--hairline); border-radius: 6px; padding: 22px 24px; background: var(--paper-2); margin: 1.2em 0; }
.card h3 { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 1.4em 0; }

.note { border-left: 3px solid var(--brass); padding: 4px 0 4px 18px; margin: 1.6em 0; color: var(--slate); }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .45em; }
dl.kv { margin: 1.2em 0; }
dl.kv dt { font-weight: 600; margin-top: 1.1em; }
dl.kv dd { margin: .2em 0 0; color: var(--slate); }

footer { border-top: 1px solid var(--hairline); margin-top: 76px; padding: 34px 0 60px; color: var(--slate); font-size: .88rem; }
footer .wrap { display: flex; gap: 26px; flex-wrap: wrap; align-items: baseline; }
footer a { color: var(--slate); }
footer .spacer { flex: 1; }
.updated { font-family: "IBM Plex Mono", monospace; font-size: .78rem; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 52px 0 16px; }
  .masthead .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; gap: 12px; }
  .nav { gap: 16px; width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
