/* The Bored Room — boredroom.space
   Palette: Ocean. Swap the tokens below to re-skin the whole site. */

:root {
  --paper: #EEF4F8;
  --paper-2: #DDE7EF;
  --ink: #0B2A42;
  --ink-2: #3E5A72;
  --midnight: #073B5E;
  --midnight-2: #0D527F;
  --ocean: #0D5C8C;
  --accent: #1C8C6E;        /* buttons, price */
  --accent-ink: #146B54;
  --free: #22A35B;          /* the board's Free color, always green */
  --busy: #E24850;
  --board-a: #052A48;       /* board mock gradient */
  --board-b: #0D527F;
  --plum: #0D5C8C;
  --chrome: #BCCBD8;
  --steel: #7D94A8;
  --white: #FFFFFF;

  --font: "Instrument Sans", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ocean); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 0.4em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink-2); }
small, .small { font-size: 0.92rem; color: var(--ink-2); }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; color: inherit; font-size: 1.1rem; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.nav { display: flex; gap: 22px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a { white-space: nowrap; }
@media (max-width: 560px) { .nav { gap: 12px; font-size: .9rem; } .nav a:first-child { display: none; } }

/* Hero */
.hero {
  background: var(--midnight);
  color: var(--white);
  padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 100px);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { margin-bottom: 0.5em; }
.hero .lede { color: rgba(255,255,255,.75); }
.hero .top { color: var(--white); }
.hero .nav a { color: rgba(255,255,255,.7); }
.hero .nav a:hover { color: var(--white); }

.price-tag {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--midnight-2); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: 8px 16px; margin: 6px 0 22px; font-weight: 600;
}
.price-tag b { font-size: 1.4rem; font-weight: 800; color: var(--accent); }

.cta { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--white); font-weight: 700; text-decoration: none; padding: 14px 22px; border-radius: 10px; }
.cta:hover { background: var(--accent-ink); color: var(--white); }
.cta.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.cta.ghost:hover { background: rgba(255,255,255,.06); }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* The board mock. This is the hero: it's what you're buying. */
.board {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--board-a), var(--board-b));
  border-radius: 22px;
  border: 10px solid #1B1F2B;
  box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06);
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 12px 1fr;
  font-family: var(--font);
}
.board .band { background: var(--free); }
.board.busy .band { background: var(--busy); }
.board .face { padding: 7% 7% 6%; display: grid; grid-template-rows: auto 1fr auto; color: var(--white); }
.board .room { display: flex; justify-content: space-between; font-weight: 600; font-size: clamp(.8rem, 1.6vw, 1.1rem); }
.board .room span:last-child { opacity: .65; font-weight: 400; font-variant-numeric: tabular-nums; }
.board .state { align-self: center; }
.board .state b { display: block; font-size: clamp(3rem, 9vw, 6rem); font-weight: 800; letter-spacing: -0.04em; color: var(--free); line-height: 1; }
.board.busy .state b { color: var(--busy); }
.board .state span { display: block; font-size: clamp(1rem, 2.4vw, 1.6rem); font-weight: 600; margin-top: .3em; }
.board .state small { display: block; opacity: .65; font-size: clamp(.75rem, 1.5vw, 1rem); color: inherit; }
.board .later { font-size: clamp(.7rem, 1.3vw, .9rem); opacity: .7; display: grid; gap: 2px; }
.board .later b { font-weight: 600; opacity: 1; }
.board .tab { position: absolute; right: 0; bottom: 0; width: 44px; height: 30px; background: rgba(255,255,255,.1); border-top-left-radius: 20px; }

/* Sections */
section { padding: clamp(48px, 7vw, 88px) 0; }
section + section { border-top: 1px solid var(--chrome); }
.eyebrow-free { color: var(--accent-ink); font-weight: 700; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); }
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin: 28px 0 0; padding: 0; list-style: none; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; padding-top: 48px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--midnight); color: var(--white);
  display: grid; place-items: center; font-weight: 800;
}
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; }

.card { background: var(--white); border: 1px solid var(--chrome); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Privacy block: the list of what isn't collected is the point */
.nots { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; max-width: var(--measure); }
.nots li { display: flex; gap: 12px; align-items: baseline; }
.nots li::before { content: "—"; color: var(--steel); flex: none; }

.plain { border-left: 4px solid var(--plum); padding: 4px 0 4px 18px; margin: 24px 0; max-width: var(--measure); }

/* Pricing */
.pricing { background: var(--midnight); color: var(--white); border-radius: 24px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.pricing .big { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: .9; letter-spacing: -0.05em; color: var(--accent); }
.pricing .big small { display: block; font-size: 1rem; color: rgba(255,255,255,.7); font-weight: 600; letter-spacing: 0; margin-top: 10px; }
.pricing ul { margin: 0; padding-left: 1.2em; color: rgba(255,255,255,.85); }
.pricing li { margin: .3em 0; }
.pricing p { color: rgba(255,255,255,.75); }

/* FAQ */
details { border-top: 1px solid var(--chrome); padding: 14px 0; max-width: 760px; }
details:last-of-type { border-bottom: 1px solid var(--chrome); }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--steel); font-weight: 400; font-size: 1.4rem; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

/* Footer */
footer { background: var(--midnight); color: rgba(255,255,255,.7); padding: 40px 0; font-size: .95rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: rgba(255,255,255,.85); }
footer a:hover { color: var(--white); }

/* Article pages (privacy, setup) */
.article { padding: clamp(36px, 6vw, 72px) 0; }
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
.article h2 { font-size: 1.5rem; margin-top: 2em; }
.article ul, .article ol { max-width: var(--measure); padding-left: 1.3em; }
.article li { margin: .35em 0; }
.article code { background: var(--paper-2); padding: 2px 6px; border-radius: 5px; font-size: .92em; }
.article .updated { color: var(--ink-2); font-size: .95rem; }
.article table { border-collapse: collapse; margin: 1em 0; max-width: 760px; width: 100%; font-size: .95rem; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--chrome); vertical-align: top; }
.article th { color: var(--ink-2); font-weight: 600; }

/* Setup chooser */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } }
.path { display: block; text-decoration: none; color: inherit; background: var(--white); border: 1px solid var(--chrome); border-radius: var(--radius); padding: 24px; }
.path:hover { border-color: var(--ocean); color: inherit; }
.path h3 { margin: 0 0 6px; }
.path .who { color: var(--accent-ink); font-weight: 600; font-size: .95rem; margin-bottom: 10px; }
.path p { margin: 0; font-size: .98rem; color: var(--ink-2); }
.path .time { margin-top: 14px; font-size: .9rem; color: var(--steel); }

/* Callouts */
.note { background: var(--white); border: 1px solid var(--chrome); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 18px; margin: 18px 0; max-width: 760px; }
.note p { margin: 0; }
.note p + p { margin-top: 8px; }
.print-hint { color: var(--steel); font-size: .9rem; }
/* Prerequisite checklist: real boxes, so it prints as a to-do */
.checklist { list-style: none; padding-left: 0 !important; max-width: 760px; }
.checklist li { position: relative; padding-left: 32px; margin: .5em 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border: 2px solid var(--steel); border-radius: 4px; }
.part { color: var(--accent-ink); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin: 2.4em 0 -.6em; }
.part + h2 { margin-top: .6em; }
pre { background: var(--midnight); color: #E6EEF5; padding: 16px 18px; border-radius: 10px; overflow-x: auto; font-size: .88rem; line-height: 1.5; max-width: 760px; }
.article h3 { margin-top: 1.6em; }

/* Print: hand this to the office admin */
@media print {
  .top, footer, .print-hint, .cta, .cta-row { display: none !important; }
  body { background: #fff; color: #000; font-size: 11.5pt; }
  .article { padding: 0; }
  a { color: #000; text-decoration: none; }
  .article a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; }
  .note { border-color: #999; break-inside: avoid; }
  pre { background: #f2f2f2; color: #000; border: 1px solid #ccc; }
  table { break-inside: avoid; }
  h2 { break-after: avoid; }
  ol, ul { break-inside: avoid; }
}
