/* ==========================================================
   madebylyss: styles
   Colors and fonts live in :root. Change them there and they
   update everywhere.
   ========================================================== */

/* Aileron, the same font as your Canva mockup. The files live in /fonts
   and are free to use (public domain). */
@font-face {
  font-family: "Aileron";
  src: url("fonts/aileron-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Aileron";
  src: url("fonts/aileron-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --blue: #c2dcff;      /* background + "See the work" button */
  --ink: #1d1e1b;       /* main text */
  --white: #ffffff;
  --grey: #e6e6e6;      /* work section + email box */
  --grey-btn: #d9d9d9;  /* "Find me at a market" button */
  --black: #000000;     /* markets section */

  --font: "Aileron", "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;       /* rounded corners on the panel and photos */

  --panel-left: 34px;
  --panel-top: 168px;
  --panel-width: min(870px, 60vw);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--blue);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: -0.03em;
  overflow: hidden;               /* the page stays still; only the panel scrolls */
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, p { margin: 0; }

/* ---------- Static layer ---------- */

/* The big halftone "a" + star, pinned to the bottom right */
.bg-logo {
  position: fixed;
  right: 1vw;
  bottom: -2vh;
  width: 55vw;           /* bigger number = bigger logo (100vw = full screen width) */
  max-height: 85vh;      /* keeps it from running off the top on short screens */
  object-fit: contain;
  object-position: right bottom;
  z-index: 0;
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px var(--panel-left);
}

.wordmark {
  font-size: 34px;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 28px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 16px;
}

.nav a { text-decoration: none; }
.nav a:hover { text-decoration: underline; }

.badge {
  position: fixed;
  top: 114px;
  left: var(--panel-left);
  z-index: 10;
  font-size: 16px;
}

/* ---------- Pill buttons (used everywhere) ---------- */

.pill {
  display: inline-block;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  font-family: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.pill--white { background: var(--white); }
.pill--blue  { background: var(--blue); }
.pill--grey  { background: var(--grey-btn); }
.pill--small { font-size: 12px; text-transform: uppercase; padding: 8px 14px; }
.pill--outline {
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--white);
  text-transform: uppercase;
  font-size: 13px;
}
a.pill:hover, button.pill:hover { opacity: 0.8; }

/* ---------- The scrolling panel ---------- */

.panel {
  position: fixed;
  top: var(--panel-top);
  left: var(--panel-left);
  bottom: 0;
  width: var(--panel-width);
  z-index: 5;
  overflow-y: auto;
  scroll-behavior: smooth;        /* nav links glide to each section */
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--white);
}

.section { padding: 36px 30px; }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 370px);
  gap: 32px;
  background: var(--white);
}

.hero h1 {
  font-size: clamp(40px, 3.9vw, 56px);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 30px;
}

.hero__text p {
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 18px;
}

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__video {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--grey);
}

.hero__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.hero__thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--grey);
}

/* ---------- 01 / The work ---------- */

.work { background: var(--grey); }

.section__top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.note {
  max-width: 300px;
  font-size: 12px;
  text-align: right;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
  margin: 10px 0 32px;
}

.piece__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #cfcfcf;            /* shows while a photo is missing */
}

.piece__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sold {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 7px 14px;
  font-size: 11px;
  text-transform: uppercase;
}

.piece__info {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
}

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

.about {
  display: grid;
  grid-template-columns: minmax(0, 270px) minmax(0, 1fr);
  gap: 32px;
  background: var(--white);
}

.about__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--grey);
}

.about__text p:not(.eyebrow) {
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 18px;
}

/* ---------- 03 / Markets ---------- */

.markets {
  background: var(--black);
  color: var(--white);
  padding-bottom: 48px;
}

.markets h2 { margin-bottom: 14px; }

.market-list {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  border-top: 3px dotted var(--white);
}

.market-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 8px 24px;
  padding: 18px 0;
  font-size: 17px;
}

.signup label {
  display: block;
  font-size: 12px;
  margin-bottom: 12px;
}

.signup__row { display: flex; flex-wrap: wrap; gap: 12px; }

.signup input {
  flex: 0 1 260px;
  min-width: 0;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius);
  background: var(--grey);
  font-family: inherit;
  font-size: 13px;
  letter-spacing: inherit;
}

.footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid #444;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
}

/* ==========================================================
   Phones and small tablets: the panel becomes a normal page
   that scrolls, and the header stops floating.
   ========================================================== */

@media (max-width: 900px) {
  body { overflow: auto; }

  .bg-logo { width: 90vw; right: -10vw; opacity: 0.5; }

  .site-header {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .nav { justify-content: flex-start; gap: 6px 18px; font-size: 15px; }
  .nav .pill { margin-top: 12px; }   /* space above "Find me on Instagram" on phones */

  .badge { position: static; display: inline-block; margin: 0 20px 16px; }

  .panel {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: 0 12px;
    overflow: visible;
  }

  html { scroll-behavior: smooth; }

  .hero, .about { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .note { text-align: left; }
  .market-list li { grid-template-columns: 1fr; gap: 4px; }
}
