/* ================================================================
   Sebastian Rink — Academic Website Stylesheet
   ================================================================ */

/* ── 1. Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #F4F6F9;
  --surface:     #FFFFFF;
  --surface-alt: #E8EEF5;
  --primary:     #1D3C5A;
  --primary-hov: #142C43;
  --teal:        #2580B3;
  --teal-light:  #C8DFF0;
  --warm:        #A07030;
  --warm-light:  #F0E5CC;
  --text:        #1A1C26;
  --text-muted:  #5C6470;
  --border:      #C8D4DE;
  --tag-bg:      #D0E5F5;
  --tag-text:    #1D3C5A;
  --font-head:   'Lora', Georgia, 'Times New Roman', serif;
  --font-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w:       1080px;
  --nav-h:       64px;
  --radius:      12px;
  --radius-sm:   6px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 4px rgba(20,40,65,.07);
  --shadow:      0 3px 14px rgba(20,40,65,.10);
  --shadow-lg:   0 8px 32px rgba(20,40,65,.14);
  --t:           0.2s ease;
}

/* ── 2. Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-hov); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── 3. Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--text);
  font-weight: 600;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.75;
}

blockquote {
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ── 4. Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 4rem;
}

.section-sm {
  padding-block: 2.5rem;
}

.section-lg {
  padding-block: 5.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-hero {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header .lead {
  max-width: 60ch;
}

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

/* ── 5. Navigation ────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand:hover { color: var(--primary-hov); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--tag-bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t);
}

/* ── 6. Hero (Homepage) ───────────────────────────────────────── */
.hero {
  background: var(--bg);
  padding-block: 5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(29,60,90,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--tag-bg);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin-bottom: 1rem;
  max-width: 16ch;
}

.hero .tagline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 44ch;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-photo-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-photo-bg {
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, rgba(29,60,90,.08), rgba(37,128,179,.05));
  border-radius: calc(var(--radius-lg) + 6px);
}

.hero-photo {
  width: 300px;
  height: 360px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  border: 4px solid var(--surface);
}

.hero-photo-fallback {
  width: 300px;
  height: 360px;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 4rem;
  color: white;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

/* ── 7. Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  transition: all var(--t);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hov);
  color: #fff;
  box-shadow: 0 4px 16px rgba(29,60,90,.3);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
}

/* ── 8. Page Headers (non-home pages) ─────────────────────────── */
.page-header {
  background: linear-gradient(160deg, var(--primary) 0%, var(--teal) 100%);
  color: #fff;
  padding-block: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.page-header .lead {
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.75);
}
.breadcrumb a:hover { color: #fff; }

/* ── 9. Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--t), transform var(--t);
}

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

.card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card-title a {
  color: var(--text);
}
.card-title a:hover { color: var(--primary); }

.card-meta {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.card-desc {
  font-size: 0.93rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.65;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Research area card */
.research-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
}
.research-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.research-card h3 {
  margin-bottom: 0.5rem;
}

.research-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ── 10. Tags & Badges ────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  background: var(--tag-bg);
  color: var(--tag-text);
  white-space: nowrap;
}

.tag-teal {
  background: var(--teal-light);
  color: var(--teal);
}

.tag-warm {
  background: var(--warm-light);
  color: var(--warm);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Status badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.status-published {
  background: rgba(29,60,90,.10);
  color: var(--primary);
}

.status-review {
  background: rgba(160,112,48,.12);
  color: var(--warm);
}

.status-dot::before {
  content: '●';
  font-size: 0.6rem;
}

/* ── 11. Timeline ─────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--teal-light));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

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

.timeline-dot {
  position: absolute;
  left: -1.55rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-dot-teal {
  background: var(--teal);
  box-shadow: 0 0 0 2px var(--teal);
}

.timeline-dot-warm {
  background: var(--warm);
  box-shadow: 0 0 0 2px var(--warm);
}

.timeline-year {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.timeline-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.timeline-org {
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── 12. Paper List View ──────────────────────────────────────── */
.paper-entry {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t);
  margin-bottom: 1rem;
}

.paper-entry:last-child { margin-bottom: 0; }

.paper-entry:hover { box-shadow: var(--shadow); }

.paper-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.paper-title a {
  color: var(--text);
}
.paper-title a:hover { color: var(--primary); }

.paper-authors {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.paper-venue {
  font-size: 0.85rem;
  color: var(--primary);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.paper-summary {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.9rem;
}

.paper-plain {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-left: 3px solid var(--teal);
}

.paper-plain strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 0.35rem;
}

/* ── 13. Section dividers ─────────────────────────────────────── */
.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--teal));
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.wave-bg {
  background: var(--surface-alt);
  position: relative;
}

.wave-top::before,
.wave-bottom::after {
  content: '';
  display: block;
  height: 40px;
  background: var(--bg);
}

/* ── 14. About / Profile ──────────────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

.profile-photo-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.profile-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--t);
}
.profile-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ── 15. Personal interests block ────────────────────────────── */
.interests-block {
  background: linear-gradient(135deg, var(--tag-bg), var(--teal-light));
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.interests-block h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.interests-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.interest-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--text);
}

/* ── 16. Teaching cards ───────────────────────────────────────── */
.teaching-entry {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.teaching-entry:last-child { margin-bottom: 0; }

.teaching-entry h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.teaching-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.teaching-meta .since {
  font-weight: 500;
  color: var(--primary);
}

/* ── 17. Contact ──────────────────────────────────────────────── */
.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 640px;
}

.contact-email {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}
.contact-email:hover { color: var(--primary-hov); }

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-item-body {
  font-size: 0.9rem;
}

.contact-item-body strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--t);
}
.profile-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--tag-bg);
}

/* ── 18. Grants / Service list ────────────────────────────────── */
.grant-list, .service-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.grant-item, .service-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  font-size: 0.92rem;
}

.grant-item strong, .service-item strong {
  display: block;
  margin-bottom: 0.15rem;
}

.grant-item .funder, .service-item .year {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.grant-item .years {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--tag-bg);
  color: var(--primary);
  padding: 0.15rem 0.5rem;
  border-radius: 99px;
  margin-bottom: 0.2rem;
}

/* ── 19. Footer ───────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  padding-block: 2.5rem;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-links a:hover { color: var(--primary); }

.footer-sep {
  color: var(--border);
  user-select: none;
}

/* ── 20. Home section: Featured strip ────────────────────────── */
.featured-strip {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.featured-strip h2 {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ── 21. Intro box ────────────────────────────────────────────── */
.intro-box {
  background: linear-gradient(135deg, rgba(29,60,90,.05), rgba(37,128,179,.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
}

/* ── 22. Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-hero {
    grid-template-columns: 1fr;
  }
  .hero-photo-wrap {
    order: -1;
  }
  .hero-photo, .hero-photo-fallback {
    width: 220px;
    height: 260px;
    margin-inline: auto;
  }
  .hero h1 {
    max-width: 100%;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-photo-wrap {
    position: static;
    max-width: 280px;
  }
}

@media (max-width: 680px) {
  :root { --nav-h: 56px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--surface);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 0.5rem;
    overflow-y: auto;
    border-top: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }
  .nav-links a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    display: block;
  }

  .nav-toggle { display: flex; }

  .section { padding-block: 2.75rem; }
  .section-lg { padding-block: 3.5rem; }
  .hero { padding-block: 3rem 2.5rem; }
  .page-header { padding-block: 2.5rem; }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .contact-card { padding: 1.5rem; }
  .paper-entry { padding: 1.25rem; }
  .profiles-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .profiles-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── 23. Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.5s ease both;
}

/* ── 24. Print ────────────────────────────────────────────────── */
@media print {
  .site-nav, .site-footer, .btn, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .paper-entry, .card { box-shadow: none; border: 1px solid #ccc; }
}
