:root {
  --background: #f4fafd;
  --surface: #ffffff;
  --surface-raised: #e7f4f8;
  --text: #142b35;
  --text-muted: #58717a;
  --primary: #087f8c;
  --primary-pressed: #066773;
  --accent: #f26b5e;
  --border: #c9dfe6;
  --on-primary: #ffffff;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(8, 127, 140, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .brand {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.brand-short {
  color: var(--text-muted);
  font-weight: 500;
}

main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.hero {
  text-align: center;
}

.hero-penguin {
  width: 180px;
  height: auto;
  margin-bottom: 8px;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.15;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 24px;
}

h2 {
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 700;
  margin: 28px 0 8px;
  color: var(--text);
}

p,
li {
  color: var(--text);
}

.muted {
  color: var(--text-muted);
}

.caption {
  font-size: 0.85rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  margin: 18px 0;
}

.link-card {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  color: var(--primary);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin: 6px;
  min-width: 180px;
}

.link-card:hover {
  background: var(--surface-raised);
}

a {
  color: var(--primary);
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 14px;
  padding: 13px 24px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--primary-pressed);
}

.btn.secondary {
  background: var(--surface-raised);
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn.secondary:hover {
  background: var(--border);
}

.pill {
  display: inline-block;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.invite-code {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin: 8px 0 16px;
}

.join-card .label {
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 4px;
}

.buddy-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 28px 0 8px;
}

.buddy-row img {
  width: 64px;
  height: 64px;
}

.page-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 6px;
}

.page-head img {
  width: 92px;
  height: auto;
  flex-shrink: 0;
}

.page-head h1 {
  font-size: 1.7rem;
  margin-bottom: 2px;
}

.prose ul {
  padding-left: 22px;
}

.prose li {
  margin: 4px 0;
}

code {
  background: var(--surface-raised);
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.9em;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--surface);
}

footer.site .links {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

footer.site .links a:hover {
  color: var(--primary);
}
