/* Design system: warm, editorial, distinctive */
:root {
  --bg: #faf8f5;
  --bg-card: #fff;
  --text: #1c1917;
  --text-muted: #57534e;
  --accent: #0d9488;
  --accent-soft: #ccfbf1;
  --border: #e7e5e4;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px -15px rgba(0,0,0,.12);
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

/* Layout */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.page--wide {
  max-width: 960px;
}

/* Typography */
h1, .h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h2, .h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

a:hover {
  text-decoration: underline;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, border-color .2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-soft);
}

.card__title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.card__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Buttons & inputs */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

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

.btn--primary:hover {
  background: #0f766e;
  text-decoration: none;
}

.btn--secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

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

input[type="password"],
input[type="text"] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  width: 100%;
  max-width: 320px;
  margin-bottom: 1rem;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-actions {
  margin-top: 1.5rem;
}

/* Auth & admin pages */
.auth-page,
.admin-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-box,
.admin-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.auth-box h1,
.admin-box h1 {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* Admin dashboard */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.dashboard-header .h1 {
  margin: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
}

th, td {
  padding: 0.875rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  font-weight: 600;
  background: var(--bg);
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(0,0,0,.02);
}

code {
  font-size: 0.875em;
  background: var(--bg);
  padding: 0.2em 0.45em;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}

/* Presentation slide (single full-page view) */
.slide {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg);
}

.slide__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  max-width: 20ch;
}

.slide__subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 0;
}

/* Utilities */
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
