/* status.jedziemy.app: colours are the app's palette tokens, light by default. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/InstrumentSans-Regular.woff2") format("woff2") }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/InstrumentSans-500.woff2") format("woff2") }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/fonts/InstrumentSans-600.woff2") format("woff2") }

:root {
  --bg: #F1EFEA; --surface: #FFFFFF; --surface-muted: #E8E5DE;
  --ink: #111215; --on-ink: #FFFFFF; --secondary: #4A4D55; --muted: #8A8C92;
  --line: rgba(17,18,21,.08); --line-strong: rgba(17,18,21,.14);
  --accent: #2346FF; --accent-soft: #E5E9FF;
  --success: #087F59; --success-soft: #E5F4ED; --success-fill: #0C7E55;
  --warning: #926014; --warning-soft: #FFF2D6; --warning-fill: #9C600F;
  --danger: #BA3338; --danger-soft: #FBE7E7; --danger-fill: #C3354A;
  --font: "Instrument Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #151516; --surface: #232325; --surface-muted: #303033;
  --ink: #F4F3F0; --on-ink: #151516; --secondary: #C2C1C7; --muted: #A09FA8;
  --line: #39383E; --line-strong: #4A4950;
  --accent: #5B76FF; --accent-soft: #2D3458;
  --success: #78D9AD; --success-soft: #18392D; --success-fill: #22936A;
  --warning: #F1C574; --warning-soft: #3A3020; --warning-fill: #B0731A;
  --danger: #FF999D; --danger-soft: #3D2223; --danger-fill: #CF4459;
  color-scheme: dark } }

* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px) }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; font-weight: 600 }
p { margin: 0 }
a { color: inherit }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

.sp { max-width: 860px; margin: 0 auto; padding: 28px 28px 40px; display: grid; gap: 28px }
.sp-main { display: grid; gap: 28px }
.sp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink) }
.brand b { font-size: 22px; font-weight: 700; letter-spacing: -.03em }
.brand span { font-size: 15px; color: var(--muted); font-weight: 500 }
.btn { font: inherit; font-size: 14px; font-weight: 600; border-radius: 12px; padding: 10px 16px; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none }
.btn.ink { background: var(--ink); color: var(--on-ink) }

/* Subscribe popover: <details>, so it opens without JavaScript. */
.sub > summary { list-style: none }
.sub > summary::-webkit-details-marker { display: none }
.sub-pop { position: absolute; right: 0; top: calc(100% + 10px); width: min(340px, 100%); background: var(--surface); border-radius: 20px; padding: 18px; box-shadow: 0 20px 50px -12px rgba(0,0,0,.28); border: 1px solid var(--line); display: grid; gap: 14px; z-index: 5 }
.sub-pop h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.01em }
.sub-pop p { font-size: 14px; color: var(--secondary); line-height: 1.45 }
.sub-form { display: grid; gap: 14px }
.field { display: flex; gap: 8px }
.field input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink) }
.chips { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0 }
.chip { position: relative; font-size: 13px; font-weight: 500; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--secondary); cursor: pointer; user-select: none }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer }
.chip:has(input:checked) { background: var(--accent-soft); color: var(--accent); border-color: transparent }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }
.sub-pop .alt { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 14px }
.sub-pop .alt a { color: var(--secondary) }

/* Hero */
.hero { border-radius: 26px; padding: 26px 26px 24px; display: grid; gap: 18px; background: var(--tone-soft); color: var(--ink) }
.hero-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center }
.hero .mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--tone-fill); color: #fff }
.hero h1 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; line-height: 1.15 }
.hero .meta { font-size: 14px; color: var(--secondary); margin-top: 4px }
.hero .uptime { text-align: right; font-variant-numeric: tabular-nums }
.hero .uptime b { display: block; font-size: 22px; letter-spacing: -.02em }
.hero .uptime span { font-size: 13px; color: var(--secondary) }
.assure { background: var(--surface); border-radius: 18px; padding: 16px 18px; display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start }
.assure svg { color: var(--success); margin-top: 2px }
.assure b { display: block; font-size: 15px; margin-bottom: 2px }
.assure p { font-size: 14px; color: var(--secondary); line-height: 1.5 }

.t-ok { --tone: var(--success); --tone-soft: var(--success-soft); --tone-fill: var(--success-fill) }
.t-minor { --tone: var(--warning); --tone-soft: var(--warning-soft); --tone-fill: var(--warning-fill) }
.t-major { --tone: var(--danger); --tone-soft: var(--danger-soft); --tone-fill: var(--danger-fill) }
.t-maint { --tone: var(--accent); --tone-soft: var(--accent-soft); --tone-fill: var(--accent) }

/* Notice cards (incident, maintenance) */
.notices { display: grid; gap: 12px }
.notice { background: var(--surface); border-radius: 22px; padding: 20px 22px; display: grid; gap: 14px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tone) 45%, transparent) }
.notice-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; flex-wrap: wrap }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tone) }
.notice h4, .notice h1 { font-size: 18px; letter-spacing: -.01em; margin-top: 4px; line-height: 1.3 }
.incident-page h1 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -.02em; line-height: 1.15 }
.notice h4 a { text-decoration: none }
.notice h4 a:hover { text-decoration: underline }
.notice .when { font-size: 14px; color: var(--secondary); text-align: right; font-variant-numeric: tabular-nums; display: grid }
.affects { display: flex; flex-wrap: wrap; gap: 6px }
.affects span { font-size: 13px; padding: 4px 10px; border-radius: 8px; background: var(--surface-muted); color: var(--secondary) }
.updates { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 }
.updates li { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line) }
.updates .stage { font-size: 13px; font-weight: 600; color: var(--ink) }
.updates .stage time { display: block; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 2px }
.updates p { font-size: 15px; color: var(--secondary); line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere }

/* Components */
.groups { display: grid; gap: 22px }
.group-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 10px; gap: 12px }
.group-head h2 { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted) }
.group-head span { font-size: 13px; color: var(--muted) }
.list { background: var(--surface); border-radius: 22px; overflow: hidden }
.comp { padding: 18px 20px 16px; display: grid; gap: 12px }
.comp + .comp { border-top: 1px solid var(--line) }
.comp-head { display: flex; justify-content: space-between; align-items: start; gap: 12px }
.comp-name b { font-size: 16px; font-weight: 600; display: block }
.comp-name span { font-size: 13px; color: var(--muted) }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--tone); white-space: nowrap }
.bars { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 34px }
.bars i { border-radius: 2px; background: var(--b); transition: transform .12s ease, filter .12s ease; transform-origin: bottom }
.bars i:hover, .bars i:focus-visible { transform: scaleY(1.12); filter: brightness(1.08); outline: none }
.b-ok { --b: color-mix(in srgb, var(--success) 62%, var(--surface)) }
.b-minor { --b: var(--warning-fill) }
.b-major { --b: var(--danger-fill) }
.b-maint { --b: var(--accent) }
.b-none { --b: var(--surface-muted) }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums }
.axis b { font-weight: 600; color: var(--secondary) }
.far-short { display: none }


/* History */
.history { display: grid; gap: 8px }
.sec-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 4px }
.sec-title h2, .sec-title h1 { font-size: 20px; letter-spacing: -.02em }
.sec-title a { font-size: 14px; color: var(--secondary) }
.intro { font-size: 15px; color: var(--secondary); padding: 0 4px 8px }
.hist { display: grid; gap: 10px }
.hist-day { display: grid; grid-template-columns: 132px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-strong) }
.hist-day > time { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums }
.hist-item { display: grid; grid-template-columns: 4px 1fr; gap: 12px }
.hist-item + .hist-item { margin-top: 12px }
.hist-item .bar { border-radius: 2px; background: var(--tone) }
.hist-item b { font-size: 15px; display: block }
.hist-item b a { text-decoration: none }
.hist-item b a:hover { text-decoration: underline }
.hist-item p { font-size: 14px; color: var(--secondary); overflow-wrap: anywhere }
.hist-item small { font-size: 13px; color: var(--muted) }
.quiet-days { font-size: 14px; color: var(--muted) }

.back { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--secondary) }
.empty { display: grid; gap: 12px; padding: 24px 4px }
.empty h1 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.02em }
.empty p { color: var(--secondary) }

.sp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line-strong); font-size: 14px; color: var(--secondary) }
.sp-foot .call { display: grid; gap: 2px }
.sp-foot .call b { color: var(--ink) }
.sp-foot .links { display: flex; gap: 16px; align-items: center }
.sp-foot a { color: var(--secondary) }

@media (max-width: 640px) {
  .sp { padding: 20px 16px 32px }
  .hero { padding: 20px 18px }
  .hero-row { grid-template-columns: 44px 1fr }
  .hero .mark { width: 44px; height: 44px; border-radius: 14px }
  .hero .uptime { grid-column: 1 / -1; text-align: left }
  .hero .uptime b { display: inline; font-size: 17px; margin-right: 6px }
  .bars { grid-template-columns: repeat(45, 1fr) }
  .bars i:nth-child(-n+45) { display: none }
  .axis .far { display: none }
  .axis .far-short { display: inline }
  .updates li, .hist-day { grid-template-columns: 1fr; gap: 6px }
  .brand span { display: none }
  .sub-pop { width: calc(100vw - 32px) }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important } }

/* Subscription pages (confirm, unsubscribe, check your inbox) */
.sp-message { background: var(--surface); border-radius: 26px; padding: 28px; display: grid; gap: 14px; max-width: 560px; margin: 48px auto 0; width: 100% }
.sp-message h1 { font-size: clamp(24px, 4vw, 30px); letter-spacing: -.02em; line-height: 1.15; margin: 0 }
.sp-message p { color: var(--secondary); margin: 0 }
.sp-message a { color: var(--ink); font-weight: 600 }
.sp-message form { margin: 4px 0 0 }
.sp-message button { font: inherit; font-size: 15px; font-weight: 600; border: 0; border-radius: 12px; padding: 11px 18px; background: var(--ink); color: var(--on-ink); cursor: pointer }
