@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --galv: #ecedea;
  --steel: #1b2225;
  --muted: #56605f;
  --rag: #0f7a72;
  --rag-deep: #0b3f3b;
  --line: #c9ccc7;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Archivo", system-ui, sans-serif;
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--galv);
  color: var(--steel);
  font: 400 1.0625rem/1.6 var(--body);
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--rag); text-underline-offset: 0.18em; }
a:hover { color: var(--rag-deep); }
:focus-visible { outline: 3px solid var(--rag); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0;
}
h2 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 2rem; }
h3 { font-size: clamp(1.7rem, 3.5vw, 2.25rem); margin-bottom: 0.75rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--steel);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

/* Header */
.bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--gutter);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--steel);
  font-weight: 600;
  text-decoration: none;
}
/* The W/E monogram from the original logo: W high, E dropped and tucked under */
.mono {
  display: grid;
  grid-template-columns: auto auto;
  font: 800 1.35rem/0.8 var(--display);
}
.mono span:last-child { padding-top: 0.55em; margin-left: -0.15em; color: var(--rag); }
.bar nav { display: flex; gap: 1.5rem; margin-left: auto; }
.bar nav a { color: var(--steel); text-decoration: none; }
.bar nav a:hover { color: var(--rag); }

/* Buttons */
.call {
  display: inline-block;
  background: var(--rag);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 3px;
}
.call:hover { background: var(--rag-deep); color: #fff; }
.call--small { padding: 0.55rem 1rem; font-size: 0.95rem; }
.quiet { color: var(--steel); font-weight: 600; }

/* Hero: the one loud thing on the page */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(3rem, 8vw, 6rem);
}
.hero h1 {
  grid-column: 1 / -1;
  font-size: clamp(3.6rem, 9.5vw, 8.5rem);
  line-height: 0.86;
  text-wrap: balance;
}
/* Let the headline sit in the hero grid so it can span both columns */
.hero__text { display: contents; }
.hero__text > :not(h1) { grid-column: 1; }
.hero__intro { align-self: center; }
.hero__photo { grid-column: 2; grid-row: 2; }
.lede {
  max-width: 34ch;
  margin: 1.75rem 0 2rem;
  font-size: 1.2rem;
  color: var(--muted);
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.hero__photo { margin: 0; }
.hero__photo img {
  width: 100%;
  border-radius: 3px;
  box-shadow: 0.9rem 0.9rem 0 var(--rag);
}

/* Services */
.services, .work {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  border-top: 1px solid var(--line);
}
.services__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.service img { aspect-ratio: 5 / 3; object-fit: cover; border-radius: 3px; margin-bottom: 1.5rem; }
.service p { color: var(--muted); max-width: 40ch; margin: 0 0 1rem; }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li { padding: 0.55rem 0; border-bottom: 1px solid var(--line); }

/* Build log */
.build { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.build:last-child { margin-bottom: 0; }
.build__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.build--pair .build__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: calc((100% - 0.75rem) * 2 / 3); }
.build__photos button {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 3px;
  overflow: hidden;
}
.build__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.25s ease; }
.build__photos button:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .build__photos img { transition: none; } }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  border-top: 1px solid var(--line);
}
.about img { border-radius: 3px; }
.about p { max-width: 58ch; }

/* Contact */
.contact {
  background: var(--rag-deep);
  color: #e4efed;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter) 2rem;
  text-align: center;
}
.contact h2 { color: #fff; margin-bottom: 1rem; }
.contact a { color: #fff; }
.contact__phone {
  display: inline-block;
  font: 800 clamp(3rem, 10vw, 6rem)/1 var(--display);
  text-decoration: none;
  margin-bottom: 1rem;
}
.contact__phone:hover { color: #9fd9d2; }
.contact p { margin: 0.4rem 0; }
.contact__links { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem !important; }
.fine { margin-top: 3rem !important; font-size: 0.85rem; color: #9fbcb8; }
.contact :focus-visible { outline-color: #fff; }

/* Photo viewer */
.viewer {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(92vw, 1440px);
  max-height: 92vh;
}
.viewer::backdrop { background: rgb(15 20 22 / 0.88); }
/* Width comes from the photo's shape, so thumbnail and full size fill the same box */
.viewer img {
  width: min(92vw, 1440px, calc(88vh * var(--ratio, 1.333)));
  height: auto;
  aspect-ratio: var(--ratio, 1.333);
  margin: 0 auto;
  border-radius: 3px;
  transition: filter 0.2s ease;
}
/* Upscaled thumbnail stays slightly soft until the full file arrives */
.viewer.is-loading img { filter: blur(2px); }
@media (prefers-reduced-motion: reduce) { .viewer img { transition: none; } }
.viewer form { display: flex; justify-content: flex-end; }
.viewer__close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem 0.25rem;
}

/* Narrow screens */
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; gap: 0.75rem 1.25rem; }
  .bar nav { order: 3; width: 100%; margin-left: 0; gap: 1.25rem; }
  .call--small { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero__photo { grid-column: 1; grid-row: 1; margin: 0 0.9rem 1rem 0; }
  .hero__text > :not(h1) { grid-column: 1; }
  .services__cols, .about { grid-template-columns: 1fr; }
  .about img { max-width: 14rem; }
  .build__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build--pair .build__photos { max-width: none; }
}
@media (max-width: 359px) {
  .call--small { display: none; }
}
