/* JohnMark Flemings: "High Lonesome". Tokens follow the brand design system
   (forest and ivory do the work, pine and tan support, terracotta once per page). */
:root {
  --forest: #16382F;
  --pine: #245B49;
  --terracotta: #B85C38;
  --tan: #C7B08A;
  --ivory: #F4F1E9;
  --ivory-deep: #E8E2D3;
  --charcoal: #202724;

  --ground: var(--ivory);
  --ink: var(--forest);
  --text: var(--charcoal);
  --muted: var(--pine);
  --rule: var(--forest);
  --focus: var(--terracotta);

  --display: "Noto Sans Display", "Arial Narrow", sans-serif;
  --serif: "Noto Serif Display", Georgia, serif;
  --body: Lato, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ivory); color: var(--charcoal); font: 16px/1.625 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--pine); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

/* Reverse (forest) grounds swap the role tokens. */
.forest { --ground: var(--forest); --ink: var(--ivory); --text: var(--ivory); --muted: var(--tan); --rule: var(--tan); --focus: var(--tan); background: var(--forest); color: var(--ivory); }
.forest a:not(.btn) { color: var(--ivory); }
.forest a:not(.btn):hover { color: var(--tan); }

.wrap { max-width: 1120px; margin-inline: auto; }
.section { padding: 96px 24px; }
.section.ruled { border-top: 1px solid var(--forest); }
.stack { display: flex; flex-direction: column; gap: 56px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--forest); color: var(--ivory); padding: 8px 14px; }

/* ---------- type ---------- */
.disp { margin: 0; font-family: var(--display); font-stretch: 75%; font-weight: 700; text-transform: uppercase; text-wrap: balance; color: var(--ink); }
.d-page { font-size: clamp(44px, 7vw, 72px); line-height: 1.05; letter-spacing: 0.01em; }
.d-xl { font-size: clamp(38px, 5.5vw, 56px); line-height: 1.07; letter-spacing: 0.01em; }
.d-l { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: 0.01em; }
.d-m { font-size: 24px; line-height: 30px; letter-spacing: 0.04em; }
.eyebrow { margin: 0; font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.eyebrow.muted { color: var(--muted); }
.tag { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; line-height: 32px; color: var(--ink); text-wrap: balance; }
.lede { margin: 0; font-size: 18px; line-height: 30px; max-width: 34em; }
.caption { margin: 0; font-size: 13px; line-height: 20px; letter-spacing: 0.02em; color: var(--muted); }

.head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.head-row > div:first-child { display: flex; flex-direction: column; gap: 8px; }

/* Ornament: rule, heritage star, rule. */
.ornament { display: flex; align-items: center; gap: 4px; width: min(280px, 100%); color: var(--rule); margin-top: 8px; }
.ornament.sm { width: min(220px, 100%); margin-top: 0; }
.ornament::before, .ornament::after { content: ""; flex: 1; height: 2px; background: currentColor; border-radius: 9999px; }
.ornament svg { flex: none; width: 16px; height: 16px; fill: currentColor; }
.accent-rule { width: 96px; height: 2px; background: var(--terracotta); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--ground); font: 700 16px/1 var(--body); letter-spacing: 0.02em; text-decoration: none; text-align: center; cursor: pointer; }
.btn:hover { background: var(--pine); border-color: var(--pine); color: var(--ivory); }
.btn.outline { background: transparent; color: var(--ink); }
.btn.outline:hover { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--forest); background: var(--ivory); }
.site-header .bar { max-width: 1200px; margin-inline: auto; padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.brand img { height: 72px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; }
.navlink { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; padding: 12px 0; border-bottom: 2px solid transparent; color: var(--ink); }
.navlink:hover { border-bottom-color: var(--pine); color: var(--ink); }
.navlink[aria-current="page"] { border-bottom-color: var(--ink); }
@media (max-width: 680px) {
  .site-header .bar { padding: 12px 16px; }
  .brand img { height: 56px; }
  .nav { order: 3; width: 100%; justify-content: center; gap: 0 22px; border-top: 1px solid var(--ivory-deep); }
}

/* ---------- hero: ivory artwork, live text ---------- */
.hero { display: grid; align-items: center; min-height: clamp(440px, 40vw, 620px); padding: 64px clamp(24px, 4vw, 64px); background: var(--ivory) url("/assets/hero-2560.webp") no-repeat right center / contain; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 24px; width: min(440px, 34vw); text-align: center; }
.hero h1 { margin: 0; width: 100%; }
.hero h1 img { width: 100%; max-width: 400px; margin-inline: auto; }
.hero .tag { color: var(--forest); }
@media (max-width: 900px) {
  /* The art sits in the right 58% of the file; scale it so the art fills the width under the copy. */
  .hero { min-height: 0; align-items: start; background-image: url("/assets/hero-1280.webp"); background-size: 172% auto; background-position: right bottom; padding: 48px 16px 74vw; }
  .hero-copy { width: min(440px, 100%); margin-inline: auto; }
}

.band { padding: 22px 16px; text-align: center; }
.band p { margin: 0; font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 15px; line-height: 22px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory); }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 88px 24px 56px; }
.page-head .head { max-width: 760px; margin-inline: auto; gap: 16px; }

/* ---------- videos ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.feature-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.vcard { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--charcoal); min-width: 0; }
.vcard:hover { color: var(--charcoal); }
.forest .vcard, .forest .vcard:hover { color: var(--ivory); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--forest) center / cover no-repeat; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--tan); pointer-events: none; }
.thumb.has-img::after { border-color: rgba(244, 241, 233, 0.55); }
.thumb.tall { aspect-ratio: 9 / 16; background-color: var(--pine); }
.thumb.stacked { margin: 16px 16px 0 0; overflow: visible; box-shadow: 8px -8px 0 0 var(--pine), 16px -16px 0 0 var(--tan); }
.play { width: 56px; height: 56px; transition: transform 0.2s ease; filter: drop-shadow(0 1px 6px rgba(22, 56, 47, 0.45)); }
.play.lg { width: 96px; height: 96px; }
.vcard:hover .play { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .play { transition: none; } .vcard:hover .play { transform: none; } }
.dur { position: absolute; right: 14px; bottom: 14px; background: var(--ivory); color: var(--forest); font-size: 12px; line-height: 16px; font-weight: 700; padding: 2px 6px; }
.vtitle { font-weight: 700; font-size: 18px; line-height: 26px; }
.shorts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.shorts .vtitle { font-size: 16px; line-height: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 20px; border: 1px solid var(--forest); border-radius: 0; background: transparent; color: var(--forest); font: 700 15px/1 var(--display); font-stretch: 75%; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.chip:hover { background: var(--ivory-deep); }
.chip[aria-pressed="true"] { background: var(--forest); color: var(--ivory); }
@media (max-width: 860px) {
  .feature, .cards { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .shorts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
  .shorts > * { scroll-snap-align: start; }
}

/* Video player dialog */
.player { padding: 0; border: 0; background: transparent; width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: visible; }
.player::backdrop { background: rgba(22, 56, 47, 0.92); }
.player-frame { aspect-ratio: 16 / 9; background: #000; }
.player.is-short { width: min(400px, calc(100vw - 32px)); }
.player.is-short .player-frame { aspect-ratio: 9 / 16; max-height: calc(100vh - 96px); margin-inline: auto; }
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-close { display: flex; align-items: center; gap: 8px; margin: 0 0 12px auto; min-height: 44px; padding: 0 16px; border: 1px solid var(--tan); background: transparent; color: var(--ivory); font: 700 15px/1 var(--display); font-stretch: 75%; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.player-close:hover { background: var(--ivory); color: var(--forest); }

/* ---------- mailing list ---------- */
.patterned { background: var(--forest) url("/assets/pattern-forest.webp") repeat; background-size: 540px auto; padding: 96px 16px; }
.panel { max-width: 880px; margin-inline: auto; background: var(--forest); padding: 64px clamp(20px, 5vw, 72px); outline: 1px solid var(--tan); outline-offset: -12px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.panel .lede { color: var(--ivory); max-width: 32em; }
/* Top-aligned so anything a password manager injects under an input cannot push the row out of line. */
.signup { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 12px; width: 100%; max-width: 640px; margin-top: 8px; }
.signup .btn { margin-top: 26px; flex: 0 0 auto; }
.field input:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-align: left; }
.field.name { flex: 1 1 160px; }
.field.email { flex: 2 1 240px; }
.field label { font-weight: 700; font-size: 14px; line-height: 20px; color: var(--ink); }
.field input { height: 48px; padding: 0 14px; border: 1px solid var(--tan); border-radius: 0; background: var(--ivory); color: var(--charcoal); font: 16px var(--body); width: 100%; }
.signup-status { margin: 0; min-height: 20px; font-size: 15px; line-height: 22px; font-weight: 700; color: var(--ivory); }
.signup-status.done { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 24px; line-height: 32px; text-wrap: balance; }
.signup-status.error { color: var(--tan); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.pillar { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.pillar img { width: 96px; height: 96px; margin-bottom: -12px; }
.pillar p { margin: 0; max-width: 28em; }

/* ---------- tagline band ---------- */
.tagline-band .wrap { display: flex; flex-direction: column; align-items: center; gap: 48px; max-width: 960px; }
.tagline-band img { width: min(720px, 100%); }
.tagline { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.tagline::before, .tagline::after { content: ""; width: 120px; height: 1px; background: var(--rule); }
.tagline p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(32px, 5vw, 48px); line-height: 1.17; color: var(--ink); text-align: center; }

/* ---------- follow ---------- */
.follow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.follow-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; border: 1px solid var(--forest); min-width: 0; }
.follow-card .icon { width: 72px; height: 72px; margin: -8px 0 0 -12px; }
.follow-card p { margin: 0 0 8px; flex: 1; }
.contact-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--forest); }
.contact-line span { overflow-wrap: anywhere; }

/* ---------- release ---------- */
.release { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.cover { aspect-ratio: 1 / 1; background: var(--forest); display: flex; align-items: center; justify-content: center; padding: 48px; outline: 1px solid var(--tan); outline-offset: -16px; }
.cover.has-img { padding: 0; outline: 0; }
.cover.has-img img { width: 100%; height: 100%; object-fit: cover; }
.list-rows { display: flex; flex-direction: column; border-bottom: 1px solid var(--forest); }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; border-top: 1px solid var(--forest); text-decoration: none; }
.list-row .go { font-weight: 700; color: var(--pine); border-bottom: 1px solid transparent; }
.list-row:hover .go { color: var(--forest); border-bottom-color: var(--forest); }

/* ---------- shows ---------- */
.show-row { display: grid; grid-template-columns: 96px minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 28px 0; border-top: 1px solid var(--rule); }
.datebox { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 96px; height: 96px; border: 1px solid var(--rule); }
.datebox .mon { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.datebox .day { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 40px; line-height: 44px; color: var(--ink); }
.empty { max-width: 720px; margin-inline: auto; padding: 56px 32px; border: 1px solid var(--forest); display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.empty img { width: 64px; height: 64px; }
@media (max-width: 860px) {
  .release { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .show-row { grid-template-columns: 96px minmax(0, 1fr); gap: 16px 20px; }
  .show-row > :nth-child(n+3) { grid-column: 2; }
}

/* ---------- about ---------- */
.landscape { width: 100%; border-bottom: 1px solid var(--forest); }
.bio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
.bio-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.bio-art { aspect-ratio: 4 / 5; background: var(--forest); display: flex; align-items: center; justify-content: center; padding: 40px; outline: 1px solid var(--tan); outline-offset: -14px; }
.bio-art.has-img { padding: 0; outline: 0; }
.bio-art.has-img img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 32px; margin: 0; border-bottom: 1px solid var(--forest); }
.facts dt, .facts dd { margin: 0; padding: 18px 0; border-top: 1px solid var(--forest); }
.facts dt { font-family: var(--display); font-stretch: 75%; font-weight: 700; font-size: 15px; line-height: 26px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--forest); }
.facts dd { font-size: 18px; line-height: 26px; }
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.photos img, .photos .photo-slot { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature-photo { margin: 0; }
.feature-photo img, .feature-photo .photo-slot { width: 100%; height: clamp(320px, 48vw, 680px); object-fit: cover; }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 16px; }
.mosaic .tile { margin: 0; min-width: 0; overflow: hidden; }
.mosaic .tile img, .mosaic .photo-slot { width: 100%; height: 100%; object-fit: cover; }
.tile-big { grid-column: span 2; grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.mosaic.even { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
.mosaic.even .tile { aspect-ratio: 1; }
/* Shown on previews only, where a photo has not been added yet. */
.photo-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; text-align: center; background: var(--ivory-deep); border: 2px dashed var(--tan); color: var(--forest); font-size: 14px; line-height: 20px; }
.photo-slot code { font-size: 12px; color: var(--pine); }
.bio-art .photo-slot { width: 100%; height: 100%; }
.intro .wrap { max-width: 960px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.intro .vcard { width: 100%; }
@media (max-width: 860px) {
  .pillars, .follow, .photos { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .mosaic, .mosaic.even { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  .mosaic.even .tile { aspect-ratio: auto; }
  .bio { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dd { border-top: 0; padding-top: 0; }
}

/* ---------- footer ---------- */
.site-footer { padding: 72px 24px 40px; border-top: 1px solid var(--tan); }
.site-footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.site-footer .wordmark { width: 220px; }
.site-footer .nav { justify-content: center; gap: 4px 28px; order: 0; width: auto; border: 0; }
.site-footer .caption { color: var(--tan); }

/* ---------- link-in-bio page ---------- */
.linkpage { min-height: 100vh; padding: 40px 16px 32px; background: var(--ivory); }
.link-wrap { max-width: 480px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.link-mark img { width: 240px; }
.link-video { width: 100%; text-align: left; }
.link-card { width: 100%; padding: 28px 22px; outline: 1px solid var(--tan); outline-offset: -8px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.link-card .signup { flex-direction: column; align-items: stretch; margin-top: 4px; }
.link-card .field { flex: none; }
.link-card .signup .btn { margin-top: 4px; width: 100%; }
.link-card .signup-status.done { font-size: 20px; line-height: 28px; }
.link-list { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.link-list .btn { width: 100%; min-height: 56px; font-size: 17px; }
.link-art { width: calc(100% + 32px); max-width: none; margin-top: 12px; }
