/* Shared by host.html and join.html. Same palette and type as index.html (the owner's Figma
   "Website" page); these pages are ordinary responsive layouts rather than scaled frames. */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('fonts/hanken-grotesk.ttf') format('truetype');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --cream: #FEF4E8; --surface: #FDF3E7; --fg: #FBF3E5;
  --ink: #1C1B19; --muted: #736D63; --on-accent: #101018;
  --teal: #42A397; --teal-deep: #27736A; --teal-bright: #42B3A5;
  --pine: #213B3A; --pine-2: #09463E; --sun: #FDD34F; --lime: #B3D36A; --apricot: #EEAA62;
  --brown: #9C672F; --code: #1E2026;
  --shadow: 0 11px 22px rgb(0 0 0 / .16);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--cream); }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 18px/1.55 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--on-accent); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: 1100px; margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
}

/* Pill buttons, as on the main page */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 11px 22px; border: 3px solid var(--teal-deep); border-radius: 999px;
  background: var(--teal-deep); color: var(--fg);
  font-weight: 700; font-size: 19px; line-height: 1.3; text-decoration: none; white-space: nowrap;
  transition: filter 150ms ease;
}
.pill:hover { filter: brightness(1.08); }
.pill svg { width: 15px; height: 15px; flex: none; }
.pill.light { background: var(--fg); border-color: var(--fg); color: var(--teal-deep); }
.pill.outline { background: transparent; border-color: currentColor; color: inherit; }
.to-right { transform: rotate(180deg); }
.to-down { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) { .pill { transition: none; } }

/* ---------- Top band ---------- */
.top { position: relative; isolation: isolate; overflow: hidden; background: var(--teal-deep); color: var(--fg); }
.top-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.home-link img { width: 168px; height: auto; }
.top-text { padding-block: 40px 72px; }
.top-text > * { max-width: 660px; }
.eyebrow { margin: 0 0 12px; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); opacity: .9; }
h1 { margin: 0; font-weight: 600; font-size: clamp(40px, 6vw, 64px); line-height: .98; letter-spacing: -.01em; text-wrap: balance; }
.lede { margin: 20px 0 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; text-wrap: pretty; }
@media (max-width: 620px) {
  .home-link img { width: 132px; }
  .top-bar .pill { font-size: 16px; padding: 8px 16px; }
}

/* ---------- Sections ---------- */
main section { padding-block: 72px; }
main section + section { padding-top: 0; }
h2 { margin: 0; font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.02; color: var(--pine); text-wrap: balance; }
h3 { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.2; }
.section-lede { margin: 12px 0 0; max-width: 40em; color: var(--muted); font-size: 20px; }
p { margin: 0; }
.muted { color: var(--muted); }

/* Two ways (Chorus Home / Linux server), in the main page's two teals */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.way { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.way > * { min-width: 0; }
.way.home { background: var(--teal-bright); color: var(--pine-2); }
.way.home h3 { color: var(--pine); }
.way.server { background: var(--teal-deep); color: var(--surface); }
.way h3 { font-size: 30px; font-weight: 600; }
.way .tag { font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.way ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.way li { display: flex; gap: 10px; align-items: baseline; }
.way li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; transform: translateY(-2px); opacity: .7; }
.way .actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.way small { font-size: 15px; opacity: .9; }
@media (max-width: 760px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* Numbered steps (a real sequence) */
.steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 20px; align-items: start;
  padding: 24px 28px; background: var(--surface); border-radius: 22px;
  box-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 8px 24px rgb(80 60 30 / .08);
}
.steps > li::before {
  content: counter(step); grid-row: span 2;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: var(--fg); font-weight: 800; font-size: 24px;
}
.steps h3 { color: var(--ink); align-self: center; }
.steps .body { grid-column: 2; display: grid; gap: 10px; color: var(--muted); }
.steps .body strong { color: var(--ink); font-weight: 700; }
@media (max-width: 560px) {
  .steps > li { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; padding: 20px; }
  .steps > li::before { width: 40px; height: 40px; font-size: 19px; }
}

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.split > div { background: var(--cream); border-radius: 14px; padding: 14px 16px; min-width: 0; }
@media (max-width: 700px) { .split { grid-template-columns: minmax(0, 1fr); } }

pre {
  margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--code); color: #FBF3E5;
  font: 500 15px/1.55 ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace;
  overflow-x: auto; white-space: pre;
}
code { font-family: ui-monospace, 'Cascadia Mono', 'SF Mono', Menlo, Consolas, monospace; font-size: .9em; }
:not(pre) > code { background: rgb(39 115 106 / .1); color: var(--pine-2); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

.note {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px 20px;
  border-radius: 16px; background: rgb(253 211 79 / .28); color: var(--ink);
}
.note svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: #8A6A00; }

/* Plain list of facts after setup */
.facts { margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.facts > div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.facts dt { font-weight: 700; font-size: 22px; color: var(--ink); }
.facts dd { margin: 0; color: var(--muted); display: grid; gap: 10px; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* Closing band that points to the other page */
.other { background: var(--teal-deep); color: var(--surface); padding-block: 56px; }
.other .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.other h2 { color: #FEF4E8; }
.other p { margin-top: 8px; max-width: 34em; }

/* Footer, as on the main page */
footer { background: var(--brown); color: var(--surface); font-size: 17px; line-height: 1.3; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding-block: 48px; }
footer p { max-width: 34em; }
footer nav { display: grid; gap: 1em; text-align: right; font-weight: 700; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
@media (max-width: 760px) { footer nav { text-align: left; } }
