/* PachiRogue press kit — papercraft-inspired, warm kraft palette */

@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/Fredoka-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --kraft: #c4a574;
  --paper: #f3e6d0;
  --paper-bright: #faf3e6;
  --ink: #2a2118;
  --ink-soft: #5c4a36;
  --felt-red: #b54a3a;
  --felt-teal: #3d6b63;
  --felt-gold: #d4a017;
  --cardboard: #a67c52;
  --shadow: rgba(42, 33, 24, 0.16);
  --radius: 6px;
  --max: 1120px;
  --sidebar: 260px;
  --font: "Fredoka", "Segoe UI", system-ui, sans-serif;
  /* Exactly three text sizes */
  --fs-lg: 1.35rem;   /* headings + pitch */
  --fs-md: 1.05rem;   /* body, buttons, factsheet values */
  --fs-sm: 0.8rem;    /* labels, captions, muted */
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 1.5;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, #e6d4b4 0%, transparent 55%),
    linear-gradient(180deg, #ebe0c8 0%, var(--paper) 35%, #dfcfb3 100%);
  min-height: 100vh;
}

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

a {
  color: var(--felt-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--felt-red);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--paper-bright);
  padding: 0.5rem 1rem;
}

/* —— Hero: one centered stack over full-bleed art —— */

.hero {
  position: relative;
  min-height: clamp(420px, 56vh, 620px);
  display: grid;
  place-items: end center;
  overflow: hidden;
  border-bottom: 3px solid var(--cardboard);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(26, 18, 12, 0.88) 0%,
      rgba(26, 18, 12, 0.45) 42%,
      rgba(26, 18, 12, 0.12) 72%,
      transparent 100%
    ),
    url("assets/images/hero.png") center 40% / cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.25rem 0 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: min(640px, 92vw);
  /* library_logo.png is on black — screen knocks out the plate */
  mix-blend-mode: screen;
  margin: 0 0 0.85rem;
}

.hero__tag {
  margin: 0;
  color: var(--paper-bright);
  font-size: var(--fs-md);
  font-weight: 500;
  max-width: 34rem;
  line-height: 1.45;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  opacity: 0.95;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.15rem;
}

/* —— Page shell —— */

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.25rem 0 3.5rem;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: 2rem 2.25rem;
  align-items: start;
}

@media (max-width: 860px) {
  .wrap {
    grid-template-columns: 1fr;
  }

  .factsheet {
    position: static;
  }

  .intro-split {
    grid-template-columns: 1fr !important;
  }
}

/* Factsheet */

.factsheet {
  position: sticky;
  top: 1rem;
  background: var(--paper-bright);
  border: 2px solid var(--cardboard);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--shadow);
  padding: 1.05rem 1.1rem 1.2rem;
}

.factsheet h2 {
  margin: 0 0 0.7rem;
  font-size: var(--fs-lg);
  font-weight: 500;
  border-bottom: 2px solid var(--kraft);
  padding-bottom: 0.35rem;
}

.factsheet dl {
  margin: 0;
}

.factsheet dt {
  margin-top: 0.65rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.factsheet dd {
  margin: 0.12rem 0 0;
  font-size: var(--fs-md);
  line-height: 1.35;
}

.factsheet dd a {
  word-break: break-word;
}

.tbd {
  color: var(--ink-soft);
  font-style: italic;
}

/* Main */

main section {
  margin-bottom: 2rem;
  scroll-margin-top: 1rem;
}

main h2 {
  margin: 0 0 0.7rem;
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--ink);
}

main h3 {
  margin: 1.35rem 0 0.7rem;
  font-size: var(--fs-lg);
  font-weight: 500;
}

.hook {
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  padding: 0.95rem 1.1rem;
  background: var(--paper-bright);
  border-left: 4px solid var(--felt-red);
  box-shadow: 3px 3px 0 var(--shadow);
}

/* Pitch + featured shot side-by-side */

.intro-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem 1.25rem;
  align-items: stretch;
}

.intro-split__shot {
  margin: 0;
  border: 2px solid var(--cardboard);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--shadow);
  background: #1a1510;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.intro-split__shot a {
  flex: 1;
  display: block;
  min-height: 0;
}

.intro-split__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.intro-split__shot figcaption {
  margin: 0;
  padding: 0.4rem 0.55rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  background: var(--paper-bright);
  border-top: 1px solid rgba(166, 124, 82, 0.35);
}

.description p {
  margin: 0 0 0.85rem;
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.4rem;
  border-bottom: 1px dashed rgba(166, 124, 82, 0.4);
}

.features li::before {
  content: "●";
  position: absolute;
  left: 0;
  color: var(--felt-gold);
  font-size: var(--fs-sm);
  top: 0.7rem;
}

.features li:last-child {
  border-bottom: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.6rem 1.05rem;
  font-size: var(--fs-md);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn--primary {
  background: var(--felt-red);
  color: #fffef8;
  border-color: #8f3428;
  box-shadow: 3px 3px 0 rgba(42, 33, 24, 0.22);
}

.btn--primary:hover {
  color: #fffef8;
}

.btn--secondary {
  background: var(--paper-bright);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--shadow);
}

.btn--ghost {
  background: rgba(250, 243, 230, 0.08);
  color: var(--paper-bright);
  border-color: rgba(250, 243, 230, 0.75);
}

.btn--ghost:hover {
  background: rgba(250, 243, 230, 0.18);
  color: var(--paper-bright);
}

/* Media */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.8rem;
}

.gallery--shots {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.gallery a {
  display: block;
  border: 2px solid var(--cardboard);
  border-radius: var(--radius);
  overflow: hidden;
  background: #1a1510;
  box-shadow: 3px 3px 0 var(--shadow);
  transition: transform 0.12s ease;
}

.gallery a:hover {
  transform: translateY(-2px);
}

.gallery figcaption {
  margin: 0;
  padding: 0.4rem 0.55rem;
  font-size: var(--fs-sm);
  color: var(--ink-soft);
  background: var(--paper-bright);
  border-top: 1px solid rgba(166, 124, 82, 0.35);
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1510;
  border: 2px solid var(--cardboard);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gif-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .gif-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.gif-embed {
  margin: 0;
  background: transparent;
}

.gif-embed img {
  width: 100%;
  height: auto;
  display: block;
}

.gif-embed figcaption {
  margin: 0.55rem 0 0;
  padding: 0;
}

.download-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.35rem;
  padding: 1.15rem 1.25rem;
  background: var(--paper-bright);
  border: 2px solid var(--cardboard);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--shadow);
}

.download-box p {
  margin: 0;
  flex: 1 1 220px;
  font-size: var(--fs-md);
  color: var(--ink-soft);
}

.muted {
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

footer {
  border-top: 2px solid var(--cardboard);
  padding: 1.35rem 0 2.25rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
}

footer .wrap-footer {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}
