/* iReliabee Lab: one page. The colours and fonts are ireliabee.co.uk's (website/public/styles.css). */

:root {
  --base: #f7f7f2;
  --raised: #ffffff;
  --ink-rgb: 15, 42, 48;
  --text: #13262b;
  --muted: #5d7073;
  --accent: #0f2a30;
  --accent-hover: #2c6770;
  --apricot: #e28046;
  --line: rgba(var(--ink-rgb), 0.1);
  --soft: rgba(var(--ink-rgb), 0.05);
  --shadow: 0 1px 2px rgba(15, 42, 48, 0.05), 0 12px 32px rgba(15, 42, 48, 0.09);
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --wrap: 960px;
  --gutter: 24px;
  color-scheme: light;
}

/* Dark: the system's choice, unless the switch said light; or the switch said dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --base: #121416;
    --raised: #1e2124;
    --ink-rgb: 236, 242, 240;
    --text: #e6ebea;
    --muted: #8e9a99;
    --accent: #5ebab8;
    --accent-hover: #8fd3d1;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --base: #121416;
  --raised: #1e2124;
  --ink-rgb: 236, 242, 240;
  --text: #e6ebea;
  --muted: #8e9a99;
  --accent: #5ebab8;
  --accent-hover: #8fd3d1;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--base); color: var(--text);
  font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--accent-hover); text-decoration: underline; text-decoration-color: rgba(var(--ink-rgb), 0.25); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { margin: 0; color: var(--text); letter-spacing: -0.02em; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12em; color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--apricot); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--accent); color: var(--base); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Nav */
.nav { border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.theme {
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text);
}
.theme:hover { background: var(--soft); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-inner { display: flex; align-items: center; gap: 40px; }
.mark { width: 160px; height: 160px; border-radius: 50%; flex: none; box-shadow: var(--shadow); }
h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.lead { margin-top: 16px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.5; color: var(--text); max-width: 34em; }
.where { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* Sections */
.block { padding: 48px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 32px); line-height: 1.15; font-weight: 700; }
.intro { margin-top: 14px; max-width: 40em; }

.cards { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.card h3 { font-size: 18px; line-height: 1.3; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.card p { font-size: 15px; color: var(--text); }
.card .status { margin-top: auto; padding-top: 4px; }
.tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em; line-height: 1;
  padding: 5px 9px; border-radius: 999px; color: var(--apricot);
  border: 1px solid color-mix(in srgb, var(--apricot) 45%, transparent);
  background: color-mix(in srgb, var(--apricot) 10%, transparent);
}

.tools { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tools li { padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
.tools a { white-space: nowrap; margin-left: 4px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); }

/* Tablets */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
}

/* Phones */
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .hero { padding: 40px 0 36px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .mark { width: 96px; height: 96px; }
  .block { padding: 36px 0; }
  .card { padding: 20px; }
}
