/*
 * The join page (#564), Figma "Join page (web)" (EN 1659:6234, DA 1661:6369).
 *
 * The colours and text styles are copied from the V3 tokens in
 * packages/shared/src/tokens.ts (`v3`), and the fonts are the app's own files
 * (@expo-google-fonts/inter and /newsreader). Copied rather than imported
 * because this page has no build step; a change there is mirrored here by hand.
 */

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Inter_400Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/Inter_600SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Newsreader";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Newsreader_400Regular.ttf") format("truetype");
}

:root {
  --primary: #114f32;
  --on-primary: #f4efe6;
  --canvas: #f7f5f0;
  --surface: #faf6ee;
  --inset: #efeae0;
  --ink: #0e3520;
  --secondary: #5c5749;
  --outline: #8a7f68;
  --heading: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

p,
h1 {
  margin: 0;
  overflow-wrap: break-word;
}

.header,
.content {
  max-width: 28rem;
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  height: 72px;
  padding: 16px;
}

/* v3 title: 32/36 Newsreader 400 */
.wordmark,
.title {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 32px;
  line-height: 36px;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 16px 24px;
}

/* v3 body: 16/24 Inter 400 */
.body {
  font-size: 16px;
  line-height: 24px;
  color: var(--secondary);
}

/* v3 meta: 13/18 Inter 400 */
.meta {
  font-size: 13px;
  line-height: 18px;
  color: var(--secondary);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 12px;
  background: var(--inset);
}

/* v3 action: 14/20 Inter 600 */
.card-title,
.button {
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: none;
  color: var(--ink);
  font-family: var(--body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.primary {
  background: var(--primary);
  color: var(--on-primary);
}

.secondary {
  background: var(--surface);
  border-color: var(--outline);
}
