/* Pack Light — packlighttrail.com
   Palette drawn from the leather-patch avatar and journal-stamp banners. */

:root {
  --ink: #292b2a;
  --ink-soft: #4a433c;
  --cream: #f4e8c8;
  --parchment: #d2c09e;
  --parchment-deep: #c4ae87;
  --leather: #6b4430;
  --leather-deep: #3a2318;
  --stitch: #8a5a3c;
  --rule: #292b2a;
  --focus: #6b4430;
  --max: 68rem;
  --measure: 38rem;
  --header-h: 4.25rem;
  --space: 1.25rem;
}

@font-face {
  font-family: Oswald;
  src: url("/fonts/oswald-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Oswald;
  src: url("/fonts/oswald-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/fonts/newsreader-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/fonts/newsreader-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Newsreader;
  src: url("/fonts/newsreader-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-italic-500.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--parchment);
  font-family: Newsreader, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--leather);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  font-family: Oswald, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.skip:focus {
  top: 0.75rem;
  color: var(--cream);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem 1.25rem;
  padding: 0.7rem var(--space);
  background: var(--parchment);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}

.brand:hover {
  color: var(--ink);
}

.brand img,
.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
}

.brand-name {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
}

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

/* ---------- Layout ---------- */

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--space)));
  margin-inline: auto;
}

.measure {
  max-width: var(--measure);
  margin-inline: auto;
  text-align: center;
}

main section {
  padding: 4.25rem 0;
}

.section-label {
  margin: 0 0 1.25rem;
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3.5rem var(--space) 4.25rem;
  background-image: url("/images/parchment-hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7rem;
  background: linear-gradient(to bottom, transparent, var(--parchment));
  z-index: 0;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-stamp {
  width: min(13.5rem, 62vw);
  height: auto;
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0;
  padding-bottom: 0.72rem;
  border-bottom: 2px solid var(--ink);
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 12vw, 5.4rem);
  letter-spacing: 0.06em;
  line-height: 0.95;
  text-transform: uppercase;
}

.tagline {
  margin: 1rem 0 0;
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 3.4vw, 1.45rem);
  letter-spacing: 0.03em;
  color: var(--ink);
}

.dek {
  margin: 1.15rem 0 0;
  max-width: 26rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero-badge {
  margin: 1.35rem 0 0;
  padding: 0.38rem 0.85rem;
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leather-deep);
  background: color-mix(in srgb, var(--cream) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--leather) 50%, transparent);
  border-radius: 2px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.85rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.25rem;
  background: var(--ink);
  color: var(--cream);
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 2px;
}

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

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

.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}

.btn svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

/* ---------- Trail rule ---------- */

.trail-rule {
  display: flex;
  justify-content: center;
  padding: 0 var(--space);
  color: var(--ink);
}

.trail-rule svg {
  width: min(22rem, 78vw);
  height: auto;
  overflow: visible;
}

.trail-rule .trail-path {
  stroke: var(--leather-deep);
  stroke-width: 1.35;
  stroke-linecap: round;
  fill: none;
  opacity: 0.62;
}

.trail-rule .trail-dots {
  fill: var(--leather-deep);
  opacity: 0.9;
}

/* ---------- The Show ---------- */

#show {
  padding-top: 2rem;
}

.lead {
  margin: 0 0 1.25rem;
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 1.85rem);
  line-height: 1.3;
  color: var(--ink);
}

.thesis {
  margin: 0 0 1.5rem;
  font-family: "Cormorant Garamond", Newsreader, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.35;
  color: var(--leather);
}

#show p:last-child {
  margin: 0;
  color: var(--ink);
}

/* ---------- Verse ---------- */

.verse {
  margin: 0;
  padding: 3.75rem var(--space);
  background: var(--leather-deep);
  color: var(--cream);
}

.verse blockquote {
  margin: 0 auto;
  max-width: 36rem;
  border: 0;
  padding: 0;
}

.verse p {
  margin: 0;
  font-family: "Cormorant Garamond", Newsreader, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.45rem, 3.4vw, 1.95rem);
  line-height: 1.4;
  text-align: center;
  text-wrap: pretty;
}

.verse figcaption {
  display: block;
  margin-top: 1.35rem;
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: color-mix(in srgb, var(--cream) 80%, white);
}

/* ---------- Watch ---------- */

#watch .measure p {
  margin: 0 0 1.5rem;
}

.coming-kicker {
  margin: -0.35rem 0 0.85rem;
  font-family: Oswald, sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leather);
}

#watch .coming-kicker {
  margin-bottom: 0.85rem;
}

/* ---------- Trail notes / today's post ---------- */

#trail-notes {
  padding-top: 3.25rem;
}

.trail-notes-title {
  margin-bottom: 0.7rem;
}

#trail-notes .measure > p:not(.lead):not(.section-label) {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

.timeline {
  position: relative;
  width: min(31rem, 100%);
  margin-inline: auto;
  text-align: center;
}

.timeline-fallback {
  padding: 1.85rem 1.4rem 1.95rem;
  background: color-mix(in srgb, var(--cream) 62%, var(--parchment));
  border: 1px solid color-mix(in srgb, var(--leather) 32%, transparent);
  border-radius: 3px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--cream) 70%, transparent) inset;
}

.timeline-fallback::before {
  content: "\00b7  \00b7  \00b7";
  display: block;
  margin: 0 0 0.85rem;
  font-family: Newsreader, serif;
  font-style: normal;
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  line-height: 1;
  color: var(--leather-deep);
}

.timeline-fallback p {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
  font-style: italic;
}

.tweet-embed {
  position: absolute;
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.timeline.is-loaded .timeline-fallback {
  display: none;
}

.timeline.is-loaded .tweet-embed {
  position: static;
  height: auto;
  overflow: visible;
  opacity: 1;
  pointer-events: auto;
  padding: 0.5rem 0.6rem 0.75rem;
  background: color-mix(in srgb, var(--cream) 55%, var(--parchment));
  border: 1px solid color-mix(in srgb, var(--leather) 28%, transparent);
  border-radius: 3px;
}

.tweet-embed iframe,
.tweet-embed .twitter-timeline {
  margin-inline: auto;
}

/* ---------- About ---------- */

.about-label {
  text-align: center;
}

.about-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
  justify-items: center;
}

.about-patch {
  width: min(16rem, 70vw);
  height: auto;
  filter: drop-shadow(0 10px 18px color-mix(in srgb, var(--leather-deep) 28%, transparent));
}

@media (hover: hover) and (pointer: fine) {
  .about-patch {
    transition: transform 0.45s ease, filter 0.45s ease;
    transform-origin: center;
  }

  .about-grid picture:hover .about-patch,
  .about-patch:hover {
    transform: rotate(-1.6deg) scale(1.03);
    filter: drop-shadow(0 16px 24px color-mix(in srgb, var(--leather-deep) 36%, transparent));
  }
}

.about-copy {
  max-width: 34rem;
}

.about-copy p {
  margin: 0 0 1rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.mark-note {
  padding-top: 0.35rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---------- Social + contact ---------- */

#find .socials,
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  font-family: Oswald, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  min-height: 44px;
}

.socials a:hover {
  color: var(--leather);
}

.socials svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

#contact {
  padding-bottom: 4.75rem;
}

.email {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: Oswald, sans-serif;
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--leather);
}

.email:hover {
  color: var(--leather);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 2.25rem var(--space) 2.5rem;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-mark {
  width: 3.25rem;
  height: auto;
  margin: 0 auto 0.85rem;
}

.site-footer p {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer small {
  display: block;
  margin-top: 0.35rem;
  font-family: Oswald, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.merch-note {
  margin-top: 1.15rem;
  font-family: Newsreader, serif !important;
  font-weight: 400 !important;
  font-style: italic;
  font-size: 0.98rem;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ink-soft);
}

/* ---------- 404 ---------- */

.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem var(--space);
}

.page-404 h1 {
  margin: 0 0 0.75rem;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-404 .hero-stamp {
  width: 8rem;
  margin-bottom: 1.25rem;
}

/* ---------- Breakpoints ---------- */

@media (max-width: 719px) {
  html {
    scroll-padding-top: 6.5rem;
  }

  main section {
    padding: 3.25rem 0;
  }

  #show {
    padding-top: 1.5rem;
  }

  #trail-notes {
    padding-top: 2.5rem;
  }
}

@media (min-width: 720px) {
  :root {
    --space: 2rem;
  }

  .hero {
    padding-top: 4.75rem;
    padding-bottom: 5rem;
  }

  .about-grid {
    grid-template-columns: 16rem 1fr;
    justify-items: start;
    gap: 3.25rem;
    width: min(52rem, calc(100% - 2 * var(--space)));
    margin-inline: auto;
  }

  .about-copy {
    text-align: left;
  }

  #show {
    padding-top: 3.25rem;
    padding-bottom: 4.5rem;
  }

  #watch,
  #trail-notes,
  #find,
  #contact {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }
}

@media (min-width: 960px) {
  .hero-stamp {
    width: 15rem;
  }
}
