/*
Theme Name: Nu IT
Theme URI: https://nuit.dk/
Author: Jens Ulrik Lange — Nu IT
Author URI: https://nuit.dk/
Description: Editorial, Scandinavian-minimal theme for the Nu IT one-person IT consultancy. Warm off-white + charcoal with amber/blue accents, self-hosted open fonts (Newsreader, Schibsted Grotesk, JetBrains Mono). Classic PHP theme — no page builder required.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nuit
Tags: blog, portfolio, one-column, custom-menu, custom-logo, editor-style, threaded-comments, translation-ready
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  --bg:        oklch(0.975 0.006 80);
  --bg-2:      oklch(0.955 0.008 80);
  --ink:       oklch(0.235 0.012 60);
  --ink-soft:  oklch(0.52  0.014 60);
  --ink-faint: oklch(0.66  0.012 60);
  --dark:      oklch(0.205 0.012 70);
  --dark-2:    oklch(0.255 0.013 70);
  --on-dark:   oklch(0.945 0.008 80);
  --on-dark-soft: oklch(0.74 0.012 75);
  --amber:     oklch(0.70 0.125 56);
  --amber-deep: oklch(0.62 0.13 52);
  --blue:      oklch(0.62 0.105 248);
  --blue-soft: oklch(0.72 0.07 248);
  --line:      oklch(0.235 0.012 60 / 0.12);
  --line-dark: oklch(0.945 0.008 80 / 0.16);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1440px;
  --measure: 720px;
}

/* ============================================================
   2. RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1.2em; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

/* ============================================================
   3. WORDPRESS REQUIRED / CORE CLASSES
   ============================================================ */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto; clip-path: none; color: #1b1916;
  display: block; height: auto; left: 8px; top: 8px; padding: 14px 22px;
  width: auto; z-index: 100000; border-radius: 2px; box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.alignleft  { float: left;  margin: 0.4em 1.6em 1.2em 0; }
.alignright { float: right; margin: 0.4em 0 1.2em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide  { width: min(100%, 1080px); margin-left: auto; margin-right: auto; }
.alignfull  { width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption {
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint);
  margin-top: 10px; letter-spacing: 0.02em;
}
.sticky, .bypostauthor { display: block; }
.post-password-form input[type="password"] {
  font-family: var(--mono); padding: 10px 14px; border: 1px solid var(--line);
}
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 1.5em 0; }
.gallery-item img { width: 100%; }

/* ============================================================
   4. LAYOUT HELPERS
   ============================================================ */
.gutter { padding-inline: var(--gutter); }
.idx-grid { display: grid; grid-template-columns: 64px 1fr; gap: clamp(20px,3vw,48px); }
.idx { font-family: var(--mono); font-size: 13px; color: var(--blue); padding-top: 4px; }
.section-eyebrow { color: var(--ink-faint); margin-bottom: 22px; }

/* ============================================================
   5. SITE HEADER
   ============================================================ */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  max-width: var(--maxw); margin: 0 auto;
  height: 84px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: inline-flex; color: var(--ink); }
.brand svg { display: block; height: 22px; width: auto; }
.main-nav ul { display: flex; gap: clamp(16px,2.4vw,34px); list-style: none; align-items: center; }
.main-nav a {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--ink-soft); text-decoration: none; transition: color .15s;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--ink); }
.nav-toggle { display: none; }

/* header variant on dark mastheads: keep header light (sticky) — default */

/* ============================================================
   6. HERO + FRONT-PAGE SECTIONS
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; }
.hero {
  background: var(--dark); color: var(--on-dark);
  display: grid; grid-template-columns: 1fr 392px;
}
.hero__main {
  padding: clamp(40px,5vw,64px) var(--gutter);
  border-right: 1px solid var(--line-dark);
  display: flex; flex-direction: column; min-height: 600px;
}
.hero__status { font-family: var(--mono); font-size: 12.5px; color: var(--blue-soft);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 26px; }
.hero__center { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 760px; padding: 36px 0; }
.hero h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.2; margin-bottom: 28px; }
.hero__sub { font-size: clamp(16px,1.4vw,18px); line-height: 1.6; color: var(--on-dark-soft); max-width: 560px; margin: 0; }
.hero__spec {
  font-family: var(--mono); font-size: 12.5px;
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
  border-top: 1px solid var(--line-dark); padding-top: 22px; margin-top: 36px;
}
.hero__spec dt { color: var(--on-dark-soft); margin-bottom: 6px; }
.hero__spec dd { margin: 0; }
.hero__topmeta { font-family: var(--mono); font-size: 12px; color: var(--on-dark-soft); letter-spacing: 0.04em; }
.hero__aside { display: flex; flex-direction: column; }
.hero__portrait { position: relative; overflow: hidden; flex: 1 1 50%; min-height: 240px; }
.hero__portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; }
.hero__name { flex: 1 1 50%; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: clamp(26px, 3.4vw, 42px) 28px; }
.hero__name strong { font-family: var(--serif); font-weight: 400; font-size: 24px; display: block; margin-bottom: 4px; }
.hero__name span { font-family: var(--mono); font-size: 12px; color: var(--on-dark-soft); }

/* shared portrait grade so photos harmonise with the palette */
.graded { position: relative; }
.graded > img { filter: contrast(1.08) saturate(1.06) brightness(1.015); }
.graded::after { content:''; position:absolute; inset:0; pointer-events:none;
  background: var(--amber); opacity: .12; mix-blend-mode: soft-light; }
.graded::before { content:''; position:absolute; inset:0; pointer-events:none; z-index:1;
  background: radial-gradient(120% 90% at 50% 32%, transparent 58%, oklch(0.30 0.02 60 / 0.16) 100%); }

/* AI bar */
.ai-bar { background: var(--blue); color: #fff; display: grid; grid-template-columns: 220px 1fr; align-items: stretch; }
.ai-bar__tag { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em;
  padding: 0 var(--gutter); border-right: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; }
.ai-bar__text { padding: 28px var(--gutter); font-size: clamp(16px,1.5vw,19px); line-height: 1.45; font-family: var(--serif); margin: 0; align-self: center; }

/* Tilgang */
.tilgang { background: var(--bg); padding: clamp(56px,6vw,80px) var(--gutter); }
.tilgang__grid { display: grid; grid-template-columns: 64px 1fr 1fr; gap: clamp(24px,3vw,48px); }
.tilgang h2 { font-size: clamp(24px,2.6vw,33px); line-height: 1.2; }
.tilgang__quote { border-left: 1px solid var(--line); padding-left: 48px; display: flex; flex-direction: column; justify-content: center; }
.tilgang__quote p { font-family: var(--serif); font-style: italic; font-size: clamp(17px,1.6vw,20px); line-height: 1.55; color: var(--ink-soft); margin: 0; }
.tilgang__quote cite { font-family: var(--mono); font-style: normal; font-size: 12px; color: var(--ink-faint); margin-top: 22px; }

/* ============================================================
   7. TECH STACK (front page + page)
   ============================================================ */
.tech { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(56px,6vw,78px) var(--gutter); }
.tech__grid { display: grid; grid-template-columns: 64px 1fr; gap: clamp(24px,3vw,48px); }
.tech__cols { display: grid; grid-template-columns: 0.5fr 1fr; gap: clamp(32px,5vw,72px); }
.tech h2 { font-size: clamp(28px,3vw,38px); line-height: 1.08; margin-bottom: 22px; }
.tech__lead { font-size: 16px; line-height: 1.6; color: var(--ink-soft); max-width: 340px; margin: 0; }
.tech__groups { display: flex; flex-direction: column; gap: 28px; }
.tech__group-label { font-family: var(--mono); font-size: 12px; color: var(--amber-deep);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 11px; list-style: none; }
.chip { font-family: var(--serif); font-size: 21px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }

/* Teknologier table page */
.tech-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.tech-table caption { text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint); padding-bottom: 18px; }
.tech-table th, .tech-table td { text-align: left; padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tech-table thead th { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 500; border-bottom: 2px solid var(--ink); }
.tech-table td.area { font-family: var(--mono); font-size: 12.5px; color: var(--amber-deep); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.tech-table td.name { font-family: var(--serif); font-size: 22px; }
.tech-table tbody tr:hover { background: var(--bg-2); }

/* ============================================================
   8. CONTACT / FOOTER
   ============================================================ */
.contact { background: var(--amber); color: var(--dark); padding: clamp(48px,6vw,72px) var(--gutter); }
.contact__grid { display: grid; grid-template-columns: 64px 1fr 1fr; gap: clamp(24px,3vw,48px); align-items: center; }
.contact h2 { font-size: clamp(34px,4vw,50px); line-height: 1.02; margin-bottom: 28px; }
.contact .idx { color: var(--dark); opacity: .55; }
.contact .eyebrow { opacity: .6; margin-bottom: 22px; }
.contact__list { font-family: var(--mono); font-size: 14px; }
.contact__list .row { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid rgba(27,25,22,.22); }
.contact__list .row span:first-child { opacity: .7; }
.contact__list .row span:last-child { font-weight: 500; }
.contact__list a { text-decoration: none; }

.btn {
  display: inline-block; background: var(--dark); color: var(--on-dark);
  font-weight: 600; font-size: 15px; padding: 16px 32px; border-radius: 2px;
  text-decoration: none; border: 0; cursor: pointer; transition: transform .12s, opacity .15s;
}
.btn:hover { opacity: .92; }
.btn--amber { background: var(--amber); color: var(--dark); }

.site-footer { background: var(--dark); color: var(--on-dark-soft); }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 12.5px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer__social { display: flex; gap: 22px; }

/* ============================================================
   9. PAGE HEADER (inner pages) + ARTICLE MASTHEAD
   ============================================================ */
.masthead { background: var(--dark); color: var(--on-dark); padding: clamp(48px,5vw,64px) var(--gutter) clamp(40px,5vw,56px); }
.masthead__grid { display: grid; grid-template-columns: 64px 1fr; gap: clamp(20px,3vw,48px); }
.masthead .kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; color: var(--blue-soft); margin-bottom: 28px; }
.masthead h1 { font-size: clamp(32px,4.4vw,52px); line-height: 1.08; max-width: 980px; margin-bottom: 36px; }
.masthead__meta { font-family: var(--mono); font-size: 12.5px; color: var(--on-dark-soft);
  display: flex; flex-wrap: wrap; gap: 40px; border-top: 1px solid var(--line-dark); padding-top: 22px; }
.masthead__meta strong { color: var(--on-dark); font-weight: 400; }

/* ============================================================
   10. ARTICLE BODY (single + pages)
   ============================================================ */
.article-wrap { background: var(--bg); padding: clamp(56px,6vw,80px) var(--gutter); }
.article-grid { display: grid; grid-template-columns: 220px minmax(0,var(--measure)) 1fr; gap: clamp(32px,4vw,64px); }
.article-rail { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }
.article-rail .row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.article-rail .row span:last-child { color: var(--ink); }
.article-author { display: flex; align-items: center; gap: 12px; margin-top: 30px; }
.article-author .ava { width: 44px; height: 44px; border-radius: 999px; overflow: hidden; flex: 0 0 auto; position: relative; }
.article-author .ava img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.article-author b { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink); display: block; }
.article-author small { font-size: 11px; color: var(--ink-faint); }

.entry-content { font-size: 19px; line-height: 1.74; color: var(--ink); max-width: var(--measure); }
.entry-content > * { margin-bottom: 22px; }
.entry-content p { margin-bottom: 22px; }
.entry-content h2 { font-size: clamp(24px,2.4vw,30px); line-height: 1.18; margin: 46px 0 18px; }
.entry-content h3 { font-size: 23px; margin: 38px 0 14px; }
.entry-content h4 { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-deep); margin: 32px 0 12px; }
.entry-content a { color: var(--amber-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; margin-bottom: 22px; }
.entry-content li { margin-bottom: 10px; }
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul > li { position: relative; padding-left: 26px; }
.entry-content ul > li::before { content: '—'; position: absolute; left: 0; color: var(--amber-deep); }
.entry-content ol { list-style: decimal; padding-left: 1.4em; }
.entry-content blockquote {
  margin: 44px 0; padding-left: 28px; border-left: 3px solid var(--amber);
}
.entry-content blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(22px,2.4vw,27px); line-height: 1.34; color: var(--ink); margin: 0; }
.entry-content img, .entry-content figure { margin: 30px 0; }
.entry-content code, .entry-content kbd { font-family: var(--mono); font-size: .85em; background: var(--bg-2); padding: 2px 6px; border-radius: 3px; }
.entry-content pre { font-family: var(--mono); font-size: 14px; line-height: 1.6; background: var(--dark); color: var(--on-dark);
  padding: 24px; border-radius: 4px; overflow: auto; margin: 30px 0; }
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 30px 0; }
.entry-content th, .entry-content td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }

.entry-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.entry-tags a { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px; text-decoration: none; transition: border-color .15s, color .15s; }
.entry-tags a:hover { color: var(--ink); border-color: var(--ink-faint); }

/* ============================================================
   11. ARCHIVE / BLOG INDEX
   ============================================================ */
.archive-head { background: var(--dark); color: var(--on-dark); padding: clamp(48px,5vw,72px) var(--gutter); }
.archive-head .kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; color: var(--blue-soft); margin-bottom: 24px; }
.archive-head h1 { font-size: clamp(34px,4vw,52px); }
.archive-head p { color: var(--on-dark-soft); max-width: 620px; margin: 20px 0 0; }

.post-list { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px,5vw,64px) var(--gutter); }
.post-card { display: grid; grid-template-columns: 160px 1fr auto; gap: clamp(20px,3vw,48px);
  padding: 34px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.post-card:first-child { border-top: 1px solid var(--line); }
.post-card__date { font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint); }
.post-card__cat { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 12px; display: inline-block; }
.post-card h2 { font-size: clamp(24px,2.6vw,32px); line-height: 1.14; margin-bottom: 12px; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a:hover { color: var(--amber-deep); }
.post-card__excerpt { color: var(--ink-soft); font-size: 16px; line-height: 1.6; max-width: 620px; margin: 0; }
.post-card__more { font-family: var(--mono); font-size: 12.5px; color: var(--blue); white-space: nowrap; text-decoration: none; }
.post-card__more:hover { text-decoration: underline; }

.pagination { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 80px;
  display: flex; gap: 10px; font-family: var(--mono); font-size: 13px; }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--line); border-radius: 2px; text-decoration: none; color: var(--ink-soft); }
.pagination .page-numbers.current { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.pagination .page-numbers:hover:not(.current) { border-color: var(--ink-faint); color: var(--ink); }

/* post navigation (single) */
.post-nav { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 64px;
  display: flex; justify-content: space-between; gap: 24px; font-family: var(--mono); font-size: 13px; }
.post-nav a { color: var(--ink-soft); text-decoration: none; max-width: 46%; }
.post-nav a:hover { color: var(--ink); }
.post-nav small { display: block; color: var(--ink-faint); margin-bottom: 6px; }

/* 404 + search */
.notice { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px,8vw,120px) var(--gutter); }
.notice h1 { font-size: clamp(40px,6vw,72px); margin-bottom: 24px; }
.notice p { font-size: 18px; color: var(--ink-soft); max-width: 520px; }
.search-form { display: flex; gap: 10px; margin-top: 30px; max-width: 460px; }
.search-form input[type="search"] { flex: 1; font-family: var(--mono); font-size: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink); }
.search-form input[type="search"]:focus { outline: 2px solid var(--blue); outline-offset: 0; }

/* comments (minimal) */
.comments-area { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 72px; }
.comments-area .comment-list { list-style: none; }
.comments-area .comment-body { padding: 22px 0; border-bottom: 1px solid var(--line); }
.comments-area .comment-author { font-weight: 600; font-size: 15px; }
.comments-area .comment-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); margin: 4px 0 10px; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
  width: 100%; font-family: var(--sans); font-size: 15px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; margin-bottom: 14px; background: #fff; }

/* skip link target */
#content { scroll-margin-top: 90px; }

/* ============================================================
   12. RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero__main { border-right: 0; }
  .hero__aside { flex-direction: row; border-top: 1px solid var(--line-dark); }
  .hero__portrait { flex: 0 0 220px; min-height: 200px; }
  .hero__name { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; }
  .tech__cols { grid-template-columns: 1fr; gap: 32px; }
  .article-grid { grid-template-columns: 1fr; }
  .article-rail { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 40px; }
  .article-rail .article-author { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .idx-grid, .tilgang__grid, .tech__grid, .contact__grid, .masthead__grid { grid-template-columns: 1fr; }
  .tilgang__grid .idx, .tech__grid .idx, .contact__grid .idx, .masthead__grid .idx, .masthead__grid > .mono { display: none; }
  .tilgang__quote { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 26px; margin-top: 10px; }
  .ai-bar { grid-template-columns: 1fr; }
  .ai-bar__tag { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.25); padding: 16px var(--gutter); }
  .hero__spec { grid-template-columns: 1fr; gap: 14px; }
  .post-card { grid-template-columns: 1fr; gap: 8px; }
  .post-card__more { margin-top: 8px; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; position: absolute; top: 84px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .main-nav.is-open ul { flex-direction: column; padding: 16px var(--gutter); gap: 18px; }
  .nav-toggle { display: inline-flex; background: none; border: 0; font-family: var(--mono); font-size: 12.5px; color: var(--ink); cursor: pointer; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
