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

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

/* Alex Rigby / Daily Pilgrim: static site styles
   Palette: chalk (page), ink (text, dark sections), moss (accents),
   mist (soft panels), leather (belts only).
   Fonts: Young Serif (headings), Karla (body), loaded from Google Fonts. */

:root {
  --chalk: #f1f3f0;
  --ink: #1d2829;
  --moss: #4d6a55;
  --moss-deep: #384f40;
  --mist: #d9e0dc;
  --sage-light: #bcd1c1;
  --leather: #8a5b3d;
  --leather-deep: #6e4529;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --measure: 38rem;
  --trail: rgba(77, 106, 85, 0.5);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}

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

a {
  color: var(--moss-deep);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--chalk);
  padding: 0.6rem 1rem;
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}

/* Headings */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.25rem, 5.2vw, 3.75rem);
  line-height: 1.12;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1.1rem;
}

/* Header */

.site-header {
  padding-block: 1.25rem;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
}

.brand-sub {
  font-size: 0.9rem;
  color: var(--moss);
  letter-spacing: 0.02em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--trail);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--moss);
}

.nav-toggle {
  display: none;
  font: inherit;
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 52rem) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    width: 100%;
  }

  .js .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.5rem;
  }

  .site-nav a {
    display: inline-block;
    padding-block: 0.5rem;
  }
}

/* Trail divider: a dashed footpath with one waymark at its start */

.trail {
  position: relative;
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
  border-top: 2px dashed var(--trail);
}

.trail::before {
  content: "";
  position: absolute;
  left: 0;
  top: -8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--moss);
}

/* Sections */

.section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

/* Home hero */

.hero {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 7vw, 5.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-intro {
  max-width: 34rem;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
}

.arch {
  margin: 0;
  max-width: 24rem;
  justify-self: end;
  width: 100%;
}

.arch img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--mist);
  border-radius: 999px 999px 4px 4px;
}

@media (max-width: 52rem) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .arch {
    justify-self: start;
    max-width: 15rem;
  }
}

/* Buttons */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: var(--chalk);
}

.btn:hover {
  background: var(--moss-deep);
  border-color: var(--moss-deep);
  color: var(--chalk);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
}

.btn-quiet:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--chalk);
}

.btn-leather {
  background: var(--leather);
  border-color: var(--leather);
}

.btn-leather:hover {
  background: var(--leather-deep);
  border-color: var(--leather-deep);
}

/* Story block */

.story-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.2fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}

.story-grid h2 {
  margin-bottom: 0;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  max-width: 30rem;
}

.story-text {
  max-width: var(--measure);
}

@media (max-width: 52rem) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Ways to walk together: linked rows, divided by the trail */

.ways {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-bottom: 2px dashed var(--trail);
}

.ways li {
  border-top: 2px dashed var(--trail);
}

.ways a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 0.5rem clamp(1.5rem, 5vw, 4rem);
  padding-block: 1.6rem;
  text-decoration: none;
  color: var(--ink);
}

.ways .way-title {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  line-height: 1.2;
}

.ways a:hover .way-title {
  color: var(--moss-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

@media (max-width: 40rem) {
  .ways a {
    grid-template-columns: 1fr;
  }
}

/* Inner page heads and prose */

.page-head {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 3.5rem);
}

.page-head .lede {
  margin-bottom: 0;
  max-width: 44rem;
}

.prose {
  max-width: var(--measure);
}

.wrap.prose {
  max-width: 68rem;
}

.wrap.prose > * {
  max-width: var(--measure);
}

.prose h2 {
  margin-top: 2.75rem;
}

.wrap.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 21rem);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  max-width: 68rem;
}

.wrap.split > .prose {
  max-width: var(--measure);
}

.photo {
  margin: 0;
  position: sticky;
  top: 2rem;
}

.photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--mist);
  border-radius: 4px;
}

@media (max-width: 52rem) {
  .wrap.split {
    grid-template-columns: 1fr;
  }

  .photo {
    order: -1;
    position: static;
    max-width: 15rem;
  }
}

.film {
  margin: 0 0 1.5rem;
}

.film video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border-radius: 4px;
}

.loop-figure video {
  display: block;
  width: 100%;
  aspect-ratio: 996 / 1080;
  object-fit: cover;
  background: var(--mist);
  border-radius: 4px;
}

.film-band {
  aspect-ratio: 1280 / 548;
  overflow: hidden;
  border-radius: 4px;
  background: var(--mist);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.film-band video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prose .note {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.4;
  margin: 2rem 0 0;
  padding-left: 1.25rem;
  border-left: 2px dashed var(--trail);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.prose li {
  margin-bottom: 0.6rem;
}

.prose li::marker {
  color: var(--moss);
}

/* Embeds */

.embed {
  margin: 1.5rem 0 2rem;
}

.embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.75rem;
  margin: 1.5rem 0 2rem;
}

.video {
  margin: 0;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--mist);
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.band {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.band-alt {
  background: var(--mist);
}

.yt-facade {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--chalk);
  font: inherit;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(188, 209, 193, 0.42), rgba(188, 209, 193, 0) 58%),
    linear-gradient(180deg, #223433, #1d2829);
}

.yt-play {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 4.5rem;
  height: 4.5rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--chalk);
}

.yt-play::after {
  content: "";
  position: absolute;
  left: 53%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 0.8rem 0 0.8rem 1.3rem;
  border-color: transparent transparent transparent var(--ink);
}

.yt-facade:hover .yt-play {
  background: var(--sage-light);
}

.yt-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  padding-inline: 1rem;
  font-size: 0.95rem;
  text-align: center;
  color: var(--sage-light);
}

.yt-noscript {
  padding: 1rem;
  margin: 0;
}

.band-alt .video-frame {
  background: var(--chalk);
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.band-info h2 {
  margin-top: 0;
}

.band-info p {
  max-width: 30rem;
}

.band-extra {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 2px dashed var(--trail);
  max-width: 30rem;
}

.band-extra p {
  margin-bottom: 0.9rem;
}

.band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 52rem) {
  .band-grid {
    grid-template-columns: 1fr;
  }
}

.video figcaption {
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* Support note and contact */

.support-note {
  font-size: 0.98rem;
  color: var(--moss-deep);
  padding-bottom: 2.5rem;
}

.contact {
  background: var(--ink);
  color: var(--chalk);
  padding-block: clamp(3rem, 7vw, 5rem) 2.5rem;
}

.contact h2 {
  color: var(--chalk);
}

.contact p {
  max-width: var(--measure);
}

.contact a {
  color: var(--sage-light);
}

.contact a:hover {
  color: #ffffff;
}

.contact-line {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.contact-label {
  display: block;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--sage-light);
  margin-top: 1.1rem;
  margin-bottom: 0.1rem;
}

.contact .small {
  font-size: 0.98rem;
  margin-top: 1.5rem;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px dashed rgba(188, 209, 193, 0.35);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}

.site-footer p {
  margin: 0;
}

/* Placeholder highlight: anything still wrapped in .fill needs your words */

.fill {
  background: #fff3b0;
  color: #5a4500;
  outline: 2px dashed #b58900;
  padding: 0 0.25em;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}
