:root{
  --pink:#FF3EB5;
  --black:#181818;
  --white:#DBDBDB;

  --ui-gap: 14px;
  --icon: 24px;

  /* Edge spacing */
  --edge-desktop: 8px;
  --edge-mobile: 16px;

  /* Theme-driven */
  --text-color: #DBDBDB;   /* gets overridden per theme */
  --info-fade: rgba(0,0,0,0.55);
}

/* ---------- BASE ---------- */
html, body{
  height:100%;
  width:100%;
  margin:0;
  background: var(--black);
  overflow:hidden;
  font-family: "owners", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{
  text-decoration: none;
  color: inherit;
  transition: color 260ms ease;
}

a:focus-visible{
  outline: none;
}

@media (hover:hover) and (pointer:fine){
  body[data-theme="black"] .info-scroll a:hover,
  body[data-theme="black"] .info-scroll a:focus-visible{
    color: var(--pink);
  }

  body[data-theme="pink"] .info-scroll a:hover,
  body[data-theme="pink"] .info-scroll a:focus-visible{
    color: var(--black);
  }

  body[data-theme="white"] .info-scroll a:hover,
  body[data-theme="white"] .info-scroll a:focus-visible{
    color: var(--pink);
  }
}



a.logo,
a.logo:link,
a.logo:visited{
  color: inherit;
}


body{
  transition: background-color 260ms ease;
}

/* smooth icon color shifts */
.logo, .icon-btn, .svg-icon{
  transition: color 260ms ease, opacity 200ms ease, transform 120ms ease;
}

/* ---------- STAGE + CANVAS ---------- */
.stage{
  position:relative;
  height:100dvh;
  width:100vw;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Canvas holder is dead-center */
.sketch-holder{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none; /* UI controls are tappable */
}

/* Keep the canvas square and responsive */
.sketch-holder canvas{
  display:block;
  width: min(90vmin, calc(100dvh - (var(--edge-desktop) * 2)));
  height: min(90vmin, calc(100dvh - (var(--edge-desktop) * 2)));
  aspect-ratio: 1 / 1;

  transform-origin: 50% 50%;
  will-change: transform;
  animation: spin 28s linear infinite;

  pointer-events:none;
  background: transparent;
}

@keyframes spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

/* ---------- SVG SIZING ---------- */
/* Base inline SVG: no forced size */
.svg-icon{
  display:block;
}

/* Control icons are 24px */
.controls .svg-icon{
  width: var(--icon);
  height: var(--icon);
}

/* Logo sized independently */
.logo .svg-icon{
  height: 26px;
  width: auto;
  opacity: 0.95;
}

/* ---------- LOGO + CONTROLS (DESKTOP) ---------- */
.logo{
  position:fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

/* Right controls column */
.controls{
  position: fixed;
  right: 12px;
  top: var(--edge-desktop);
  bottom: var(--edge-desktop);
  z-index: 10;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

  padding: 0;
}

.mid-stack{
  display:flex;
  flex-direction:column;
  gap: var(--ui-gap);
}

.icon-btn{
  appearance:none;
  border:0;
  background: transparent;
  cursor:pointer;
  line-height:0;

  display:flex;
  align-items:center;
  justify-content:center;

  width: 40px;
  height: 40px;

  opacity:1;
  color: var(--black);
}

.icon-btn:active{ transform: scale(0.98); }

/* Volume toggle: stack icons and show one */
.icon-volume{ position: relative; }
.icon-volume .svg-on,
.icon-volume .svg-off{
  position: absolute;
  inset: 0;
  margin: auto;
}
.icon-volume .svg-off{ opacity: 0; }
.icon-volume .svg-on { opacity: 1; }
.icon-volume.is-muted .svg-off{ opacity: 1; }
.icon-volume.is-muted .svg-on { opacity: 0; }

/* ---------- HOVER COLORS (DESKTOP ONLY) ---------- */
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover,
  .logo:hover { opacity: 1; }
}

/* ---------- THEMES (ICON COLORS + HOVERS) ---------- */
/* BLACK BG */
body[data-theme="black"]{
  background-color: var(--black);
  --text-color: var(--white);
  --info-fade: rgba(0,0,0,0.55);
}
body[data-theme="black"] .icon-logo,
body[data-theme="black"] .icon-randomize,
body[data-theme="black"] .icon-color,
body[data-theme="black"] .icon-volume{
  color: var(--white);
}
body[data-theme="black"] .icon-save,
body[data-theme="black"] .icon-info,
body[data-theme="black"] .icon-close{
  color: var(--pink);
}
@media (hover:hover) and (pointer:fine){
  body[data-theme="black"] .icon-logo:hover,
  body[data-theme="black"] .icon-randomize:hover,
  body[data-theme="black"] .icon-color:hover,
  body[data-theme="black"] .icon-volume:hover{
    color: var(--pink);
  }
  body[data-theme="black"] .icon-save:hover,
  body[data-theme="black"] .icon-info:hover,
  body[data-theme="black"] .icon-close:hover{
    color: var(--white);
  }
}

/* PINK BG (all icons default black for accessibility) */
body[data-theme="pink"]{
  background-color: var(--pink);
  --text-color: var(--white);
  --info-fade: rgba(0,0,0,0.55);
}
body[data-theme="pink"] .icon-logo,
body[data-theme="pink"] .icon-randomize,
body[data-theme="pink"] .icon-color,
body[data-theme="pink"] .icon-volume,
body[data-theme="pink"] .icon-save,
body[data-theme="pink"] .icon-info,
body[data-theme="pink"] .icon-close{
  color: var(--black);
}
@media (hover:hover) and (pointer:fine){
  body[data-theme="pink"] .icon-btn:hover,
  body[data-theme="pink"] .logo:hover{
    color: var(--white);
  }
}

/* WHITE BG = DBDBDB (icons default black for accessibility) */
body[data-theme="white"]{
  background-color: var(--white);
  --text-color: var(--black);
  --info-fade: rgba(219,219,219,0.92);
}
body[data-theme="white"] .icon-logo,
body[data-theme="white"] .icon-randomize,
body[data-theme="white"] .icon-color,
body[data-theme="white"] .icon-volume,
body[data-theme="white"] .icon-save,
body[data-theme="white"] .icon-info,
body[data-theme="white"] .icon-close{
  color: var(--black);
}
@media (hover:hover) and (pointer:fine){
  body[data-theme="white"] .icon-btn:hover,
  body[data-theme="white"] .logo:hover{
    color: var(--pink);
  }
}

/* ---------- MOBILE + PORTRAIT TABLET LAYOUT ---------- */
@media (max-width: 1024px) and (orientation: portrait){
  /* Logo -> top center */
  .logo{
    left: 50%;
    top: max(var(--edge-mobile), env(safe-area-inset-top));
    transform: translateX(-50%);
  }

  /* Controls -> bottom bar */
  .controls{
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;

    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding-left: max(var(--edge-mobile), env(safe-area-inset-left));
    padding-right: max(var(--edge-mobile), env(safe-area-inset-right));
    padding-bottom: max(var(--edge-mobile), env(safe-area-inset-bottom));

    height: auto;
  }

  /* Middle stack becomes horizontal */
  .mid-stack{
    flex-direction: row;
    gap: var(--ui-gap);
  }

  /* Canvas stays square, and avoids overlapping top/bottom UI */
  .sketch-holder canvas{
    width: min(92vw, calc(100dvh - 180px));
    height: min(92vw, calc(100dvh - 180px));
    aspect-ratio: 1 / 1;
  }
}

/* ---------- INFO OVERLAY (simple fades, no duplicated text) ---------- */
/* Blur the background (snowflake + UI) while info overlay is open */
body.info-open .stage{
  filter: blur(20px);
  transform: translateZ(0);
  transform: scale(0.98);
}

/* Make sure overlay + close button stay crisp above the blur */
.info-overlay,
#btn-info-close{
  filter: none;
}

.stage{
  transition:
    filter 300ms ease;
    transform: 300ms ease;
    transform-origin: center center;
}

.info-overlay{
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  pointer-events: none;
}

.info-overlay.is-open{
  display: block;
  pointer-events: auto;
}


/* hide Info button while overlay is open (prevents overlap) */
body.info-open .icon-info{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Close button: same position as info icon (top-right) */
#btn-info-close{
  position: fixed;
  top: var(--edge-desktop);
  right: 12px;
  z-index: 60;
  pointer-events: auto;
}

@media (max-width: 1024px){
  #btn-info-close{
    top: var(--edge-mobile);
    right: var(--edge-mobile);
  }
}

/* Layout wrapper */
.info-shell{
  position: absolute;
  inset: 0;
  display: block;
  place-items: center;
  /*padding: var(--edge-desktop);*/
  box-sizing: border-box;
}

@media (max-width: 1024px){
  .info-shell{ padding: var(--edge-mobile); }
}

/* Scroll container (60% width on desktop, full on mobile) */
.info-scroll{
  width: 40%;
  height: 100dvh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding-top: calc(max(var(--edge-desktop), env(safe-area-inset-top)) + 120px);
  padding-bottom: calc(max(var(--edge-desktop), env(safe-area-inset-bottom)) + 140px);
  padding-left: 3%;
  padding-right: 3%;
  box-sizing: border-box;
  box-sizing: border-box;
  margin-left: auto;
}

.info-scroll h1{
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 110%;
  letter-spacing: -1.12px;
  margin: 0 0 32px 0;
}

.info-scroll h2{
  font-family: "owners", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.32px;
  margin: 0 0 6px 0;
}

.info-scroll p{
  font-family: "owners-text", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 116%;
  letter-spacing: -0.1px;
  margin: 0 0 20px 0;
}

@media (max-width: 1024px){
  .info-scroll{
    width: 100%;
    height: 100dvh;
    padding-top: calc(max(var(--edge-mobile), env(safe-area-inset-top)) + 110px);
    padding-right: max(16px, env(safe-area-inset-right));
    padding-bottom: calc(max(var(--edge-mobile), env(safe-area-inset-bottom)) + 140px);
    padding-left: max(16px, env(safe-area-inset-left));
  }
}

/* Theme-aware text color */
body[data-theme="black"] { --info-text: #DBDBDB; }
body[data-theme="pink"]  { --info-text: #DBDBDB; }
body[data-theme="white"] { --info-text: #181818; }

.info-scroll,
.info-scroll *{
  color: var(--info-text);
}

/* Keep your text styling in one place */
.info-text{
  font-size: 1.2rem;
  line-height: 0.95;
  letter-spacing: 1.5px;
}

@media (max-width: 640px){
  .info-text{
    font-size: 2rem;
    line-height: 1;
  }
}

/* Turn OFF duplicated blur layer (no HTML/JS edits needed) */
#info-text-blur{
  display: none !important;
}

/* Fade bands (simple gradient, no backdrop blur “glow”) */
.info-fade{
  position: absolute;
  left: 0;
  right: 0;
  height: 110px;
  pointer-events: none;
  z-index: 55;
}

.info-fade-top{ top: 0; }
.info-fade-bottom{ bottom: 0; transform: rotate(180deg); }

/* Fade color matches current page background */
body[data-theme="black"] .info-fade{
  background: linear-gradient(
    to bottom,
    rgba(24,24,24,1) 0%,
    rgba(24,24,24,0.98) 18%,
    rgba(24,24,24,0.65) 55%,
    rgba(24,24,24,0.0) 100%
  );
}


body[data-theme="pink"] .info-fade{
  background: linear-gradient(
    to bottom,
    rgba(255,62,181,1) 0%,
    rgba(255,62,181,0.98) 18%,
    rgba(255,62,181,0.65) 55%,
    rgba(255,62,181,0.0) 100%
  );
}


body[data-theme="white"] .info-fade{
  background: linear-gradient(
    to bottom,
    rgba(219,219,219,1) 0%,
    rgba(219,219,219,0.98) 18%,
    rgba(219,219,219,0.65) 55%,
    rgba(219,219,219,0.0) 100%
  );
}


/* Close icon coloring + hover rules*/
/* Black B*/
body[data-theme="black"] #btn-info-close{ color: #DBDBDB; }
body[data-theme="black"] #btn-info-close:hover{ color: #FF3EB5; }

/* Pink BG */
body[data-theme="pink"] #btn-info-close{ color: #DBDBDB; }
body[data-theme="pink"] #btn-info-close:hover{ color: #181818; opacity: 0.85; }

/* White BG*/
body[data-theme="white"] #btn-info-close{ color: #FF3EB5; }
body[data-theme="white"] #btn-info-close:hover{ color: #181818; }

.info-media{
  margin: 24px 0 28px;
}

.info-media img{
  display: block;
  width: 100%;
  height: auto;
}

/*  MAILCHIMP STYLING */
/* MAILCHIMP STYLING */
.mc-signup{
  margin-top: 48px;
  font-family: "owners-text", sans-serif;
  font-size: 1.2rem;
  line-height: 116%;
  letter-spacing: -0.1px;
  color: var(--info-text);
}

.mc-form{
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: 100%;
}

.mc-field-group{
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Shared underline system */
.mc-form input,
.mc-form button{
  padding: 24px 0 6px 0;
  line-height: 1.10;
  background: transparent;
  border: none;
  border-radius: 0;
  font: inherit;
  outline: none;
  color: var(--info-text);
  border-bottom: 1px solid color-mix(in srgb, var(--info-text) 45%, transparent);
  transition: color 260ms ease, border-color 260ms ease, opacity 200ms ease;
}

.mc-form input{
  width: 100%;
}

.mc-form input::placeholder{
  color: color-mix(in srgb, var(--info-text) 55%, transparent);
}

.mc-form button{
  cursor: pointer;
  white-space: nowrap;
}

/* Mailchimp responses */
.mc-responses{
  margin-top: 8px;
  font-size: 0.9em;
}

.mc-error{ color: #ffb3c7; }
.mc-success{ color: #b6ffd9; }

/* Hide honeypot */
.mc-honeypot{
  position: absolute;
  left: -5000px;
}

@media (hover:hover) and (pointer:fine){
  body[data-theme="black"] .mc-form input:focus,
  body[data-theme="black"] .mc-form input:hover,
  body[data-theme="black"] .mc-form button:hover{
    color: var(--pink);
    border-bottom-color: var(--pink);
  }

  body[data-theme="pink"] .mc-form input:focus,
  body[data-theme="pink"] .mc-form input:hover,
  body[data-theme="pink"] .mc-form button:hover{
    color: var(--black);
    border-bottom-color: var(--white);
  }

  body[data-theme="white"] .mc-form input:focus,
  body[data-theme="white"] .mc-form input:hover,
  body[data-theme="white"] .mc-form button:hover{
    color: var(--pink);
    border-bottom-color: var(--pink);
  }
}

/* Social Icons */
.socials{
  margin-top: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.socials svg{
  width: 24px;
  height: 24px;
  display: block;
}

.socials a{
  color: inherit;
  transition: color 260ms ease, opacity 200ms ease;
  display: inline-flex;
  align-items: center;
}

@media (hover:hover) and (pointer:fine){
  body[data-theme="black"] .socials a:hover,
  body[data-theme="black"] .socials a:focus-visible{
    color: var(--pink);
  }

  body[data-theme="pink"] .socials a:hover,
  body[data-theme="pink"] .socials a:focus-visible{
    color: var(--black);
  }

  body[data-theme="white"] .socials a:hover,
  body[data-theme="white"] .socials a:focus-visible{
    color: var(--pink);
  }
}




