:root {
  color-scheme: light;
  --ink: #151412;
  --muted: #655f57;
  --paper: #f3eee6;
  --paper-panel: #fbf7f1;
  --line: #d8cfc2;
  --accent: #a8655f;
  --moss: #596550;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 12px;
  color: var(--paper-panel);
  background: var(--ink);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 20px;
  width: min(100%, 1720px);
  height: 100svh;
  margin: 0 auto;
  padding: 26px 38px 20px;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.site-header {
  justify-content: flex-start;
}

.site-footer {
  justify-content: space-between;
}

.site-header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  font-family: Didot, "Bodoni 72", "Iowan Old Style", Georgia, serif;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.footer-links a {
  text-decoration: none;
}

.frame {
  display: grid;
  grid-template-rows: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 18px;
  min-width: 0;
  min-height: 0;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
  gap: 34px;
  min-width: 0;
  min-height: 0;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--ink);
}

.wordmark-block,
.masthead-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.wordmark-block {
  justify-content: flex-end;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.wordmark {
  margin: 0;
  font-family: Didot, "Bodoni 72", "Iowan Old Style", Georgia, serif;
  font-size: 122px;
  font-style: normal;
  font-weight: 500;
  line-height: 0.82;
  text-transform: none;
}

.hero-wordmark {
  font-size: 164px;
}

.wordmark span {
  display: block;
}

.wordmark-intro {
  font-size: 0.48em;
  font-style: italic;
  line-height: 0.9;
}

.wordmark-core {
  font-size: 1em;
  font-weight: 650;
  line-height: 0.76;
  text-transform: uppercase;
}

.wordmark-close {
  margin-top: 8px;
  margin-left: 220px;
  font-size: 0.45em;
  font-style: italic;
  line-height: 0.88;
}

.hero-wordmark .wordmark-close {
  margin-left: 300px;
}

.masthead-copy {
  justify-content: flex-end;
  padding-left: 26px;
  border-left: 1px solid var(--line);
}

.masthead-socials {
  display: grid;
  grid-template-columns: repeat(3, 62px);
  gap: 9px;
  width: 204px;
  margin: 0 auto 18px;
}

.masthead-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  line-height: 1;
  text-decoration: none;
}

.masthead-socials a:hover {
  color: var(--paper-panel);
  background: var(--ink);
  border-color: var(--ink);
}

.masthead-socials .social-icon {
  width: 26px;
  height: 26px;
}

.brand-icon {
  fill: currentColor;
  stroke: none;
}

.masthead-copy .button {
  align-self: center;
  width: min(100%, 230px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 42px;
  padding: 12px 16px;
  color: var(--paper-panel);
  background: var(--moss);
  border: 1px solid var(--moss);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.button:hover {
  color: var(--paper-panel);
  background: #4d5946;
}

.work-section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  min-height: 0;
}

.work-heading {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
  align-items: end;
}

.work-heading .eyebrow {
  margin-bottom: 5px;
}

.work-heading h2 {
  max-width: 740px;
  margin: 0;
  font-family: Didot, "Bodoni 72", "Iowan Old Style", Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.02;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  background: var(--paper-panel);
}

.service-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 24px 26px;
  border-right: 1px solid var(--line);
}

.service-card:last-child {
  border-right: 0;
}

.service-number {
  display: block;
  margin-bottom: auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
  font-weight: 850;
  line-height: 1.05;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.28;
}

.site-footer {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.social-icon.brand-icon {
  fill: currentColor;
  stroke: none;
}

@media (max-width: 1180px) {
  .wordmark {
    font-size: 102px;
  }

  .hero-wordmark {
    font-size: 132px;
  }

  .hero-wordmark .wordmark-close {
    margin-left: 238px;
  }

  .service-card {
    padding: 20px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .service-card p {
    font-size: 15px;
  }
}

@media (max-width: 860px) {
  .page-shell {
    gap: 14px;
    padding: 16px 14px 12px;
  }

  .site-header {
    padding-bottom: 12px;
  }

  .brand-mark {
    font-size: 17px;
  }

  .frame {
    grid-template-rows: auto minmax(0, 1fr);
    gap: 13px;
  }

  .masthead {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-bottom: 14px;
  }

  .wordmark {
    font-size: 72px;
  }

  .hero-wordmark {
    font-size: 96px;
  }

  .hero-wordmark .wordmark-close {
    margin-left: 154px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .masthead-copy {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding-left: 0;
    border-left: 0;
  }

  .masthead-socials {
    align-self: center;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    width: min(100%, 352px);
    justify-content: center;
    margin: 0;
  }

  .masthead-socials a {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .masthead-socials .social-icon {
    width: 22px;
    height: 22px;
  }

  .masthead-copy .button {
    width: 100%;
  }

  .button {
    min-height: 38px;
    padding: 11px 12px;
    font-size: 10px;
  }

  .work-heading {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .work-heading h2 {
    font-size: 25px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card {
    padding: 14px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .service-card:nth-child(2),
  .service-card:nth-child(4) {
    border-right: 0;
  }

  .service-card:nth-child(3),
  .service-card:nth-child(4) {
    border-bottom: 0;
  }

  .service-card h3 {
    margin-bottom: 7px;
    font-size: 16px;
  }

  .service-card p {
    font-size: 12px;
    line-height: 1.25;
  }

  .site-footer {
    align-items: flex-start;
    gap: 8px;
    padding-top: 10px;
    font-size: 11px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 8px 10px;
    font-size: 10px;
  }

  .social-icon {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 460px) {
  .wordmark {
    font-size: 58px;
  }

  .hero-wordmark {
    font-size: 76px;
  }

  .wordmark-close {
    margin-left: 88px;
  }

  .hero-wordmark .wordmark-close {
    margin-left: 112px;
  }

  .masthead-copy {
    align-items: stretch;
  }

  .masthead-socials {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    width: min(100%, 312px);
  }

  .masthead-socials a {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .masthead-socials .social-icon {
    width: 20px;
    height: 20px;
  }

  .button {
    width: 100%;
  }

  .work-heading h2 {
    font-size: 23px;
  }

  .service-card {
    padding: 12px;
  }

  .service-card h3 {
    font-size: 15px;
  }

  .service-card p {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .hero-wordmark {
    font-size: 68px;
  }

  .hero-wordmark .wordmark-close {
    margin-left: 96px;
  }

  .masthead-socials {
    width: 100%;
  }
}

@media (max-height: 760px) and (min-width: 861px) {
  .page-shell {
    gap: 14px;
    padding-top: 20px;
    padding-bottom: 16px;
  }

  .wordmark {
    font-size: 96px;
  }

  .hero-wordmark {
    font-size: 132px;
  }

  .hero-wordmark .wordmark-close {
    margin-left: 238px;
  }

  .work-heading h2 {
    font-size: 32px;
  }

  .service-card {
    padding: 20px 22px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .service-card p {
    font-size: 15px;
  }
}

@media (max-height: 690px) and (min-width: 861px) {
  .wordmark {
    font-size: 82px;
  }

  .hero-wordmark {
    font-size: 112px;
  }

  .hero-wordmark .wordmark-close {
    margin-left: 202px;
  }

  .service-card h3 {
    font-size: 18px;
  }

  .service-card p {
    font-size: 14px;
  }
}

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