:root {
  --teal: #91B0AA;
  --sepia: #704214;
  --accent: #669999;
  --ink: #000;
  --paper: #fff;
  --script: "Italianno", "Snell Roundhand", "Apple Chancery", "Gabriola", "Segoe Script", cursive;
  --serif: "Sorts Mill Goudy", "Goudy Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

@font-face {
  font-family: "Italianno";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/italianno-400.woff2") format("woff2");
}

@font-face {
  font-family: "Sorts Mill Goudy";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/sorts-mill-goudy-400.woff2") format("woff2");
}

@font-face {
  font-family: "Sorts Mill Goudy";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/sorts-mill-goudy-400-italic.woff2") format("woff2");
}

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

html {
  background: var(--teal);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a {
  color: var(--sepia);
}

a:focus-visible {
  outline: 2px solid var(--sepia);
  outline-offset: 2px;
}

.mat {
  box-sizing: content-box;
  max-width: 850px;
  margin: 21px max(6px, calc((100% - 854px) / 2)) 40px;
  background: var(--paper);
  border: 2px solid var(--sepia);
}

.strip {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 850/112;
  object-fit: cover;
}

.mat-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.mat-body > * {
  min-width: 0;
}

.menu {
  padding: 18px 12px;
  color: var(--paper);
  background: linear-gradient(rgba(40, 20, 5, 0.2), rgba(40, 20, 5, 0.2)), url("/img/texture-menu.webp");
  background-size: auto, cover;
  font-size: 2rem;
  text-transform: lowercase;
}

.menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--script);
  line-height: 1.1;
}

.menu > ul {
  padding-left: 0.25em;
}

.menu .sub {
  padding-left: 12px;
  font-size: 1.7rem;
}

.menu a {
  color: var(--paper);
  text-decoration: none;
}

.wordmark {
  display: block;
  margin: 0 0 12px;
  color: var(--paper);
  font-family: var(--script);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.1;
  text-transform: lowercase;
}

.menu a[aria-current="page"] {
  color: var(--paper);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.menu a:hover {
  text-decoration: underline;
}

.menu a:focus-visible,
.foot a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.content {
  padding: 28px 32px;
}

.content a {
  text-underline-offset: 4px;
}

.page-title {
  margin: 0 0 12px;
  padding-left: 0.12em;
  color: var(--sepia);
  font-family: var(--script);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1.1;
  text-transform: lowercase;
}

.prose {
  max-width: 62ch;
}

.prose p {
  margin: 0 0 1em;
}

.prose blockquote {
  margin: 0 0 1em 1.25em;
  padding-left: 1em;
  border-left: 1px solid var(--sepia);
}

.note {
  margin: 0 0 .5em;
  font-style: italic;
}

.collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 32px 0 40px;
  padding: 0;
  list-style: none;
}

.collection {
  min-width: 0;
}

.collection:nth-child(2) {
  transform: translateY(24px);
}

.collection:nth-child(3) {
  transform: translateY(-12px);
}

.collection a {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.collection img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 2px solid var(--sepia);
}

.collection h2 {
  margin: 12px 0 6px;
  color: var(--sepia);
  font-size: 1.35rem;
  font-weight: 400;
}

.collection p {
  margin: 0;
}

.collection a:hover h2 {
  text-decoration: underline;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 144px));
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.thumbs a {
  display: block;
}

.thumbs img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 2px solid var(--sepia);
}

.thumbs a:hover img,
.thumbs a:focus-visible img {
  border-color: var(--accent);
}

figure.photo {
  margin: 0 0 16px;
}

figure.photo img {
  display: block;
  box-sizing: content-box;
  max-width: calc(100% - 4px);
  height: auto;
  border: 2px solid var(--sepia);
}

figcaption {
  margin-top: 10px;
  font-size: 1rem;
}

figcaption strong {
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--sepia);
}

.photo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.photo-nav a {
  color: var(--sepia);
  text-decoration: none;
}

.photo-nav a:hover {
  text-decoration: underline;
}

.foot {
  grid-column: 1 / -1;
  padding: 10px 16px;
  color: var(--paper);
  background: linear-gradient(rgba(40, 20, 5, 0.2), rgba(40, 20, 5, 0.2)), url("/img/texture-footer.webp");
  background-size: auto, cover;
  font-size: .95rem;
  text-align: center;
}

.foot p {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.intro {
  position: relative;
}

.stage {
  position: relative;
  aspect-ratio: 850/550;
  background: var(--teal);
  overflow: hidden;
}

.frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: 12.5s linear forwards;
}

.frame-cowboy {
  animation-name: cowboy;
}

.frame-beach {
  animation-name: beach;
}

.frame-boots {
  animation-name: boots;
}

.intro .menu {
  box-sizing: border-box;
}

@keyframes cowboy {
  0% { opacity: 0; }
  12%, 32% { opacity: 1; }
  44%, 100% { opacity: 0; }
}

@keyframes beach {
  0%, 44% { opacity: 0; }
  56%, 76% { opacity: 1; }
  88%, 100% { opacity: 0; }
}

@keyframes boots {
  0%, 88% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes menu-in {
  0% { opacity: 0; }
  8% { opacity: 1; }
  100% { opacity: 1; }
}

@media (min-width: 700px) {
  .mat-body {
    grid-template-columns: 160px 1fr;
  }

  .menu {
    padding-inline: 8px;
  }

  .menu li {
    line-height: 1;
  }

  .menu > ul > li + li {
    margin-top: 0.35em;
  }

  .menu .sub {
    margin-top: 0.25em;
  }

  .menu .sub > li + li {
    margin-top: 0.25em;
  }

  .intro .menu {
    position: absolute;
    left: 0;
    top: 21%;
    width: 160px;
    min-height: 60%;
    box-sizing: border-box;
    opacity: 0;
    animation: menu-in 12.5s linear forwards;
    z-index: 1;
  }
}

@media (max-width: 699px) {
  .mat {
    margin: 6px;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 10px;
    padding-inline: 8px;
  }

  .wordmark {
    flex: 0 0 auto;
    margin: 0;
  }

  .menu > ul {
    display: block;
    flex: 1 1 180px;
    min-width: 0;
  }

  .menu li,
  .menu .sub {
    display: inline;
    padding: 0;
    margin: 0;
  }

  .menu .sub {
    display: flex;
    flex-wrap: wrap;
    gap: 0 10px;
  }

  .menu a:not(.wordmark) {
    display: inline-block;
    margin: 0 16px 6px 0;
  }

  .menu .sub a {
    margin-right: 0;
  }

  .content {
    padding: 16px;
  }

  .collections {
    grid-template-columns: minmax(0, 1fr);
    margin: 24px 0 0;
  }

  .collection:nth-child(2),
  .collection:nth-child(3) {
    transform: none;
  }

  .thumbs {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frame,
  .intro .menu {
    animation: none;
  }

  .frame-boots,
  .intro .menu {
    opacity: 1;
  }
}
