:root {
  color-scheme: light;
  --color-background: #fbfaf7;
  --color-text: #292d2b;
  --color-muted: #777b75;
  --color-accent: #64745e;
  --color-line: #e9e7e0;
  --font-heading: "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
}

.hero {
  display: grid;
  min-height: 55vh;
  min-height: 55svh;
  place-items: center;
  padding: 3rem 1.25rem;
  background:
    linear-gradient(rgb(22 26 22 / 38%), rgb(22 26 22 / 48%)),
    url("images/PXL_20261017_161906449.jpg") center / cover no-repeat;
  color: #fff;
  text-align: center;
}

.hero__content {
  width: 100%;
  max-width: 42rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 12vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
}

.hero p {
  margin: 1rem 0 0;
  color: rgb(255 255 255 / 90%);
  font-size: 1.05rem;
}

.content {
  width: min(calc(100% - 2.5rem), 42rem);
  margin-inline: auto;
}

.story {
  font-size: 1.125rem;
}

.posts {
  padding-block: 3rem 1rem;
}

.posts > h2,
.about h2 {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.2;
}

.post {
  padding-block: 0 2.25rem;
}

.post + .post {
  padding-top: 2rem;
  border-top: 1px solid var(--color-line);
}

.post__date {
  margin: 0 0 0.35rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post h3 {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.post__image {
  display: grid;
  min-height: 12rem;
  margin-bottom: 1rem;
  place-items: center;
  background: #e9e9e2;
  color: var(--color-muted);
  font-family: var(--font-heading);
}

.post p:not(.post__date) {
  margin: 0 0 0.75rem;
  color: var(--color-muted);
}

.post a {
  color: var(--color-accent);
  text-underline-offset: 0.2em;
}

.story-media {
  margin: 1rem 0 1.5rem;
}

.story-media img,
.story-media video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.story-media img {
  cursor: zoom-in;
}

.story-media img:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.image-viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000;
  box-sizing: border-box;
}

.image-viewer[open] {
  display: grid;
  place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
}

.image-viewer::backdrop {
  background: #000;
}

.image-viewer img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-out;
}

.story-media audio {
  display: block;
  width: 100%;
}

.story-media video {
  aspect-ratio: 16 / 9;
  background: #000;
}

.about {
  padding-block: 1rem 3rem;
}

.about h2 {
  margin-bottom: 0.5rem;
}

.about p {
  margin: 0;
  color: var(--color-muted);
}

.site-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 700px) {
  .hero {
    min-height: 65vh;
    min-height: 65svh;
  }

  .posts {
    padding-top: 4rem;
  }

  .post {
    padding-bottom: 2.75rem;
  }

  .post + .post {
    padding-top: 2.5rem;
  }

  .post__image {
    min-height: 20rem;
  }
}
