:root {
  color-scheme: light;
  font-family: "Avenir Next Condensed", "DIN Condensed", "Franklin Gothic Medium", sans-serif;
  color: #172019;
  background: #e8e6dc;
  --ink: #172019;
  --paper: #f3f0e5;
  --muted: #697168;
  --rule: #b9bbb0;
  --safety: #ff5a36;
  --acid: #c9e653;
  --blue: #547e91;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--ink); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, select { font: inherit; }
button, summary, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--acid); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 168px minmax(0, 1fr); }
.rail { position: sticky; top: 0; height: 100vh; padding: 24px 18px; display: flex; flex-direction: column; color: #f3f0e5; background: var(--ink); border-right: 1px solid #3b453c; }
.rail-brand { display: flex; align-items: center; gap: 11px; letter-spacing: .12em; font-size: 14px; line-height: .9; }
.brand-mark { width: 42px; height: 42px; display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--ink); background: var(--acid); border: 2px solid currentColor; box-shadow: 4px 4px 0 var(--safety); font-weight: 900; letter-spacing: -.08em; }
.rail nav { display: grid; gap: 6px; margin-top: 64px; }
.rail nav a { padding: 11px 10px; color: #adb5ac; text-decoration: none; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; border-left: 2px solid transparent; }
.rail nav a span { display: inline-block; width: 28px; color: #737e74; }
.rail nav a:hover, .rail nav a.active { color: white; border-color: var(--safety); background: #202c22; }
.rail-user { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 18px; border-top: 1px solid #465047; }
.rail-user p { margin: 0; overflow: hidden; }
.rail-user strong, .rail-user small { display: block; overflow: hidden; text-overflow: ellipsis; }
.rail-user small { margin-top: 3px; color: #99a298; text-transform: uppercase; letter-spacing: .12em; }
.avatar { width: 32px; height: 32px; display: inline-grid; place-items: center; flex: 0 0 auto; color: var(--paper); background: var(--blue); border-radius: 50%; font-size: 11px; font-weight: 800; }

.workspace { min-width: 0; padding: 36px clamp(22px, 4vw, 58px) 64px; overflow: hidden; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; padding-bottom: 22px; border-bottom: 2px solid var(--ink); }
.eyebrow { margin: 0 0 7px; color: #5f695f; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: clamp(44px, 6vw, 78px); line-height: .82; letter-spacing: -.055em; text-transform: uppercase; }
.weather-stamp { min-width: 150px; display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 8px 0 4px 18px; border-left: 1px solid var(--rule); }
.weather-stamp span { font-size: 11px; letter-spacing: .12em; }
.weather-stamp strong { grid-row: span 2; font-size: 34px; line-height: 1; }
.weather-stamp small { color: var(--muted); }

.pulse { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--rule); }
.pulse div { min-height: 84px; padding: 17px 18px 14px 0; border-right: 1px solid var(--rule); }
.pulse div + div { padding-left: 18px; }
.pulse div:last-child { border-right: 0; }
.pulse span, .pulse strong { display: block; }
.pulse span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pulse strong { margin-top: 6px; font-size: 27px; letter-spacing: -.035em; }

.new-job { margin: 24px 0 5px; border: 1px solid var(--ink); background: #fffdf4; }
.new-job summary { padding: 12px 16px; list-style: none; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.new-job summary::-webkit-details-marker { display: none; }
.new-job[open] summary { color: var(--paper); background: var(--ink); }
.new-job-form { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 14px; padding: 18px; }
.new-job-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.new-job-form .wide { grid-column: span 2; }
input, select { width: 100%; min-width: 0; padding: 9px 10px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid #878d84; border-radius: 0; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-footer p { margin: 0; color: #b63224; font-size: 12px; text-transform: none; letter-spacing: 0; }
button, .seed-card button { padding: 10px 14px; border: 1px solid var(--ink); color: var(--paper); background: var(--ink); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; box-shadow: 3px 3px 0 var(--safety); }
button:hover { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--safety); }
button:disabled { cursor: not-allowed; opacity: .35; transform: none; box-shadow: none; }

.seed-card { max-width: 660px; margin: 32px 0; padding: 26px; color: var(--paper); background: var(--ink); box-shadow: 9px 9px 0 var(--acid); }
.seed-card h2 { margin: 3px 0 8px; font-size: 36px; text-transform: uppercase; }
.seed-card p:not(.eyebrow) { color: #b8c0b7; }
.seed-card button { margin-top: 10px; color: var(--ink); background: var(--acid); box-shadow: 3px 3px 0 var(--safety); }

.board { display: grid; grid-auto-columns: minmax(230px, 1fr); grid-auto-flow: column; gap: 16px; margin-top: 28px; padding-bottom: 24px; overflow-x: auto; scroll-snap-type: x proximity; }
.column { min-height: 370px; scroll-snap-align: start; }
.column > header { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; }
.column > header span { color: var(--safety); font-weight: 900; }
.column > header h2 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; }
.column > header strong { min-width: 23px; padding: 3px; text-align: center; background: #d7d6cc; font-size: 12px; }
.column-rule { height: 5px; margin: 10px 0 13px; background: var(--ink); }
.job-card { position: relative; margin-bottom: 12px; padding: 15px; background: #fffdf5; border: 1px solid #c4c4b8; box-shadow: 2px 3px 0 #d3d0c4; transition: transform 140ms ease, box-shadow 140ms ease; }
.job-card:hover { transform: translateY(-2px); box-shadow: 4px 6px 0 #cbc8bb; }
.job-active { border-left: 5px solid var(--safety); }
.job-complete { opacity: .65; }
.job-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.job-topline strong { color: var(--ink); }
.job-card h3 { margin: 17px 0 8px; font-size: 21px; line-height: 1.05; }
.job-card > p { min-height: 30px; margin: 0 0 14px; color: var(--muted); font-family: Georgia, serif; font-size: 12px; line-height: 1.4; }
.job-controls { padding-top: 10px; border-top: 1px dashed var(--rule); }
.job-controls label span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.job-controls select { padding: 5px 0; font-size: 12px; }
.card-actions { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.icon-button { width: 29px; height: 29px; padding: 0; color: var(--ink); background: transparent; border: 1px solid var(--rule); box-shadow: none; }
.delete-button { margin-left: auto; padding: 5px; color: #a33a2c; background: transparent; border: 0; box-shadow: none; font-size: 9px; }
.empty-column { margin: 35px 0; color: #8e938b; text-align: center; font-family: Georgia, serif; font-size: 13px; font-style: italic; }

.center-state, .loading { min-height: 100vh; display: grid; place-content: center; justify-items: start; padding: 40px; color: var(--paper); background: var(--ink); }
.center-state h1 { max-width: 720px; margin: 18px 0 4px; font-size: clamp(48px, 9vw, 110px); line-height: .82; letter-spacing: -.06em; text-transform: uppercase; }
.center-state > p:not(.eyebrow) { max-width: 470px; color: #aeb6ad; font-family: Georgia, serif; font-size: 17px; }
.center-state button { margin-top: 20px; color: var(--ink); background: var(--acid); }
.loading { justify-items: center; gap: 18px; color: #b9c0b8; }

@media (max-width: 800px) {
  .app-shell { grid-template-columns: 1fr; }
  .rail { position: static; width: 100%; height: auto; padding: 13px 17px; flex-direction: row; align-items: center; gap: 18px; }
  .rail-brand strong, .rail nav a span { display: none; }
  .rail nav { display: flex; margin: 0; }
  .rail nav a { padding: 8px; border-left: 0; border-bottom: 2px solid transparent; }
  .rail-user { margin: 0 0 0 auto; padding: 0; border: 0; }
  .rail-user p { display: none; }
  .workspace { padding: 27px 17px 45px; }
  .weather-stamp { display: none; }
  .pulse { grid-template-columns: repeat(2, 1fr); }
  .pulse div:nth-child(2) { border-right: 0; }
  .new-job-form { grid-template-columns: 1fr 1fr; }
  .new-job-form .wide { grid-column: span 2; }
  .board { grid-auto-columns: minmax(78vw, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
