:root {
  --accent: #cea964;
  --text: #2b2b2b;
  --muted: #656565;
  --content-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.page {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 310px;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.46);
  content: "";
}

.hero--about-kr {
  background-image: url("assets/header-about-kr.png");
}

.hero--about-en {
  background-image: url("assets/header-about-en.png");
}

.hero--projects {
  background-image: url("assets/header-projects.png");
}

.hero--contact {
  background-image: url("assets/header-contact.png");
}

.hero--legal {
  min-height: 240px;
  background-image: url("assets/header-about-kr.png");
}

.hero--legal .hero-title {
  min-height: 168px;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 15px 28px;
}

.brand {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: #fff;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
}

.site-nav a + a::before {
  position: absolute;
  left: -15px;
  color: rgba(255, 255, 255, 0.55);
  content: "·";
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  content: "";
}

.hero-title {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 238px;
  align-items: center;
  justify-content: center;
  padding: 25px;
  flex-direction: column;
  text-align: center;
}

.hero-title h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 58px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.hero-title p {
  margin: 28px 0 0;
  font-size: 15px;
  font-weight: 600;
}

.hero-title a {
  color: inherit;
  text-decoration: none;
}

.hero-title a:hover,
.hero-title a:focus-visible {
  text-decoration: underline;
}

.title-rule {
  width: 100px;
  height: 5px;
  margin-top: 25px;
  background: var(--accent);
}

main {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 34px 34px 70px;
}

.section-title,
.eyebrow {
  margin: 0 0 14px;
  color: #7e6d4e;
  font-size: 15px;
  font-weight: 700;
}

.lead {
  margin: 0 0 16px;
  font-weight: 700;
}

.copy p {
  margin: 0 0 17px;
}

.copy-block {
  margin-top: 20px;
}

.copy-block h2 {
  margin: 0 0 7px;
  color: #292929;
  font-size: 14px;
}

.history {
  margin-top: 22px;
}

.history > h2 {
  margin: 0 0 12px;
  font-size: 14px;
}

.history-row {
  display: grid;
  margin: 0 0 14px;
  grid-template-columns: 115px 1fr;
  gap: 8px;
}

.history-year {
  margin: 0;
  font-weight: 700;
}

.history ul,
.contact-list {
  margin: 0;
  padding-left: 19px;
}

.history li {
  margin-bottom: 3px;
  padding-left: 8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.project-card {
  margin: 0;
  text-align: center;
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.project-card figcaption {
  padding-top: 10px;
  color: #555;
  font-size: 17px;
}

.contact-section + .contact-section {
  margin-top: 18px;
}

.contact-section h2 {
  margin: 0 0 7px;
  font-size: 16px;
}

.contact-list {
  list-style-type: square;
}

.contact-list li {
  margin: 4px 0;
  padding-left: 72px;
}

.contact-list strong {
  display: inline-block;
  min-width: 54px;
}

.legal-document {
  max-width: 900px;
}

.legal-document > h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.legal-meta {
  margin: 0 0 30px;
  color: var(--muted);
}

.legal-text {
  white-space: pre-line;
}

.legal-text h2 {
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid #dedede;
  font-size: 19px;
}

.legal-text h3 {
  margin: 26px 0 8px;
  font-size: 16px;
}

.legal-text p {
  margin: 0 0 12px;
}

.site-footer {
  display: flex;
  width: min(100%, var(--content-width));
  margin: auto auto 0;
  align-items: center;
  justify-content: space-between;
  padding: 45px 34px 27px;
  color: #505050;
  font-size: 14px;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.policy-links a:hover,
.policy-links a:focus-visible {
  color: #7e6d4e;
}

.policy-links span {
  color: #777;
}

@media (max-width: 820px) {
  .site-header {
    padding: 11px 18px;
  }

  .nav-toggle {
    position: relative;
    z-index: 2;
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    width: min(280px, 82vw);
    padding: 67px 24px 25px;
    align-items: stretch;
    background: rgba(25, 25, 25, 0.96);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    flex-direction: column;
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 11px 0;
    font-size: 16px;
  }

  .site-nav a + a::before {
    content: none;
  }

  .hero,
  .hero-title {
    min-height: 260px;
  }

  .hero-title {
    margin-top: -64px;
    padding-top: 80px;
  }

  main {
    padding: 30px 22px 55px;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
  }

  .contact-list li {
    padding-left: 18px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .hero,
  .hero-title {
    min-height: 230px;
  }

  .hero-title h1 {
    font-size: 40px;
  }

  .hero-title p {
    margin-top: 19px;
  }

  .history-row {
    grid-template-columns: 1fr;
  }

  .history ul {
    padding-left: 20px;
  }

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

  .site-footer {
    padding: 38px 22px 24px;
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .hero--legal,
  .hero--legal .hero-title {
    min-height: 210px;
  }
}
