:root {
  color-scheme: light;
  --forest: #173f35;
  --forest-deep: #0c2d26;
  --sage: #9bb39d;
  --mist: #edf1e8;
  --paper: #f8f6ef;
  --ink: #18211d;
  --muted: #65716b;
  --line: rgba(23, 63, 53, 0.16);
  --white: #fff;
  font-family: Inter, "Avenir Next", "Hiragino Kaku Gothic ProN", "Yu Gothic",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(23, 63, 53, 0.16);
}

.site-header nav,
.site-footer div {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer a:hover {
  color: var(--forest);
}

.language-button {
  position: relative;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: transparent;
  color: var(--forest);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.language-picker {
  position: relative;
}

.language-picker summary {
  list-style: none;
}

.language-picker summary::-webkit-details-marker {
  display: none;
}

.language-picker[open] .language-button,
.language-button:hover,
.language-button:focus-visible {
  background: var(--mist);
}

.language-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 10px);
  right: 0;
  width: 180px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 18px 46px rgba(12, 45, 38, 0.16);
}

.language-menu a {
  display: block;
  padding: 11px 15px;
  color: var(--forest);
}

.language-menu a:hover,
.language-menu a:focus-visible,
.language-menu a[aria-current="true"] {
  background: var(--mist);
}

.hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
  padding: 84px 0 92px;
}

.eyebrow {
  margin: 0 0 18px;
  color: #68816f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 0;
  max-width: 650px;
  color: var(--forest-deep);
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(3rem, 6.5vw, 5.9rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.hero-lead {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--forest);
  color: var(--white);
}

.button-secondary {
  background: transparent;
  color: var(--forest);
}

.map-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 12px solid rgba(255, 255, 255, 0.72);
  border-radius: 180px 180px 34px 34px;
  background:
    linear-gradient(38deg, transparent 42%, rgba(255, 255, 255, 0.8) 43% 46%, transparent 47%),
    linear-gradient(132deg, transparent 58%, rgba(255, 255, 255, 0.76) 59% 63%, transparent 64%),
    #dce5d7;
  box-shadow: 0 36px 70px rgba(20, 58, 48, 0.15);
}

.map-grid {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(23, 63, 53, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 63, 53, 0.13) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: rotate(-8deg) scale(1.2);
}

.route {
  position: absolute;
  border: 5px solid var(--sage);
  border-radius: 50%;
}

.route-one {
  width: 470px;
  height: 260px;
  top: 72px;
  left: -130px;
  transform: rotate(24deg);
}

.route-two {
  width: 380px;
  height: 200px;
  right: -180px;
  bottom: 44px;
  transform: rotate(-26deg);
}

.pin {
  position: absolute;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 5px solid var(--white);
  border-radius: 50% 50% 50% 10%;
  background: var(--forest);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(23, 63, 53, 0.24);
  transform: rotate(-45deg);
}

.pin span {
  transform: rotate(45deg);
}

.pin-one {
  top: 94px;
  right: 22%;
}

.pin-two {
  top: 45%;
  left: 17%;
}

.pin-three {
  right: 13%;
  bottom: 18%;
}

.memory-card {
  position: absolute;
  left: 50%;
  bottom: 42px;
  width: min(300px, 76%);
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: rgba(248, 246, 239, 0.9);
  box-shadow: 0 18px 44px rgba(23, 63, 53, 0.18);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.memory-card span,
.memory-card strong,
.memory-card small {
  display: block;
}

.memory-card span {
  color: #7f927f;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.memory-card strong {
  margin: 4px 0;
  color: var(--forest);
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 1.05rem;
}

.memory-card small {
  color: var(--muted);
  font-size: 0.7rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid article {
  min-height: 270px;
  padding: 42px 36px 36px 0;
}

.feature-grid article + article {
  border-left: 1px solid var(--line);
  padding-left: 36px;
}

.feature-number {
  color: #89a08c;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.feature-grid h2 {
  margin: 34px 0 12px;
  color: var(--forest-deep);
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 1.5rem;
  font-weight: 500;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.public-pages {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  padding: 120px 0;
}

.public-pages h2 {
  max-width: 420px;
  margin: 0;
  color: var(--forest-deep);
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  line-height: 1.3;
}

.page-links {
  border-top: 1px solid var(--line);
}

.page-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}

.page-links a:hover {
  padding-left: 10px;
}

.site-footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.invite-view {
  max-width: 640px;
  min-height: calc(100vh - 189px);
  margin: 0 auto;
  padding: 100px 0;
  text-align: center;
}

.invite-view img {
  border-radius: 22px;
  box-shadow: 0 16px 42px rgba(23, 63, 53, 0.2);
}

.invite-view .eyebrow {
  margin-top: 30px;
}

.invite-view h1 {
  color: var(--forest-deep);
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.25;
}

.invite-view p:not(.eyebrow) {
  color: var(--muted);
}

.invite-view .button {
  margin-top: 18px;
}

.legal-main {
  max-width: 860px;
  padding: 72px 0 120px;
}

.legal-hero {
  padding-bottom: 54px;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  margin: 0;
  color: var(--forest-deep);
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.legal-summary {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.updated {
  margin-top: 24px;
  color: #829087;
  font-size: 0.78rem;
}

.legal-content {
  padding-top: 56px;
}

.legal-content h2 {
  margin: 48px 0 14px;
  color: var(--forest-deep);
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 28px 0 8px;
  color: var(--forest);
  font-size: 1rem;
}

.legal-content p,
.legal-content li {
  color: #4f5d56;
}

.legal-content ul,
.legal-content ol {
  padding-left: 1.35rem;
}

.legal-content a {
  color: var(--forest);
  font-weight: 700;
}

.legal-content li + li {
  margin-top: 8px;
}

.notice {
  padding: 22px 24px;
  border-left: 4px solid var(--sage);
  border-radius: 0 12px 12px 0;
  background: var(--mist);
}

.notice strong {
  color: var(--forest);
}

.contact-card {
  margin-top: 44px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.contact-card h2 {
  margin-top: 0;
}

.contact-card a {
  color: var(--forest);
  font-weight: 800;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 20px 4px;
  color: var(--forest);
  font-weight: 750;
  cursor: pointer;
}

.faq details p {
  margin: 0;
  padding: 0 4px 22px;
}

.not-found {
  display: grid;
  min-height: calc(100vh - 189px);
  place-items: center;
  padding: 80px 0;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  color: var(--forest-deep);
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 500;
}

.not-found p {
  max-width: 560px;
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 32px, 680px);
  }

  .site-header nav a {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 64px 0 72px;
  }

  .map-card {
    min-height: 420px;
  }

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

  .feature-grid article {
    min-height: auto;
    padding: 32px 0;
  }

  .feature-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-left: 0;
  }

  .feature-grid h2 {
    margin-top: 16px;
  }

  .public-pages {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 80px 0;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 76px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 24px 0;
  }

  .site-footer div {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 15vw, 4.2rem);
  }

  .map-card {
    min-height: 360px;
    border-width: 8px;
    border-radius: 120px 120px 28px 28px;
  }

  .legal-main {
    padding-top: 52px;
  }
}

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

  .button {
    transition: none;
  }
}
