/* Palette matches mobile/src/components/Mac7.tsx */
:root {
  --cream: #F7F5EA;
  --paper: #F5F2E8;
  --ink: #000;
  --dim: #6E6880;
  --cobalt: #1B0FE9;
  --lime: #B6FB3A;
  --purple: #5A2BD9;
  --radius: 6px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Header — cobalt bar with the stacked lime-shadow wordmark */
.masthead {
  background: var(--cobalt);
  border-bottom: 1px solid var(--ink);
  padding: calc(18px + env(safe-area-inset-top)) 16px 22px;
  text-align: center;
}

.wordmark {
  position: relative;
  display: inline-block;
  margin: 0;
  font-family: "Pixelify Sans", monospace;
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: 1.5px;
}
.wordmark-text { position: relative; color: #fff; }
.wordmark-shadow { position: absolute; top: 3px; left: 3px; color: var(--lime); }

/* Layout */
.wrap {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 16px 56px;
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 820px) {
  .wrap {
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    padding: 80px 32px;
  }
}

/* Hero copy */
.stamp {
  display: inline-block;
  margin: 0 0 18px;
  padding: 4px 10px;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.headline {
  margin: 0 0 16px;
  font-size: clamp(34px, 8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.lede {
  margin: 0 0 28px;
  max-width: 34em;
  font-size: 18px;
}

.cta {
  display: inline-block;
  padding: 14px 24px;
  background: var(--cobalt);
  color: var(--cream);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 80ms, box-shadow 80ms;
}
.cta:hover { box-shadow: 3px 3px 0 var(--lime), 3px 3px 0 1px var(--ink); }
.cta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.cta:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

@media (max-width: 480px) {
  .cta { display: block; text-align: center; }
}

.fineprint {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--dim);
}

/* Example buddy list window */
.window {
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  max-width: 420px;
  width: 100%;
  justify-self: center;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--cream);
  border-bottom: 1px solid var(--ink);
}
.titlebar-lines {
  flex: 1;
  height: 9px;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 3px);
}
.titlebar-label { font-weight: 700; font-size: 14px; }

.buddies { list-style: none; margin: 0; padding: 0; }

.buddy {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
}
.buddy + .buddy { border-top: 1px solid #E6E2CB; }

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.dot-on { background: var(--lime); }
.dot-away { background: #FFD23F; }

.buddy-name { margin: 0; font-weight: 700; }

.status {
  margin: 4px 0 0;
  padding: 6px 10px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 15px;
}
.status-italic { background: #fff; font-style: italic; }
.status-loud { background: var(--purple); color: var(--cream); font-weight: 700; letter-spacing: 0.5px; }
.status-pixel { background: var(--lime); font-family: "Pixelify Sans", monospace; font-weight: 700; }

/* Footer */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ink);
  font-size: 14px;
  color: var(--dim);
}

.join { text-align: center; }

/* Invite page */
.wordmark-link { text-decoration: none; }
.wrap-narrow { max-width: 620px; display: block; }
@media (min-width: 820px) {
  .wrap-narrow { padding: 64px 32px; }
}
.step {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}
.step-title { margin: 0 0 12px; font-size: 20px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 18px; }
.steps .cta { margin-top: 10px; }
.cta-quiet { background: var(--cream); color: var(--ink); }
.code-row { display: flex; gap: 8px; align-items: stretch; margin-top: 10px; flex-wrap: wrap; }
.invite-code {
  padding: 10px 16px;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: "Pixelify Sans", monospace;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 2px;
  user-select: all;
  overflow-wrap: anywhere;
}
.copy-btn {
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.fineprint a, .lede a { color: var(--cobalt); }
