/* Smaller Architects — site styles
   Keeps the Indexhibit-era look: fixed left index, small type, quiet grid. */

:root {
  --ink: #292929;
  --muted: #707070;
  --line: #e4e4e4;
  --bg: #fff;
  --accent: #fff200;
  --side: 300px;
  --font: 'Inter', 'Pretendard Variable', Pretendard, 'Helvetica Neue', Arial, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --display: 'Space Grotesk', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 12px;
  line-height: 20px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: line-through; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
p { margin: 0 0 15px; }
ul { margin: 0; padding: 0; list-style: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 6px 10px; }

/* ---------- Left index ---------- */
#side {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: var(--side);
  overflow-y: auto;
  padding: 25px 22px 40px;
  background: var(--bg);
  z-index: 10;
  scrollbar-width: none;
}
#side::-webkit-scrollbar { display: none; }
.logo { display: block; width: 200px; margin: 4px 0 30px; }
.logo img { width: 100%; }
.logo:hover { text-decoration: none; opacity: .85; }

.nav-section + .nav-section { margin-top: 13px; }
.nav-title { font-size: 15px; font-weight: 700; line-height: 22px; }
.nav-section li a { display: inline-block; transition: transform .12s ease; }
.nav-section li a:hover { text-decoration: none; transform: translateX(2px); }
.nav-section li a[aria-current="page"] { font-weight: 700; }
.nav-section li a[aria-current="page"]::before { content: '— '; }
.nav-consult { margin-top: 13px; }
.nav-consult a { font-weight: 700; background: var(--accent); padding: 0 2px; }

.side-info { margin-top: 60px; }
.side-info dt { display: inline-block; background: #000; color: #fff; padding: 0 3px; margin-top: 12px; }
.side-info dd { margin: 0; }

.menu-btn { display: none; }

/* ---------- Main ---------- */
#main {
  margin-left: var(--side);
  padding: 25px 40px 80px 22px;
  min-height: 100vh;
}

/* Home grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
  gap: 28px 30px;
  padding-top: 18px;
}
.card { display: block; }
.card:hover { text-decoration: none; }
.card img { width: 100%; aspect-ratio: 720 / 377; object-fit: cover; background: #f2f2f2; transition: opacity .2s ease; }
.card:hover img { opacity: .82; }
.card-meta { font-size: 9.5px; letter-spacing: .03em; color: var(--ink); margin-top: 6px; line-height: 14px; }
.card-title { font-family: var(--font); font-size: 17px; font-weight: 600; line-height: 1.15; text-transform: uppercase; margin: 4px 0 2px; letter-spacing: .01em; }
.card:hover .card-title { text-decoration: line-through; }
.card-desc { font-size: 11px; line-height: 16px; color: var(--ink); }
.home-intro { max-width: 640px; margin: 52px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }
.home-intro strong { color: var(--ink); font-weight: 600; }

/* Page / project headings */
.page-head, .project-head { border-bottom: 1px solid var(--ink); padding: 10px 0 18px; margin-bottom: 26px; }
.page-head h1, .project-head h1 {
  font-family: var(--display);
  font-size: 34px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em;
  margin: 0 0 6px;
}
.en-title { font-family: var(--display); font-size: 17px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; margin: 0; }

/* PRESS page keeps its own markup; match its heading to other pages */
body.page #smaller-media h1.press-heading {
  font-family: var(--display); font-size: 34px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em;
  margin: 0 0 26px; padding: 10px 0 18px; border-bottom: 1px solid var(--ink);
}
body.page #smaller-media { margin-top: 0; }
@media (max-width: 760px) { body.page #smaller-media h1.press-heading { font-size: 26px; } }

/* Readable text column (was full-width before) */
.prose, .project-text { max-width: 720px; }
.prose h2 { font-size: 13px; font-weight: 700; margin: 34px 0 10px; }
.lead { font-size: 14px; line-height: 24px; }
.motto { font-family: var(--display); font-size: 16px; margin-top: 26px; }

.spec { margin: 0 0 22px; display: grid; gap: 2px; }
.spec > div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; }
.info { margin-top: 44px; max-width: 720px; }
.info h2 { font-size: 13px; font-weight: 700; margin: 0 0 12px; }
.info .spec > div { grid-template-columns: 200px 1fr; padding: 6px 0; border-top: 1px solid var(--line); }

.tags { color: var(--muted); }
.lang-en { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: #444; }

@media (min-width: 1500px) {
  .project-text { max-width: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; }
  .project-text .spec, .project-text .tags { grid-column: 1 / -1; }
  .project-text .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .lang-en { margin-top: 0; padding-top: 0; border-top: 0; }
}

/* Images: one column, original sizes up to 980px */
.project-media { margin-top: 40px; display: grid; gap: 22px; }
.project-media figure { margin: 0; max-width: 980px; }
.project-media img { width: auto; max-width: 100%; max-height: 92vh; }
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.pager { display: flex; justify-content: space-between; gap: 20px; max-width: 980px; margin-top: 56px; padding-top: 14px; border-top: 1px solid var(--ink); }
.pager a { display: block; }
.pager small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .05em; }
.pager .next { text-align: right; margin-left: auto; }

/* Architect */
.architect { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 720px); gap: 36px; align-items: start; }
.portrait { margin: 0; }
.links { margin-top: 22px; display: flex; gap: 18px; }

/* Consultation */
.cta { display: inline-block; font-size: 14px; font-weight: 700; background: var(--accent); padding: 8px 12px; }
.cta:hover { text-decoration: none; background: var(--ink); color: #fff; }
.slash li::before { content: '/ '; }
.slash { margin: 0 0 15px; }

/* Footer (mobile only shows contact here) */
.foot { margin-top: 80px; color: var(--muted); font-size: 11px; }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  body { font-size: 13px; line-height: 21px; }
  .menu-btn {
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 20;
    width: 100%; padding: 10px 16px; border: 0; border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.96); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
  }
  .menu-btn { min-height: 65px; }
  .menu-btn img { width: auto; height: 30px; }
  .menu-btn .label::after { content: ' ＋'; }
  body.menu-open .menu-btn .label::after { content: ' ×'; }
  #side { display: none; position: fixed; top: 65px; right: 0; bottom: 0; width: auto; padding: 18px 16px 40px; border-top: 1px solid var(--line); }
  body.menu-open #side { display: block; }
  body.menu-open { overflow: hidden; }
  #side .logo { display: none; }
  .nav-title { font-size: 16px; }
  .nav-section li a { padding: 3px 0; }
  .side-info { margin-top: 36px; }
  #main { margin-left: 0; padding: 18px 16px 60px; }
  .gallery { grid-template-columns: 1fr; gap: 30px; }
  .card-title { font-size: 20px; }
  .page-head h1, .project-head h1 { font-size: 26px; }
  .en-title { font-size: 14px; }
  .spec > div { grid-template-columns: 76px 1fr; }
  .info .spec > div { grid-template-columns: 1fr; gap: 0; }
  .architect { grid-template-columns: 1fr; }
  .portrait { max-width: 240px; }
  .project-media img { max-height: none; width: 100%; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
