@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Space+Grotesk:wght@400;500;700&display=swap');

:root {
  --bg: #f7f4ee;
  --surface: #fff8ef;
  --ink: #14202b;
  --muted: #53616f;
  --line: #dfd8cb;
  --accent: #ef7f2d;
  --accent-strong: #d66316;
  --teal: #0c8488;
  --teal-soft: #d8f0f2;
  --shadow: 0 18px 40px rgba(20, 32, 43, 0.12);
  --radius-lg: 26px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 20%, #ffe8d0 0%, rgba(255, 232, 208, 0) 42%),
    radial-gradient(circle at 90% 0%, #d9f6f7 0%, rgba(217, 246, 247, 0) 38%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -20% -10% auto;
  height: 360px;
  background: linear-gradient(120deg, rgba(239, 127, 45, 0.15), rgba(12, 132, 136, 0.08));
  transform: rotate(-8deg);
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(247, 244, 238, 0.82);
  border-bottom: 1px solid rgba(20, 32, 43, 0.08);
}

.nav-inner {
  width: min(1120px, calc(100% - 2.6rem));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  min-height: 44px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: url('../assets/images/profile.png') center/cover no-repeat;
  border: 1px solid rgba(20, 32, 43, 0.12);
  box-shadow: 0 8px 16px rgba(20, 32, 43, 0.22);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  position: relative;
  font-weight: 500;
  padding: 0 0.2rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border: 1px solid #ccbfae;
  border-radius: 999px;
  background: #fff;
  color: #20313f;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
}

.page-shell {
  width: min(1120px, calc(100% - 2.6rem));
  margin: 0 auto;
  padding: 2.6rem 0 4rem;
}

.kicker {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: #0d6769;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1,
h2 {
  font-family: 'Fraunces', serif;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-copy {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #fff6eb, #ffffff);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 127, 45, 0.22), rgba(239, 127, 45, 0));
  right: -80px;
  top: -80px;
}

.hero-copy h1 {
  margin-top: 1rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.hero-copy p {
  margin-top: 1.2rem;
  font-size: 1.06rem;
  max-width: 58ch;
}

.hero-meta {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #32414f;
  font-weight: 500;
}

.meta-row span:first-child {
  min-width: 78px;
  font-weight: 700;
}

.meta-row span:last-child {
  overflow-wrap: anywhere;
}

.hero-cta {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(214, 99, 22, 0.3);
}

.btn.ghost {
  border-color: var(--line);
  color: #213140;
  background: #fff;
}

.btn.ghost:hover {
  transform: translateY(-2px);
  border-color: #c9bea9;
}

.hero-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 100%;
  background: #fff;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  margin-top: 3.2rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.1rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

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

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.info-card p {
  font-size: 0.94rem;
}

.tag-wrap {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  border: 1px solid #cfd8d9;
  background: #f7fbfb;
  color: #315f61;
  padding: 0.36rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
}

.timeline {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 1.3rem;
}

.timeline ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.8rem;
  align-items: center;
}

.timeline time {
  color: #175d60;
  font-weight: 700;
}

.timeline p {
  color: #32414f;
}

.slider-shell {
  position: relative;
}

.slider-controls {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 0.8rem;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #c8beb1;
  background: #fff;
  color: #243442;
  font-size: 1rem;
  cursor: pointer;
  touch-action: manipulation;
}

.slider-btn:hover {
  border-color: #a89b88;
}

.recap-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 340px);
  gap: 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.1rem;
  overscroll-behavior-x: contain;
  padding-bottom: 0.8rem;
}

.recap-row::-webkit-scrollbar {
  height: 8px;
}

.recap-row::-webkit-scrollbar-thumb {
  background: #ccbda8;
  border-radius: 999px;
}

.recap-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  min-height: 360px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.recap-card.is-future {
  opacity: 0.7;
}

.recap-card img {
  height: 190px;
  width: 100%;
  object-fit: cover;
}

.recap-body {
  padding: 1rem;
  display: grid;
  gap: 0.65rem;
}

.recap-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
  color: #53616f;
}

.recap-body h3 {
  font-size: 1.08rem;
}

.recap-body p {
  font-size: 0.92rem;
}

.recap-link {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #13676a;
}

.small-note {
  margin-top: 0.8rem;
  font-size: 0.84rem;
}

.detail-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.detail-hero img {
  width: 100%;
  height: min(420px, 55vw);
  object-fit: cover;
}

.detail-intro {
  padding: 1.4rem;
  display: grid;
  gap: 0.8rem;
}

.detail-intro h1 {
  font-size: clamp(1.8rem, 3vw, 2.9rem);
}

.detail-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.story-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 1.1rem;
}

.story-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.55rem;
}

.story-card p + p {
  margin-top: 0.85rem;
}

.story-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  display: grid;
  gap: 0.6rem;
}

.story-card li {
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.participant-link {
  color: #0f676b;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.participant-link:hover {
  color: #0b4d50;
}

.location-link {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration-skip-ink: none;
}

.gallery {
  display: grid;
  gap: 0.9rem;
}

.gallery img {
  border-radius: var(--radius-md);
  width: 100%;
  border: 1px solid var(--line);
  min-height: 170px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(20, 32, 43, 0.1);
}

.quote-block {
  margin-top: 1rem;
  padding: 1rem;
  border-left: 4px solid var(--accent);
  background: #fff9f2;
  border-radius: 0 12px 12px 0;
  color: #384857;
  font-size: 0.96rem;
}

.footer {
  margin-top: 3.8rem;
  border-top: 1px solid rgba(20, 32, 43, 0.08);
  padding: 1.4rem 0;
  color: #63707d;
  font-size: 0.84rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.parallax-orb {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(12, 132, 136, 0.22), rgba(12, 132, 136, 0));
  pointer-events: none;
  top: 58%;
  left: -120px;
  z-index: -1;
  filter: blur(2px);
}

@media (max-width: 980px) {
  .hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 280px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .slider-controls {
    position: static;
    margin-bottom: 0.8rem;
  }
}

@media (max-width: 820px) {
  .nav-inner {
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.45rem);
    right: 0;
    width: min(280px, calc(100vw - 1.5rem));
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d8cdbd;
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(20, 32, 43, 0.14);
    padding: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    border-radius: 9px;
    padding: 0.45rem 0.65rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.is-active {
    background: #f0f8f8;
    color: #1f5e60;
  }
}

@media (max-width: 640px) {
  .nav-inner,
  .page-shell {
    width: calc(100% - 1.5rem);
  }

  .hero-copy {
    padding: 1.3rem;
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

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

  .timeline li {
    grid-template-columns: 72px 1fr;
  }

  .recap-row {
    grid-auto-columns: minmax(86vw, 1fr);
  }

  .hero-cta {
    width: 100%;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .detail-intro,
  .story-card,
  .info-card,
  .timeline {
    padding: 1rem;
  }

  .detail-hero img {
    height: clamp(210px, 54vw, 300px);
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 0.92rem;
    gap: 0.5rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .nav-toggle {
    padding: 0.4rem 0.7rem;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .recap-card,
  .nav-links,
  .slider-btn {
    transition: none;
  }
}
