/* 사찰마루의 반응형 배치와 색, 글꼴, 접근 가능한 링크 스타일을 정의한다. */
:root {
  color-scheme: light;
  --ivory: #fbf7ee;
  --paper: #f0e8d8;
  --pine: #19382e;
  --deep-pine: #112c24;
  --earth: #71432c;
  --muted: #4f5145;
  --line: #baaa91;
  --light-line: #9aa99c;
  --serif: "Noto Serif KR", "Nanum Myeongjo", "Batang", serif;
  --sans: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--pine);
  background: var(--ivory);
  font: 1rem/1.75 var(--sans);
  overflow-wrap: anywhere;
  word-break: keep-all;
}

main { flex: 1; }

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.35;
  margin: 0;
}

h1 { font-size: clamp(2.35rem, 5.8vw, 4.85rem); }
h2 { font-size: clamp(1.45rem, 3.3vw, 2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
p + p { margin-top: 1em; }

a {
  color: var(--earth);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--ivory);
}

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  z-index: 2;
  padding: 0.5rem 0.75rem;
  color: var(--ivory);
  background: var(--deep-pine);
  transform: translateY(-200%);
}

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

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

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

.navigation { padding-block: 0.65rem; }
.navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.navigation a, .footer-content a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.navigation a { color: inherit; text-decoration: none; }
.navigation a:hover, .navigation [aria-current="page"] { text-decoration: underline; }

.wordmark {
  font: 700 1.6rem/1.3 var(--serif);
  letter-spacing: -0.045em;
}

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--earth);
  font-size: 0.925rem;
  font-weight: 700;
}

.lead {
  max-width: 36rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.075rem;
}

.wide-break { display: none; }

.contact { margin-top: 1.5rem; }
.contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.contact a.button {
  min-height: 48px;
  padding: 0.55rem 1.25rem;
  color: var(--ivory);
  background: var(--pine);
  font-weight: 700;
  text-decoration: none;
  outline-color: var(--deep-pine);
}

.contact a.button:hover {
  background: var(--deep-pine);
  text-decoration: underline;
}

.phone-number { display: inline-block; margin-inline-start: 0.65rem; }

.hero-asides { display: grid; gap: 1rem; }

.trust-profile {
  border: 1px solid var(--line);
  padding: 1.25rem 1.25rem 0.5rem;
  background: var(--ivory);
}

.trust-profile h2 { font-size: 1.4rem; }
.profile-byline { margin-top: 0.65rem; color: var(--muted); }
.trust-profile ul { margin: 0.55rem 0 0; padding-inline-start: 1.25rem; }

.consult-note {
  align-self: end;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  color: var(--ivory);
  background: var(--pine);
}

.consult-note h2 { font-size: 1.6rem; }
.consult-note dl { margin: 1.35rem 0 0; }
.consult-note dl div { border-top: 1px solid var(--light-line); padding-top: 0.7rem; }
.consult-note dl div + div { margin-top: 0.85rem; }
.consult-note dt { font-weight: 700; }
.consult-note dd { margin: 0.2rem 0 0; }

.home-guide {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 2rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.home-guide h2 + p { margin-top: 0.7rem; color: var(--muted); }
.home-guide a, .trust-profile a, .office-details a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.page-layout { padding-block: clamp(2.5rem, 7vw, 6rem); }
.article { max-width: 44rem; }
.article h1 + p, .article .contact + p { margin-top: 1.4rem; }
.article h2 { margin-top: 2.5rem; margin-bottom: 0.7rem; }
.article ol { padding-inline-start: 1.5rem; }
.article li + li { margin-top: 0.55rem; }

.sell-layout {
  display: grid;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.sell-photo { margin: 0; }
.sell-photo img { display: block; width: 100%; height: auto; }
.sell-photo figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.925rem; }
.sell-photo figcaption strong { display: block; }

.about-layout { padding-block: clamp(2rem, 4vw, 3rem); }
.about-layout .article { max-width: none; }
.about-layout h1 { font-size: clamp(2.35rem, 5vw, 3.5rem); }
.about-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 1.5rem;
}

.about-grid section { border-top: 1px solid var(--line); padding-top: 1rem; }
.about-grid h2 { margin-top: 0; }
.about-grid ul { margin: 0 0 1rem; padding-inline-start: 1.5rem; }
.office-details { margin: 0; }
.office-details dt { font-weight: 700; }
.office-details dd { margin: 0; }
.office-details div + div { margin-top: 0.65rem; }

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.15rem;
}

@media (min-width: 46rem) {
  .wrap { width: min(72rem, calc(100% - 4rem)); }
  .hero-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .sell-layout { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
}

@media (min-width: 47.5rem) {
  .about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .office-details div {
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);
    align-items: baseline;
    gap: 0.5rem;
  }
}

@media (min-width: 64rem) {
  .wide-break { display: initial; }
}
