:root {
  --accent: #f36748;
  --bg: oklch(0.145 0 0);
  --surface: #161616;
  --border: #333333;
  --text-main: #ededed;
  --text-muted: #888888;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 4rem 1rem;
}

/* THE ANIMATION 
      Simple Opacity + Blur transition
  */
@keyframes fadeBlur {
  0% {
    opacity: 0;
    filter: blur(4px);
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* Header */
header {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 600px;
  width: 100%;
  /* Apply Animation */
  opacity: 0;
  /* Start hidden */
  animation: fadeBlur 0.8s ease-out forwards;
}

h1 {
  font-family: 'Instrument Serif', 'Newsreader', serif;
  font-weight: 400;
  font-size: 2.5rem;
  margin: 14rem 0 0.5rem;
  color: var(--accent);
  letter-spacing: -0.02em;
}

p.bio {
  color: var(--text-muted);
  font-size: 0.90rem;
  margin-bottom: 6rem;
}

/* Buttons */
.actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 3rem;
}

a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  /* Minimalist Foundation */
  background: rgb(194, 194, 194);
  color: black;
  /* Very subtle border */
  padding: 0.75rem 1.4rem;
  border-radius: 50px;
  /* Smooth rounded corners */

  /* Text Styling */
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;

  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Icon Styling */
a.button svg {
  width: 18px;
  height: 18px;
  fill: black;
  transition: fill 0.2s ease;
  opacity: 0.8;
}

/* Hover State: Crisp and White */
a.button:hover {
  background: rgb(239, 239, 239);
  /* Slight light fill */
  border-color: rgba(255, 255, 255, 0.3);
  /* Brighter border */
  color: #080808;
  transform: scale(1.01);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

a.button:hover svg {
  fill: #141414;
  opacity: 1;
}

a.button:active {
  transform: scale(1);
  opacity: 0.8;
}

/* Viewer Container */
#pdf-wrapper {
  position: relative;
  width: 100%;
  max-width: 850px;
  min-height: 600px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;

  /* Apply Animation (Delayed slightly for cascade effect) */
  opacity: 0;
  animation: fadeBlur 1s ease-out 0.2s forwards;
}

canvas {
  display: block;
  width: 100% !important;
  height: auto !important;
}

/* Simple Loading Text (No Spinners) */
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.footer-links {
  margin-top: 3rem;
  display: flex;
  gap: 1.5rem;

  /* Apply Animation */
  opacity: 0;
  animation: fadeBlur 1s ease-out 0.4s forwards;
}

.link-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.link-item:hover {
  color: var(--accent);
}

.instrument-serif-regular {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: normal;
}

.instrument-serif-regular-italic {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
}

@media (max-width: 600px) {
  h1 {
    font-size: 2rem;
  }

  #pdf-wrapper {
    min-height: 400px;
  }
}