@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@500&display=swap');

:root {
  --ink: #1c211e;
  --muted: #656b66;
  --paper: #f0eee8;
  --stone: #e8e5dd;
  --warm-white: #f7f6f2;
  --logo-background: #fbfaf8;
  --line: rgba(28, 33, 30, 0.18);
  --moss: #36463d;
  --white: #fff;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --heading-serif: "Bodoni Moda", Didot, "Bodoni MT", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--warm-white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
main { display: flex; flex-direction: column; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 8px 3.2vw;
  border-bottom: 1px solid var(--line);
  background: var(--logo-background);
}
.header-logo { display: block; width: 132px; }
.header-logo img { width: 100%; height: auto; }
.site-header nav { justify-self: end; }
.wordmark { display: inline-flex; flex-direction: column; width: fit-content; text-transform: uppercase; letter-spacing: .08em; line-height: 1; }
.wordmark span { font-size: .9rem; font-weight: 650; }
.wordmark small { margin-top: 6px; color: var(--muted); font-size: .55rem; letter-spacing: .18em; }
nav { display: flex; gap: 2.25rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
nav a, .text-button { transition: opacity .2s ease; }
nav a:hover, .text-button:hover { opacity: .55; }
.text-button { justify-self: end; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.text-button span { margin-left: .35rem; }

.intro {
  order: 2;
  min-height: 0;
  padding: 4rem 3.2vw;
  background: var(--stone);
}
.eyebrow { margin: 0 0 2rem; color: var(--muted); font-size: .66rem; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--heading-serif); }
h1 {
  max-width: 1280px;
  margin-bottom: 2.5rem;
  font-size: clamp(3.45rem, 6.2vw, 6.8rem);
  font-weight: 420;
  letter-spacing: -.065em;
  line-height: .9;
}
.intro-note { margin-left: 0; padding-left: 0; }
.intro-note p { width: min(520px, 42%); max-width: 520px; margin: 0 0 0 auto; color: var(--muted); font-size: 1rem; }
#featured-count, .intro-note p {
  padding: 1.15rem 1.25rem;
  border: 12px solid transparent;
  background:
    linear-gradient(var(--warm-white), var(--warm-white)) padding-box,
    linear-gradient(rgba(28, 33, 30, .20), rgba(28, 33, 30, .20)) border-box,
    url("/profile-wallpaper-original.png") center top / 320px auto border-box;
  box-shadow: inset 0 0 0 1px var(--line);
}
#featured-count { width: min(520px, 100%); max-width: 520px; justify-self: end; align-self: center; text-align: center; padding: 1.5rem 1.75rem; line-height: 1.7; text-wrap: pretty; }
.round-link { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--ink); border-radius: 50%; transition: all .25s ease; }
.round-link:hover { background: var(--ink); color: var(--warm-white); transform: translateY(3px); }

.featured, .archive, .journal, .about { padding: 7rem 3.2vw; }
.featured { order: 1; padding-top: 5.5rem; background: var(--paper); }
.archive { order: 3; }
.journal { order: 4; background: var(--paper); }
.about { order: 5; }
.section-heading { display: grid; grid-template-columns: 1fr minmax(360px, 42%); align-items: end; gap: 3rem; margin-bottom: 3.5rem; }
.featured > .section-heading { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.25rem; align-items: center; }
.section-heading h2, .about h2, .curate-header h2 { margin: 0; font-size: clamp(2.3rem, 4vw, 4.25rem); font-weight: 450; letter-spacing: -.05em; line-height: 1; }
.section-heading > p { margin: 0; color: var(--muted); font-size: .9rem; }
.featured-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5rem 1.25rem; }
.featured-card { grid-column: span 7; cursor: pointer; }
.featured-card:nth-child(2) { grid-column: 8 / -1; margin-top: 11rem; }
.featured-card:nth-child(3) { grid-column: 3 / span 8; }
.layout-options { display: flex; align-items: center; gap: .4rem; margin: -1.5rem 0 2.5rem; padding: .75rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.layout-options span { margin-right: auto; color: var(--muted); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.layout-options button { padding: .45rem .75rem; border: 0; border-radius: 100px; background: transparent; color: var(--muted); cursor: pointer; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.layout-options button.active { background: var(--ink); color: var(--warm-white); }
.featured-grid.featured-2.layout-split { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.featured-grid.featured-2.layout-split .featured-card { grid-column: auto; margin-top: 0; }
.featured-grid.featured-2.layout-split .featured-card .image-wrap { aspect-ratio: 4 / 3; }
.featured-grid.featured-2.layout-editorial { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
.featured-grid.featured-2.layout-editorial .featured-card:first-child,
.featured-grid.featured-2.layout-editorial .featured-card:nth-child(2) { grid-column: auto; }
.featured-grid.featured-2.layout-editorial .featured-card:nth-child(2) { margin-top: 4rem; }
.featured-grid.featured-2.layout-editorial .featured-card .image-wrap,
.featured-grid.featured-2.layout-editorial .featured-card:nth-child(2) .image-wrap { aspect-ratio: 4 / 3; }
.featured-grid.featured-2.layout-stacked { display: block; }
.featured-grid.featured-2.layout-stacked .featured-card { width: 100%; margin: 0 0 4.5rem; }
.featured-grid.featured-2.layout-stacked .featured-card .image-wrap { aspect-ratio: 16 / 8; }
.image-wrap { position: relative; overflow: hidden; background: #d8d6d0; }
.featured-card .image-wrap { aspect-ratio: 4 / 3; }
.featured-card:nth-child(2) .image-wrap { aspect-ratio: 4 / 5; }
.image-wrap img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.featured-card .image-wrap img.featured-cover-rokes { object-position: 50% 18%; }
.featured-card:hover img, .project-card:hover img { transform: scale(1.025); }
.image-wrap img.preview-zoom-walnut { transform: scale(1.18); object-position: 50% 58%; }
.project-card:hover img.preview-zoom-walnut { transform: scale(1.21); }
.card-meta { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding-top: 1rem; border-top: 1px solid transparent; }
.card-meta h3 { margin-bottom: .25rem; font-size: 1.03rem; font-weight: 550; letter-spacing: -.015em; }
.card-meta p { margin: 0; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.card-number { color: var(--muted); font-size: .7rem; }

.archive {
  background: var(--warm-white);
}
.archive-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-button { padding: .5rem .8rem; border: 0; border-radius: 100px; color: var(--muted); background: transparent; cursor: pointer; font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; }
.filter-button.active { color: var(--warm-white); background: var(--moss); }
.result-count { margin: 0; color: var(--muted); font-size: .7rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 1.2rem; row-gap: 4rem; padding-top: 2.5rem; }
.project-card { cursor: pointer; }
.project-card .image-wrap,
.project-card:nth-child(6n+2) .image-wrap,
.project-card:nth-child(6n+6) .image-wrap { aspect-ratio: 4 / 3; }
.project-card .card-meta { padding-top: .75rem; }

.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem 1.25rem; }
.journal-card { padding-top: 1rem; border-top: 1px solid var(--line); }
.journal-card img { aspect-ratio: 4 / 3; margin-bottom: 1.5rem; object-fit: cover; }
.journal-card .eyebrow { margin-bottom: .8rem; }
.journal-card h3 { margin-bottom: 1rem; font-size: 1.6rem; font-weight: 500; letter-spacing: -.03em; }
.journal-summary { color: var(--muted); }
.journal-body { margin-top: 1.5rem; line-height: 1.7; }
.content-error { grid-column: 1 / -1; padding: 2rem; color: #8b4b34; background: var(--paper); }

.about {
  background-color: var(--moss);
  background-image:
    linear-gradient(rgba(28, 33, 30, .42), rgba(28, 33, 30, .42)),
    url("/profile-wallpaper-original.png");
  background-position: center top;
  background-size: auto, 640px auto;
  background-repeat: repeat;
  color: #edf0e9;
}
.about .eyebrow, .about .services { color: #b9c2ba; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(460px, .95fr); gap: 6vw; }
.about h2 { max-width: 850px; font-size: clamp(3rem, 6.3vw, 7rem); }
.about-profile { display: grid; grid-template-columns: 206px minmax(220px, 1fr); align-items: start; gap: 2rem; padding-top: .5rem; }
.profile-photo { width: 206px; aspect-ratio: 1; object-fit: cover; object-position: 50% 42%; }
.about-copy > p:first-child { margin-top: 0; font-size: 1.05rem; line-height: 1.65; }
.services { margin-top: 3rem; font-size: .72rem; line-height: 2; letter-spacing: .08em; text-transform: uppercase; }

footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 2rem; padding: 3.5rem 3.2vw; background: var(--logo-background); color: var(--ink); }
footer p, footer a { margin: 0; color: #aeb2ae; font-size: .7rem; }
footer a { text-transform: uppercase; letter-spacing: .1em; }
.footer-logo { display: block; width: 112px; }
.footer-logo img { display: block; width: 100%; height: auto; }

dialog { color: var(--ink); }
dialog::backdrop { background: rgba(15,18,16,.72); backdrop-filter: blur(5px); }
.dialog-close { padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 100px; background: rgba(247,246,242,.9); cursor: pointer; font-size: .67rem; text-transform: uppercase; letter-spacing: .1em; }
.project-view { min-height: 100vh; background: var(--warm-white); }
.project-view-bar { position: sticky; z-index: 8; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 20px 3.2vw; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--warm-white) 94%, transparent); backdrop-filter: blur(10px); }
.project-view-bar .wordmark { grid-column: 2; }
.project-back { justify-self: start; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.dialog-project-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; padding: 5rem 5vw 4rem; }
.dialog-project-head h2 { margin-bottom: 1rem; font-size: clamp(3rem, 6vw, 6.5rem); font-weight: 450; line-height: .95; letter-spacing: -.055em; }
.dialog-project-head > div:last-child { align-self: end; color: var(--muted); }
.dialog-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 0 3.2vw 3.2vw; }
.dialog-gallery figure { margin: 0; }
.dialog-gallery figure:nth-child(3n+1) { grid-column: 1 / -1; }
.dialog-gallery img { min-height: 0; height: auto; object-fit: contain; background: #ddd; }
.dialog-gallery figcaption { padding: .6rem 0 1rem; color: var(--muted); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.study-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); min-height: calc(100vh - 73px); }
.study-image { min-height: calc(100vh - 73px); background: #ddd; }
.study-image img { height: 100%; object-fit: contain; }
.study-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: 7rem 4vw 4rem; }
.study-copy h2 { margin-bottom: 2rem; font-size: clamp(3rem, 5vw, 6rem); font-weight: 450; line-height: .95; letter-spacing: -.055em; }
.study-copy > p:not(.eyebrow) { max-width: 430px; color: var(--muted); }
.study-copy .photo-caption { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.study-copy dl { margin: 3rem 0 0; border-top: 1px solid var(--line); }
.study-copy dl div { display: grid; grid-template-columns: 1fr 1fr; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.study-copy dt, .study-copy dd { margin: 0; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.study-copy dt { color: var(--muted); }
.view-story-button { width: fit-content; margin-top: 2rem; padding: .75rem 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; }

.curate-dialog { width: min(850px, 94vw); max-height: 92vh; padding: 0; border: 0; background: var(--warm-white); }
.curate-header { position: sticky; z-index: 4; top: 0; display: flex; justify-content: space-between; gap: 2rem; padding: 2.5rem 3rem 1.5rem; background: var(--warm-white); border-bottom: 1px solid var(--line); }
.curate-header .eyebrow { margin-bottom: 1rem; }
.curate-header h2 { font-size: 2.5rem; }
.curate-intro, .curate-status { margin: 0; padding: 1.5rem 3rem 0; color: var(--muted); font-size: .85rem; }
.curate-status { min-height: 2.2rem; padding-top: .5rem; color: #8b4b34; }
.curate-list { padding: .5rem 3rem 1rem; }
.curate-row { display: grid; grid-template-columns: 72px 1fr auto auto; align-items: center; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.curate-row img { width: 72px; height: 54px; object-fit: cover; }
.curate-row strong { display: block; font-size: .82rem; }
.project-title-input, .photo-row input { width: 100%; padding: .45rem .55rem; border: 1px solid transparent; background: transparent; color: var(--ink); }
.project-title-input { padding-left: 0; font-size: .82rem; font-weight: 650; }
.project-title-input:focus, .photo-row input:focus { outline: none; border-color: var(--ink); background: var(--white); }
.curate-row small { color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.feature-check { display: flex; align-items: center; gap: .45rem; color: var(--muted); cursor: pointer; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.move-controls { display: flex; }
.move-controls button { width: 32px; height: 32px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.move-controls button + button { border-left: 0; }
.curate-item { border-bottom: 1px solid var(--line); }
.curate-item .curate-row { border-bottom: 0; }
.photo-manager { margin: 0 0 .7rem 88px; }
.photo-manager summary { width: fit-content; cursor: pointer; color: var(--muted); font-size: .63rem; letter-spacing: .09em; text-transform: uppercase; }
.photo-manager > div { padding-top: .6rem; }
.photo-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: .75rem; padding: .45rem 0; }
.photo-row > img { width: 52px; height: 40px; object-fit: cover; }
.photo-row small { display: block; padding-left: .55rem; color: var(--muted); font-size: .58rem; }
.curate-actions { position: sticky; bottom: 0; display: flex; justify-content: space-between; padding: 1.25rem 3rem; border-top: 1px solid var(--line); background: var(--warm-white); }
.button-primary, .button-secondary { padding: .8rem 1.1rem; border: 1px solid var(--ink); cursor: pointer; font-size: .68rem; letter-spacing: .09em; text-transform: uppercase; }
.button-primary { background: var(--ink); color: var(--white); }
.button-secondary { background: transparent; color: var(--ink); }

@media (max-width: 800px) {
  .site-header { grid-template-columns: auto 1fr; gap: 1rem; padding: 8px 5vw; }
  .header-logo { width: 104px; }
  .site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .65rem 1rem; font-size: .62rem; }
  nav { display: none; }
  .intro { min-height: 0; padding: 3.75rem 5vw; }
  h1 { font-size: clamp(3.1rem, 14vw, 5.25rem); }
  .intro-note { grid-template-columns: 1fr; gap: 2rem; margin-left: 0; padding-left: 0; }
  .intro-note p { width: 100%; margin-left: 0; }
  .round-link { display: none; }
  .featured, .archive, .journal, .about { padding: 5rem 5vw; }
  .section-heading, .about-grid { grid-template-columns: 1fr; }
  .featured > .section-heading { grid-template-columns: 1fr; }
  .about-profile { grid-template-columns: 180px minmax(0, 1fr); max-width: 680px; }
  .profile-photo { width: 180px; }
  .section-heading > p { max-width: 400px; }
  .featured-grid { display: block; }
  .featured-grid.featured-2 { display: block; }
  .featured-grid.featured-2.layout-editorial .featured-card:nth-child(2), .featured-grid.featured-2.layout-stacked .featured-card { margin-top: 0; }
  .layout-options { align-items: flex-start; flex-wrap: wrap; }
  .layout-options span { width: 100%; }
  .featured-card, .featured-card:nth-child(2), .featured-card:nth-child(3) { margin: 0 0 4rem; }
  .featured-card:nth-child(2) .image-wrap { aspect-ratio: 4 / 3; }
  .archive-toolbar { align-items: flex-start; gap: 1rem; }
  .result-count { padding-top: .55rem; white-space: nowrap; }
  .project-grid, .journal-grid { grid-template-columns: 1fr 1fr; }
  .project-card .image-wrap, .project-card:nth-child(6n+2) .image-wrap, .project-card:nth-child(6n+6) .image-wrap { aspect-ratio: 4 / 3; }
  footer { grid-template-columns: 1fr; gap: 2rem; }
  .dialog-project-head { grid-template-columns: 1fr; gap: 2rem; padding: 5rem 6vw 2.5rem; }
  .dialog-gallery { grid-template-columns: 1fr; }
  .dialog-gallery img, .dialog-gallery img:nth-child(3n+1) { grid-column: auto; min-height: 0; height: auto; }
  .project-view-bar { grid-template-columns: 1fr auto; padding: 18px 5vw; }
  .project-view-bar .wordmark { grid-column: 2; }
  .study-layout { grid-template-columns: 1fr; }
  .study-image { min-height: 65vh; }
  .study-copy { padding: 3rem 6vw 4rem; }
  .curate-header, .curate-list, .curate-actions { padding-left: 1.25rem; padding-right: 1.25rem; }
  .curate-intro, .curate-status { padding-left: 1.25rem; padding-right: 1.25rem; }
  .curate-row { grid-template-columns: 58px 1fr auto; gap: .65rem; }
  .curate-row img { width: 58px; height: 46px; }
  .photo-manager { margin-left: 0; }
  .feature-check { grid-column: 2; }
  .move-controls { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 520px) {
  .project-grid, .journal-grid { grid-template-columns: 1fr; }
  .archive-toolbar { display: block; }
  .result-count { margin-top: .75rem; }
  .about-profile { grid-template-columns: 1fr; }
  .profile-photo { width: min(260px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
