@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bone: #f1ebdf;
  --paper: #f7f2e9;
  --ink: #24211f;
  --oxblood: #6f2027;
  --rule: rgba(36, 33, 31, 0.22);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  min-height: 100%;
  background: var(--bone);
}

body {
  color: var(--ink);
  font-family: "Archivo", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  overflow-x: clip;
  isolation: isolate;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 36px), rgba(111, 32, 39, 0.06) calc(100% - 36px)),
    var(--bone);
}

.index-gutter {
  position: absolute;
  z-index: 5;
  inset: 0 auto 0 0;
  width: 76px;
  color: var(--paper);
  background: var(--oxblood);
}

.index-title {
  position: absolute;
  top: 36px;
  left: 50%;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
}

.index-gutter ol {
  position: absolute;
  right: 0;
  bottom: 35px;
  left: 0;
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.index-gutter li {
  display: grid;
  justify-items: center;
  gap: 9px;
  font-family: "Fraunces", serif;
  font-size: 9px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.index-gutter li span {
  font-family: "Archivo", sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.site-header {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 105px;
  margin: 0 4vw 0 calc(76px + 4vw);
  border-bottom: 1px solid var(--rule);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.brand i {
  font-family: "Fraunces", serif;
  font-weight: 400;
  text-transform: none;
}

.brand-stamp {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--oxblood);
  color: var(--oxblood);
  font-family: "Fraunces", serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.06em;
  transition: color 300ms ease, background-color 300ms ease, transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-stamp {
  color: var(--paper);
  background: var(--oxblood);
  transform: rotate(-4deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.8vw, 46px);
}

.site-nav a,
.header-action {
  position: relative;
  padding: 8px 0;
}

.site-nav a::before,
.header-action::before {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--oxblood);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.site-nav a:hover::before,
.header-action:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.header-action {
  justify-self: end;
  color: var(--oxblood);
}

.header-action span {
  display: inline-block;
  margin-left: 8px;
  font-size: 13px;
  transition: transform 300ms ease;
}

.header-action:hover span {
  transform: translateX(4px);
}

.headline-block {
  position: relative;
  z-index: 4;
  margin: clamp(51px, 7vh, 78px) 0 0 calc(76px + 5vw);
}

.edition {
  margin: 0 0 21px 5px;
  color: var(--oxblood);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(57px, 5.25vw, 80px);
  font-weight: 390;
  letter-spacing: -0.05em;
  line-height: 0.93;
}

h1 span,
h1 em {
  display: block;
}

h1 em {
  margin-left: 0.72em;
  color: var(--oxblood);
  font-weight: 310;
}

.project-copy {
  position: absolute;
  z-index: 5;
  bottom: 80px;
  left: calc(76px + 5vw);
  width: min(31vw, 390px);
}

.project-copy > p {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.48;
}

.services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  color: rgba(36, 33, 31, 0.62);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.primary-action {
  display: inline-grid;
  grid-template-columns: 1fr 45px;
  align-items: center;
  min-width: 218px;
  margin-top: 31px;
  color: var(--paper);
  background: var(--oxblood);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), background-color 300ms ease;
}

.primary-action span {
  padding-left: 18px;
}

.primary-action i {
  display: grid;
  height: 45px;
  place-items: center;
  border-left: 1px solid rgba(247, 242, 233, 0.26);
  font-style: normal;
  font-size: 15px;
  transition: transform 300ms ease;
}

.primary-action:hover {
  background: #542026;
  transform: translateY(-3px);
}

.primary-action:hover i {
  transform: rotate(7deg);
}

.primary-action:active {
  transform: translateY(1px) scale(0.985);
}

.project-image {
  position: absolute;
  z-index: 2;
  right: 4vw;
  bottom: 6vh;
  width: min(55vw, 790px);
  height: min(62vh, 630px);
  margin: 0;
  overflow: hidden;
  background: #6b5f51;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
  filter: saturate(0.65) sepia(0.08) contrast(0.98);
  transition: transform 1000ms cubic-bezier(0.16, 1, 0.3, 1), filter 500ms ease;
}

.project-image:hover img {
  filter: saturate(0.82) sepia(0.03);
  transform: scale(1.018);
}

.existing-field {
  position: absolute;
  inset: 0 auto 0 0;
  width: 31.5%;
  border-right: 1px solid rgba(247, 242, 233, 0.9);
  backdrop-filter: grayscale(1) sepia(0.4) brightness(0.73) contrast(1.12);
  -webkit-backdrop-filter: grayscale(1) sepia(0.4) brightness(0.73) contrast(1.12);
}

.drawing-grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(247, 242, 233, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 242, 233, 0.2) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.image-label {
  position: absolute;
  z-index: 3;
  top: 21px;
  padding: 7px 9px;
  color: var(--paper);
  background: rgba(36, 33, 31, 0.72);
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.image-label.existing {
  left: 19px;
}

.image-label.proposed {
  left: calc(31.5% + 19px);
  color: var(--oxblood);
  background: var(--paper);
}

.dimension {
  position: absolute;
  z-index: 3;
  color: rgba(247, 242, 233, 0.82);
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.dimension::before,
.dimension::after {
  position: absolute;
  content: "";
  background: currentColor;
}

.dimension-top {
  top: 72px;
  right: 25px;
  width: 29%;
  border-top: 1px solid currentColor;
  text-align: center;
}

.dimension-top::before,
.dimension-top::after {
  top: -4px;
  width: 1px;
  height: 7px;
}

.dimension-top::before {
  left: 0;
}

.dimension-top::after {
  right: 0;
}

.dimension-top span {
  position: relative;
  top: -14px;
}

.dimension-side {
  right: 23px;
  bottom: 76px;
  height: 22%;
  border-left: 1px solid currentColor;
}

.dimension-side::before,
.dimension-side::after {
  left: -4px;
  width: 7px;
  height: 1px;
}

.dimension-side::before {
  top: 0;
}

.dimension-side::after {
  bottom: 0;
}

.dimension-side span {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%) rotate(-90deg);
}

.project-image figcaption {
  position: absolute;
  z-index: 3;
  right: 20px;
  bottom: 19px;
  left: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: var(--paper);
  font-family: "Fraunces", serif;
  font-size: 17px;
}

.project-image figcaption small {
  font-family: "Archivo", sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .project-image {
    width: 52vw;
  }
}

@media (max-width: 700px) {
  .hero {
    padding-left: 12px;
  }

  .index-gutter {
    width: 12px;
  }

  .index-gutter > * {
    display: none;
  }

  .site-header {
    height: 74px;
    margin: 0 20px 0 10px;
  }

  .brand {
    gap: 8px;
    font-size: 8px;
  }

  .brand-stamp {
    width: 29px;
    height: 29px;
    font-size: 11px;
  }

  .header-action {
    font-size: 7px;
    letter-spacing: 0.1em;
  }

  .headline-block {
    margin: 40px 20px 0 13px;
  }

  .edition {
    max-width: 260px;
    margin-bottom: 15px;
    font-size: 7px;
    line-height: 1.4;
  }

  h1 {
    font-size: clamp(44px, 13.5vw, 54px);
    line-height: 0.91;
  }

  h1 em {
    margin-left: 0.3em;
  }

  .project-copy {
    top: 285px;
    bottom: auto;
    left: 25px;
    width: calc(100% - 50px);
  }

  .project-copy > p {
    max-width: 335px;
    font-size: 14px;
    line-height: 1.4;
  }

  .services {
    display: none;
  }

  .primary-action {
    min-width: 196px;
    margin-top: 17px;
    grid-template-columns: 1fr 40px;
    font-size: 8px;
  }

  .primary-action i {
    height: 40px;
  }

  .project-image {
    right: 0;
    bottom: 0;
    width: calc(100% - 12px);
    height: 43dvh;
    min-height: 322px;
    max-height: 400px;
  }

  .project-image img {
    object-position: 50% center;
  }

  .drawing-grid {
    background-size: 32px 32px;
  }

  .image-label {
    top: 14px;
  }

  .image-label.existing {
    left: 13px;
  }

  .image-label.proposed {
    left: calc(31.5% + 12px);
  }

  .dimension-top {
    top: 62px;
  }

  .dimension-side {
    display: none;
  }

  .project-image figcaption {
    right: 15px;
    bottom: 14px;
    left: 15px;
    font-size: 14px;
  }

  .project-image figcaption small {
    display: none;
  }
}

@media (max-height: 720px) and (max-width: 700px) {
  .headline-block {
    margin-top: 25px;
  }

  h1 {
    font-size: 43px;
  }

  .project-copy {
    top: 252px;
  }

  .project-copy > p {
    font-size: 13px;
  }

  .project-image {
    min-height: 276px;
  }
}

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