:root {
  color-scheme: light dark;
  --paper: light-dark(#f6f3eb, #1d1d18);
  --ink: light-dark(#231f1a, #f7f0df);
  --muted: light-dark(#514a3e, #ccc2ac);
  --rule: light-dark(#d4ccbc, #494237);
  --focus: light-dark(#305758, #aadac9);
  --max-width: 77rem;
  --gutter: clamp(1rem, 5vw, 4.75rem);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
a { color: inherit; }
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .125rem 1.25rem;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: .625rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.052em;
  text-decoration: none;
}

.navigation, .service-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .125rem 1rem;
}

.navigation a, .service-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .45em;
  text-underline-offset: .3em;
}

.navigation a {
  font-size: .875rem;
  text-decoration: none;
}

.navigation a:hover, .navigation .gallery { text-decoration: underline; }
.navigation .gallery { font-weight: 700; }

.content {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 6.75rem) var(--gutter);
}

.intro {
  max-width: 58rem;
  margin-bottom: clamp(1.7rem, 5vw, 4.25rem);
}

h1, h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.52rem, 8vw, 7.1rem);
  letter-spacing: -.058em;
  line-height: .96;
  text-wrap: balance;
}

.intro p {
  color: var(--muted);
  max-width: 57ch;
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.75rem, 2vw, 1.45rem);
}

.service {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: .7rem;
  min-width: 0;
  padding: clamp(1.25rem, 3.65vw, 3.1rem);
  border-radius: .4rem;
}

.photography {
  background: light-dark(#e2b69a, #52392d);
  color: light-dark(#251914, #fff0df);
  --focus: light-dark(#4d281d, #ffd5b6);
}

.software {
  background: light-dark(#c9d6c7, #2a423d);
  color: light-dark(#182823, #edf7e8);
  --focus: light-dark(#22443a, #cbeed0);
}

.service h2 {
  font-size: clamp(2rem, 4.6vw, 3.8rem);
  letter-spacing: -.045em;
  line-height: 1;
}

.service p { max-width: 40ch; }

.service-actions {
  margin-top: auto;
  padding-top: .65rem;
}

.service-actions a { font-size: .9rem; }
.primary { font-weight: 700; }
.secondary { text-decoration: none; }
.secondary:hover { text-decoration: underline; }

@media (max-width: 40rem) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .masthead-inner { align-items: flex-start; }
}

@media (max-width: 25rem) {
  .navigation { gap: 0 .75rem; }
  .navigation a { font-size: .82rem; }
}
