/**
 * @file
 * Base styles, design tokens, typography.
 * Converted from the Figma Make / Tailwind frontend.
 */


@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --background: #faf7f2;
  --foreground: #1a1a2e;
  --card: #ffffff;
  --card-foreground: #1a1a2e;
  --primary: #16213e;
  --primary-dark: #1a1a2e;
  --primary-deeper: #16213e;
  --primary-foreground: #ffffff;
  --secondary: #e8e6df;
  --secondary-foreground: #1a1a2e;
  --muted: #eeece6;
  --muted-foreground: #6b6d78;
  --accent: #b5432a;
  --accent-hover: #963828;
  --accent-foreground: #ffffff;
  --highlight: #e8a838;
  --border: #d4d0c8;
  --ring: #16213e;
  --radius: 2px;
  --container: 80rem;
  --font-sans: 'Source Sans 3', sans-serif;
  --font-serif: 'Source Serif 4', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-foreground);
}

.visually-hidden {
  position: absolute !important;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  word-wrap: normal;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
  gap: 1rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-serif);
}

.section-subtitle {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.link-accent {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.025em;
}

.link-accent:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.125rem 0.5rem;
  font-family: var(--font-sans);
}

.badge--muted {
  background: var(--muted);
  color: var(--muted-foreground);
}

.badge--accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--accent {
  background: var(--accent);
  color: var(--accent-foreground);
}

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

.btn--outline-light {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn--outline-dark {
  border: 1px solid var(--border);
  color: var(--primary);
}

.btn--outline-dark:hover {
  background: var(--primary);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
}

.btn--white:hover {
  background: #f3f4f6;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

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