:root {
  --bg: #0c0c0c;
  --ink: #efeee9;
  --muted: #8e8b85;
  --line: #2a2a2a;
  --light: #d4a35a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Source Sans 3", "Instrument Sans", system-ui, sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

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

a {
  color: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.legal-body .site-header {
  position: relative;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wordmark-mark {
  position: relative;
  display: block;
  height: 2.05em;
  width: calc(2.05em * 475 / 302);
  flex-shrink: 0;
}

.wordmark-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.wordmark-mark .mark-on-light {
  opacity: 0;
}

.hero.hero-light .wordmark-mark .mark-on-dark {
  opacity: 0;
}

.hero.hero-light .wordmark-mark .mark-on-light {
  opacity: 1;
}

nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  position: relative;
}

.hero .wordmark {
  color: #f4f3ee;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.hero nav a {
  color: #f4f3ee;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.hero nav a:hover {
  color: #fff;
}

.hero.hero-light .wordmark,
.hero.hero-light nav a {
  color: #141414;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.45);
}

.hero.hero-light nav a:hover {
  color: #111;
}

.hero.hero-light .site-header {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.86) 0%,
    rgba(255, 255, 255, 0.78) calc(100% - 42px),
    transparent 100%
  );
}

.hero .site-header {
  left: 0;
  right: 0;
  transform: none;
  width: 100%;
  display: block;
  padding: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.88) 0%,
    rgba(8, 8, 8, 0.82) calc(100% - 42px),
    transparent 100%
  );
}

.hero .site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 2.8rem;
}

.hero-frame {
  display: block;
  position: relative;
  min-height: 100svh;
  background: #050505;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.hero-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 20px 40px;
  background: #0c0c0ce6;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 4.2vw, 3.1rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.15;
  max-width: 16ch;
}

.hero-copy p {
  margin-top: 10px;
  max-width: 42ch;
  color: #c9c5be;
  font-size: 0.98rem;
}

.placeholder {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 32px;
}

.section {
  padding: 72px 0;
}

.section h2 {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 16px;
}

.lede {
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 36px;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.work-list h3 {
  font-size: 1.15rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.work-list p {
  color: var(--muted);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact {
  padding: 0 0 72px;
}

.contact h2 {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 16px;
}

.contact p {
  color: var(--muted);
  max-width: 40ch;
  margin-bottom: 24px;
}

.contact a.btn {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 11px 16px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 400;
}

.contact a.btn:hover {
  border-color: var(--ink);
}

footer {
  padding: 0 0 40px;
  color: var(--muted);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--ink);
}

.legal {
  padding: 96px 0 80px;
  max-width: 62ch;
}

.legal h1 {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.legal h2 {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  margin: 28px 0 8px;
}

.legal h3 {
  font-size: 1rem;
  font-weight: 400;
  margin: 20px 0 8px;
}

.legal p,
.legal li {
  color: var(--muted);
  margin-bottom: 10px;
}

.legal a {
  color: var(--ink);
}

.legal ul {
  padding-left: 18px;
}

.flickr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}

.flickr-item {
  display: block;
  background: #050505;
  aspect-ratio: 1;
  overflow: hidden;
}

.flickr-item:nth-child(8n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}

.flickr-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
}

.gallery-links {
  display: flex;
  gap: 22px;
  margin-top: 22px;
  font-size: 0.85rem;
}

.gallery-links a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

.gallery-links a:hover {
  color: var(--ink);
}

@media (max-width: 800px) {
  .work-list,
  .split {
    grid-template-columns: 1fr;
  }

  .flickr-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flickr-item:nth-child(8n + 1) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-frame {
    min-height: 78svh;
  }

  .hero .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 3.4rem;
  }
}
