@font-face {
  font-family: Roboto;
  src: url("/assets/roboto-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url("/assets/roboto-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f5ed;
  --pale: #f0e9dd;
  --ink: #251c17;
  --quiet: #62564d;
  --rule: #cdc1b0;
  --accent: #8b3529;
  --accent-hover: #6f271f;
  --dark: #2e221d;
  --serif: "Baskervville", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
  text-rendering: optimizeLegibility;
}
::selection { background: #e8c2aa; color: var(--ink); }
[hidden] { display: none !important; }
img { display: block; max-inline-size: 100%; }
figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
section[id] { scroll-margin-top: 24px; }

.shell { width: min(1280px, calc(100% - 108px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  background: var(--paper);
  padding: 8px 12px;
}
.skip-link:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  gap: 24px;
}
.wordmark {
  width: fit-content;
  font: 400 clamp(1.4rem, 2.08vw, 1.93rem)/1.1 var(--serif);
  text-decoration: none;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.masthead nav, .header-end, .languages {
  display: flex;
  align-items: center;
}
.site-nav { gap: clamp(20px, 3.1vw, 45px); }
.site-nav a, .top-contact, .top-social {
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover, .top-contact:hover, .top-social:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-end { justify-self: end; gap: clamp(18px, 2.5vw, 36px); }
.top-social { color: var(--quiet); }
.languages { gap: 9px; font-size: .76rem; font-weight: 500; color: var(--quiet); }
.languages a { text-decoration: none; padding-block: 7px; }
.languages a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.language-divider { color: #8a7a6b; }
.top-contact { color: var(--accent); }
.arrow { display: inline-block; margin-inline-start: .2em; }
.arrow--diagonal {
  position: relative;
  display: inline-block;
  width: .66em;
  height: .66em;
  flex: none;
}
.arrow--diagonal::before, .arrow--diagonal::after { position: absolute; content: ""; }
.arrow--diagonal::before {
  top: 0;
  right: 0;
  width: .5em;
  height: .5em;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}
.arrow--diagonal::after {
  top: 0;
  right: 1px;
  width: .81em;
  height: 1px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1.07fr;
  align-items: center;
  gap: clamp(32px, 5vw, 78px);
  padding-block: clamp(52px, 6.5vw, 99px) clamp(54px, 6.75vw, 104px);
}
.hero-copy { padding-bottom: 24px; }
.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 29px;
  height: 1px;
  background: currentColor;
  content: "";
  flex: none;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 {
  margin-top: 24px;
  font-size: clamp(3.45rem, 7.05vw, 7.45rem);
  line-height: .91;
  letter-spacing: -.066em;
}
h1 em { color: var(--accent); font-weight: 400; }
.hero-text { max-width: 42ch; margin-top: 29px; color: var(--quiet); font-size: 1.03rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 31px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 49px;
  padding: 11px 20px;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--accent);
  color: #fffaf3;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 500;
}
.button:hover { background: var(--accent-hover); }
.text-link { width: fit-content; font-size: .88rem; font-weight: 500; text-underline-offset: 5px; }
.text-link:hover { color: var(--accent); }
.hero-photo {
  background: var(--pale);
  aspect-ratio: 1.08;
  overflow: hidden;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.photo-caption {
  margin-top: 11px;
  color: var(--quiet);
  font-size: .78rem;
}

.section-rule { border-top: 1px solid var(--rule); }
.section-inner { padding-block: clamp(54px, 7.25vw, 106px); }
h2 {
  font-size: clamp(2.7rem, 5vw, 5.12rem);
  line-height: .96;
  letter-spacing: -.06em;
}
.work-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 32px; }
.work-grid {
  display: grid;
  grid-template-columns: 1fr .95fr 1fr;
  align-items: start;
  gap: clamp(33px, 4vw, 60px) clamp(17px, 2.4vw, 34px);
}
.project { min-width: 0; }
.project:nth-child(2) { margin-top: clamp(28px, 4vw, 57px); }
.project-media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--pale);
  aspect-ratio: 4 / 4.55;
  overflow: hidden;
  text-decoration: none;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.project-media:hover img { transform: scale(1.035); }
.project-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
  font-size: clamp(1.35rem, 2.02vw, 1.93rem);
  line-height: 1.08;
  letter-spacing: -.034em;
}
.project-meta { margin-top: 5px; color: var(--quiet); font-size: .8rem; }
.project-description { margin-top: 9px; color: var(--quiet); font-size: .91rem; line-height: 1.5; }
.project-links { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 8px; font-size: .78rem; color: var(--accent); }
.project-links a { text-underline-offset: 3px; }

.service-section { background: var(--pale); border-block: 1px solid #ddd0bf; }
.section-columns {
  display: grid;
  grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  gap: clamp(32px, 7vw, 106px);
  align-items: start;
}
.section-intro { max-width: 35ch; margin-top: 19px; color: var(--quiet); }
.services-list { list-style: none; padding: 0; margin: 0; }
.services-list li { border-bottom: 1px solid var(--rule); }
.services-list li:first-child { border-top: 1px solid var(--rule); }
.service-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 25px;
  padding: 21px 0;
  text-decoration: none;
}
.service-link h3 {
  font-size: clamp(1.42rem, 2.54vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -.042em;
}
.service-link:hover h3 { color: var(--accent); }
.service-link p { margin-top: 6px; max-width: 56ch; color: var(--quiet); font-size: .94rem; }
.service-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1rem;
  transition: background .2s, color .2s;
}
.service-link:hover .service-arrow { background: var(--accent); color: var(--paper); border-color: var(--accent); }

.about-section .section-columns { align-items: center; }
.about-content { max-width: 57ch; }
.about-content > p + p { margin-top: 13px; }
.client-line { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--rule); }
.client-line p:first-child {
  color: var(--quiet);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.client-line p:last-child { margin-top: 5px; font: 1.38rem/1.45 var(--serif); }

.contact-section {
  background: var(--dark);
  color: var(--paper);
  color-scheme: dark;
}
.contact-section h2 { max-width: 10ch; }
.contact-section .section-intro { color: #e3d6c9; }
.contact-section :focus-visible { outline-color: #f0bc9e; }
.quote-form { min-width: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 20px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 6px; font-size: .85rem; }
.field--wide { grid-column: 1 / -1; }
.field-label { font-weight: 500; }
.field-note { color: #e3d6c9; font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #8a7466;
  border-radius: 2px;
  background: #3a2d26;
  color: #fffaf4;
  padding: 9px 11px;
}
.field textarea { min-height: 100px; resize: vertical; }
.field ::placeholder { color: #ddcfc4; opacity: 1; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 21px; }
.contact-section .button { background: #f2e6d5; color: var(--dark); }
.contact-section .button:hover { background: #e8c2aa; }
.form-note { color: #e3d6c9; font-size: .875rem; }
.form-status { margin-top: 18px; color: var(--paper); }
.contact-email { margin-top: 18px; overflow-wrap: anywhere; }
.contact-section .button:disabled { cursor: wait; opacity: .7; }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 25px;
  min-height: 90px;
  padding-block: 20px;
}
.footer-note { font-size: .82rem; color: var(--quiet); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }

.gallery-dialog {
  width: min(900px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  padding: 0;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.gallery-dialog::backdrop { background: #241914d9; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.dialog-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.04em; line-height: 1.14; }
.dialog-close { min-height: 40px; padding: 5px 9px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font-size: .8rem; }
.dialog-close:hover { border-color: var(--accent); }
.gallery-photo {
  width: 100%;
  height: min(66dvh, 670px);
  object-fit: contain;
  background: var(--pale);
}
.gallery-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 11px 16px;
}
.gallery-caption { font-size: .88rem; color: var(--quiet); }
.gallery-full-size { display: inline-block; margin-top: 5px; font-size: .8rem; color: var(--accent); }
.gallery-controls { display: flex; align-items: center; flex: none; gap: 9px; }
.gallery-count { min-width: 3ch; text-align: center; font-size: .75rem; }
.gallery-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
}
.gallery-controls button:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 1080px) {
  .shell { width: calc(100% - 72px); }
  .hero { gap: 33px; }
  .hero-photo { aspect-ratio: 1; }
}
@media (max-width: 790px) {
  .shell { width: calc(100% - 44px); }
  .masthead-inner { grid-template-columns: 1fr auto; gap: 0 16px; padding: 13px 0 7px; }
  .header-end { grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; gap: 23px; padding-top: 5px; }
  .site-nav a { display: inline-block; padding-block: 8px; }
  .hero { padding-top: 41px; grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(3.5rem, 12.4vw, 7.1rem); }
  .hero-text { margin-top: 21px; }
  .hero-actions { margin-top: 22px; }
  .hero-photo { aspect-ratio: 1.23; }
  .section-columns { grid-template-columns: 1fr; gap: 24px; }
  .section-intro { margin-top: 12px; }
  .work-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .project:nth-child(2) { margin-top: 0; }
  .project-title { font-size: 1.52rem; }
}
@media (max-width: 510px) {
  .shell { width: calc(100% - 36px); }
  .wordmark { font-size: 1.45rem; }
  .top-contact { display: none; }
  .header-end { gap: 12px; }
  .work-heading { align-items: start; flex-direction: column; gap: 11px; margin-bottom: 20px; }
  .work-grid { grid-template-columns: 1fr; gap: 28px; }
  .project-media { aspect-ratio: 1.1; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-inner { align-items: start; flex-direction: column; }
  .gallery-details { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
