/* ===========================================================
   YEDAEUM Architects — minimal architecture office stylesheet
   Inspired by the spare, centered layout of poly.m.ur
   =========================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --muted: #8a8a8a;
  --rule: #e5e5e5;
  --accent: #333;
  --serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, "Times New Roman", serif;
  --sans: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #000; }

/* ----------  Header  ---------- */
#header-wrap {
  position: relative;
  padding: 0 0 28px;
  text-align: center;
  background: #fff;
  z-index: 10;
}

/* Title banner — photograph with overlay, Korean title centered on top */
.main-title {
  position: relative;
  min-height: 195px;
  padding: 52px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  letter-spacing: 0.14em;
  color: #fff;
  background-image: url('img/banner.jpg');
  background-size: cover;
  background-position: center 45%;
  overflow: hidden;
}
.main-title::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 24, 32, 0.32) 0%,
    rgba(20, 24, 32, 0.50) 55%,
    rgba(20, 24, 32, 0.62) 100%
  );
  z-index: 0;
}
.main-title a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.title-ko {
  font-size: 30px;
  letter-spacing: 0.14em;
  line-height: 1.2;
}
.title-en {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.42em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  padding-left: 0.42em; /* optical centering for extra letter-spacing */
}
.site-notice {
  margin-top: 16px;
  color: #c61e1e;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* Top nav directly under the banner — Korean + English paired */
.top-nav {
  margin-top: 26px;
  padding: 0 48px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 78px;
}
.top-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  color: var(--ink);
  transition: opacity .2s ease;
}
.top-nav a:hover { opacity: .55; }
.top-nav a:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -39px;                /* half of the 78px gap */
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: #c9c9c9;
}
.top-nav .ko {
  font-family: var(--sans);
  font-size: 17px;
  letter-spacing: 0.18em;
}
.top-nav .en {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ----------  Main / Slideshow  ---------- */
#main-content {
  padding: 20px 48px 80px;
}

.slideshow {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  aspect-ratio: 12 / 7;
  overflow: hidden;
  background: #111;
}
.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}
.slide.active { opacity: 1; }
.slide figcaption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  color: #fff;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}

/* ----------  Footer  ---------- */
#footer-wrap {
  border-top: 1px solid var(--rule);
  padding: 26px 48px 34px;
  text-align: center;
  background: #fff;
}
.copyright {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ----------  Sub-pages  ---------- */
.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.page h2 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.22em;
  text-align: center;
  margin-bottom: 40px;
}
.page h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--ink);
  margin: 14px auto 0;
}
.page p { margin-bottom: 1.2em; }
.page p.lead {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
  color: #333;
  margin-bottom: 2em;
}

/* Info rows (about / contact) */
.info-list {
  list-style: none;
  border-top: 1px solid var(--rule);
  margin-top: 30px;
}
.info-list li {
  display: flex;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.info-list li .label {
  width: 140px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}
.info-list li .value { flex: 1; }

/* ----------  History timeline  ---------- */
.timeline {
  list-style: none;
  border-top: 1px solid var(--rule);
  margin-top: 30px;
  padding: 0;
  counter-reset: timeline;
}
.timeline li {
  display: flex;
  gap: 40px;
  padding: 28px 4px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.timeline .year {
  flex: 0 0 110px;
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.12em;
  color: var(--ink);
  padding-top: 2px;
}
.timeline .event { flex: 1; }
.timeline .event h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--ink);
}
.timeline .event h3 em {
  display: inline-block;
  margin-left: 8px;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline .event p {
  margin: 0;
  font-size: 13px;
  color: #4a4a4a;
  line-height: 1.8;
}

/* ----------  Project grid  ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 48px 80px;
}
.project {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
  cursor: pointer;
}
.project .thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transition: filter .5s ease, transform 1.2s ease;
}
.project:hover .thumb {
  filter: grayscale(0%);
  transform: scale(1.02);
}
.project .meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  color: #fff;
  opacity: 0;
  transition: opacity .4s ease;
}
.project:hover .meta { opacity: 1; }
.project .meta .title {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.12em;
}
.project .meta .year {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: #ddd;
  margin-top: 4px;
}

/* ----------  Responsive  ---------- */
@media (max-width: 720px) {
  #header-wrap { padding: 0 0 20px; }
  .main-title { min-height: 135px; padding: 38px 20px; }
  .main-title a { gap: 10px; }
  .title-ko { font-size: 20px; letter-spacing: 0.08em; }
  .title-en { font-size: 9px; letter-spacing: 0.32em; }
  .site-notice { margin-top: 12px; font-size: 12px; padding: 0 16px; }
  .top-nav { gap: 32px; margin-top: 30px; padding: 0 16px; }
  .top-nav a { gap: 8px; }
  .top-nav a:not(:last-child)::after { right: -16px; height: 11px; }
  .top-nav .ko { font-size: 15px; letter-spacing: 0.14em; }
  .top-nav .en { font-size: 10px; letter-spacing: 0.26em; }
  #main-content { padding: 10px 16px 60px; }
  .slideshow { aspect-ratio: 4 / 3; }
  .project-grid { grid-template-columns: 1fr; padding: 10px 16px 60px; gap: 16px; }
  .info-list li { flex-direction: column; gap: 4px; }
  .info-list li .label { width: auto; }
  .timeline li { flex-direction: column; gap: 10px; padding: 22px 2px; }
  .timeline .year { flex: none; font-size: 18px; }
  .timeline .event h3 em { display: block; margin-left: 0; margin-top: 4px; }
}
