:root {
  --black: #000;
  --surface: #0b0b0a;
  --surface-raised: #11110f;
  --white: #f4f2ed;
  --muted: #b5b0a6;
  --ochre: #a66b13;
  --ochre-bright: #c28224;
  --rule: rgba(166, 107, 19, 0.58);
  --serif: "Iowan Old Style", Baskerville, Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 280px;
  background:
    radial-gradient(circle at 50% -20%, rgba(125, 83, 22, 0.11), transparent 38rem),
    var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: 28px 0 80px;
}

a {
  color: inherit;
  text-decoration-color: rgba(244, 242, 237, 0.48);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--ochre-bright);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid var(--ochre-bright);
  outline-offset: 4px;
  border-radius: 2px;
}

.back {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}

.logo {
  display: block;
  width: min(400px, 100%);
  height: auto;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 28px;
  padding-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  text-decoration-color: var(--ochre);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.48em;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 {
  margin: clamp(42px, 6vw, 74px) 0 10px;
  font-size: clamp(2.7rem, 6vw, 5.3rem);
}

h2 {
  margin: 0 0 clamp(30px, 4vw, 52px);
  font-size: clamp(2.35rem, 4vw, 4.2rem);
}

.intro {
  max-width: 52rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 13px;
  margin-top: 34px;
}

.photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  min-width: 0;
  padding: 7px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  transition: border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.photo::after {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  content: "";
  pointer-events: none;
}

.photo:hover {
  border-color: var(--ochre-bright);
  background: var(--surface-raised);
  transform: translateY(-3px);
}

.photo:focus-visible {
  outline-offset: 3px;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about {
  margin-top: clamp(72px, 10vw, 132px);
  padding-top: clamp(38px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}

.about-lead {
  display: grid;
  grid-template-columns: minmax(240px, 370px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}

.about img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.44);
}

.about-copy,
.about-more {
  max-width: 76ch;
}

.about-copy p:first-child,
.about-more p:first-child {
  margin-top: 0;
}

.about-copy p,
.about-more p {
  color: #d5d1c9;
}

.about-more {
  margin-top: 30px;
  margin-left: min(calc(370px + clamp(32px, 5vw, 72px)), 35vw);
}

.about a {
  color: var(--ochre-bright);
}

@media (max-width: 1060px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  main {
    width: min(100% - 28px, 640px);
    padding-top: 18px;
  }

  .back {
    margin-bottom: 18px;
  }

  header {
    display: block;
    padding-bottom: 18px;
  }

  .logo {
    width: min(100%, 400px);
  }

  nav {
    justify-content: flex-start;
    gap: 10px 22px;
    margin-top: 22px;
    padding-bottom: 0;
    font-size: 0.72rem;
  }

  h1 {
    margin-top: 40px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 28px;
  }

  .photo {
    padding: 5px;
  }

  .about {
    margin-top: 78px;
    padding-top: 38px;
  }

  .about-lead {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about img {
    width: min(100%, 370px);
  }

  .about-more {
    margin-top: 0;
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  nav {
    display: grid;
  }
}

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

  .photo {
    transition: none;
  }
}
