:root {
  --paper: #f6f1e7;
  --ink: #1c1916;
  --muted: #5c564e;
  --rule: #d8d0c2;
  --accent: #1e4a38;
  --display: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
}

::selection {
  background: #d5e4db;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--paper);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}

.skip:focus {
  top: 0.6rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem 2rem;
  padding: 1.15rem 1.75rem;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.wordmark {
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  color: var(--accent);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.05rem;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--ink);
}

main {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}

section {
  scroll-margin-top: 4.5rem;
  margin-top: 2.75rem;
}

section:first-child {
  margin-top: 0;
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.catalog {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.4rem 1.15rem;
}

.catalog a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.catalog img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1c1916;
}

.catalog span {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.catalog a:hover span {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.2rem 1.75rem 1.6rem;
}

.site-footer p {
  width: min(68rem, 100%);
  margin: 0 auto;
  font-family: var(--sans);
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--muted);
}

@media (max-width: 800px) {
  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.15rem 0.9rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  main {
    width: min(68rem, calc(100% - 2rem));
    padding-top: 1.6rem;
  }
}
