/* ======================================================
   forlong music — style.css
   Colors are pulled from your photos. Change them in
   section 1 and the whole site updates.
   ====================================================== */


/* ======================================================
   1. COLORS & FONTS  (edit these)
   ====================================================== */
:root {
  --sky: #2f7fd3;
  /* blue sky behind the guitar photo */
  --cloud: #f4f6fb;
  /* cloud white — the box */
  --violet: #6b5fb5;
  /* VHS purple */
  --leaf: #2f8a34;
  /* dandelion-sticker green */
  --cyan: #1bbfe9;
  /* the FORLONG lettering */
  --gold: #d9a84e;
  /* guitar pickguard */
  --ink: #26283a;
  /* main text */

  --font-body: "Epsy Sans", "Comic Sans MS", cursive;
  --font-hand: "Epsy Sans", "Comic Sans MS", cursive;
}

/* Epsy Sans by Martin P. Pfeiffer (freeware), from pickafont.com */
@font-face {
  font-family: "Epsy Sans";
  src: url("fonts/epsy-sans.ttf") format("truetype");
  font-display: swap;
}


/* ======================================================
   2. PAGE BACKGROUND  (the wide VHS glitch image)
   Image file: images/vhs-bg.jpg
   "cover" stretches it to fill the screen; "fixed"
   keeps it still while the box scrolls over it.
   ====================================================== */
/* The background lives on <html> and scrolls with the page, stretched
   to cover the whole page height, so the page ends where the image ends. */
html {
  min-height: 100%;
  min-height: 100lvh; /* iOS: cover the viewport even when the toolbar collapses */
  background-color: var(--violet);
  /* shows while loading */
  background-image: url("images/vhs-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body {
  margin: 0;
  padding: 16px 12px 20px;
  background: none;
  color: #000;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.5;
}

/* Faint VHS scanlines over the whole page.
   Delete this block if you don't want them. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom,
      rgba(0, 0, 0, 0.12) 0px,
      rgba(0, 0, 0, 0.12) 1px,
      transparent 1px,
      transparent 2px);
  z-index: 10;
}


/* ======================================================
   3. LOGO  (dandelion sticker above the box)
   The sticker image has a lot of empty space at the top,
   so this crops to the flower and a bit of stem.
   ====================================================== */
.logo {
  text-align: center;
}

/* .logo img {
  width: 230px;
  max-width: 70%;
  aspect-ratio: 1456 / 1000;
  object-fit: cover;
  object-position: 50% 50%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
} */

.tagline {
  margin: 0 0 14px;
  font-family: var(--font-hand);
  font-size: 1.4em;
  color: var(--cloud);
  text-shadow: 0 0 6px var(--violet), 1px 1px 0 var(--ink);
}


/* ======================================================
   4. THE CENTERED BOX
   Slightly see-through so the VHS glitch shows behind it.
   ====================================================== */
.page {
  max-width: 660px;
  margin: 0 auto;
  padding: 20px 24px;
  background: rgba(244, 246, 251, 0.9);
  border: 3px solid var(--sky);
  outline: 2px dashed var(--cyan);
  outline-offset: 4px;
  box-shadow: 0 0 24px rgba(107, 95, 181, 0.6);
}


/* ======================================================
   5. NAVIGATION
   ====================================================== */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  font-family: var(--font-hand);
  font-size: 1.3em;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--sky);
}


/* ======================================================
   6. HEADINGS, TEXT & LINKS
   ====================================================== */
h1,
h2 {
  font-family: var(--font-hand);
  font-weight: 700;
  color: #000;
  margin: 12px 0 6px;
}

h1 {
  font-size: 2.4em;
  line-height: 1;
}

h2 {
  font-size: 1.7em;
}

a {
  color: #333;
  font-weight: bold;
}

a:hover {
  color: #777;
}


/* ======================================================
   7. WELCOME  (text + VHS photo side by side)
   ====================================================== */
.welcome,
.releases-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.recent {
  flex: 1;
}

.welcome-text {
  flex: 1;
  font-size: 14.4px;
  /* stays fixed; the rest of the site is slightly larger */
}

.bio {
  margin-top: 24px;
  font-size: 1.25em;
  /* 25% larger than the rest of the welcome text */
}

/* Art page: a wrapping grid of polaroid-style pieces */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.gallery+.gallery {
  margin-top: 20px;
}

.gallery .snapshot {
  flex: 0 0 calc((100% - 40px) / 3);
  /* three per row */
  transform: none;
  /* straight, not tilted */
}

/* Each frame matches its photo's shape */
.gallery img.portrait {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery img.square {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery img.landscape {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery figcaption {
  margin-top: 6px;
  text-align: center;
  font-size: 0.8em;
}

.contact {
  margin-top: 24px;
}

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

/* The photo looks like a snapshot taped to the page */
.snapshot {
  flex: 0 0 170px;
  margin: 16px 0 0;
  padding: 8px 8px 24px;
  background: #fff;
  box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.35);
  transform: rotate(3deg);
}

.snapshot img,
.snapshot video {
  display: block;
  width: 100%;
  height: auto;
}


/* ======================================================
   8. BANNER  (guitar-in-the-sky photo)
   Cropped to a wide strip; object-position keeps
   you and the guitar in frame.
   ====================================================== */
.banner-row {
  margin: 20px 0;
}

.banner {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 60%;
  border: 3px solid var(--gold);
}


/* ======================================================
   9. RELEASES LIST
   ====================================================== */
.recent ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.recent li::before {
  content: "✿ ";
  color: #888;
}

.tag {
  font-size: 0.8em;
  color: #555;
}

.more {
  margin-top: 4px;
}


/* ======================================================
   10. BUTTON WALL
   ====================================================== */
.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
  padding-top: 12px;
  border-top: 2px dashed var(--sky);
}

.buttons img {
  display: block;
  image-rendering: pixelated;
}


/* ======================================================
   11. PHONES
   ====================================================== */
@media (max-width: 520px) {
  body {
    padding: 12px 8px 32px;
    font-size: 18px;
  }

  .welcome-text {
    font-size: 14.4px;
  }

  .page {
    padding: 16px;
  }

  /* photo moves under the text */
  .welcome,
  .releases-row {
    flex-direction: column;
    align-items: center;
  }

  .snapshot {
    flex: none;
    width: 60%;
  }

  /* gallery: two per row on phones */
  .gallery .snapshot {
    flex: 0 0 calc((100% - 20px) / 2);
    width: auto;
  }
}