:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #4b5563;
  --rule: #dde2ea;
  --paper: #f5f7fa;
  --accent: #214bc2;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  font-family: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.65;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: #fff;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: keep-all;
}

h1, h2, h3, p, figure {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.wrap {
  width: min(calc(100% - var(--gutter) * 2), 74rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1;
  inset: 0.5rem auto auto 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 0.25rem;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--rule);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-inner {
  min-height: 4.5rem;
}

.brand, .footer-brand, .header-nav a, .footer-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
}

.brand {
  flex-shrink: 0;
  gap: 0.625rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.brand img {
  border-radius: 0.5rem;
}

.header-nav, .footer-nav {
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(0.75rem, 3vw, 2rem);
}

.header-nav a, .footer-nav a {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.header-nav a {
  justify-content: center;
  min-width: 2.75rem;
}

.header-nav a[aria-current="page"], .footer-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
}

.header-nav a:hover, .footer-nav a:hover, .footer-brand:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5.5vw, 5rem);
  padding-block: clamp(3.75rem, 7vw, 6.5rem) clamp(3.5rem, 7vw, 6rem);
}

.hero h1, .page-heading h1 {
  font-size: clamp(3.35rem, 6.1vw, 5.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.hero-copy > p {
  max-width: 24rem;
  margin-block: 1.5rem 1.875rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 0.625rem 1.125rem;
  border-radius: 0.625rem;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--accent);
}

.hero-figure {
  min-width: 0;
}

.stamp-board {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.22;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 0.875rem;
  background: radial-gradient(ellipse at 45% 49%, #fff 13%, #f0f3f7 100%);
}

.stamp-board::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #aeb9c8 0.8px, transparent 1px) 50% 50% / 16px 16px;
  content: "";
  opacity: 0.35;
}

.hero-figure figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: right;
}

.postmark {
  position: absolute;
  inset: 10% 12% auto auto;
  width: 15%;
  aspect-ratio: 1;
  border: 1px solid #a3aebd;
  border-radius: 50%;
  opacity: 0.7;
}

.postmark::before {
  position: absolute;
  inset: 8%;
  border: 1px solid #a3aebd;
  border-radius: inherit;
  content: "";
}

.postmark::after {
  position: absolute;
  inset: 34% auto auto calc(100% - 3px);
  width: 66%;
  height: 29%;
  border-block: 1px solid #a3aebd;
  background: linear-gradient(#a3aebd, #a3aebd) center / 100% 1px no-repeat;
  content: "";
  transform: skewY(-9deg);
}

.photo-stamp {
  position: absolute;
  aspect-ratio: 3 / 4;
  filter: drop-shadow(0 0.25rem 0.4rem #1822382b);
  transform: rotate(var(--tilt));
}

.photo-stamp img {
  width: 100%;
  height: 100%;
  padding: clamp(0.35rem, 1vw, 0.75rem);
  background: #fff;
  object-fit: cover;
  mask:
    radial-gradient(circle at 5px 0, #0000 2.5px, #000 3px) top center / 10px 100% repeat-x,
    radial-gradient(circle at 5px 100%, #0000 2.5px, #000 3px) bottom center / 10px 100% repeat-x,
    radial-gradient(circle at 0 5px, #0000 2.5px, #000 3px) left center / 100% 10px repeat-y,
    radial-gradient(circle at 100% 5px, #0000 2.5px, #000 3px) right center / 100% 10px repeat-y;
  mask-composite: intersect;
}

.stamp-forest {
  --tilt: -14deg;
  inset: 24% auto auto 12%;
  width: 29%;
}

.stamp-forest img {
  object-position: 48% center;
}

.stamp-beach {
  --tilt: 13deg;
  inset: 39% 11% auto auto;
  width: 27%;
}

.stamp-beach img {
  object-position: 66% center;
}

.stamp-lake {
  --tilt: -3deg;
  inset: 16% auto auto 31%;
  width: 36%;
}

.stamp-lake img {
  object-position: 55% center;
}

.features {
  padding-block: clamp(2.5rem, 6vw, 4.25rem) clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 1rem;
}

.section-heading h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.section-heading > p {
  margin-top: 0.875rem;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 3.5rem);
  margin-top: 2.25rem;
}

.feature-grid > section {
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.feature-grid h3, .availability h2, .contact-card h2, .document h2 {
  font-size: 1.3rem;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.35;
}

.feature-grid p, .availability p, .contact-card p {
  margin-top: 0.55rem;
  color: var(--muted);
}

.availability, .contact-card {
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid var(--rule);
  border-radius: 0.75rem;
  background: var(--paper);
}

.availability {
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rule);
}

.footer-inner {
  min-height: 5rem;
  padding-block: 0.75rem;
}

.footer-brand {
  font-weight: 750;
}

.inner-page {
  padding-block: clamp(2.75rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
}

.page-heading {
  margin-bottom: clamp(2rem, 5.5vw, 4rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--rule);
}

.page-heading h1 {
  font-size: clamp(2.125rem, 6vw, 4.5rem);
}

.page-heading p {
  max-width: 40rem;
  margin-top: 1.125rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 2.4vw, 1.2rem);
}

.page-heading .document-status {
  margin: 0 0 0.875rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
}

.contact-card {
  max-width: 40rem;
}

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.text-link, .document a {
  color: var(--accent);
  font-weight: 650;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 5vw, 4.5rem);
}

.document-nav ul, .document ul {
  margin: 0;
}

.document-nav ul {
  padding: 0 0 0 1rem;
  border-left: 1px solid var(--rule);
  list-style: none;
}

.document-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.document-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.document {
  max-width: 43rem;
}

.document section {
  padding-bottom: 1.65rem;
  scroll-margin-top: 1rem;
}

.document section + section {
  padding-top: 1.65rem;
  border-top: 1px solid var(--rule);
}

.document section:last-child {
  padding-bottom: 0;
}

.document h2 ~ *, .document li + li {
  margin-top: 0.65rem;
}

.document p, .document ul {
  color: var(--muted);
}

.document ul {
  padding-inline-start: 1.35rem;
}

@media (max-width: 52rem) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-figure {
    width: min(100%, 34rem);
  }

  .hero h1 {
    font-size: clamp(2.9rem, 9.5vw, 5rem);
    text-wrap: initial;
  }
}

@media (max-width: 40rem) {
  .header-inner {
    min-height: 3.875rem;
  }

  .brand {
    gap: 0.45rem;
    font-size: 1.2rem;
  }

  .brand img {
    width: 2rem;
    height: 2rem;
  }

  .hero {
    gap: 2rem;
    padding-block: 3rem 2.75rem;
  }

  .hero-copy > p {
    margin-block: 1.125rem 1.4rem;
  }

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

  .footer-inner {
    flex-wrap: wrap;
    column-gap: 1.5rem;
    row-gap: 0;
  }

  .document-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.5rem;
  }
}
