@font-face {
  font-family: "Berkeley Mono";
  src: url("/public/fonts/BerkeleyMono-Regular.otf") format("opentype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d1c1a;
  --ground: #ffffff;
  --blue: #1515fc;
  --muted: #6d6a63;
  --line: #1d1c1a;
  --footer: #eeeff1;
  --gutter: clamp(16px, 3vw, 40px);
  --section: clamp(56px, 7vw, 112px);
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ground);
  font-family: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.035em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #fff;
  background: var(--blue);
}

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

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 20;
  padding: 8px 10px;
  color: var(--ground);
  background: var(--ink);
  transform: translateY(-140%);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gutter);
  align-items: start;
  padding: 8px var(--gutter);
  font-size: 0.86rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 2vw, 40px);
  justify-content: flex-end;
}

.hero picture,
.hero img {
  width: 100%;
  height: min(100svh, 900px);
}

.hero img,
.gallery img {
  object-fit: cover;
}

.section-pad {
  padding: var(--section) var(--gutter);
  border-top: 1px solid var(--line);
}

.intro {
  border-top: 0;
}

.intro-copy {
  max-width: 760px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(1.6rem, 3.1vw, 3.45rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.06em;
}

h1 + p,
p + p {
  margin-top: 1rem;
}

h2 {
  font-size: 1rem;
  font-weight: 400;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 1rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button:hover,
button:hover {
  text-decoration: none;
  background: rgba(0, 0, 0, 0.04);
}

.section {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) minmax(0, 760px);
  gap: clamp(24px, 4vw, 64px);
}

.feature-grid {
  display: grid;
  gap: 1.1rem;
}

.feature-group {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
}

.feature-group p {
  max-width: 560px;
}

.gallery {
  display: grid;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 24px;
}

.gallery-grid {
  display: grid;
  gap: 16px;
}

.gallery-grid-two {
  grid-template-columns: 2fr 1fr;
}

.gallery-grid-two.reverse {
  grid-template-columns: 1fr 2fr;
}

.gallery img {
  height: clamp(320px, 46vw, 620px);
  border-radius: var(--radius);
}

.split > div {
  max-width: 760px;
}

.price {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.price span {
  font-size: 0.55em;
  letter-spacing: -0.03em;
}

.contact-block {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  justify-items: start;
}

.contact-link {
  display: inline-flex;
  width: fit-content;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  line-height: inherit;
  cursor: pointer;
}

.contact-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: baseline;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--footer);
  font-size: 0.82rem;
}

.footer-link {
  justify-self: end;
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
    letter-spacing: -0.02em;
  }

  .site-header {
    position: fixed;
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .nav {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 8px 12px;
    font-size: 0.72rem;
    line-height: 1;
    white-space: nowrap;
  }

  .nav-logo {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
  }

  .nav-links {
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
  }

  .nav-links a {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
  }

  .hero picture,
  .hero img {
    height: 54svh;
    min-height: 320px;
  }

  .intro,
  .section,
  .feature-group {
    grid-template-columns: 1fr;
  }

  .intro {
    padding-top: 3.4rem;
  }

  h1 {
    font-size: 1.5rem;
    line-height: 1.14;
  }

  .feature-grid {
    gap: 1.35rem;
  }

  .feature-group {
    gap: 0.25rem;
  }

  .feature-group h3 {
    margin-bottom: 0;
  }

  .price {
    font-size: 1.6rem;
  }

  .site-footer {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
  }

  .gallery-grid-two,
  .gallery-grid-two.reverse {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: auto;
    max-height: none;
  }

  .section-pad {
    padding-top: 3.4rem;
    padding-bottom: 3.4rem;
  }
}
