:root {
  --ink: #17211f;
  --muted: #66736e;
  --paper: #f4f1e9;
  --line: #d8d8c9;
  --accent: #d65a3a;
  --accent-dark: #a9422d;
  --soft-accent: #f0d6c6;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, rgba(214, 90, 58, 0.11), transparent 22rem),
    linear-gradient(135deg, #f7f4ec 0%, var(--paper) 55%, #e9ebe2 100%);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.25;
  background-image: linear-gradient(rgba(23, 33, 31, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 33, 31, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
}

.page-shell {
  width: min(calc(100% - 48px), var(--max-width));
  min-height: 100vh;
  margin: 0 auto;
  padding: 72px 0 32px;
}

.intro {
  position: relative;
  padding: 56px clamp(28px, 7vw, 96px) 64px;
  overflow: hidden;
  background: var(--ink);
  color: #f8f5ec;
  box-shadow: 16px 16px 0 var(--soft-accent);
  animation: rise-in 700ms ease both;
}

.intro::after {
  position: absolute;
  right: -80px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(244, 241, 233, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 0 32px rgba(244, 241, 233, 0.04), 0 0 0 64px rgba(244, 241, 233, 0.04);
  content: "";
}

.intro-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 48px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.eyebrow,
.detail-label,
footer {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.eyebrow {
  margin: 0 0 17px;
  color: #adb7af;
}

.eyebrow span {
  padding: 0 8px;
  color: var(--accent);
}

h1 {
  max-width: 680px;
  margin: 0;
  font-family: Georgia, "Malgun Gothic", serif;
  font-size: clamp(54px, 10vw, 116px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.affiliation {
  margin: 24px 0 0;
  color: #d8ded5;
  font-size: clamp(16px, 2vw, 20px);
}

.tagline {
  margin: 48px 0 0;
  color: #f3c6b4;
  font-family: Georgia, "Malgun Gothic", serif;
  font-size: clamp(20px, 3vw, 29px);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 42px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(248, 245, 236, 0.4);
  color: #f8f5ec;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.link-button:hover,
.link-button:focus-visible {
  border-color: var(--accent);
  background: rgba(214, 90, 58, 0.18);
  transform: translateY(-2px);
}

.link-button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff9f1;
}

.link-button.primary:hover,
.link-button.primary:focus-visible {
  background: var(--accent-dark);
}

.details {
  margin-top: 88px;
  animation: rise-in 700ms 120ms ease both;
}

.detail-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  padding: 25px 0;
  border-top: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: 1px solid var(--line);
}

.detail-label {
  padding-top: 4px;
  color: var(--accent-dark);
}

.detail-row p,
.detail-row a {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.8;
}

.detail-row a {
  width: fit-content;
  text-decoration-color: var(--accent);
  text-underline-offset: 5px;
}

.detail-row a:hover,
.detail-row a:focus-visible {
  color: var(--accent-dark);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  color: var(--muted);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 28px), var(--max-width));
    padding-top: 28px;
  }

  .intro {
    padding: 36px 24px 42px;
    box-shadow: 8px 8px 0 var(--soft-accent);
  }

  .intro-mark {
    margin-bottom: 36px;
  }

  .details {
    margin-top: 60px;
  }

  .detail-row {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 20px 0;
  }

  .detail-row p,
  .detail-row a {
    font-size: 16px;
  }

  footer {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
