/* UptimeNorth — Cabin Plaid. Brand v3.0, September 2026.
   Two layers of colour:
     1. the fixed brand palette, which never changes — mirrors brand/tokens.json
     2. role tokens, which flip between the light (default) and dark themes
   Components only ever reference role tokens. Change the palette in
   brand/tokens.json and here together. */

:root {
  /* ---- brand palette (fixed) ---- */
  --ink:        #171009;
  --slate:      #2B211A;
  --slate-mid:  #4A3B2C;
  --body:       #3A2E22;
  --steel:      #7A6A55;
  --brass:      #A23B2E;
  --brass-lt:   #D9A441;
  --pine:       #2D5940;
  --parchment:  #F6EEDD;
  --linen:      #EFE0BE;
  --surface:    #FFFDF6;
  --rule:       #D8C7A0;
  --rule-lt:    #E7DBB8;
  --on-dark:    #E7D9BB;
  --mist:       #C9B896;
  --label:      #7A6A55;

  --serif: "Roboto Slab", Georgia, "Times New Roman", serif;
  --sans:  "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --gut: 24px;

  /* ---- role tokens: dark, the default ---- */
  color-scheme: dark;

  --bg:                #211911;
  --bg-alt:            #2B211A;
  --bg-raised:         #332619;
  --bg-band:           #2B211A;
  --bg-band-deep:      #150F09;

  --border:            #6B5A42;
  --border-soft:       #3A2E22;
  --border-band:       #5A4934;

  --fg:                #E7D9BB;
  --fg-strong:         #FBF3E4;
  --fg-muted:          #C9B896;
  --fg-faint:          #A6936D;
  --fg-band:           #E7D9BB;
  --fg-band-strong:    #FBF3E4;
  --fg-band-muted:     #C9B896;

  --accent:            #D9A441;
  --accent-lt:         #D9A441;
  --accent-strong:     #EFC46B;

  --link:              #D9A441;
  --link-hover:        #EFC46B;

  --btn-bg:            #A23B2E;
  --btn-bg-hover:      #C2493A;
  --btn-fg:            #FBF3E4;

  --nav-fg:            #C9B896;

  --mark-ink:          #E7D9BB;
  --mark-brass:        #D9A441;
  --mark-south:        #2D5940;
  --mark-dot:          #211911;
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg:                #F6EEDD;
  --bg-alt:            #EFE0BE;
  --bg-raised:         #FFFDF6;
  --bg-band:           #2B211A;
  --bg-band-deep:      #1C140D;

  --border:            #2B211A;
  --border-soft:       #E7DBB8;
  --border-band:       #4A3B2C;

  --fg:                #4A3B2C;
  --fg-strong:         #2B211A;
  --fg-muted:          #6B5A42;
  --fg-faint:          #7A6A55;
  --fg-band:           #E7D9BB;
  --fg-band-strong:    #FBF3E4;
  --fg-band-muted:     #C9B896;

  --accent:            #A23B2E;
  --accent-lt:         #D9A441;
  --accent-strong:     #EFC46B;

  --link:              #8B3226;
  --link-hover:        #6B241C;

  --btn-bg:            #2B211A;
  --btn-bg-hover:      #171009;
  --btn-fg:            #FBF3E4;

  --nav-fg:            #4A3B2C;

  --mark-ink:          #2B211A;
  --mark-brass:        #A23B2E;
  --mark-south:        #2D5940;
  --mark-dot:          #F6EEDD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; font-family: var(--serif); letter-spacing: -0.005em; color: var(--fg-strong); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.serif { font-family: var(--serif); }

/* ---- plaid strip: brand signature, same on both themes ---- */
.plaid {
  height: 10px; width: 100%;
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, var(--brass) 26px 30px, transparent 30px 56px, var(--pine) 56px 59px, transparent 59px 82px, var(--brass-lt) 82px 84px),
    var(--ink);
}
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--bg-band); color: var(--fg-band-strong);
  padding: 12px 18px; z-index: 100;
}
.skip:focus { left: 0; }

/* ---- shared type ---- */
.kicker {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--fg-faint); margin: 0;
}
.kicker--brass { color: var(--accent); }
.kicker--light { color: var(--accent-lt); }
.brass-rule { display: block; width: 96px; height: 0; border: 0; border-top: 3px dashed var(--accent); background: none; margin: 22px 0; }
.lede { font-size: 19px; line-height: 1.6; color: var(--fg-muted); max-width: 62ch; }
.numeral { font-family: var(--serif); color: var(--accent); font-size: 20px; line-height: 1; }
.small { font-size: 15px; color: var(--fg-faint); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px; border-radius: 8px;
  font-family: var(--sans); font-size: 16px; font-weight: 700; letter-spacing: 0.01em;
  border: 2px solid var(--btn-bg); background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--btn-bg-hover); border-color: var(--btn-bg-hover); color: var(--btn-fg); text-decoration: none; }
.btn--ghost { background: transparent; border-style: dashed; border-color: var(--fg-strong); color: var(--fg-strong); }
.btn--ghost:hover { background: var(--fg-strong); border-style: solid; border-color: var(--fg-strong); color: var(--bg); }
.btn--brass { background: var(--accent-lt); border-color: var(--accent-lt); color: var(--ink); }
.btn--brass:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--ink); }
.btn--on-dark { background: transparent; border-color: var(--border-band); color: var(--fg-band); }
.btn--on-dark:hover { background: var(--border-band); border-color: var(--border-band); color: var(--fg-band-strong); }

/* ---- theme toggle ---- */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0;
  background: transparent; border: 0; border-radius: 8px;
  color: var(--fg-faint); font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer;
}
.theme-toggle:hover { color: var(--fg-strong); }
.theme-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---- announcement bar ---- */
.bar {
  background: var(--bg-band-deep); color: var(--fg-band-muted);
  font-size: 13px; letter-spacing: 0.02em;
}
.bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }
.bar b { color: var(--accent-lt); font-weight: 600; }

/* ---- header ---- */
.site-head { background: var(--bg); border-bottom: 3px solid var(--border); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; padding-top: 20px; padding-bottom: 20px; }
.brandmark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brandmark:hover { text-decoration: none; }
.brandmark .name { font-family: var(--serif); font-size: 27px; line-height: 1; color: var(--fg-strong); }
.brandmark .sub {
  display: block; font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-faint); font-weight: 600; margin-top: 3px;
}
.site-nav { display: flex; gap: 30px; margin-left: auto; }
.site-nav a {
  font-size: 15.5px; color: var(--nav-fg); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-nav a:hover { color: var(--fg-strong); text-decoration: none; }
.site-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }
.head-call { text-align: right; line-height: 1.3; text-decoration: none; }
.head-call:hover { text-decoration: none; }
.head-call .lbl { display: block; font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-faint); font-weight: 600; }
.head-call .num { font-size: 17px; font-weight: 600; color: var(--fg-strong); }

/* ---- sections ---- */
section { padding: 76px 0; }
.sec--linen { background: var(--bg-alt); }
.sec--slate { background: var(--bg-band); color: var(--fg-band); }
.sec--slate h2, .sec--slate h3 { color: var(--fg-band-strong); }
.sec--slate .lede, .sec--slate p { color: var(--fg-band-muted); }
.sec--slate .kicker { color: var(--accent-lt); }
.sec--rule { border-bottom: 2px solid var(--border); }
.sec-head { max-width: 62ch; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; }

/* ---- hero ---- */
.hero { padding: 74px 0 68px; border-bottom: 1px solid var(--border); }
.hero .wrap { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero .callnote { margin-top: 16px; font-size: 15px; color: var(--fg-faint); }

/* ---- index card (prices at a glance) ---- */
.card {
  background: var(--bg-raised); border: 2px solid var(--border); border-radius: 10px; padding: 26px 28px;
}
.card--dark { background: var(--bg-band); border-color: var(--border-band); color: var(--fg-band); }
.index-list { border-top: 1px dashed var(--border-soft); }
.index-list li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 13px 0; border-bottom: 1px dashed var(--border-soft);
}
.index-list .n { font-family: var(--serif); color: var(--accent); font-size: 15px; width: 26px; flex: none; }
.index-list .t { flex: 1 1 auto; font-size: 15.5px; color: var(--fg); }
.index-list .v { font-size: 15.5px; font-weight: 600; color: var(--fg-strong); white-space: nowrap; }

/* ---- proof band ---- */
.proof { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 34px 0; }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.proof dt { font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--fg-strong); }
.proof dd { margin: 6px 0 0; font-size: 14.5px; color: var(--fg-muted); }

/* ---- generic grids ---- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.mt-40 { margin-top: 40px; }
.mt-28 { margin-top: 28px; }
.mt-18 { margin-top: 18px; }

/* ---- service cards ---- */
.svc { border: 2px solid var(--border); border-radius: 10px; background: var(--bg-raised); padding: 30px 30px 26px; display: flex; flex-direction: column; gap: 12px; }
.svc h3 { font-size: 25px; }
.svc p { font-size: 16px; color: var(--fg-muted); }
.svc .foot { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--border-soft); font-size: 14.5px; color: var(--fg-faint); }
.svc .foot b { color: var(--fg-strong); font-weight: 600; }

/* ---- steps ---- */
.step { display: flex; flex-direction: column; gap: 10px; }
.step .n { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent); }

/* ---- commitments on the slate band ---- */
.commit { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--border-band); }
.commit:last-child { border-bottom: 1px solid var(--border-band); }
.commit .n { font-family: var(--serif); font-size: 20px; color: var(--accent-lt); width: 34px; flex: none; }
.commit h3 { font-size: 19px; margin-bottom: 4px; }
.commit p { font-size: 15.5px; color: var(--fg-band-muted); }

/* ---- pricing ---- */
.plan { border: 2px solid var(--border); border-radius: 10px; background: var(--bg-raised); padding: 32px 30px; display: flex; flex-direction: column; gap: 16px; }
.plan .price { font-family: var(--serif); font-size: 52px; line-height: 1; color: var(--fg-strong); }
.plan .price span { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--fg-faint); letter-spacing: 0.02em; }
.plan ul li { padding: 9px 0; border-bottom: 1px dashed var(--border-soft); font-size: 15.5px; color: var(--fg); }
.plan ul li:first-child { border-top: 1px dashed var(--border-soft); }
.plan .btn { margin-top: auto; }

/* ---- tables ---- */
.rates { width: 100%; border-collapse: collapse; }
.rates caption { text-align: left; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-faint); font-weight: 600; padding-bottom: 14px; }
.rates th, .rates td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.rates th { font-weight: 600; color: var(--fg-strong); }
.rates td { color: var(--fg); }
.rates td:last-child, .rates th:last-child { text-align: right; white-space: nowrap; }
.rates thead th { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint); border-bottom-color: var(--fg-muted); }

/* ---- faq / definition rows ---- */
.rows { border-top: 1px dashed var(--border); }
.row { padding: 22px 0; border-bottom: 1px dashed var(--border); display: grid; grid-template-columns: 300px 1fr; gap: 30px; }
.row h3 { font-size: 20px; }
.row p { font-size: 16px; color: var(--fg-muted); }
.detail-row { grid-template-columns: 150px 1fr; gap: 20px; padding: 16px 0; }

/* ---- service detail block (services page: numeral + heading beside a 3-up grid) ---- */
.svc-block { grid-template-columns: 220px 1fr; gap: 48px; }
.svc-block .numeral { font-size: 40px; }
.svc-block h2 { font-size: 32px; }
.svc-block .brass-rule { margin: 18px 0 0; }

/* ---- chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 2px solid var(--border); border-radius: 8px; background: var(--bg-raised); padding: 8px 16px; font-size: 15px; color: var(--fg); }

/* ---- pull quote ---- */
.pull { border-left: 2px solid var(--accent); padding-left: 24px; }
.pull q, .pull p { font-family: var(--serif); font-size: 30px; line-height: 1.25; color: var(--fg-strong); font-style: italic; quotes: none; }
.sec--slate .pull q, .sec--slate .pull p { color: var(--fg-band-strong); }

/* ---- CTA band ---- */
.cta { background: var(--bg-band-deep); color: var(--fg-band); padding: 66px 0; }
.cta h2 { color: var(--fg-band-strong); }
.cta p { color: var(--fg-band-muted); max-width: 58ch; }
.cta .kicker { color: var(--accent-lt); }
.cta .ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---- footer ---- */
.site-foot { background: var(--bg-band); color: var(--fg-band-muted); padding: 54px 0 0; font-size: 15px; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-foot h4 { font-family: var(--sans); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-band-muted); font-weight: 600; margin-bottom: 14px; }
.site-foot a { color: var(--fg-band); }
.site-foot a:hover { color: var(--fg-band-strong); }
.site-foot .name { font-family: var(--serif); font-size: 24px; color: var(--fg-band-strong); }
.site-foot li { padding: 5px 0; }
.site-foot .legal {
  margin-top: 46px; border-top: 1px solid var(--border-band); padding: 18px 0;
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; font-size: 13.5px;
}

/* ---- responsive ---- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .proof .wrap { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .row { grid-template-columns: 1fr; gap: 10px; }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .svc-block { grid-template-columns: 1fr; gap: 32px; }
  .site-head .wrap { flex-wrap: wrap; gap: 14px 20px; }
  .site-nav { width: 100%; margin-left: 0; gap: 22px; flex-wrap: wrap; order: 3; }
  .head-call { margin-left: auto; text-align: right; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  section { padding: 54px 0; }
  .hero { padding: 46px 0 48px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .site-foot .cols { grid-template-columns: 1fr; gap: 30px; }
  .plan .price { font-size: 44px; }
  .bar .wrap { font-size: 12.5px; }
}

/* ---- print: always on white, whatever the screen theme ---- */
@media print {
  :root, :root[data-theme="light"], :root[data-theme="dark"] {
    color-scheme: light;
    --bg: #fff; --bg-alt: #fff; --bg-raised: #fff; --bg-band: #fff; --bg-band-deep: #fff;
    --fg: #000; --fg-strong: #000; --fg-muted: #333; --fg-faint: #555;
    --fg-band: #000; --fg-band-strong: #000; --fg-band-muted: #333;
    --border: #999; --border-soft: #ccc; --border-band: #999;
  }
  body { background: #fff; font-size: 12pt; }
  .bar, .site-nav, .cta, .btn, .theme-toggle { display: none; }
  a { color: #000; text-decoration: underline; }
}

/* ---- brand book: specimen cards demonstrate the fixed palette, so they
   keep a light ground in both themes. NOTE: still shows the retired
   Northwoods Institutional palette — brandbook.html was intentionally
   left untouched by the Cabin Plaid rebrand (2026-09) and needs its own pass. ---- */
.spec-light { background: #FBFAF7; border-color: #D6D1C6; color: #1B2830; }
.spec-light h2, .spec-light h3, .spec-light h4 { color: #16212B; }
.spec-light .kicker, .spec-light .small { color: #6B7A86; }
.spec-light .index-list, .spec-light .index-list li { border-color: #E5E1D8; }
.spec-light .index-list .t { color: #1B2830; }
.spec-light .index-list .v { color: #16212B; }
.spec-light .index-list .n { color: #A98A4B; }
