@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f2f3f5;
    --ink: #1c1d21;
  --ink-soft: #4a4c53;
  --rule: #d3d6dc;
  --accent: #2446b8;
  --accent-ink: #ffffff;
  --accent-wash: #e3e8f7;
  --error: #a3261b;
  --radius: 6px;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
.theme-green {
  --accent: #116b4f;
  --accent-wash: #dcece5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

.top {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem; color: var(--ink-soft);
}
.top strong { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 4rem; align-items: center; padding: 5rem 0 4.5rem;
}
h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.6rem); line-height: 1.05;
  letter-spacing: -0.035em; font-weight: 800; margin: 0 0 1.25rem;
  text-wrap: balance;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; margin: 0 0 2rem; text-wrap: pretty; }

form.join { max-width: 30rem; }
form.join label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.field { display: flex; gap: 0.5rem; }
.field input {
  flex: 1; min-width: 0; font: inherit; color: var(--ink);
  padding: 0.75rem 0.9rem; background: #fff;
  border: 1px solid #aeb2ba; border-radius: var(--radius);
  caret-color: var(--accent);
}
.field input::placeholder { color: #6d6f76; }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input:user-invalid { border-color: var(--error); }
.field button {
  font: inherit; font-weight: 700; white-space: nowrap;
  padding: 0.75rem 1.2rem; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12), 0 4px 12px -4px color-mix(in srgb, var(--accent) 55%, transparent);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.field button:hover { transform: translateY(-1px); box-shadow: 0 2px 3px rgba(0,0,0,0.12), 0 8px 18px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.field button:active { transform: translateY(0); }
.field button:disabled { opacity: 0.6; cursor: progress; transform: none; }
.fine { font-size: 0.875rem; color: var(--ink-soft); margin: 0.75rem 0 0; max-width: 30rem; }
.err { color: var(--error); font-size: 0.875rem; margin: 0.5rem 0 0; min-height: 1.2em; }

/* The board illustration */
.board {
  position: relative; background: #fff; border: 1px solid var(--rule);
  border-radius: 10px; padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(28,29,33,0.06), 0 18px 40px -18px rgba(28,29,33,0.28);
}
.board-cap { font-size: 0.8125rem; color: var(--ink-soft); margin: 0.75rem 0 0; }
.mono { font-family: var(--mono); font-size: 0.78rem; }

/* Card sync table */
.ctable { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.ctable th { text-align: left; font-weight: 600; color: var(--ink-soft); font-size: 0.75rem; padding: 0 0.5rem 0.5rem; border-bottom: 1px solid var(--rule); }
.ctable td { padding: 0.6rem 0.5rem; border-bottom: 1px solid #e8eaee; vertical-align: top; }
.ctable tr:last-child td { border-bottom: 0; }
.tag { white-space: nowrap; display: inline-block; padding: 0.05rem 0.45rem; border-radius: 4px; background: var(--accent-wash); color: var(--accent); font-weight: 600; font-size: 0.75rem; }
.src { display: inline-block; width: 0.55rem; height: 0.55rem; border-radius: 2px; margin-right: 0.4rem; vertical-align: 0.05em; }
.src.ado { background: #2f6fd6; }
.src.jira { background: #7b8bdb; }
.edit { border-bottom: 1px dashed var(--accent); }

/* Timeline */
.tl { display: grid; grid-template-columns: 7.5rem repeat(10, 1fr); font-size: 0.8125rem; }
.tl .h { font-family: var(--mono); font-size: 0.7rem; line-height: 1.35; color: var(--ink-soft); padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule); text-align: center; }
.tl .h.wk { border-left: 1px solid var(--rule); }
.tl .lbl { padding: 0.55rem 0.5rem 0.55rem 0; border-bottom: 1px solid #e8eaee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl .lane { grid-column: 2 / -1; position: relative; border-bottom: 1px solid #e8eaee; display: grid; grid-template-columns: repeat(10, 1fr); }
.tl .lane > span { border-left: 1px solid #eff0f3; }
.tl .lane > span:nth-child(6) { border-left-color: var(--rule); }
.bar {
  position: absolute; top: 0.4rem; bottom: 0.4rem; border-radius: 4px;
  background: var(--accent); color: #fff; font-size: 0.72rem; font-weight: 600;
  display: flex; align-items: center; padding: 0 0.45rem; white-space: nowrap; overflow: hidden;
}
.bar.alt { background: var(--accent-wash); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.weekend-note { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.9rem; font-size: 0.8125rem; color: var(--ink-soft); }
.weekend-note b { white-space: nowrap; font-family: var(--mono); font-weight: 400; font-size: 0.72rem; padding: 0.1rem 0.35rem; border: 1px dashed var(--rule); border-radius: 3px; color: var(--ink-soft); }

/* Sections */
section.plan { padding: 3.5rem 0; border-top: 1px solid var(--rule); }
.cols { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 3rem; }
h2 { font-size: 1.6rem; line-height: 1.15; letter-spacing: -0.025em; margin: 0; font-weight: 800; text-wrap: balance; }
.list { list-style: none; margin: 0; padding: 0; max-width: 44rem; }
.list li + li { padding-top: 1.1rem; border-top: 1px solid var(--rule); }
.list li { padding-bottom: 1.1rem; }
.list h3 { font-size: 1.0625rem; margin: 0 0 0.25rem; letter-spacing: -0.01em; }
.list p { margin: 0; color: var(--ink-soft); }
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }

footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--ink-soft); }
footer p { margin: 0 0 0.4rem; max-width: 46rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 2.75rem; padding: 3rem 0; }
  .cols { grid-template-columns: 1fr; gap: 1.25rem; }
}
@media (min-width: 481px) {
  .ctable td.mono { white-space: nowrap; }
}
@media (max-width: 480px) {
  .top { flex-direction: column; gap: 0.2rem; }
  .bar .u { display: none; }
  .field { flex-direction: column; }
  .tl { grid-template-columns: 5.5rem repeat(10, 1fr); }
  .ctable .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
