:root {
  --paper: #f3ead9;
  --ink: #25291b;
  --olive: #373e2b;
  --sage: #a7ae87;
  --muted: #595444;
  --rule: #c9beaa;
  --serif: Georgia, "Times New Roman", serif;
}

.werk-header {
  background: var(--ink);
  color: var(--paper);
}

.werk-header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
}

.werk-header nav {
  column-gap: clamp(1rem, 3vw, 2.75rem);
}

.werk-header nav a {
  font-size: .95rem;
  text-decoration: none;
}

.werk-header nav a:hover {
  text-decoration: underline;
}

.werk-wordmark {
  font-size: clamp(1.32rem, 2.1vw, 2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.085em;
  text-decoration: none;
  white-space: nowrap;
}

.werk-wordmark span {
  color: #c0c798;
}

.werk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  width: fit-content;
  min-height: 48px;
  padding: .7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-weight: 700;
  font-size: .9rem;
  line-height: 1.2;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.werk-button--outline {
  border-color: #8b9076;
}

.werk-button--outline:hover {
  border-color: var(--paper);
  background-color: var(--paper);
  color: var(--ink);
}

.werk-button--light {
  background: #e9dfca;
  color: var(--ink);
}

.werk-button--light:hover {
  background: #fff6e5;
}

.werk-hero {
  background: var(--olive);
  color: #fff4e1;
}

.werk-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.16fr);
  align-items: stretch;
  gap: 1px;
  padding-block: clamp(2.25rem, 5vw, 5rem);
}

.werk-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.7rem, 4.6vw, 4.5rem);
  background: #2b3021;
  border: 1px solid #808368;
  border-inline-end: 0;
}

.werk-label {
  margin: 0 0 1.2rem;
  font-size: .73rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.werk-hero .werk-label {
  color: #e8c084;
}

.werk-section h2,
.werk-shop h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.065em;
}

.werk-hero h1 {
  font-size: clamp(2.65rem, 5vw, 5.35rem);
  font-weight: 850;
  line-height: .91;
  letter-spacing: -.045em;
}

.werk-hero h1 span {
  display: block;
  color: #e5bd81;
}

.werk-shop h2 em {
  color: #dec399;
  font-weight: inherit;
}

.werk-hero-copy > p:not(.werk-label) {
  max-width: 27rem;
  margin: clamp(1.4rem, 3vw, 2.2rem) 0 1.65rem;
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  line-height: 1.5;
  color: #f7ead6;
}

.werk-hero-figure {
  display: grid;
  grid-template-rows: minmax(clamp(320px, 37vw, 510px), 1fr) auto;
  border: 1px solid #808368;
  background: #25291b;
}

.werk-hero-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 55% center;
}

.werk-hero-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.15rem;
  min-height: 52px;
  padding-inline: clamp(.8rem, 2.4vw, 1.75rem);
  border-top: 1px solid #808368;
  color: #e3d0ab;
  font-size: .82rem;
}

.werk-hero-caption a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  color: #fff4e1;
  font-weight: 700;
}

.werk-section {
  padding-block: clamp(3.8rem, 9vw, 8.5rem);
}

.werk-section h2,
.werk-shop h2 {
  font-size: clamp(2.8rem, 6.2vw, 6.35rem);
  line-height: .96;
}

.werk-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
  align-items: end;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(2rem, 4.8vw, 4.2rem);
}

.werk-section-head > p {
  max-width: 28rem;
  margin: 0 0 .25rem;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
}

.werk-services .werk-section-head > p {
  color: var(--muted);
}

.werk-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.werk-services-grid article {
  display: grid;
  align-content: start;
  padding: clamp(1.25rem, 3.15vw, 3.25rem);
  border-inline-end: 1px solid var(--rule);
}

.werk-services-grid article:first-child {
  padding-inline-start: 0;
}

.werk-services-grid article:last-child {
  padding-inline-end: 0;
  border-inline-end: 0;
}

.werk-material {
  margin: 0 0 clamp(.75rem, 2vw, 1.6rem);
  color: #525c39;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.werk-services-grid h3 {
  max-width: 16ch;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.7vw, 2.45rem);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -.05em;
}

.werk-services-grid article p:not(.werk-material) {
  max-width: 36ch;
  margin: .85rem 0 .55rem;
  color: var(--muted);
}

.werk-link {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: fit-content;
  min-height: 44px;
  font-size: .87rem;
  font-weight: 700;
}

.werk-projects {
  background: var(--olive);
  color: #fff0d9;
}

.werk-projects .werk-section-head > p,
.werk-projects .werk-label {
  color: #ddd2b7;
}

.werk-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 2vw, 2rem);
}

.werk-project {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #292f21;
  border: 1px solid #6a7054;
  border-radius: 5px;
}

.werk-project--wide {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
}

.werk-project > img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.werk-project--wide > img {
  align-self: stretch;
  height: 100%;
}

.werk-project-copy {
  padding: clamp(1.25rem, 3vw, 3rem);
}

.werk-project-copy h3 {
  font: 400 clamp(1.75rem, 3.7vw, 3.4rem)/1 var(--serif);
  letter-spacing: -.06em;
}

.werk-project-copy > p:not(.werk-label),
.werk-project details p {
  color: #e9dec8;
}

.werk-project details {
  border-top: 1px solid #6a7054;
  margin-top: 1.25rem;
}

.werk-project summary,
.werk-plan-guide summary,
.werk-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  min-height: 52px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
}

.werk-project summary::-webkit-details-marker,
.werk-plan-guide summary::-webkit-details-marker,
.werk-faq summary::-webkit-details-marker {
  display: none;
}

.werk-project summary::after,
.werk-plan-guide summary::after,
.werk-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-weight: 400;
  font-size: 1.55em;
}

.werk-project details[open] summary::after,
.werk-plan-guide details[open] summary::after,
.werk-faq details[open] summary::after {
  content: "−";
}

.werk-project details > p {
  margin: 0;
}

.werk-project:has(details[open]) {
  border-color: #b5b48b;
}

.werk-shop {
  padding-block: clamp(3.8rem, 8vw, 7.5rem);
  background: #26271c;
  color: var(--paper);
}

.werk-shop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
}

.werk-shop figure > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 4px;
}

.werk-shop figcaption {
  margin: .65rem 0 0;
  font-size: .8rem;
  color: #d6cbb4;
}

.werk-shop h2 {
  font-size: clamp(2.6rem, 5.2vw, 5.3rem);
}

.werk-shop .werk-label {
  color: #d3c09d;
}

.werk-steps {
  list-style: none;
  margin: clamp(1.75rem, 4vw, 3.5rem) 0 0;
  padding: 0;
  counter-reset: werk-step;
}

.werk-steps > li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: .65rem;
  padding: 1.1rem 0;
  counter-increment: werk-step;
  border-top: 1px solid #686650;
}

.werk-steps > li::before {
  content: counter(werk-step, decimal-leading-zero);
  color: #dec399;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.werk-steps h3 {
  font-size: 1.06rem;
}

.werk-steps p {
  margin: .35rem 0 0;
  color: #ded4bf;
}

.werk-plan {
  background: #c9cbaa;
  color: #25291b;
}

.werk-plan-grid,
.werk-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.8rem, 5vw, 6rem);
}

.werk-plan h2,
.werk-faq h2 {
  font-size: clamp(2.7rem, 5.2vw, 5.65rem);
}

.werk-plan p:not(.werk-label) {
  max-width: 29rem;
  margin: 1.15rem 0 0;
}

.werk-plan-guide {
  background: #e4e4ce;
  border: 1px solid #828867;
  border-radius: 5px;
  padding: 0 clamp(1rem, 2.8vw, 2.25rem);
}

.werk-plan-guide details + details,
.werk-faq details {
  border-top: 1px solid #9c9e83;
}

.werk-plan-guide summary,
.werk-faq summary {
  min-height: 62px;
  font-size: clamp(1rem, 1.7vw, 1.3rem);
}

.werk-plan-guide ul {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.25rem;
}

.werk-plan-guide li + li {
  margin-top: .25rem;
}

.werk-faq details:last-child {
  border-bottom: 1px solid #9c9e83;
}

.werk-faq details p {
  margin: 0 0 1rem;
  color: var(--muted);
}

@media (max-width: 850px) {
  .werk-header-inner {
    gap: .25rem 1rem;
  }

  .werk-header nav {
    column-gap: 1rem;
  }

  .werk-header nav a {
    font-size: .85rem;
  }

  .werk-header .werk-button {
    gap: .7rem;
    padding-inline: .9rem;
  }
}

@media (max-width: 660px) {
  .werk-header-inner {
    min-height: 0;
    flex-wrap: wrap;
    padding-top: .65rem;
  }

  .werk-header nav {
    order: 1;
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid #52563e;
    gap: 0 .6rem;
  }

  .werk-header .werk-button {
    min-height: 44px;
    font-size: .82rem;
  }

  .werk-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 1rem 1.5rem;
  }

  .werk-hero-copy {
    border-inline-end: 1px solid #808368;
    border-bottom: 0;
    padding: clamp(1rem, 5vw, 2.5rem);
  }

  .werk-hero h1 {
    font-size: clamp(2.8rem, 10.2vw, 4.5rem);
  }

  .werk-hero-figure {
    grid-template-rows: minmax(215px, 51vw) auto;
  }

  .werk-section-head,
  .werk-services-grid,
  .werk-project-grid,
  .werk-project--wide,
  .werk-shop-grid,
  .werk-plan-grid,
  .werk-faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .werk-services-grid article {
    padding-inline: 0;
    border-inline-end: 0;
  }

  .werk-services-grid article + article {
    border-top: 1px solid var(--rule);
  }

  .werk-project--wide > img {
    height: auto;
  }

  .werk-shop figure > img {
    max-height: 450px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .werk-button {
    transition: none;
  }
}
