
/* ========================================
   JESBALA — WEBSITE STYLES
   ======================================== */

/* GENERAL */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #111;
  font: 15px/1.5 Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #777;
}

/* MAIN LAYOUT */

.wrap {
  max-width: 1280px;
  margin: auto;
  padding: 28px 38px 80px;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

/* WEBSITE TITLE */

.brand {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.brand:hover,
.brand:focus-visible {
  color: #167d35;
  text-decoration: none;
}

/* ========================================
   HOMEPAGE NAVIGATION
   ======================================== */

.home {
  min-height: 72vh;
}

.sun-home .home-links {
  margin-top: 90px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.sun-home .home-links a {
  display: block;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: #111;
  text-decoration: none;
  transition: color 0.2s ease;
}

.sun-home .home-links a:hover,
.sun-home .home-links a:focus-visible {
  color: #167d35;
  text-decoration: none;
}

/* LONG TITLE WITH HANGING INDENT */

.sun-home .home-links .rhythms-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  line-height: 1.5;
}

.sun-home .home-links .rhythms-link span {
  display: block;
}

.sun-home .home-links .rhythms-link span:last-child {
  padding-left: 16px;
}

/* SECONDARY NAVIGATION */

.sun-home .home-links .nav-secondary {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 32px;
}

/* NAME AND LOCATION */

.home-note {
  margin-top: 100px;
  color: #666;
  font-size: 12px;
}

/* ========================================
   PAGE CONTENT
   ======================================== */

.page-heading {
  margin: 72px 0 35px;
  font-size: 18px;
  font-weight: 400;
}

.intro {
  max-width: 650px;
  margin: 0 0 50px;
}

/* ARTWORK AND PHOTOGRAPHY GRIDS */

.archive {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 26px;
  row-gap: 70px;
}

.piece {
  grid-column: span 6;
  min-width: 0;
}

.piece.wide {
  grid-column: span 12;
}

.piece.narrow {
  grid-column: span 4;
}

.piece figure {
  margin: 0;
}

.piece img {
  display: block;
  width: 100%;
  height: auto;
  background: #f1f1f1;
}

.piece figcaption {
  margin-top: 12px;
  font-size: 13px;
}

.piece .details {
  color: #666;
  font-size: 12px;
  margin-top: 3px;
}

.piece a {
  text-decoration: none;
}

.piece a:hover figcaption {
  text-decoration: underline;
}

/* INDIVIDUAL PROJECT PAGES */

.project {
  max-width: 960px;
}

.project img {
  width: 100%;
  height: auto;
  display: block;
  margin: 35px 0;
}

.project .details {
  color: #666;
}

.back {
  display: inline-block;
  margin-top: 40px;
}

/* TEXT CONTENT */

.copy {
  max-width: 640px;
}

.copy p {
  margin: 0 0 18px;
}

/* IMAGE PLACEHOLDERS */

.placeholder {
  display: block;
  width: 100%;
  background: #f4f4f4;
}

.placeholder text {
  font-family: Arial, sans-serif;
}

/* FOOTER */

.footer {
  margin-top: 120px;
  padding-top: 16px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #555;
}

/* ========================================
   INTERACTIVE HALFTONE SUN
   ======================================== */

.sun-home {
  position: relative;
  min-height: 72vh;
  isolation: isolate;
}

.sun-home .home-links,
.sun-home .home-note {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.sun-home .home-links a {
  pointer-events: auto;
}

.sun-button {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 0;
  width: min(69%, 760px);
  height: min(69vw, 650px);
  max-height: 72vh;
  min-height: 400px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: crosshair;
  touch-action: pan-y;
}

.sun-button canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.sun-button:focus-visible {
  outline: 1px solid #777;
  outline-offset: 3px;
}

.sun-home .home-note {
  margin-top: 115px;
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */

@media (max-width: 700px) {

  .wrap {
    padding: 22px 18px 55px;
  }

  .top {
    display: block;
  }

  .page-heading {
    margin-top: 54px;
  }

  .archive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 35px 14px;
  }

  .piece,
  .piece.wide {
    grid-column: span 2;
  }

  .piece.narrow {
    grid-column: span 1;
  }

  .footer {
    margin-top: 70px;
  }

  /* MOBILE HOMEPAGE */

  .sun-home {
    min-height: 750px;
  }

  .sun-home .home-links {
    margin-top: 65px;
  }

  /* MOBILE SUN */

  .sun-button {
    top: 205px;
    right: -10px;
    width: 100%;
    height: 440px;
    min-height: 0;
  }

  /* MOBILE NAME AND LOCATION */

  .sun-home .home-note {
    margin-top: 340px;
  }

  /* LONG TITLE ON SMALL SCREENS */

  .sun-home .home-links .rhythms-link {
    max-width: 100%;
  }

  .sun-home .home-links .rhythms-link span {
    overflow-wrap: break-word;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  .brand,
  .sun-home .home-links a {
    transition: none;
  }
}

/* Homepage navigation aligned to Whisky sidebar (desktop only).
   Keeps the existing halftone sun and mobile layout intact. */
@media (min-width: 701px) {
  .wrap {
    max-width: 1450px;
    padding: 30px 44px 38px;
  }
  .sun-home .home-links {
    margin-top: 84px;
    gap: 13px;
  }
  .sun-home .home-links a {
    font-size: 15px;
    line-height: 1.2;
  }
  .sun-home .home-links .rhythms-link {
    line-height: 1.2;
  }
  .sun-home .home-links .rhythms-link span:last-child {
    padding-left: 14px;
  }
  .sun-home .home-links .nav-secondary {
    gap: 13px;
    margin-top: 17px;
  }
  .sun-home .home-note {
    margin-top: 105px;
    font-size: 11px;
    line-height: 1.45;
  }
}
