:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --card: #fdfbf5;
  --ink: #26392f;
  --muted: #505c51;
  --green: #2b4a3d;
  --green-deep: #203a30;
  --sage: #e9ede3;
  --line: #d9d9cb;
  --gutter: clamp(1.25rem, 5.25vw, 5rem);
  --serif: Georgia, "Noto Serif KR", "AppleMyungjo", "Batang", serif;
  font-family: system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1, h2, h3, p, dl, dd {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:focus-visible {
  outline: 2px solid #775225;
  outline-offset: 5px;
}

main:focus:not(:focus-visible),
section:focus:not(:focus-visible) {
  outline: none;
}

main, section {
  scroll-margin-top: 1.25rem;
}

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

.skip-link {
  position: fixed;
  z-index: 1;
  inset: 0.75rem auto auto 0.75rem;
  padding: 0.65em 1em;
  background: var(--card);
  border: 1px solid var(--green);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

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

.header-content {
  min-height: 5.375rem;
}

.brand {
  display: inline-block;
  flex: none;
}

.brand img {
  display: block;
  width: clamp(10.5rem, 17vw, 12.5rem);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  column-gap: clamp(1.15rem, 3.4vw, 3.3rem);
}

.site-nav a,
.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
}

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

.hero {
  display: grid;
  grid-template-columns: 0.91fr 1.19fr;
  align-items: center;
  gap: clamp(1.5rem, 4.25vw, 4.5rem);
  padding-block: clamp(2rem, 5vw, 4.5rem);
}

.hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(2.65rem, 5vw, 4.55rem);
  font-weight: 700;
  letter-spacing: -0.1em;
  line-height: 1.22;
}

.hero-content h1 span {
  display: block;
}

.hero-content p {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.45rem;
  min-height: 3.125rem;
  margin-top: 1.875rem;
  padding: 0.7rem 1.1rem;
  border-radius: 0.25rem;
  background: var(--green);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.primary-link:hover {
  background: var(--green-deep);
}

.hero-media {
  overflow: hidden;
  aspect-ratio: 1.26;
  border-radius: 0.45rem;
  background: #c4b194;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 53%;
}

.about,
.visit {
  display: grid;
  grid-template-columns: minmax(10.5rem, 0.58fr) 1fr;
  align-items: baseline;
  gap: 1rem 2rem;
  padding-block: clamp(1.75rem, 4vw, 3rem) clamp(2.6rem, 6vw, 5rem);
}

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

.visit {
  padding-top: clamp(2.6rem, 6vw, 5rem);
}

.about h2,
.visit h2,
.guide h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  letter-spacing: -0.085em;
  line-height: 1.25;
}

.about p,
.visit p {
  max-width: 39ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.85;
}

.church-details {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.3rem;
}

.church-details > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
}

.church-details dt {
  min-width: 5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
}

.church-details dd {
  font-weight: 600;
}

.affiliation dd {
  width: min(100%, 17.25rem);
}

.affiliation img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

.guide-band {
  background: var(--sage);
}

.guide {
  padding-block: clamp(2.75rem, 6vw, 5rem);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.guide-card {
  padding: clamp(1.1rem, 3vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--card);
}

.guide-card h3 {
  color: var(--green);
  font-size: 1.2rem;
  line-height: 1.4;
}

.meeting-card {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
}

.meeting-card p {
  color: var(--muted);
}

.schedule {
  margin-top: 0.7rem;
}

.schedule > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.15rem 0.9rem;
  padding-block: 0.78rem;
  border-bottom: 1px solid var(--line);
}

.schedule > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.schedule dt {
  font-weight: 650;
}

.schedule dd {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.site-footer {
  background: var(--green-deep);
  color: #f7f6ed;
}

.footer-content {
  min-height: 5rem;
  font-size: 0.9rem;
}

.footer-domain {
  margin-inline-start: 0.65rem;
  color: #d6dfd4;
}

.site-footer a:focus-visible {
  outline-color: #f7f6ed;
}

@media (max-width: 54rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero-content h1 {
    font-size: clamp(2.15rem, 5vw, 3.25rem);
  }

  .hero-media {
    aspect-ratio: 1;
  }
}

@media (max-width: 39rem) {
  .header-content {
    display: block;
    padding-top: 1rem;
  }

  .site-nav {
    margin-top: 0.35rem;
  }

  .hero,
  .about,
  .visit,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 1.65rem;
  }

  .hero-content h1 {
    font-size: clamp(2.25rem, 9.5vw, 3.5rem);
  }

  .hero-content p {
    margin-top: 1rem;
  }

  .primary-link {
    margin-top: 1.25rem;
  }

  .hero-media {
    aspect-ratio: 1.37;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .hero-content {
    animation: enter 500ms ease-out both;
  }

  @keyframes enter {
    from {
      opacity: 0;
      transform: translateY(0.45rem);
    }
  }
}
