:root {
  --bg-top: #edf5f9;
  --bg-bottom: #fdf8ef;
  --ink: #1d2730;
  --muted: #4e5f6f;
  --accent: #0f6f8c;
  --accent-soft: #d8edf5;
  --card: #ffffff;
  --border: #d9e4ea;
  --shadow: 0 20px 48px -32px rgba(12, 48, 63, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
  padding: 40px 20px 56px;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 460px;
  height: 460px;
  top: -170px;
  right: -110px;
  background: radial-gradient(circle at 35% 35%, rgba(15, 111, 140, 0.22), rgba(15, 111, 140, 0));
}

body::after {
  width: 520px;
  height: 520px;
  bottom: -220px;
  left: -160px;
  background: radial-gradient(circle at 65% 35%, rgba(193, 160, 101, 0.18), rgba(193, 160, 101, 0));
}

.page {
  width: min(1040px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 32px;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr minmax(220px, 300px);
  gap: 24px;
  align-items: start;
}

h1,
h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  color: #13212d;
  letter-spacing: 0.01em;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.1;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.8vw, 1.65rem);
}

p {
  margin: 0 0 14px;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: #0a5b73;
  text-decoration: underline;
}

.subtle-link {
  font-size: 0.9em;
  font-weight: 500;
  margin-left: 4px;
}

.contact-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 6px;
}

.contact-item {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
}

.label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid #cfdde6;
}

.paper-list {
  margin: 10px 0 0;
  padding-left: 1.35rem;
}

.paper-list li {
  margin-bottom: 0.75rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.photo-grid figure {
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff, #f5f9fc);
}

.photo-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.photo-grid figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  animation: riseIn 0.72s ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 0.08s;
}

.reveal:nth-of-type(3) {
  animation-delay: 0.16s;
}

@media (max-width: 920px) {
  body {
    padding: 28px 14px 40px;
  }

  .card {
    padding: 22px 20px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    max-width: 340px;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    animation: none;
  }

  a {
    transition: none;
  }
}
