:root {
  --olive: #3f3f00;
  --olive-dark: #303000;
  --olive-light: #777747;
  --text: #30312b;
  --muted: #686a60;
  --line: #e5e5dc;
  --ivory: #f7f7f0;
  --white: #fff;
  --danger: #923c34;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family:
    "함초롬돋움", "HCR Dotum",
    "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #a27628;
  outline-offset: 4px;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.reading-width {
  max-width: 900px;
}

.form-width {
  max-width: 720px;
}

.dev-banner {
  background: #eeefd9;
  color: var(--olive);
  padding: 5px 16px;
  text-align: center;
  font-size: 12px;
}

.site-header {
  background: var(--white);
}

.header-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-image {
  display: block;
  width: 340px;
  height: 84px;
  object-fit: contain;
  object-position: left center;
}

.header-note {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .08em;
}

.main-nav {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.main-nav a {
  padding: 13px 0;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--olive);
  border-bottom-color: var(--olive);
}

.hero {
  position: relative;
  min-height: 550px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 30%, #d8ddbc 0, transparent 38%),
    linear-gradient(120deg, #fafaf5 0%, #edeee1 100%);
}

.hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 430px;
  right: 8%;
  top: 65px;
  border: 1px solid #b9c099;
  border-radius: 180px 180px 12px 12px;
  opacity: .6;
  z-index: -1;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 249, .95) 0%,
    rgba(255, 255, 249, .85) 46%,
    rgba(255, 255, 249, .15) 100%
  );
  z-index: -1;
}

.hero-photo::after {
  display: none;
}

.hero-inner {
  padding-top: 72px;
  padding-bottom: 72px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  color: var(--olive-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
  margin: 0 0 16px;
}

h1, h2, h3 {
  margin-top: 0;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -.035em;
}

h1 {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(24px, 3vw, 34px);
}

h3 {
  font-size: 21px;
}

.hero h1 {
  color: var(--olive-dark);
}

.hero-description {
  color: #545748;
  font-size: 18px;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 11px 25px;
  border: 1px solid var(--olive);
  border-radius: 3px;
  background: var(--olive);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--olive-dark);
}

.button.outline {
  color: var(--olive);
  background: var(--white);
}

.button.outline:hover {
  background: var(--ivory);
}

.button.full {
  width: 100%;
}

.quick-bar {
  border-bottom: 1px solid var(--line);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-links a {
  padding: 22px 10px;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid var(--line);
  color: var(--olive);
}

.quick-links a:first-child {
  border-left: 1px solid var(--line);
}

.quick-links a:hover {
  background: var(--ivory);
}

.section {
  padding-top: 84px;
  padding-bottom: 84px;
}

.intro-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 70px;
}

.intro-copy p:first-child {
  margin-top: 0;
}

.intro-copy {
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--olive);
}

.soft-section {
  background: var(--ivory);
}

.section-heading {
  text-align: center;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 12px;
}

.section-heading > p:last-child {
  color: var(--muted);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.program-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
}

.card-number {
  display: block;
  color: var(--olive-light);
  font-size: 13px;
  margin-bottom: 18px;
}

.program-card h3 {
  margin-bottom: 12px;
}

.program-card p {
  color: var(--muted);
  margin-top: 0;
}

.program-card a {
  margin-top: auto;
  padding-top: 12px;
  color: var(--olive);
  font-size: 14px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  gap: 24px;
}

.steps li {
  border-top: 1px solid var(--olive-light);
  padding-top: 20px;
}

.steps span {
  color: var(--olive-light);
  font-size: 13px;
}

.steps h3 {
  margin: 12px 0;
}

.steps p {
  color: var(--muted);
  font-size: 14px;
}

.page-heading {
  text-align: center;
  background: var(--ivory);
  padding: 62px 0;
  border-bottom: 1px solid var(--line);
}

.page-heading h1 {
  font-size: 36px;
  margin-bottom: 16px;
}

.page-heading p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.reading-section {
  padding-bottom: 36px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 25px;
}

.reading-section h2 {
  font-size: 26px;
  margin-bottom: 20px;
}

.reading-section p {
  color: #55584d;
}

.plain-list {
  padding-left: 22px;
}

.plain-list li {
  padding: 7px 0;
}

.profile-image {
  width: 240px;
  height: auto;
  display: block;
  margin: 0 auto 50px;
}

.location-card {
  background: var(--ivory);
  padding: 30px;
  border: 1px solid var(--line);
}

.empty-state {
  padding: 44px 28px;
  text-align: center;
  background: var(--ivory);
  border: 1px solid var(--line);
}

.empty-state h1,
.empty-state h2 {
  font-size: 28px;
}

.empty-state p {
  color: var(--muted);
}

.review-card {
  padding: 30px;
  border: 1px solid var(--line);
  margin-bottom: 22px;
}

.form-card {
  border: 1px solid var(--line);
  padding: 34px;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input:not([type="hidden"]):not([type="checkbox"]),
select {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid #bfc1b3;
  border-radius: 3px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
}

.field small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
}

.notice,
.alert {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid #d5d9bb;
  background: #f5f6eb;
  font-size: 14px;
}

.alert {
  color: var(--danger);
  background: #fff4f0;
  border-color: #e7bfb6;
}

.terms-box {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 20px;
  margin: 30px 0 22px;
}

.terms-box h2 {
  font-size: 19px;
}

.terms-text,
.privacy-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terms-text {
  max-height: 240px;
  overflow-y: auto;
  font-size: 14px;
}

.privacy-text {
  margin-bottom: 48px;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-size: 14px;
}

.check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--olive);
}

.contact-band {
  background: #eeefe3;
  border-top: 1px solid var(--line);
  padding: 42px 0;
}

.contact-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.contact-band h2 {
  font-size: 25px;
  margin-bottom: 10px;
}

.contact-band p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.contact-band .actions {
  margin-top: 0;
  flex-shrink: 0;
}

.site-footer {
  padding: 42px 0;
  background: #fafaf7;
  font-size: 14px;
  color: var(--muted);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.footer-top strong {
  font-size: 20px;
  color: var(--olive);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.centered {
  text-align: center;
}

.centered-actions {
  justify-content: center;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 15px;
  z-index: 100;
  padding: 12px 20px;
  background: white;
}

.skip-link:focus {
  top: 10px;
}

@media (max-width: 900px) {
  .nav-inner {
    gap: 25px;
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-section {
    gap: 35px;
  }

  .contact-band-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 88px;
    justify-content: center;
  }

  .brand-image {
    width: 290px;
    max-width: 100%;
    height: 70px;
  }

  .header-note {
    display: none;
  }

  .nav-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .main-nav a {
    text-align: center;
    font-size: 14px;
    padding: 10px 3px;
  }

  .hero {
    min-height: 440px;
  }

  .hero::after {
    width: 180px;
    right: -45px;
    opacity: .4;
  }

  .hero-inner {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-photo::before {
    background: rgba(255, 255, 249, .9);
  }

  .quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-links a {
    padding: 14px 5px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .intro-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    padding: 26px;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .page-heading {
    padding: 42px 0;
  }

  .page-heading h1 {
    font-size: 29px;
  }

  .form-card {
    padding: 22px;
  }

  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-band h2 {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
