/* What Room public site. Plain CSS, light mode only, no external requests. */

/* Self-hosted Latin subsets from the portal's font packages (OFL, licences beside the files).
   Every page preloads both files. "optional" never swaps: if a font isn't ready for the first
   paint, that page view keeps the system font and the next one uses the cached file. */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url("fonts/poppins-latin-600-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: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: optional;
  src: url("fonts/open-sans-latin-wght-normal.woff2") format("woff2-variations");
  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;
}

/* White Room brand, the same values as apps/web/src/styles.css. */
:root {
  color-scheme: light;
  --background: #fff;
  --foreground: #2d2d2d;
  --surface: #f5f4f4;
  --muted-foreground: #757575;
  --border: rgb(45 45 45 / 10%);
  --placeholder-background: #fff3c4;
  --placeholder-foreground: #5c4400;
  --font-heading: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  --column: 38rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

p,
ul,
ol,
dl {
  margin: 0;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* Unfilled facts stay visible on every page until check-placeholders.sh passes. */
.placeholder {
  background: var(--placeholder-background);
  color: var(--placeholder-foreground);
  padding: 0 0.2em;
  font-size: 0.92em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--foreground);
  color: var(--background);
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  max-width: var(--column);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: 20px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--muted-foreground);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--foreground);
}

/* Content */
main {
  padding: 64px 0 56px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--muted-foreground);
  font-size: 0.8rem;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: -0.02em;
}

h2 {
  margin: 44px 0 10px;
  font-size: 1.1rem;
}

h3 {
  margin: 24px 0 6px;
  font-size: 0.98rem;
}

.lede {
  font-size: 1.125rem;
}

.meta {
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

main p + p,
main p + ul,
main ul + p,
main p + ol,
main ol + p {
  margin-top: 14px;
}

main ul,
main ol {
  padding-left: 1.25em;
}

main li + li {
  margin-top: 6px;
}

.facts {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 10px 20px;
  margin-top: 12px;
  font-size: 0.95rem;
}

.facts dt {
  color: var(--muted-foreground);
}

.facts dd {
  margin: 0;
}

.contents {
  margin: 36px 0 8px;
  padding: 20px 24px;
  background: var(--surface);
  font-size: 0.92rem;
}

.contents h2 {
  margin: 0;
  font-size: 0.92rem;
}

.contents ol {
  margin-top: 8px;
  column-gap: 32px;
  columns: 2;
}

.contents li {
  break-inside: avoid;
}

.contents li + li {
  margin-top: 4px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 16px;
}

.site-footer a {
  color: var(--foreground);
}

.footer-brand img {
  margin-right: 6px;
  vertical-align: -4px;
}

@media (max-width: 520px) {
  main {
    padding: 44px 0 40px;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .facts dd {
    margin-bottom: 12px;
  }

  .contents ol {
    columns: 1;
  }
}
