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

@font-face {
  font-family: "Instrument Serif";
  src: url("./fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  background: #f4f1e9;
  color: #272822;
  font-family: "Instrument Serif", Georgia, serif;
  --rust: #a34328;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

body { margin: 0; }

main {
  width: min(100%, 112rem);
  margin-inline: auto;
  padding: clamp(1.5rem, 3.6vw, 4rem) clamp(1.25rem, 4.6vw, 5rem) 2.5rem;
}

.masthead,
figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.mark { width: 2.25rem; height: auto; }
.rule { height: 1px; background: #c8c4b8; flex: 1; }

.masthead p {
  margin: 0;
  font: 400 0.875rem/1.4 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1 {
  margin: clamp(2.25rem, 4vw, 4.25rem) 0 clamp(2.1rem, 3.4vw, 3.75rem);
  font-size: clamp(4.6rem, 15vw, 16.8rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.88;
}

h1 span { color: var(--rust); font-style: italic; }
figure { margin: 0; }

.landscape {
  display: block;
  width: 100%;
  aspect-ratio: 2.85 / 1;
  object-fit: cover;
  object-position: 63% 50%;
  background: #d6bd9e;
}

figcaption { margin-top: 1rem; }
.peak { font-size: 1.55rem; font-style: italic; }

figcaption a {
  color: #514c42;
  font: 400 0.8125rem/1.5 var(--mono);
  text-decoration-color: #aaa395;
  text-underline-offset: 0.25em;
}

figcaption a:hover { color: var(--rust); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
::selection { background: #dfb99d; color: #272822; }

@media (max-width: 600px) {
  main { padding-top: 1.25rem; }
  .mark { width: 2rem; }
  h1 { margin-block: 3rem 2rem; font-size: clamp(3.4rem, 22vw, 8rem); }
  .landscape { aspect-ratio: 0.96; }
  figcaption { align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
}
