/* COUNT-O-MATIC: the Compilation of Tomorrow.
   Atomic-age look: turquoise, cream, one hot orange, a little lime.
   All styling lives in this one file. No inline styles anywhere: the
   Content-Security-Policy forbids them. Fonts and artwork are hosted
   with the site (assets/fonts, assets/img); nothing loads from outside. */

@font-face { font-family: "Jost"; font-weight: 400; font-display: swap; src: url("fonts/jost-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 500; font-display: swap; src: url("fonts/jost-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 600; font-display: swap; src: url("fonts/jost-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jost"; font-weight: 700; font-display: swap; src: url("fonts/jost-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Yellowtail"; font-weight: 400; font-display: swap; src: url("fonts/yellowtail-latin-400-normal.woff2") format("woff2"); }

:root {
  --cream: #FBF4E1;
  --paper: #FFFDF6;
  --ink: #2F2A26;
  --ink-soft: #6B625A;
  --turq: #1FA7A0;
  --turq-deep: #0E6F6B;
  --turq-dark: #0A5552;
  --turq-pale: #D3EFEB;
  --orange: #F2622E;
  --orange-deep: #D24E1F;
  --lime: #B9D24B;
  --lime-pale: #EEF4CF;
  --rose-pale: #FCE4DA;
  --hairline: #E3D9BE;
  --sans: "Jost", "Century Gothic", "Futura", "Trebuchet MS", sans-serif;
  --script: "Yellowtail", "Brush Script MT", cursive;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  color: var(--ink); background: var(--cream);
}
a { color: var(--turq-deep); text-decoration: none; font-weight: 500; }
a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
h1 { font-size: 24px; margin: 0; font-weight: 700; letter-spacing: .2px; }
h2 { font-size: 13px; margin: 0 0 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; color: var(--turq-deep); display: flex; align-items: center; gap: 9px; }
h2::before { content: ""; width: 16px; height: 16px; flex: 0 0 16px; background: url("img/star-orange.svg") center / contain no-repeat; }
.muted { color: var(--ink-soft); }
.lede { font-size: 20px; font-weight: 500; margin: 0 0 20px; }
.hint { font-size: 14px; color: var(--ink-soft); margin: 5px 0 0; }

/* ---------- the wordmark ---------- */
.wordmark { font-family: var(--script); font-weight: 400; line-height: 1; white-space: nowrap; }

/* ---------- signed-in shell ---------- */
body.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px; flex: 0 0 250px; display: flex; flex-direction: column;
  background: var(--turq-deep) url("img/pattern-light.svg") 0 0 / 420px;
  color: var(--cream); padding: 22px 0 18px; border-right: 3px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 8px; padding: 0 18px 20px; }
.brand .star { width: 30px; height: 30px; flex: 0 0 30px; }
.brand .wordmark { font-size: 31px; color: var(--cream); text-shadow: 2px 2px 0 var(--turq-dark); }
.sidebar nav { flex: 1; }
.nav-section { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; color: var(--lime); padding: 20px 22px 8px; }
.nav-link {
  display: flex; justify-content: space-between; align-items: center;
  margin: 3px 14px 3px 0; padding: 9px 14px 9px 22px;
  color: var(--cream); font-weight: 500; font-size: 16px;
  border-radius: 0 999px 999px 0; border: 2px solid transparent; border-left: 0;
}
a.nav-link:hover { background: rgba(251, 244, 225, .14); text-decoration: none; }
.nav-link.is-active { background: var(--cream); color: var(--ink); border-color: var(--ink); font-weight: 600; box-shadow: 3px 3px 0 var(--turq-dark); }
a.nav-link.is-active:hover { background: var(--cream); }
.nav-soon { color: rgba(251, 244, 225, .62); cursor: default; }
.tag { white-space: nowrap; margin-left: 8px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border-radius: 999px; padding: 1px 8px; background: var(--lime); color: var(--ink); }
.side-foot { padding: 18px 22px 0; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.4px; line-height: 1.5; color: rgba(251, 244, 225, .75); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 30px; background: var(--paper); border-bottom: 3px solid var(--ink); }
.who { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.who-name { font-weight: 600; }
.who-co { color: var(--ink-soft); padding: 1px 10px; border-radius: 999px; background: var(--turq-pale); font-size: 13px; font-weight: 500; }
.content { padding: 26px 30px 56px; max-width: 1240px; width: 100%; }

/* ---------- cards and tables ---------- */
.card { overflow-x: auto; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 26px; box-shadow: 5px 5px 0 var(--turq); }
.card.narrow { max-width: 500px; }
table.grid { width: 100%; border-collapse: collapse; font-size: 15px; }
.grid th { text-align: left; font-weight: 700; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; padding: 8px 10px; border-bottom: 2px solid var(--ink); background: var(--lime-pale); }
.grid th:first-child { border-radius: 8px 0 0 0; }
.grid th:last-child { border-radius: 0 8px 0 0; }
.grid td { padding: 10px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.grid tbody tr:nth-child(even) td { background: #FCF8EA; }
.grid tr:last-child td { border-bottom: 0; }
.grid .num { text-align: right; font-variant-numeric: tabular-nums; }
.grid tr.dim td { color: #A39A8E; }
.grid tbody tr.warn td { background: var(--rose-pale); }
.grid td.actions { text-align: right; }
.grid td.actions .btn { margin: 3px 0 3px 4px; }
.grid td.nowrap { white-space: nowrap; }
.facts { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 0; }
.facts dt { color: var(--ink-soft); font-weight: 500; }
.facts dd { margin: 0; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
input[type=text], input[type=email], input[type=password], select {
  width: 100%; padding: 10px 13px; font: inherit; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 10px; background: #fff;
}
input:focus, select:focus { outline: 3px solid var(--turq); outline-offset: 1px; }

/* push-buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase;
  padding: 10px 22px; border-radius: 999px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  cursor: pointer; margin-top: 20px; box-shadow: 3px 3px 0 var(--ink); transition: transform .06s ease, box-shadow .06s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--turq); outline-offset: 3px; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-block { width: 100%; padding: 13px 22px; font-size: 16px; letter-spacing: 3px; }
.btn-small { padding: 4px 12px; font-size: 11px; letter-spacing: .8px; margin-top: 0; box-shadow: 2px 2px 0 var(--ink); }
.btn-small:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn-danger { background: var(--rose-pale); color: #9C2F12; }
form.inline { display: inline; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--turq-deep); cursor: pointer; }
.linkish:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- messages ---------- */
.flash { padding: 11px 15px; border-radius: 10px; margin: 0 0 16px; font-size: 15px; font-weight: 500; border: 2px solid var(--ink); }
.flash-ok { background: var(--lime-pale); }
.flash-error { background: var(--rose-pale); color: #8C2A10; }
.flash-info { background: var(--turq-pale); }

/* ---------- the front door (signed-out pages) ---------- */
body.public {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 100vh; padding: 28px 18px;
  background: var(--cream) url("img/pattern.svg") center / 420px;
}
.public-card { width: 100%; max-width: 430px; background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 9px 9px 0 var(--ink); overflow: hidden; }
.panel-top { position: relative; background: var(--turq); padding: 26px 24px 20px; text-align: center; border-bottom: 3px solid var(--ink); }
.panel-top .wordmark { font-size: 54px; color: var(--cream); text-shadow: 3px 3px 0 var(--turq-deep); padding: 4px 0 2px; }
.panel-top .star { position: absolute; }
.panel-top .star-a { width: 44px; height: 44px; top: 12px; right: 20px; }
.panel-top .star-b { width: 24px; height: 24px; top: 16px; left: 22px; }
.tagline { margin-top: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.2px; color: var(--ink); }
/* three indicator lamps, like any respectable appliance */
.lamps { display: flex; justify-content: center; gap: 9px; margin-top: 14px; }
.lamps span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--orange); }
.lamps span:nth-child(2) { background: var(--lime); }
.lamps span:nth-child(3) { background: var(--cream); }
.panel-body { padding: 24px 30px 28px; }
.panel-body h1 { font-size: 22px; margin-bottom: 6px; }
.public-foot { margin: 20px 0 0; font-size: 15px; text-align: center; }

@media (max-width: 760px) {
  body.app { flex-direction: column; }
  .sidebar { width: 100%; flex: none; border-right: 0; border-bottom: 3px solid var(--ink); }
  .side-foot { display: none; }
  .topbar { flex-direction: column; align-items: flex-start; padding: 14px 18px; }
  .content { padding: 20px 16px 40px; }
  .grid { display: block; overflow-x: auto; }
  .panel-top .wordmark { font-size: 44px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
