:root {
  color-scheme: light;
  --bg-start: #f8f3ea;
  --bg-end: #e5efe7;
  --card-bg: rgba(255, 255, 255, 0.92);
  --accent: #7b1f1f;
  --accent-soft: #d6b68a;
  --ink: #2a2220;
  --muted: #5a524c;
  --shadow: 0 24px 60px rgba(66, 43, 29, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Work Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(123, 31, 31, 0.12), transparent 45%),
    radial-gradient(circle at 20% 20%, rgba(214, 182, 138, 0.2), transparent 40%),
    linear-gradient(140deg, var(--bg-start), var(--bg-end));
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 32px;
}

.card {
  width: min(980px, 100%);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 48px);
  backdrop-filter: blur(12px);
  animation: fade-in 700ms ease both;
}

.hero {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(90, 82, 76, 0.15);
  padding-bottom: 24px;
  margin-bottom: 28px;
}

.logo {
  width: clamp(80px, 14vw, 128px);
  height: auto;
}

.hero-text h1 {
  font-family: "Marcellus", serif;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.5px;
  color: var(--accent);
  margin-bottom: 6px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.subtitle {
  font-size: 16px;
  color: var(--muted);
}

.link-grid {
  list-style: none;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  padding: 18px 20px;
  border-radius: 18px;
  background: white;
  border: 1px solid rgba(123, 31, 31, 0.1);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  position: relative;
  overflow: hidden;
}

.link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(123, 31, 31, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 200ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(123, 31, 31, 0.3);
  box-shadow: 0 16px 30px rgba(54, 33, 22, 0.18);
}

.link-card:hover::after,
.link-card:focus-visible::after {
  opacity: 1;
}

.link-title {
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.link-note {
  font-size: 13px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}

.footer {
  margin-top: 20px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(90, 82, 76, 0.7);
}

.link-grid li {
  opacity: 0;
  animation: rise-in 600ms ease forwards;
}

.link-grid li:nth-child(1) { animation-delay: 120ms; }
.link-grid li:nth-child(2) { animation-delay: 200ms; }
.link-grid li:nth-child(3) { animation-delay: 280ms; }
.link-grid li:nth-child(4) { animation-delay: 360ms; }
.link-grid li:nth-child(5) { animation-delay: 440ms; }
.link-grid li:nth-child(6) { animation-delay: 520ms; }
.link-grid li:nth-child(7) { animation-delay: 600ms; }

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    width: 96px;
  }
}
