/* Design tokens */

:root {
  color-scheme: light;
  --paper: #f7f5ed;
  --cream: #eeeee3;
  --white: #fcfbf5;
  --ink: #1d352b;
  --deep: #1b3329;
  --muted: #4d5d52;
  --rule: #cdcec1;
  --soft: #d1dccc;
  --accent: #b3c398;
  --brand-bg: #1d2122;
  --brand-border: #66736d;
  --brand-hover: #2e3734;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'Courier New', monospace;
  --space: clamp(3.8rem, 8vw, 8rem);
}

/* Document defaults and typography */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.64 var(--sans);
}

img, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: .22em;
}

a:hover {
  text-decoration-thickness: 2px;
}

button {
  font: inherit;
  color: inherit;
}

button:hover {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #28644b;
  outline-offset: 4px;
}

.header :focus-visible, .band :focus-visible, .footer :focus-visible, .contact-card--primary :focus-visible {
  outline-color: #ecf0cb;
}

h1, h2, h3, p, ol, dl, dd, figure {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.052em;
  line-height: 1.03;
}

h1 {
  font-size: clamp(3.3rem, 7.2vw, 7rem);
}

h2 {
  font-size: clamp(2.35rem, 4.8vw, 4.75rem);
}

h3 {
  font-size: 1.9rem;
}

em {
  color: #49634e;
  font-weight: 400;
}

p + p {
  margin-top: 1rem;
}

/* Shared layout and accessibility */

.wrap {
  width: min(calc(100% - clamp(2.25rem, 8.3vw, 9rem)), 1280px);
  margin-inline: auto;
}

.kicker {
  font: 700 .73rem/1.45 var(--mono);
  letter-spacing: .135em;
  text-transform: uppercase;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.03rem, 1.6vw, 1.28rem);
  line-height: 1.57;
  max-width: 44ch;
}

.section {
  padding-block: var(--space);
}

.section--first {
  padding-top: clamp(2.5rem, 5.8vw, 5.5rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: .5rem;
  left: .5rem;
  padding: .65rem 1rem;
  background: var(--white);
  z-index: 5;
  transform: translateY(-150%);
}

.skip:focus {
  transform: none;
}

:target {
  scroll-margin-top: 1.5rem;
}

/* Header, brand and navigation */

.header {
  background: var(--brand-bg);
  color: var(--white);
}

.header__inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-block;
  max-width: 100%;
  flex-shrink: 0;
}

.brand img {
  width: clamp(12rem, 22vw, 17rem);
  height: auto;
}

.nav {
  display: flex;
  gap: clamp(1.3rem, 3.2vw, 3.35rem);
  align-items: center;
}

.nav > a {
  display: inline-flex;
  align-items: center;
  gap: .58rem;
  text-decoration: none;
  font-size: .87rem;
  font-weight: 630;
  min-height: 44px;
}

.nav > a:hover, .nav > a[aria-current] {
  text-decoration: underline;
}

.nav-contact {
  padding: .5rem .9rem .5rem 1.12rem;
  border: 1px solid var(--brand-border);
}

.nav-contact:hover {
  background: var(--brand-hover);
}

.nav svg, .button svg, .text-link svg, .icon-button svg, .project-card :is(h2, h3) svg, .footer svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.menu-toggle {
  border: 1px solid var(--brand-border);
  background: transparent;
  min-height: 44px;
  padding: .5rem .8rem;
  display: none;
  align-items: center;
  gap: .55rem;
  font-size: .86rem;
}

.menu-toggle span {
  width: 16px;
  height: 8px;
  border-block: 1px solid;
}

/* Homepage hero */

.hero {
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  gap: clamp(1.5rem, 3.7vw, 4.4rem);
  align-items: stretch;
  padding-block: clamp(1.55rem, 4.4vw, 4.25rem);
}

.hero__copy {
  align-self: center;
  padding-block: clamp(1.2rem, 3vw, 3.25rem);
}

.hero__copy .kicker {
  display: flex;
  gap: .75rem;
  align-items: center;
}

.hero__copy .kicker::before {
  content: '';
  height: 1px;
  width: 1.6rem;
  background: #728d6f;
}

.hero h1 {
  margin: 1.3rem 0 1.5rem;
  font-size: clamp(3.15rem, 6.05vw, 6.05rem);
  line-height: .99;
}

.hero .lede {
  max-width: 36ch;
}

.hero__image {
  position: relative;
  overflow: hidden;
  min-height: clamp(350px, 39vw, 555px);
  background: var(--deep);
}

.hero__image > img, .hero__image > picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image--drawing {
  background: #1b342a;
}

.hero__image--drawing > img {
  object-fit: contain;
}

/* Shared media and image positioning */

.media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focus-top {
  object-position: center top;
}

.focus-bottom {
  object-position: center bottom;
}

.focus-left {
  object-position: left center;
}

.focus-right {
  object-position: right center;
}

.media-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  background: var(--white);
  color: var(--ink);
  border: 1px solid #b8c4b5;
  padding: .42rem .68rem;
  font: 700 .66rem/1.25 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Buttons and links */

.actions {
  display: flex;
  align-items: center;
  gap: 1rem 1.4rem;
  flex-wrap: wrap;
  margin-top: 1.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 49px;
  padding: .74rem 1.03rem .74rem 1.13rem;
  font-size: .89rem;
  line-height: 1.3;
  font-weight: 660;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .16s, color .16s;
  width: fit-content;
}

.button--solid {
  background: var(--ink);
  color: var(--white);
}

.button--solid:hover {
  background: #41614b;
}

.button--outline {
  border-color: var(--ink);
}

.button--outline:hover {
  background: var(--ink);
  color: var(--white);
}

.button--light {
  background: var(--white);
  color: var(--ink);
}

.button--light:hover {
  background: #e1e8d4;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .43rem;
  font-weight: 640;
  font-size: .89rem;
  min-height: 44px;
}

/* Homepage fact strip */

.fact-strip {
  background: var(--cream);
  border-block: 1px solid var(--rule);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fact {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.42rem 1rem 1.42rem 1.55rem;
}

.fact:first-child {
  padding-left: 0;
}

.fact + .fact {
  border-left: 1px solid var(--rule);
}

.fact svg {
  width: 28px;
  height: 28px;
  flex: none;
  fill: none;
  stroke: #64806a;
  stroke-width: 1.4;
}

.fact dt {
  font: 700 .69rem/1.5 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}

.fact dd {
  font-size: .93rem;
}

/* Section headings and carousel controls */

.section-head {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: 1rem 2rem;
  margin-bottom: 1.55rem;
}

.section-head h2 {
  margin-top: .5rem;
}

.section-head > p {
  max-width: 41ch;
  justify-self: end;
  color: var(--muted);
}

.section--gallery .button {
  margin-top: 1.4rem;
}

.gallery-head {
  margin-top: clamp(3rem, 7vw, 6.25rem);
}

.carousel {
  min-width: 0;
}

.carousel__viewport {
  display: grid;
  gap: 1.15rem;
}

.slide__media {
  aspect-ratio: 16 / 9;
  position: relative;
  background: var(--deep);
  overflow: hidden;
}

.carousel--uncropped .slide__media {
  aspect-ratio: 16 / 9;
  background: #142920;
}

.carousel--uncropped .media-img, .slide__media:has(.media-label) .media-img {
  object-fit: contain;
}

.slide__media picture {
  display: block;
}

.slide__media picture, .slide__media video {
  width: 100%;
  height: 100%;
}

.slide__media video {
  object-fit: contain;
  background: #11251d;
}

.slide figcaption {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: .35rem 1.5rem;
  padding: .8rem 0 .65rem;
  color: var(--muted);
  font-size: .88rem;
}

.slide__title {
  font-weight: 700;
  color: var(--ink);
}

.carousel__controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .8rem;
  align-items: center;
  padding: .7rem 0 0;
  border-top: 1px solid var(--rule);
}

.carousel__counter {
  font: 700 .76rem/1 var(--mono);
  letter-spacing: .1em;
  white-space: nowrap;
}

.carousel__select {
  min-width: 0;
}

.carousel__select select, .rotation-button {
  font: 650 .81rem/1.3 var(--sans);
  color: var(--ink);
  min-height: 44px;
  border: 1px solid var(--rule);
  background: var(--white);
  padding: .5rem .65rem;
}

.carousel__select select {
  width: clamp(7rem, 36vw, 14rem);
}

.rotation-button:hover {
  background: var(--cream);
  border-color: var(--ink);
}

.carousel__dots, .carousel__arrows {
  display: flex;
  gap: .35rem;
  align-items: center;
}

.carousel__dots {
  flex-wrap: wrap;
  justify-content: center;
}

.carousel__arrows {
  justify-self: end;
}

.dot {
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  width: 32px;
  min-height: 44px;
}

.dot span {
  display: block;
  border: 1px solid #526857;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot:hover span, .dot[aria-current="true"] span {
  background: var(--ink);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rule);
  background: transparent;
}

.icon-button:hover {
  background: var(--cream);
  border-color: var(--ink);
}

.icon-button.previous svg {
  transform: rotate(180deg);
}

.transcript {
  margin-block: .5rem 1rem;
}

.transcript summary {
  width: fit-content;
  font-weight: 650;
  cursor: pointer;
}

.transcript p {
  max-width: 70ch;
  white-space: pre-line;
  margin-top: .5rem;
}

/* Story and contact bands */

.story {
  border-block: 1px solid var(--rule);
  background: var(--cream);
}

.story__grid, .band__inner, .faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 2rem clamp(2rem, 8vw, 9rem);
}

.story h2, .band h2, .faq h2 {
  margin-top: .65rem;
}

.story__copy {
  align-self: end;
  max-width: 52ch;
}

.story__copy p {
  font-size: clamp(1rem, 1.7vw, 1.17rem);
}

.story__copy .button {
  margin-top: 1.5rem;
}

.band {
  background: var(--deep);
  color: var(--white);
  padding-block: clamp(2.75rem, 6.5vw, 6rem);
}

.band__inner {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.band .kicker {
  color: var(--accent);
}

.band h2 {
  font-size: clamp(2.35rem, 4.75vw, 4.35rem);
}

.band p:not(.kicker) {
  color: var(--soft);
  margin-top: .75rem;
}

.band .button {
  margin-bottom: .25rem;
}

/* Breadcrumbs and page leads */

.crumbs {
  padding-block: 1.15rem;
  color: var(--muted);
  font-size: .83rem;
}

.crumbs ol {
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .6rem;
}

.crumbs li + li::before {
  content: '/';
  margin-right: .6rem;
  color: #6c7c6d;
}

.page-lead {
  background: var(--cream);
  border-block: 1px solid var(--rule);
}

.page-lead__inner {
  padding-block: clamp(2.6rem, 7.4vw, 6.35rem);
}

.page-lead h1 {
  margin: .75rem 0 1rem;
  max-width: 16ch;
}

.page-lead .lede {
  max-width: 55ch;
}

/* Project cards and project details */

.quiet-card {
  padding: clamp(1.5rem, 4vw, 3.6rem);
  border: 1px solid var(--rule);
  background: var(--white);
}

.quiet-card h2, .contact-card h2, .about-copy h2 {
  margin: .65rem 0 .8rem;
  font-size: clamp(2.15rem, 3.9vw, 3.9rem);
}

.quiet-card p, .contact-card p {
  max-width: 50ch;
}

.quiet-card .button, .contact-card .button, .about-copy .button {
  margin-top: 1.25rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--rule);
  min-width: 0;
}

.project-card__cover {
  display: block;
  aspect-ratio: 1.65;
  overflow: hidden;
  background: var(--deep);
}

.project-card__cover > img, .project-card__cover picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__body {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.project-card :is(h2, h3) {
  margin: .45rem 0 .75rem;
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
}

.project-card__link {
  display: block;
  text-decoration: none;
}

.project-card__link:hover :is(h2, h3) {
  text-decoration: underline;
}

.project-notes {
  padding-top: 1.75rem;
  max-width: 68ch;
}

.project-notes h2 {
  font-size: 2.4rem;
  margin-bottom: .75rem;
}

.project-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.project-details > div {
  padding-block: .75rem;
  border-top: 1px solid var(--rule);
}

.project-details dt {
  font: 700 .75rem/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.project-details dd {
  margin-top: .35rem;
}

/* Approach and FAQ */

.steps {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.steps li {
  display: grid;
  grid-template-columns: minmax(3rem, .22fr) 1fr;
  gap: 1.25rem;
  padding-block: clamp(1.3rem, 3.5vw, 2.65rem);
  border-bottom: 1px solid var(--rule);
}

.steps li > span {
  padding-top: .4rem;
  font: 700 .9rem/1.4 var(--mono);
  letter-spacing: .1em;
  color: var(--muted);
}

.steps h2 {
  margin-bottom: .45rem;
  font-size: clamp(2rem, 4vw, 3.65rem);
}

.steps p, .faq p {
  max-width: 60ch;
  color: var(--muted);
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding-block: .95rem;
}

.faq details:first-of-type {
  border-top: 1px solid var(--rule);
}

.faq summary {
  cursor: pointer;
  font-weight: 650;
}

.faq details p {
  margin-top: .7rem;
}

/* About page */

.about-grid {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.about-image {
  background: var(--deep);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: auto;
}

.about-copy p {
  max-width: 53ch;
}

/* Contact page */

.inquiry-privacy {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 70ch;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-card {
  padding: clamp(1.45rem, 4vw, 3.4rem);
  border: 1px solid var(--rule);
  background: var(--white);
}

.contact-card--primary {
  color: var(--white);
  background: var(--deep);
  border-color: var(--deep);
}

.contact-card--primary .kicker {
  color: var(--accent);
}

.contact-card--primary p:not(.kicker) {
  color: var(--soft);
}

.contact-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

.contact-line a, .footer a {
  overflow-wrap: anywhere;
}

.contact-line > p {
  color: var(--muted);
  max-width: 50ch;
  font-size: .91rem;
}

.copy-button {
  background: transparent;
  border: 1px solid var(--rule);
  margin: .25rem 0 .25rem .7rem;
  min-height: 44px;
  padding: .4rem .65rem;
  font-size: .81rem;
}

.copy-button:hover {
  background: var(--cream);
}

/* Privacy notice and site map */

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-size: 2rem;
  margin: 1.7rem 0 .6rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose li + li {
  margin-top: .4rem;
}

.draft-note {
  border-left: 3px solid #627b63;
  padding: .65rem 1rem;
  background: var(--cream);
  font-weight: 650;
}

/* Footer */

.footer {
  color: var(--soft);
  background: var(--brand-bg);
  padding-block: 3.25rem 1rem;
}

.footer .brand img {
  width: min(100%, 17rem);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.1fr .8fr 1fr;
  gap: 1.4rem;
  padding-bottom: 2rem;
}

.footer__top p {
  margin-top: .75rem;
  font-size: .9rem;
}

.footer__top nav, .footer__contact {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: .55rem;
  font-size: .91rem;
}

.footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: .8rem 1.2rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--brand-border);
  padding-block: 1.1rem;
  font-size: .79rem;
}

.footer__bottom > div {
  display: flex;
  gap: 1.2rem;
}

/* Responsive layout · compact desktop and tablet */

@media (max-width: 980px) {
  .hero {
    gap: 1.4rem;
  }

  .hero__image {
    min-height: 350px;
  }

  .hero__copy .kicker {
    font-size: .65rem;
  }

  .fact {
    gap: .58rem;
    padding-left: .8rem;
  }

  .fact dd {
    font-size: .85rem;
  }
}

/* Responsive layout · narrow tablet and phone */

@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
  }

  .header__inner {
    min-height: 70px;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    padding-block: .63rem;
  }

  .header .brand img {
    width: clamp(10rem, 49vw, 14rem);
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0 1.15rem;
  }

  .header[data-nav-ready] .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--brand-border);
    padding-top: .3rem;
  }

  .header[data-nav-ready] .nav[data-closed] {
    display: none;
  }

  .header[data-nav-ready] .nav-contact {
    border: 0;
    padding: 0;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-block: 1.45rem 1.75rem;
  }

  .hero h1 {
    font-size: clamp(2.85rem, 10vw, 5.3rem);
  }

  .hero__copy {
    padding-block: 1.2rem .4rem;
  }

  .hero__image {
    min-height: 0;
    aspect-ratio: 1.28;
  }

  .section-head, .story__grid, .faq, .about-grid {
    grid-template-columns: 1fr;
  }

  .section-head > p {
    justify-self: start;
  }

  .section-head {
    gap: .65rem;
  }

  .slide__media {
    aspect-ratio: 1.48;
  }

  .carousel__controls {
    gap: .45rem;
  }

  .slide figcaption {
    flex-direction: column;
  }

  .band__inner, .contact-grid, .contact-line {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__contact {
    grid-column: 1 / -1;
  }
}

/* Responsive layout · narrow phone */

@media (max-width: 495px) {
  .carousel--uncropped .carousel__controls:has(.carousel__select) {
    grid-template-columns: 1fr auto;
  }

  .carousel--uncropped .carousel__select {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .carousel--uncropped .carousel__select select {
    width: 100%;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .fact, .fact:first-child {
    padding: .75rem 0;
  }

  .fact + .fact {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .fact svg {
    width: 23px;
    height: 23px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .footer__top nav {
    gap: .42rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
  }
}

/* Reduced motion preference */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition-duration: 0s !important;
  }
}
