/* status-watch.io — one stylesheet, nothing loaded from anyone else.
 *
 * One typeface, IBM Plex Sans (SIL Open Font License, site/fonts/), served from this
 * domain rather than a font CDN: the app's promise is that no data leaves Atlassian, and the
 * page explaining that should not hand every reader's address to a third party. It is
 * declared under a neutral name, so trying another face means changing the file paths below
 * and nothing else. Code and the many on-screen labels the pages quote use the system
 * monospace. The recurring motif is the app's own mark: three bars with a straight top, a
 * slanted left edge and a rounded end, and a time axis with hour ticks under the masthead.
 */

@font-face {
  font-family: "Statuswatch Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-ext-wght-normal.woff2") format("woff2-variations"), url("/fonts/ibm-plex-sans-latin-ext-wght-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Statuswatch Sans";
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2-variations"), url("/fonts/ibm-plex-sans-latin-wght-normal.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: "Statuswatch Sans";
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-ext-wght-italic.woff2") format("woff2-variations"), url("/fonts/ibm-plex-sans-latin-ext-wght-italic.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Statuswatch Sans";
  font-style: italic;
  font-weight: 100 700;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-wght-italic.woff2") format("woff2-variations"), url("/fonts/ibm-plex-sans-latin-wght-italic.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 {
  color-scheme: light dark;
  --paper: #ffffff;
  --paper-2: #f5f7fb;
  --ink: #16223b;
  --ink-2: #44516d;
  --ink-3: #69758f;
  --rule: #e2e7f0;
  --rule-strong: #c5cedf;
  --link: #0052cc;
  --link-hover: #0065ff;
  --blue-1: #0052cc;
  --blue-2: #2684ff;
  --on-blue: #ffffff;
  --code-bg: #f0f3f9;
  --code-rule: #dfe5f1;
  --code-ink: #1b2a4e;
  --focus: #2684ff;
  --lift: 0 1px 2px rgb(22 34 59 / 6%), 0 10px 28px rgb(22 34 59 / 8%);

  --font-text: "Statuswatch Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: var(--font-text);
  --font-code: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;

  --measure: 44rem;
  --sidebar: 15rem;
  --page: 76rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1323;
    --paper-2: #111a2d;
    --ink: #e2e8f4;
    --ink-2: #aeb8cd;
    --ink-3: #8994ab;
    --rule: #1f2a43;
    --rule-strong: #2f3d5e;
    --link: #7fb2ff;
    --link-hover: #a9caff;
    --blue-1: #1f6fe8;
    --blue-2: #58a0ff;
    --code-bg: #141e35;
    --code-rule: #22304f;
    --code-ink: #d3dffa;
    --lift: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 28px rgb(0 0 0 / 30%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.68 var(--font-text);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  padding: 0.5rem 0.9rem; border-radius: 6px;
  background: var(--ink); color: var(--paper); font: 600 0.9rem/1 var(--font-head);
}
.skip:focus { top: 1rem; }

/* ------------------------------------------------------------------ masthead */

.masthead { position: relative; border-bottom: 1px solid var(--rule-strong); }

/* A time axis: a tick every quarter hour, a longer one every two hours. It is the one
   ornament on the page, and it says what the app measures. */
.masthead::after,
.footer::before {
  content: "";
  position: absolute; left: 0; right: 0; height: 9px;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--rule-strong) 0 1px, transparent 1px 128px),
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 16px);
  background-repeat: no-repeat;
  background-size: 100% 9px, 100% 4px;
}
.masthead::after { bottom: 0; background-position: 0 100%, 0 100%; }
.footer::before { top: 0; background-position: 0 0, 0 0; }

.masthead-inner {
  max-width: var(--page); margin: 0 auto;
  padding: 1rem 1.5rem 1.35rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--ink); text-decoration: none;
  font: 600 1.2rem/1 var(--font-head); letter-spacing: 0.01em;
}
.brand:hover { color: var(--ink); }
.brand img { display: block; }
.brand-sub {
  margin-left: 0.15rem; padding-left: 0.7rem;
  border-left: 1px solid var(--rule-strong);
  color: var(--ink-3); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* The bar's own shape: square on the left, rounded where it ends. */
.cta, .button {
  display: inline-block;
  padding: 0.55rem 1.15rem 0.55rem 1rem;
  border-radius: 3px 999px 999px 3px;
  background: linear-gradient(100deg, var(--blue-1), var(--blue-2));
  color: var(--on-blue);
  font: 600 0.9rem/1.2 var(--font-head); letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 1px 0 rgb(0 0 0 / 8%);
  transition: filter 120ms ease, transform 120ms ease;
}
.cta:hover, .button:hover { color: var(--on-blue); filter: brightness(1.08); transform: translateX(1px); }

/* ------------------------------------------------------------------ layout */

.layout {
  max-width: var(--page); margin: 0 auto;
  padding: 2.75rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: 4rem;
}

main { max-width: var(--measure); min-width: 0; }

/* ------------------------------------------------------------------ sidebar */

.sidebar {
  position: sticky; top: 1.5rem; align-self: start;
  max-height: calc(100vh - 3rem); overflow-y: auto;
  font-size: 0.95rem; line-height: 1.35;
}
.nav-label {
  margin: 1.75rem 0 0.55rem;
  color: var(--ink-3);
  font: 600 0.72rem/1 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-group:first-child .nav-label { margin-top: 0.2rem; }
.sidebar ul { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--rule); }
.sidebar a {
  display: block;
  margin-left: -1px; padding: 0.36rem 0 0.36rem 0.95rem;
  border-left: 2px solid transparent;
  color: var(--ink-2); text-decoration: none;
}
.sidebar a:hover { color: var(--ink); border-left-color: var(--rule-strong); }
.sidebar a[aria-current="page"] {
  color: var(--ink); font-weight: 600;
  border-left: 3px solid var(--blue-1);
  padding-left: 0.9rem;
}

/* ------------------------------------------------------------------ headings */

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--blue-1);
  font: 600 0.78rem/1 var(--font-head); letter-spacing: 0.16em; text-transform: uppercase;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--blue-2); } }

h1, h2, h3 { font-family: var(--font-head); font-weight: 650; color: var(--ink); }

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 1.35rem + 2.2vw, 2.75rem);
  line-height: 1.08; letter-spacing: -0.022em;
  text-wrap: balance;
}

.prose h2 {
  position: relative;
  margin: 3.25rem 0 1rem; padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
  font-size: 1.45rem; line-height: 1.25; letter-spacing: -0.01em;
  text-wrap: balance;
}
/* A short bar resting on the rule: the mark, one bar at a time. */
.prose h2::before {
  content: "";
  position: absolute; top: -2px; left: 0;
  width: 3rem; height: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, var(--blue-1), var(--blue-2));
}
.prose h3 {
  margin: 2.25rem 0 0.55rem;
  font-size: 1.16rem; line-height: 1.3;
  text-wrap: balance;
}
.prose > :first-child { margin-top: 0; }

.anchor {
  margin-left: 0.45rem;
  color: var(--rule-strong); font-weight: 400;
  text-decoration: none;
  opacity: 0; transition: opacity 120ms ease;
}
h2:hover .anchor, h3:hover .anchor { opacity: 1; }
.anchor:hover { color: var(--blue-2); }

h2 code, h3 code { font-size: 0.8em; }

/* ------------------------------------------------------------------ prose */

.prose p, .prose ul, .prose ol { margin: 0 0 1.05rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { padding-left: 0.2rem; }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--blue-2); }
.prose strong { font-weight: 650; }

code {
  padding: 0.08em 0.36em;
  border: 1px solid var(--code-rule);
  border-radius: 4px;
  background: var(--code-bg);
  color: var(--code-ink);
  font-family: var(--font-code); font-size: 0.84em;
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.table-wrap {
  margin: 1.6rem 0 1.9rem;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem; line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
th {
  padding: 0.75rem 1rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule-strong);
  color: var(--ink-2); text-align: left;
  font: 600 0.72rem/1.3 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase;
}
td { padding: 0.75rem 1rem; border-top: 1px solid var(--rule); vertical-align: top; }
tbody tr:first-child td { border-top: 0; }
td:first-child { min-width: 9rem; }

/* ------------------------------------------------------------------ on this page */

.on-this-page {
  margin: 0 0 2.75rem;
  padding: 1.1rem 1.35rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper-2);
}
.on-this-page .label {
  margin: 0 0 0.7rem;
  color: var(--ink-3);
  font: 600 0.72rem/1 var(--font-head); letter-spacing: 0.14em; text-transform: uppercase;
}
.on-this-page ol {
  margin: 0; padding-left: 1.4rem;
  columns: 2 17rem; column-gap: 2.25rem;
  font-size: 0.95rem; line-height: 1.4;
}
.on-this-page li { break-inside: avoid; margin: 0 0 0.4rem; }
.on-this-page li::marker { color: var(--ink-3); font-family: var(--font-head); font-size: 0.85em; }
.on-this-page a { color: var(--ink-2); text-decoration: none; }
.on-this-page a:hover { color: var(--link); text-decoration: underline; }

/* ------------------------------------------------------------------ start page */

.hero { margin: 0 0 3rem; }
.hero h1 { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 3.35rem); max-width: 17ch; }
.lede { margin: 0; max-width: 39rem; color: var(--ink-2); font-size: 1.2rem; line-height: 1.62; }
.actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem;
  margin: 1.9rem 0 0;
}
.textlink {
  font: 600 0.95rem/1.2 var(--font-head); letter-spacing: 0.02em;
  text-decoration: none;
}
.textlink span { display: inline-block; transition: transform 160ms ease; }
.textlink:hover span { transform: translateX(3px); }

/* The mark, drawn out once as the page opens: the panel's bars filling up. */
.bars { display: grid; gap: 0.6rem; width: min(100%, 26rem); margin: 3rem 0 0; }
.bars span {
  display: block; height: 0.95rem;
  border-radius: 0 999px 999px 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0.7rem 100%);
  background: linear-gradient(100deg, var(--blue-1), var(--blue-2));
  transform-origin: left center;
  animation: fill 900ms cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.bars span:nth-child(1) { width: 67%; }
.bars span:nth-child(2) { width: 100%; animation-delay: 120ms; }
.bars span:nth-child(3) { width: 49%; animation-delay: 240ms; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ------------------------------------------------------------------ pager */

.pager {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.pager a {
  display: block;
  padding: 0.95rem 1.2rem 1.05rem;
  border: 1px solid var(--rule); border-radius: 10px;
  color: var(--ink); text-decoration: none;
  font: 600 1.02rem/1.3 var(--font-head);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.pager a:hover { border-color: var(--blue-2); box-shadow: var(--lift); color: var(--ink); }
.pager small {
  display: block; margin-bottom: 0.3rem;
  color: var(--ink-3);
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.pager .next { grid-column: 2; text-align: right; }

/* ------------------------------------------------------------------ footer */

.footer {
  position: relative;
  border-top: 1px solid var(--rule-strong);
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 0.93rem; line-height: 1.6;
}
.footer-inner {
  max-width: var(--page); margin: 0 auto;
  padding: 2.4rem 1.5rem 3rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem;
}
.footer-inner > div { max-width: 34rem; }
.footer p { margin: 0 0 0.6rem; }
.footer-brand {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--ink); font: 600 1rem/1 var(--font-head);
}
.quiet { color: var(--ink-3); font-size: 0.86rem; }
.footer-links {
  margin: 0; padding: 0; list-style: none;
  font: 600 0.9rem/1.2 var(--font-head); letter-spacing: 0.02em;
}
.footer-links li + li { margin-top: 0.75rem; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--link); }

/* ------------------------------------------------------------------ small screens */

@media (max-width: 60rem) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 0; }
  /* The contents become one scrollable row of chips under the masthead. */
  .sidebar {
    position: static; max-height: none;
    display: flex; gap: 0.4rem;
    margin: 0 -1.5rem 2.25rem; padding: 0.9rem 1.5rem;
    overflow-x: auto; overflow-y: hidden;
    border-bottom: 1px solid var(--rule);
    scrollbar-width: thin;
  }
  .nav-group { display: contents; }
  .nav-label { display: none; }
  .sidebar ul { display: flex; gap: 0.4rem; border: 0; }
  .sidebar a {
    margin: 0; padding: 0.42rem 0.8rem;
    border: 1px solid var(--rule); border-radius: 999px;
    background: var(--paper-2);
    white-space: nowrap; font-size: 0.88rem;
  }
  .sidebar a:hover { border-color: var(--rule-strong); }
  .sidebar a[aria-current="page"] {
    padding: 0.42rem 0.8rem;
    border: 1px solid transparent;
    background: linear-gradient(100deg, var(--blue-1), var(--blue-2));
    color: var(--on-blue);
  }
}

@media (max-width: 36rem) {
  body { font-size: 1rem; }
  .masthead-inner { padding: 0.85rem 1rem 1.2rem; }
  .brand-sub { display: none; }
  .cta { padding: 0.45rem 0.9rem 0.45rem 0.8rem; font-size: 0.82rem; }
  .layout { padding: 0 1rem 3rem; }
  .sidebar { margin: 0 -1rem 1.75rem; padding: 0.8rem 1rem; }
  .lede { font-size: 1.1rem; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .footer-inner { padding: 2rem 1rem 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bars span { animation: none; }
  .cta, .button, .textlink span, .pager a, .anchor { transition: none; }
}

@media print {
  .masthead, .sidebar, .pager, .footer, .anchor, .skip { display: none; }
  .layout { display: block; padding: 0; }
  a { color: inherit; }
}
