/* ==========================================================
   HOUSE OF SAND: style.css
   this one file styles EVERY page (home, about, gallery, stickers, bookings, contact)
   so if i change a color or the nav here, it changes everywhere.

   page-only styles (like the cart drawer) live inside that page's
   own <style> tag instead.
   ========================================================== */


/* ==========================================================
   COLORS
   change the whole vibe of the site by editing these 5 lines
   ========================================================== */
:root {
  --g: #8ACE00;      /* the green (hero, buttons, highlights) */
  --k: #000;         /* black */
  --w: #fff;         /* white */
  --m: #666;         /* muted gray for small text like prices */
  --line: #e5e5e5;   /* thin light borders */
}


/* ==========================================================
   BASICS
   ========================================================== */
* {
  box-sizing: border-box;
  margin: 0;
}

body {
  font: 16px/1.5 "Helvetica Neue", Arial, sans-serif;   /* font + size */
  color: var(--k);
  background: var(--w);
  -webkit-font-smoothing: antialiased;
}

/* the black outline you see when tabbing with the keyboard. keep it for accessibility */
:focus-visible {
  outline: 3px solid var(--k);
  outline-offset: 2px;
}

button {
  font: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

/* keeps all the content centered and not super wide. 1100px = max width
   (bigger number = wider page = bigger photos on a computer) */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}


/* ==========================================================
   TOP BAR (logo + page links)
   ========================================================== */
header {
  position: sticky;      /* stays at the top when you scroll */
  top: 0;
  z-index: 5;
  background: var(--w);
  border-bottom: 1px solid var(--line);
}

header .wrap {
  display: flex;
  flex-wrap: wrap;                 /* on phones the links drop under the logo */
  justify-content: space-between;
  align-items: center;
  gap: 6px 24px;
  padding-top: 10px;
  padding-bottom: 10px;
  min-height: 60px;                /* how tall the top bar is */
}

.brand {                           /* "HOUSE OF SAND" in the corner */
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.03em;
  text-decoration: none;
  margin-right: auto;              /* pushes everything else to the right */
}

/* PHONES (default): logo + cart button on the first row, page links under them */
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  order: 2;
  width: 100%;
}

/* COMPUTERS: everything on one row. logo on the left, links then cart on the right */
@media (min-width: 601px) {
  nav {
    order: 1;
    width: auto;
  }
  .cartbtn {
    order: 2;
  }
}
nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 5px 12px;
  border-radius: 99px;
}
nav a:hover {
  background: var(--line);         /* light gray when you hover */
}
nav a.on {
  background: var(--g);            /* the page you're on is green */
}

/* the black "cart 0" pill (only on the stickers page) */
.cartbtn {
  background: var(--k);
  color: var(--w);
  border: 0;
  border-radius: 99px;
  padding: 7px 16px;
  font-weight: 700;
  order: 1;              /* on phones it sits right after the logo */
}
.cartbtn b {             /* the little number inside it */
  color: var(--g);
}


/* ==========================================================
   BIG GREEN HERO
   .hero       = the huge one on the home page
   .hero.small = the shorter one on the other pages
   ========================================================== */
.hero {
  background: var(--g);
  padding: 72px 0 60px;  /* top and bottom space */
}
.hero.small {
  padding: 48px 0 40px;
}

h1 {
  /* clamp(smallest, scales with screen, biggest) */
  font-size: clamp(56px, 15vw, 140px);
  line-height: .85;
  letter-spacing: -.07em;
  font-weight: 800;
}
.hero.small h1 {
  font-size: clamp(44px, 11vw, 96px);
}
/* the home page's long headline ("welcome to the land of amber sand").
   a little smaller than the one-word titles so it fits nicely */
.hero h1.long {
  font-size: clamp(44px, 11vw, 112px);
  line-height: .9;
}

/* MY PROFILE PIC (the cutout of me right after "amber sand" in the home headline)
   it's sized off the headline letters, so it grows and shrinks with them.
   (font-size .25em keeps the "me" placeholder text small, so the other numbers are 4x:
   height 6em = 1.5 times the headline size)
   bigger height number = bigger pic. if i make it bigger, make margin-top more negative
   by the same amount, so it doesn't push the headline lines apart */
.photo.avatar {
  display: inline-block;
  font-size: .25em;
  letter-spacing: 0;
  height: 6em;
  width: auto;
  aspect-ratio: auto;
  margin-top: -3em;              /* lets the top of my bun rise up next to "the land of" */
  margin-left: .1em;
  vertical-align: baseline;      /* my shoulders sit right on the line of the letters */
  background: none;              /* no box, no circle, no outline: just the cutout */
  border-radius: 0;
  overflow: visible;
}
.photo.avatar img {
  display: block;
  height: 100%;
  width: auto;
}

.hero p {
  margin-top: 22px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
  max-width: 46ch;
}


/* ==========================================================
   BUTTONS (the big pill links like "book a show")
   .pill       = white with black outline
   .pill.dark  = black with green text
   ========================================================== */
.pill {
  display: inline-block;
  border: 2px solid var(--k);
  background: var(--w);
  color: var(--k);
  border-radius: 99px;
  font-weight: 700;
  padding: 10px 22px;
  text-decoration: none;
}
.pill:hover {
  background: var(--g);
}
.pill.dark {
  background: var(--k);
  color: var(--g);
}
.pill.dark:hover {
  background: var(--w);
  color: var(--k);
}

/* a row of pill buttons with space between them */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}


/* ==========================================================
   WHITE CONTENT SECTIONS (.block)
   ========================================================== */
.block {
  padding: 56px 0;
}
.block h2 {
  font-size: clamp(32px, 7vw, 56px);
  letter-spacing: -.06em;
  line-height: .95;
  font-weight: 800;
}
.lead {                  /* the paragraph right under a big heading */
  margin-top: 14px;
  max-width: 52ch;
}


/* ==========================================================
   BOXES (the 3 link cards on the home page, the "what i do" cards)
   ========================================================== */
.cards {
  display: grid;
  /* 240px = smallest a box gets. bigger number = fewer per row */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.box {
  display: block;
  border: 2px solid var(--k);
  border-radius: 16px;       /* roundness of the corners */
  padding: 22px;
  text-decoration: none;
}
a.box:hover {
  background: var(--g);      /* link boxes turn green when you hover */
}
.box h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
}
.box p {
  margin-top: 6px;
}


/* ==========================================================
   PHOTO TILES (portfolio gallery + about page photo)
   shows the placeholder text until i drop a real <img> inside
   ========================================================== */
.gallery {
  display: grid;
  /* 300px = smallest a photo gets. bigger number = bigger photos, fewer per row.
     on a computer that's about 3 across. on a phone it's 1 big photo per row.
     want them even bigger? try 420px (2 across on a computer) */
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
  margin-top: 28px;
}
/* the 3-photo preview on the home page: always 3 in a row (small on a phone)
   so the home page stays short. tapping one still opens it full screen */
.gallery.preview {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 600px) {
  .gallery.preview .photo {
    font-size: 14px;         /* the placeholder text, so it fits the small tiles */
  }
}

.photo {
  aspect-ratio: 4 / 5;       /* portrait shape. change to 1 / 1 for squares */
  background: var(--k);
  color: var(--g);
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 16px;
  overflow: hidden;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.04em;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* crops to fit instead of stretching */
}


/* ==========================================================
   BLACK SECTION (upcoming shows on home, "in person" on stickers)
   ========================================================== */
.shows {
  background: var(--k);
  color: var(--w);
  padding: 56px 0;
}
.shows h2 {
  color: var(--g);
  font-size: clamp(32px, 7vw, 56px);
  letter-spacing: -.06em;
  line-height: .95;
  font-weight: 800;
}
.shows p {
  margin-top: 14px;
  max-width: 46ch;       /* keeps the paragraph from stretching too wide */
}

/* the list of shows (home "catch me live" + the shows page). site.js builds
   it from shows.js. each row = date on the left, the show info on the right */
.gigs {
  list-style: none;
  padding: 0;
  margin-top: 24px;
  max-width: 720px;
}
.gigs li {
  display: grid;
  grid-template-columns: 120px 1fr;   /* date column, then the show info */
  gap: 4px 16px;
  padding: 14px 0;
  border-top: 1px solid #333;
}
.gigs b {
  color: var(--g);                    /* the date */
}
.gigs strong {
  font-weight: 800;                   /* the show name */
}
.gigs a {
  color: var(--g);                    /* "tickets / info" link */
}

/* "december 2026" headings on the shows page */
.month {
  margin-top: 36px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.month + .gigs {
  margin-top: 10px;
}

/* the shows list on a WHITE background (past shows): black instead of green */
.block .gigs li {
  border-top-color: var(--line);
}
.block .gigs b,
.block .gigs a {
  color: var(--k);
}

/* "no shows on the calendar right now..." */
.no-shows {
  margin-top: 24px;
  font-weight: 700;
}

/* phones: date on its own line above the show info */
@media (max-width: 600px) {
  .gigs li {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================
   FOOTER
   "email: ..." / "instagram: ..." / "tiktok: ..." in plain black.
   the label is bold, the link is underlined.
   (padding on the links = bigger tap targets on a phone)
   ========================================================== */
footer {
  padding: 20px 0 32px;
  border-top: 1px solid var(--line);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;           /* space between the three */
}
footer span {
  font-weight: 800;      /* the "email:" label */
}
footer a {
  color: var(--k);
  font-weight: 400;      /* the address / handle */
  display: inline-block;
  padding: 10px 0;
  text-underline-offset: 4px;
}
footer a:hover {
  text-decoration-thickness: 3px;
  text-decoration-color: var(--g);
}


/* ==========================================================
   CLICK-TO-ENLARGE (lightbox)
   tapping any photo opens it full screen. tap again (or hit esc) to close.
   the code that does this is in site.js
   ========================================================== */
.photo img,
.tile img {
  cursor: zoom-in;             /* magnifying glass on hover */
}
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, .92);   /* how dark the background is (0 to 1) */
  display: none;
  flex-direction: column;           /* photo on top, caption under it */
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  cursor: zoom-out;
}
#lightbox.show {
  display: flex;
}
#lightbox img {
  max-width: 100%;
  max-height: calc(100% - 90px);    /* leaves room for the caption underneath */
  object-fit: contain;              /* show the WHOLE photo, no cropping */
  border-radius: 12px;
}
#lightbox p {                       /* the caption under the big photo */
  color: var(--w);
  text-align: center;
  max-width: 60ch;
}
#lightbox p:empty {
  display: none;
}
#lightbox b {                       /* the look's name, in green */
  display: block;
  color: var(--g);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.04em;
}


/* ==========================================================
   PHONE TWEAKS
   bigger buttons so thumbs can hit them easily
   ========================================================== */
@media (max-width: 600px) {
  nav a {
    padding: 9px 14px;
  }
  .cartbtn {
    padding: 10px 18px;
  }
  .pill {
    padding: 12px 24px;
  }
}


/* ==========================================================
   FORMS (the booking form + the contact form)
   both forms are built from the same few pieces:
     .form-part  = a small heading that splits a long form into parts
     .field      = one label + one box (text, dropdown, or message)
     .pair       = puts two .field's side by side on a computer
     .send       = the big black submit button
     .form-msg   = the line under the button ("sent!" or an error)
   ========================================================== */
form {
  margin-top: 28px;
  max-width: 640px;
}

/* the little headings inside the booking form: "about you", "the event", etc */
.form-part {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.04em;
  margin: 36px 0 14px;
  padding-top: 14px;
  border-top: 2px solid var(--k);
}
.form-part:first-of-type {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}
.field small {                   /* the little gray hint next to a label */
  font-weight: 400;
  color: var(--m);
}

/* two boxes side by side on a computer, stacked on a phone */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
@media (max-width: 600px) {
  .pair {
    grid-template-columns: 1fr;
  }
}

/* every text box, dropdown, and the message box */
input,
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 2px solid var(--k);
  border-radius: 12px;
  background: var(--w);
}
textarea {
  min-height: 140px;
  resize: vertical;
}
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid var(--g);     /* green glow when typing in a box */
  outline-offset: 0;
}

/* the big black submit button */
.send {
  background: var(--k);
  color: var(--g);
  border: 0;
  border-radius: 99px;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 18px;
}
.send:hover {
  background: var(--g);
  color: var(--k);
}
.send:disabled {                   /* faded while it's sending */
  opacity: .5;
  cursor: wait;
}

/* the message that shows up after hitting send */
.form-msg {
  margin-top: 16px;
  font-weight: 700;
}

/* the spam trap: a hidden box that real people never see. only bots fill it in.
   keep this, it's what stops junk messages */
.hp {
  position: absolute;
  left: -9999px;
}


/* ==========================================================
   TABS (the "looks / performances" switch on the gallery page)
   the tabs are big heading-size words. the one showing is black with a
   green line under it, the other is gray. the code is in site.js
   ========================================================== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}
.tabs button {
  background: none;
  border: 0;
  border-bottom: 6px solid transparent;
  padding: 0 0 6px;
  color: #8a8a8a;                   /* the gray of the tab that's NOT showing */
  font-size: clamp(32px, 7vw, 56px); /* same size as the other big headings */
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: .95;
}
.tabs button:hover {
  color: var(--k);
}
.tabs button[aria-selected="true"] {
  color: var(--k);
  border-bottom-color: var(--g);    /* the green line under the one showing */
}
.tab-panel .gallery,
.videos {
  margin-top: 20px;
}

/* hides something on screen but screen readers still read it out */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


/* ==========================================================
   CAPTIONS (gallery photos + videos)
   the words come from gallery.js. bold = caption, normal = the little note.
   - computers (anything with a mouse): the caption is a black box that
     slides up over the bottom of the photo when you hover it
   - phones: the caption just sits under the photo, always showing
   - videos: the caption always sits under the video
   ========================================================== */
.look,
.perf {
  position: relative;
}
.look figcaption,
.perf figcaption {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.35;
}
.look figcaption b,
.perf figcaption b {
  display: block;
  font-weight: 800;
  letter-spacing: -.02em;
}
.look figcaption span,
.perf figcaption span {
  display: block;
  color: var(--m);
}

/* the hover version, only on screens with a mouse */
@media (hover: hover) {
  .look figcaption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    margin: 0;
    padding: 12px 14px;
    background: var(--k);
    color: var(--w);
    border-radius: 12px;
    opacity: 0;                      /* hidden until hover */
    transform: translateY(8px);
    transition: opacity .2s, transform .2s;
    pointer-events: none;            /* so clicking still opens the photo */
  }
  .look figcaption b {
    color: var(--g);
  }
  .look figcaption span {
    color: var(--w);
  }
  .look:hover figcaption,
  .look:focus-within figcaption {
    opacity: 1;
    transform: none;
  }
}

/* the tiny home-page preview on a phone: no caption under the small tiles
   (tapping one still shows the caption with the big photo) */
@media (max-width: 600px) {
  .gallery.preview figcaption {
    display: none;
  }
}


/* ==========================================================
   YOUTUBE VIDEOS (the "performances" tab on the gallery page)
   420px = smallest a video gets. 1 across on a phone, 2 on a computer.
   a video with no youtube link yet shows as a black "placeholder" box
   ========================================================== */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr));
  gap: 16px;
}
.video {
  aspect-ratio: 16 / 9;      /* youtube shape */
  background: var(--k);
  color: var(--g);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.04em;
}
.video:has(iframe) {
  padding: 0;
}
.video small {             /* the "placeholder" line under "video 1" */
  display: block;
  color: var(--w);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0;
  margin-top: 4px;
}
.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}


/* if someone's computer is set to reduce motion, turn off the animations */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
