:root{
  --paper: #FFFFFF;
  --ink: #1C1A17;
  --leather: #7A4F35;
  --sage: #5C6650;
  --line: rgba(28,26,23,0.15);
  --max: 1600px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; height: 100%; }

body{
  margin:0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; }
main{ flex: 1 0 auto; }
img{ max-width: 100%; display:block; }

::selection{ background: var(--leather); color: var(--paper); }

.wrap{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* NAV */
header.site{
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}
nav.wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 76px;
}
.brand{
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
}
.navlinks{
  display:flex;
  gap: 32px;
  font-size: 14px;
}
.navlinks a{
  text-decoration:none;
  opacity: 0.45;
}
.navlinks a:hover, .navlinks a.active{
  color: var(--ink);
  opacity: 1;
}

/* generic page header */
.page-head{
  padding-top: 64px;
  padding-bottom: 40px;
}
.page-head h1{
  font-family:'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  margin: 0;
}
.page-head .kicker{
  font-size: 14px;
  opacity: 0.6;
  margin-bottom: 14px;
}

/* media placeholder */
.media-block{
  width:100%;
  background: linear-gradient(135deg, #d8d0c2, #b9ab93);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 13px;
  color: var(--ink);
  overflow:hidden;
  transition: transform 0.5s ease;
}
.media-block img{ width:100%; height:100%; object-fit:cover; }
.media-block:hover{ transform: scale(1.01); }
.ratio-4-3{ aspect-ratio: 4/3; }
.ratio-4-5{ aspect-ratio: 4/5; }
.ratio-16-9{ aspect-ratio: 16/9; }
.ratio-1-1{ aspect-ratio: 1/1; }

.swatch-leather{ background: linear-gradient(135deg, #b98a63, #7a4f35); }
.swatch-sage{ background: linear-gradient(135deg, #9aa88c, #5c6650); }
.swatch-paper{ background: linear-gradient(135deg, #e4ddcd, #c9beac); }
.swatch-ink{ background: linear-gradient(135deg, #4a453d, #1c1a17); color: var(--paper); }

/* footer */
footer.site{
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 13px;
  opacity: 0.6;
}
.footer-row{
  display:flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-links{
  display:flex;
  gap: 24px;
}
.footer-links a{
  text-decoration: none;
  color: inherit;
}
.footer-links a:hover{ color: var(--leather); }

/* project detail split layout */
.project-split{
  display:flex;
  gap: 96px;
  align-items: flex-start;
  padding-top: 48px;
  padding-bottom: 40px;
}
.split-left{
  width: 34%;
  flex-shrink: 0;
  position: sticky;
  top: 96px;
}
.split-hero{
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--paper);
}
.split-hero img{ width:100%; height:100%; object-fit:cover; display:block; }
.info-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 28px;
}
.info-table tr{ border-bottom: none; }
.info-table td{ padding: 10px 4px 10px 0; vertical-align: top; }
.info-table td:first-child{ color: var(--ink); opacity: 0.5; width: 34%; }
.split-desc{ font-size: 15px; line-height: 1.45; margin: 0; }
.split-right{
  width: 38%;
  flex-shrink: 0;
  min-width: 0;
  margin-left: auto;
  display:flex;
  flex-direction: column;
  gap: 20px;
}
.split-right .g-img{ width:100%; overflow:hidden; }
.split-right .g-img img{ width:100%; height:auto; display:block; }

.back-link{
  display:inline-block;
  margin-top: 32px;
  margin-bottom: 0;
  font-size: 14px;
  text-decoration:none;
  border-bottom: none;
}
.back-link:hover{ color: var(--leather); border-color: var(--leather); }

@media (max-width: 900px){
  .project-split{ flex-direction: column; gap: 32px; }
  .split-left{ position: static; width: 100%; }
  .split-right{ width: 100%; margin-left: 0; }
  .split-hero{ aspect-ratio: 4/3; }
}

@keyframes rise{
  from{ opacity:0; transform: translateY(14px); }
  to{ opacity:1; transform: translateY(0); }
}
