/* openstreambox.org: one page that points to the project's new homes.
   Everything above "This page" comes from the shared stylesheet of howtoirl.org and irlcommons.org
   (assets/style.css, shared 1.1.0, at howtoirl.org cf49b11 and irlcommons.org 9400156): only the rules
   this page uses, in their original order and with their declarations unchanged; selector lists keep
   only the parts that match this page. So it reads as a sibling of both sites.
   Fonts: Atkinson Hyperlegible Next and IBM Plex Mono, self-hosted, SIL OFL 1.1 (fonts/LICENSE-*.txt). */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/atkinson-hyperlegible-next-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: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/atkinson-hyperlegible-next-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: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }
:root {
  --bg: #f4f1e8;
  --card: #fffcf5;
  --sunk: #e9e5d9;
  --fg: #172320;
  --muted: #53635c;
  --rule: #ccd2c8;
  --rule-strong: #7e8b84;
  --decision: #172320;
  --decision-fg: #fffcf5;
  --caution: #805100;
  --latch: #a63f20;
  --live: #e5484d;
  --sans: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --t-meta: 13px;
  --t-small: 15px;
  --t-body: 18px;
  --t-lede: 21px;
  --t-h3: 21px;
  --t-h2: clamp(26px, 3vw, 32px);
  --t-h1: clamp(32px, 4.6vw, 48px);
  --t-display: clamp(34px, 5.2vw, 56px);
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px; --s6: 96px;
  --radius: 4px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --read: 66ch;
  --rail: 200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14211e; --card: #1d302a; --sunk: #263c35; --fg: #f4f1e8; --muted: #bccbc2;
    --rule: #3d5048; --rule-strong: #6b8073; --decision: #f4f1e8; --decision-fg: #14211e;
    --caution: #f0c56d; --latch: #ffaf88; --live: #ff6b62;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14211e; --card: #1d302a; --sunk: #263c35; --fg: #f4f1e8; --muted: #bccbc2;
  --rule: #3d5048; --rule-strong: #6b8073; --decision: #f4f1e8; --decision-fg: #14211e;
  --caution: #f0c56d; --latch: #ffaf88; --live: #ff6b62;
  color-scheme: dark;
}
@media (max-width: 759px) {
  :root { --t-body: 17px; --t-lede: 19px; --s6: 64px; --s5: 48px; }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: var(--t-body); line-height: 1.6;
  font-feature-settings: "kern"; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
h1 { margin: 0; font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; text-wrap: balance; }
p, li { text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top { border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--s3); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
@media (max-width: 859px) {
  .top .wrap { min-height: 0; padding-top: 6px; }
  .brand { font-size: 17px; }
}
.lede { font-size: var(--t-lede); line-height: 1.45; max-width: 56ch; }
.home h1 { font-size: var(--t-display); line-height: 1.04; letter-spacing: -0.03em; max-width: 15ch; margin: var(--s2) 0 var(--s3); }
.home .lede { margin-bottom: var(--s3); }
.foot { padding: var(--s4) 0 var(--s5); font-size: var(--t-small); color: var(--muted); border-top: 1px solid var(--rule); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3) var(--s4); }
.foot .brand { color: var(--fg); margin-bottom: 4px; font-size: 18px; }
.foot p { margin: 0 0 8px; max-width: 52ch; }
@media (min-width: 1000px) {
  .foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); }
}
.mk-line { fill: none; stroke: currentColor; stroke-width: 4; }
.mk-latch { fill: var(--latch); }
.ill { display: block; width: 168px; height: 112px; color: var(--fg); margin-bottom: var(--s2); }
.il, .il-thin, .il-dash, .il-ground { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.il { stroke-width: var(--il-w, 3); }
.il-thin { stroke-width: var(--il-thin-w, 2); }
.il-dash { stroke-width: 2.5; stroke-dasharray: 5 6; }
.il-ground { stroke-width: 1.5; stroke: var(--rule-strong); }
.il-dot { fill: currentColor; }
@media (forced-colors: active) {
  .ill { forced-color-adjust: auto; }
}
:root { --measure: 66ch; }
@media (min-width: 1440px) {
  :root { --max: 1320px; --rail: 240px; --gutter: 56px; --s6: 112px; }
}
@media (min-width: 1920px) {
  :root { --max: 1680px; --rail: 280px; --gutter: 80px; --t-body: 19px; --t-lede: 23px; --t-display: clamp(34px, 3.4vw, 68px); --s6: 128px; }
}
.lede { max-width: var(--measure); }
.home-lead { padding-top: var(--s6); padding-bottom: var(--s5); }
@media (max-width: 759px) {
  .home-lead { padding-top: var(--s4); padding-bottom: var(--s5); }
}
@media print {
  .ill { width: 96px; height: 64px; }
}
.hub-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hub-cards li > a { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius); background: var(--card); color: var(--fg); text-decoration: none; }
.hub-cards li > a:hover, .hub-cards li > a:focus-visible { border-color: var(--fg); }
.hub-cards .ill { grid-row: 1 / 3; width: 96px; height: 64px; margin: 0; align-self: center; }
.hub-cards strong { font-size: 18px; align-self: end; }
.hub-cards span { font-size: 16px; color: var(--muted); }
@media (min-width: 760px) {
  .hub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-cards:has(> li:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-cards li > a { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; row-gap: 6px; padding: 16px 18px 18px; }
  .hub-cards .ill { grid-row: auto; width: 144px; height: 96px; align-self: start; }
  .hub-cards strong { align-self: start; }
}
.theme-toggle { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; margin-left: var(--s2); color: var(--fg); background: transparent; border: 1px solid var(--rule-strong); border-radius: 999px; cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { border-color: var(--fg); }
.theme-toggle .ti { width: 22px; height: 22px; display: none; }
.theme-toggle[data-mode="auto"] .ti-auto, .theme-toggle[data-mode="dark"] .ti-dark, .theme-toggle[data-mode="light"] .ti-light { display: block; }
.theme-tip { position: absolute; top: calc(100% + 6px); right: 0; z-index: 10; white-space: nowrap; font: 600 13px/1 var(--sans); color: var(--bg); background: var(--fg); border-radius: 3px; padding: 6px 8px; opacity: 0; pointer-events: none; }
.theme-toggle:hover .theme-tip, .theme-toggle:focus-visible .theme-tip { opacity: 1; }
@media (max-width: 859px) {
  .theme-toggle { order: 2; margin-left: auto; width: 40px; height: 40px; }
}
@media print {
  .theme-toggle { display: none !important; }
}
.home .home-lead .lede { margin-bottom: var(--s4); max-width: var(--measure); }
.home-lead { padding-bottom: var(--s6); }
@media (min-width: 1100px) {
  .home .hub-cards.home-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* This page */

/* No menu row under the name on narrow screens, so the header gets the same space below as above. */
@media (max-width: 859px) {
  .top .wrap { padding-bottom: 6px; }
}

/* The two sites: title, address, then what each is for. */
.sites li > a { grid-template-rows: auto auto 1fr; }
.sites a .ill { grid-row: 1 / 4; }
.sites .url { font: 500 var(--t-meta)/1.35 var(--mono); letter-spacing: 0.02em; }
@media (min-width: 760px) {
  .sites li > a { grid-template-rows: auto auto auto 1fr; }
  .sites a .ill { grid-row: auto; }
}

/* Not there yet: the same card with a dashed edge and no fill, not a link. */
.sites li > .soon { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; height: 100%; padding: 14px 16px; border: 1.5px dashed var(--rule-strong); border-radius: var(--radius); color: var(--fg); }
.soon .ill { color: var(--muted); }
/* Where the card has room for the address, it moves to the next line whole; on a narrower card it
   breaks after the @. */
.soon .what { container-type: inline-size; }
@container (min-width: 190px) { .soon .mail { display: inline-block; } }
@media (min-width: 760px) {
  .sites li > .soon { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; row-gap: 6px; padding: 16px 18px 18px; }
}

/* "Coming soon" looks like the sites' Beta badge, without being a button; on a narrow card it
   wraps under the title, flush left. */
.soon strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sites .badge { white-space: nowrap; font: 600 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--rule-strong); border-radius: 999px; padding: 4px 8px; }
