/* ========================================
   DESIGN TOKENS
   ======================================== */

:root {
  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* ========================================
   LIGHT MODE (default)
   ======================================== */

:root, [data-theme="light"] {
  --color-bg:             #faf9f6;
  --color-surface:        #ffffff;
  --color-surface-2:      #f5f4f0;
  --color-surface-offset: #efeee9;
  --color-divider:        #ddd9d2;
  --color-border:         #d0ccc4;

  --color-text:           #1a1a1a;
  --color-text-muted:     #6b6b6b;
  --color-text-faint:     #a3a3a3;
  --color-text-inverse:   #faf9f6;

  --color-primary:        #1a3a5c;
  --color-primary-hover:  #0f2a45;
  --color-primary-active: #0a1e33;
  --color-primary-highlight: #d4dde8;

  --color-accent:         #8b6f47;
  --color-accent-hover:   #74593a;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.12);
}

/* ========================================
   DARK MODE
   ======================================== */

[data-theme="dark"] {
  --color-bg:             #141312;
  --color-surface:        #1c1b19;
  --color-surface-2:      #242320;
  --color-surface-offset: #1e1d1b;
  --color-divider:        #2e2d2a;
  --color-border:         #3a3936;

  --color-text:           #d6d4d0;
  --color-text-muted:     #8a8884;
  --color-text-faint:     #5e5d5a;
  --color-text-inverse:   #1a1a1a;

  --color-primary:        #7ea8cc;
  --color-primary-hover:  #9bbdd9;
  --color-primary-active: #b5d0e5;
  --color-primary-highlight: #2a3540;

  --color-accent:         #c4a878;
  --color-accent-hover:   #d4bc92;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #141312;
    --color-surface:        #1c1b19;
    --color-surface-2:      #242320;
    --color-surface-offset: #1e1d1b;
    --color-divider:        #2e2d2a;
    --color-border:         #3a3936;
    --color-text:           #d6d4d0;
    --color-text-muted:     #8a8884;
    --color-text-faint:     #5e5d5a;
    --color-text-inverse:   #1a1a1a;
    --color-primary:        #7ea8cc;
    --color-primary-hover:  #9bbdd9;
    --color-primary-active: #b5d0e5;
    --color-primary-highlight: #2a3540;
    --color-accent:         #c4a878;
    --color-accent-hover:   #d4bc92;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ========================================
   GLOBAL LAYOUT
   ======================================== */

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--wide {
  max-width: var(--content-wide);
}

.container--narrow {
  max-width: var(--content-narrow);
}

main {
  flex: 1;
}

/* ========================================
   HEADER / NAV
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}

.site-logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-logo:hover {
  color: var(--color-primary);
}

.nav-desktop {
  display: none;
  gap: var(--space-6);
  align-items: center;
}

.nav-desktop a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-text);
}

.nav-desktop a:hover::after,
.nav-desktop a.active::after {
  width: 100%;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; gap: var(--space-4); }
  .nav-mobile-toggle { display: none !important; }
}

@media (min-width: 960px) {
  .nav-desktop { gap: var(--space-6); }
}

/* Mobile nav */
.nav-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--color-text);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4);
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-md);
}

.nav-mobile a:hover,
.nav-mobile a:active,
.nav-mobile a.active {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* Theme toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* ========================================
   HERO / HOME
   ======================================== */

.hero {
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.hero-content {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 50ch;
}

.hero-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

@media (min-width: 480px) {
  .hero-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .hero-links {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-links a {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--transition-interactive);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

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

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

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-monogram {
  width: 140px;
  height: 140px;
}

@media (min-width: 480px) {
  .hero-monogram {
    width: 160px;
    height: 160px;
  }
}

@media (min-width: 768px) {
  .hero-monogram {
    width: 200px;
    height: 200px;
  }
}

/* ========================================
   COLLAPSIBLE SECTIONS
   ======================================== */

.collapsible-section {
  border: none;
}

.collapsible-toggle {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  user-select: none;
}

.collapsible-toggle::-webkit-details-marker {
  display: none;
}

.collapsible-toggle::after {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(-45deg);
  transition: transform var(--transition-interactive);
  flex-shrink: 0;
}

details[open] > .collapsible-toggle::after {
  transform: rotate(45deg);
}

.collapsible-toggle:hover {
  color: var(--color-primary);
}

.collapsible-toggle:hover::after {
  border-color: var(--color-primary);
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

.section--alt {
  background: var(--color-surface-2);
}

.section-header {
  margin-bottom: var(--space-8);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* ========================================
   PAGE HEADER (for inner pages)
   ======================================== */

.page-header {
  padding-block: clamp(var(--space-12), 8vw, var(--space-20));
  border-bottom: 1px solid var(--color-divider);
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.page-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

/* ========================================
   CARDS
   ======================================== */

.card-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.card h3,
.card h2.card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.card-meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-4);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.tech-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
}

/* ========================================
   RESUME / TIMELINE
   ======================================== */

.timeline {
  position: relative;
  padding-left: var(--space-6);
}

@media (min-width: 640px) {
  .timeline {
    padding-left: var(--space-8);
  }
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-divider);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-6) - 4px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
}

@media (min-width: 640px) {
  .timeline-item::before {
    left: calc(-1 * var(--space-8) - 4px);
  }
}

.timeline-date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-1);
}

.timeline-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.timeline-company {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}

.timeline-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.timeline-desc ul {
  padding-left: var(--space-5);
  margin-top: var(--space-2);
}

.timeline-desc li {
  margin-bottom: var(--space-1);
}

/* Company group: multiple roles under one company */
.timeline-group {
  position: relative;
  padding-bottom: var(--space-8);
}

.timeline-group:last-child {
  padding-bottom: 0;
}

.timeline-group::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-6) - 4px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  border: 2px solid var(--color-bg);
}

@media (min-width: 640px) {
  .timeline-group::before {
    left: calc(-1 * var(--space-8) - 4px);
  }
}

.timeline-group-header {
  margin-bottom: var(--space-4);
}

.timeline-group-company {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: var(--space-1);
}

.timeline-group-meta {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
}

.timeline-group-date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-group-roles {
  padding-left: 0;
  margin-left: 0;
}

.timeline-role {
  position: relative;
  padding-bottom: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
}

.timeline-role:last-child {
  padding-bottom: 0;
}

.timeline-role-date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-1);
}

.timeline-role-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.timeline-role-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  border: 1px solid var(--color-divider);
  padding: 0.15em 0.6em;
  border-radius: var(--radius-full);
  margin-left: var(--space-2);
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ========================================
   EDUCATION & CERTS
   ======================================== */

.edu-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
}

.edu-item {
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
}

.edu-item h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.edu-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ========================================
   SKILLS
   ======================================== */

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.skill-pill {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

/* ========================================
   BOOK CARD
   ======================================== */

.book-card {
  display: grid;
  gap: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .book-card {
    grid-template-columns: 160px 1fr;
  }
}

.book-cover {
  width: 160px;
  height: 220px;
  background: var(--color-surface-offset);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .book-cover {
    margin-inline: 0;
  }
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.book-cover-placeholder {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-align: center;
  padding: var(--space-4);
  line-height: 1.4;
}

.book-info h3,
.book-info h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.book-info .book-author {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.book-info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.book-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ========================================
   VOLUNTEER
   ======================================== */

.volunteer-item {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.volunteer-item h3,
.volunteer-item h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.volunteer-org {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-1);
}

.volunteer-dates {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-3);
}

.volunteer-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-8);
  margin-top: var(--space-16);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-4);
}

@media (min-width: 640px) {
  .footer-links {
    justify-content: flex-end;
  }
}

.footer-links a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-text-muted);
}

/* ========================================
   SCROLL REVEAL
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   HOME HIGHLIGHTS
   ======================================== */

.highlights-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .highlights-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .highlights-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.highlight-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.highlight-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.highlight-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.highlight-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.highlight-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

/* ========================================
   PRINT
   ======================================== */

/* ========================================
   STAGE BADGES
   ======================================== */

.card-stage {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-highlight);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-top: var(--space-4);
}

.book-status {
  font-weight: 600;
  color: var(--color-accent);
}

/* ========================================
   CONTACT FORM
   ======================================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-highlight);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-faint);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit {
  align-self: flex-start;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
  transition: all var(--transition-interactive);
}

.contact-submit:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ========================================
   PRINT
   ======================================== */

@media print {
  .site-header, .site-footer, .theme-toggle, .nav-mobile-toggle { display: none; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .section { padding-block: 1rem; }
  .card, .book-card, .volunteer-item, .edu-item { break-inside: avoid; border: 1px solid #ccc; }
}
