/* styles.css */
:root {
  --paper: #f3eee4;
  --plaster: #e7dfd0;
  --ink: #1b1612;
  --ink-soft: #3a332c;
  --muted: #5e564c;
  --line: #d5ccbe;
  --bronze: #9a4e24;
  --bronze-deep: #6d3818;
  --moss: #243028;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; }
h1, h2 { text-wrap: balance; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: #e7c7ae; color: var(--ink); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.page { padding-bottom: 12px; }
.anno {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.lede { margin: 16px 0 0; max-width: 42ch; color: var(--ink-soft); font-size: 1.06rem; }
.band { padding: 28px 0 10px; }
.band-tight { padding: 8px 0 56px; }
.block { margin-top: 56px; }
.block h2, .section-head h2, .split h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 40;
}
.skip:focus { top: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 238, 228, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
.wordmark { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wordmark span { font-family: var(--serif); font-size: 1.65rem; letter-spacing: -0.03em; }
.wordmark small {
  margin-top: 5px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 6px 0;
}
.site-nav a.is-active { color: var(--ink); box-shadow: inset 0 -1px 0 var(--bronze); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 12px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}
.nav-toggle i { display: block; height: 1px; background: var(--ink); transition: transform 160ms ease; }
.nav-toggle.is-open i:first-child { transform: translateY(4px) rotate(40deg); }
.nav-toggle.is-open i:last-child { transform: translateY(-4px) rotate(-40deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.btn:hover { background: var(--bronze-deep); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn:disabled, fieldset:disabled .btn { opacity: 0.6; cursor: wait; }

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px 48px;
  align-items: end;
  padding: 36px 0 8px;
}
.hero h1 {
  margin: 12px 0 0;
  font-size: clamp(3.3rem, 7.2vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.045em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sheet { margin: 0; border: 1px solid var(--ink); background: #f7f3ea; color: var(--ink); }
.sheet svg { display: block; width: 100%; height: auto; }
.sheet figcaption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-meta {
  grid-column: 1 / -1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
}
.hero-meta span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta li { font-family: var(--serif); font-size: 1.45rem; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}
.section-head a { color: var(--bronze-deep); }
.work-list { border-bottom: 1px solid var(--line); }
.work {
  display: grid;
  grid-template-columns: 52px minmax(0, 1.5fr) minmax(0, 1fr) auto 132px;
  gap: 12px 18px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.work .name {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
}
.work .meta, .work .idx { color: var(--muted); }
.work .year { font-family: var(--serif); font-size: 1.2rem; }
.work:hover .name { color: var(--bronze-deep); }
.swatch { display: block; height: 76px; }
.s-yali-avlusu { background: linear-gradient(165deg, #e6d3b4 0 46%, #243028 46% 100%); }
.s-kutuphane-sarnici { background: linear-gradient(180deg, #8d4a38 0 30%, #d9cbb8 30% 100%); }
.s-atolye-42 { background: linear-gradient(135deg, #c5c8cc 0 38%, #1c1712 38% 72%, #c47a45 72% 100%); }
.s-tas-ev { background: linear-gradient(160deg, #e4d8c6 0 58%, #9a7b58 58% 100%); }
.s-sahne-holu { background: linear-gradient(180deg, #2a2420 0 64%, #c4553a 64% 100%); }
.s-zeytinlik-ev { background: linear-gradient(90deg, #efe6d4 0 28%, #5e6b45 28% 100%); }

.statement { background: var(--moss); color: #f6f0e6; padding: 72px 0; margin-top: 36px; }
.statement .anno { color: #d7c4a4; }
.statement h2 {
  margin: 12px 0 0;
  max-width: 16ch;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 36px; }
.principles h3 { margin: 0 0 6px; font-size: 1.55rem; }
.principles p { margin: 0; color: #d9d0c3; }

.split { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 32px; align-items: start; }
.index-list { list-style: none; padding: 0; margin: 0; }
.index-list a {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.index-list li:last-child a { border-bottom: 1px solid var(--line); }
.index-list strong { font-family: var(--serif); font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 500; }
.index-list a:hover strong { color: var(--bronze-deep); }

.visit { padding: 10px 0 72px; }
.visit-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.visit h2 {
  margin: 8px 0 0;
  max-width: 16ch;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: end;
  padding: 34px 0 18px;
}
.page-intro h1 {
  margin: 8px 0 0;
  font-size: clamp(3.1rem, 7vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 18px; }
.filters button {
  background: none;
  border: 0;
  padding: 0 0 4px;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.filters button.on { color: var(--ink); border-color: var(--bronze); }
.filters button span { margin-left: 6px; }
.empty { color: var(--muted); }

.crumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; color: var(--muted); }
.massing {
  --mass: #e4d3b6;
  --mass-2: #243028;
  margin: 8px 0 22px;
  background: var(--plaster);
  color: var(--ink);
}
.massing svg { display: block; width: 100%; height: auto; }
.m-yali-avlusu { --mass: #e4d2b4; --mass-2: #6e8a78; background: #efe6d6; }
.m-kutuphane-sarnici { --mass: #a85a45; --mass-2: #e6d8c6; background: #eadfce; }
.m-atolye-42 { --mass: #c5c8cc; --mass-2: #1c1712; background: #e7e2d8; }
.m-tas-ev { --mass: #c4a882; --mass-2: #efe6d4; background: #e5d8c6; }
.m-sahne-holu { --mass: #2a2420; --mass-2: #c4553a; background: #d9d0c4; }
.m-zeytinlik-ev { --mass: #efe6d4; --mass-2: #5e6b45; background: #e7efe0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.facts div { padding: 14px 16px 16px 0; border-top: 1px solid var(--line); }
.facts dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin: 6px 0 0; font-family: var(--serif); font-size: 1.4rem; }
.prose { max-width: 68ch; font-size: 1.12rem; padding: 8px 0 10px; }
.prose p { margin: 18px 0; }
.subhead { margin: 12px 0; font-size: 2rem; letter-spacing: -0.03em; }
.materials { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; padding: 0; margin: 0; }
.materials li { border-top: 1px solid var(--bronze); padding-top: 8px; min-width: 9rem; }
.next-bar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  margin: 28px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.next-bar strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.service-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.service-row h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -0.03em; }
.service-row p { margin: 0 0 8px; max-width: 62ch; }
.gives { color: var(--muted); }
.process, .timeline { list-style: none; padding: 0; margin: 12px 0 0; }
.process li, .timeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.process h3, .notes h3, .person h3 { margin: 0 0 4px; font-size: 1.7rem; letter-spacing: -0.02em; }
.process p, .timeline p { margin: 0; }

.roster, .notes { display: grid; grid-template-columns: 1fr 1fr; }
.person, .notes article { padding: 20px 28px 20px 0; border-top: 1px solid var(--line); }
.role { margin: 0 0 6px; color: var(--bronze-deep); }
.notes p, .person p { margin: 0; color: var(--ink-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  padding-bottom: 64px;
}
.info-list { list-style: none; padding: 0; margin: 18px 0 0; }
.info-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 1px solid var(--line); }
.info-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
input, select, textarea {
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
textarea { resize: vertical; min-height: 120px; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 8px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.form-actions { margin-top: 8px; }
.form-note { min-height: 1.4em; margin: 14px 0 0; }
.form-note.ok { color: var(--moss); }
.form-note.error { color: #8d2f1c; }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-brand strong { font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.footer-brand p { max-width: 28ch; }
.legal { color: var(--muted); font-size: 0.9rem; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-col > span {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--bronze-deep); }

@media (max-width: 900px) {
  .hero, .page-intro, .split, .contact-grid, .footer-grid, .principles { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr auto; }
  .work .idx { grid-column: 1; grid-row: 1; }
  .work .year { grid-column: 2; grid-row: 1; justify-self: end; }
  .work .name { grid-column: 1 / -1; grid-row: 2; }
  .work .meta { grid-column: 1 / -1; grid-row: 3; }
  .work .swatch { grid-column: 1 / -1; grid-row: 4; height: 92px; }
  .facts, .roster, .notes { grid-template-columns: 1fr 1fr; }
  .visit-inner { flex-direction: column; align-items: flex-start; }
  .hero-meta { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 4px 22px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 0; border-top: 1px solid var(--line); }
  .service-row, .process li, .timeline li { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { width: min(1180px, calc(100% - 28px)); }
  .facts, .roster, .notes, .principles { grid-template-columns: 1fr; }
}

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