/*
  styles.css — shared across every page of the new site.

  PALETTE (confirmed from your mockups):
    black:  #000000 / white:  #ffffff / green:  #008109 / pink:   #ff91e0 / red:    #cb1c23 / orange: #ff8c23  (traffic-light hover only)
  FONT: Montserrat, weights 400 and 700 only.
*/

:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-green: #008109;
  --color-pink: #ff91e0;
  --color-red: #cb1c23;
  --color-orange: #ff8c23;
  --font-main: "Montserrat", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--color-black);
  background: var(--color-white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

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

/* ==========================================================
   SHARED ICON SYMBOLS (defined once, reused everywhere)
   Both use fill="currentColor" so you set their color from
   CSS wherever they're placed — no separate colored exports.
   ========================================================== */

.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ==========================================================
   NAV BAR — identical on every page
   ========================================================== */

.nav-bar {
  background: var(--color-black);
  color: var(--color-white);
  padding: 20px 32px;
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-bar .nav-logo {
  display: block;
  width: clamp(40px, 3vw, 64px);
  height: auto;
  color: var(--color-white);
  line-height: 0;
}

.nav-bar .nav-logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 700;
  font-size: clamp(0.9rem, 0.5vw + 0.8rem, 1.1rem);
  text-decoration: none;
  color: var(--color-white);
}

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

/* ==========================================================
   HERO — logo + BY PANDI + tagline
   ========================================================== */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 140px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-logo {
  width: 320px;
  height: auto;
  color: var(--color-black);
  flex-shrink: 0;
}

.hero-logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-title {
  font-weight: 700;
  font-size: 5.5rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hero-tagline {
  font-weight: 400;
  font-size: 1.75rem;
  color: #444;
}

/* ==========================================================
   WAVE DIVIDERS — one shape, reused everywhere.
   Use .wave-flip to point it the other direction.
   ========================================================== */

.wave {
  display: block;
  width: 100%;
  height: auto;
}

.wave-flip {
  transform: scaleY(-1);
}

/* ==========================================================
   RECEIPT SECTION — shelf photo background, floating card
   ========================================================== */

.receipt-section {
  position: relative;
  background-image: url("images/background.jpg");
  background-size: cover;
  background-position: center;
  padding: 160px 24px;
}

.receipt-card {
  max-width: 620px;
  margin: 0 auto;
  background-image: url("images/paper-texture.png");
  background-size: cover;
  background-color: #f5f5f0; /* fallback if paper-texture.png is ever missing */
  padding: 64px 28px;
  font-size: 1.5rem;
}

.receipt-logo {
  width: 60px;
  height: auto;
  color: var(--color-black);
  margin: 0 auto 16px auto;
}

.receipt-logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.receipt-heading {
  text-align: center;
  font-weight: 700;
  margin-bottom: 4px;
}

.receipt-rule {
  border-top: 1px dashed #999;
  margin: 16px 0;
}

.receipt-meta-row {
  display: flex;
  justify-content: space-between;
  font-weight: 400;
}

/*
  Each project row: name on the left, category + arrow on the right.
  TO ADD A NEW ROW LATER: copy one whole .receipt-row block, change the text and the href.
*/
.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 10px 0;
  transition: color 0.2s ease, transform 0.2s ease;
  transform-origin: left;
}

.receipt-row:hover {
  transform: scale(1.02);
}

.receipt-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding-top: 12px;
}

/* Fake barcode using striped CSS — no image asset needed */
.receipt-barcode {
  height: 50px;
  margin: 20px auto 0 auto;
  max-width: 320px;
  background-image: linear-gradient(to right, #111 0%, #111 3%, transparent 3%, transparent 4%, #111 4%, #111 5%, transparent 5%, transparent 8%, #111 8%, #111 9%, transparent 9%, transparent 10%, #111 10%, #111 11%, transparent 11%, transparent 12%, #111 12%, #111 15%, transparent 15%, transparent 16%, #111 16%, #111 19%, transparent 19%, transparent 22%, #111 22%, #111 24%, transparent 24%, transparent 25%, #111 25%, #111 27%, transparent 27%, transparent 29%, #111 29%, #111 30%, transparent 30%, transparent 31%, #111 31%, #111 32%, transparent 32%, transparent 33%, #111 33%, #111 34%, transparent 34%, transparent 36%, #111 36%, #111 38%, transparent 38%, transparent 39%, #111 39%, #111 41%, transparent 41%, transparent 42%, #111 42%, #111 45%, transparent 45%, transparent 48%, #111 48%, #111 51%, transparent 51%, transparent 53%, #111 53%, #111 55%, transparent 55%, transparent 56%, #111 56%, #111 58%, transparent 58%, transparent 60%, #111 60%, #111 61%, transparent 61%, transparent 65%, #111 65%, #111 69%, transparent 69%, transparent 70%, #111 70%, #111 74%, transparent 74%, transparent 78%, #111 78%, #111 79%, transparent 79%, transparent 82%, #111 82%, #111 84%, transparent 84%, transparent 85%, #111 85%, #111 86%, transparent 86%, transparent 87%, #111 87%, #111 88%, transparent 88%, transparent 92%, #111 92%, #111 93%, transparent 93%, transparent 94%, #111 94%, #111 95%, transparent 95%, transparent 97%, #111 97%, #111 98%, transparent 98%, transparent 99%, #111 99%, #111 100%);
}

/* ==========================================================
   JOURNAL TEASER — green wave section
   ========================================================== */

.journal-teaser-section {
  background: var(--color-green);
  padding: 64px 48px;
}

.journal-teaser-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
  flex-wrap: wrap;
}

.journal-teaser-title {
  color: var(--color-pink);
  font-weight: 700;
  font-size: 6rem;
  text-decoration: none;
}

/* The little card — the real SVG you provided, embedded directly */
.journal-teaser-card {
  width: 340px;
  height: 340px;
  text-decoration: none;
  flex-shrink: 0;
}

.journal-teaser-card svg {
  width: 100%;
  height: 100%;
  display: block;
}

.teaser-arrow-group {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.journal-teaser-card:hover .teaser-arrow-group {
  transform: scale(1.12);
}

/* ==========================================================
   ABOUT TEASER — photo with overlay text
   ========================================================== */

.about-teaser {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-pink);
  min-height: 700px;
  padding: 80px 24px;
  text-decoration: none;
  color: var(--color-black);
  overflow: hidden;
}

.about-teaser-card {
  position: relative;
  max-width: 480px;
  width: 100%;
}

.about-teaser-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.about-teaser:hover .about-teaser-image {
  transform: scale(1.06);
}

.about-teaser-label {
  position: absolute;
  top: -18px;
  left: 20px;
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 6px 18px;
  z-index: 2;
}

/* ==========================================================
   FOOTER — identical on every page
   ========================================================== */

.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  margin-top: auto;
}

.site-footer .back-to-top {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--color-white);
}

.site-footer .back-to-top:hover {
  text-decoration: underline;
}

.reach-out-heading {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.reach-out-line {
  margin-bottom: 8px;
}

.reach-out-line a {
  text-decoration: none;
}

.reach-out-line a:hover {
  text-decoration: underline;
}

.thanks-heading {
  font-weight: 700;
  font-size: 3rem;
  margin: 40px 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.thanks-logo {
  width: 48px;
  height: auto;
  color: var(--color-white);
}

.thanks-logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.copyright {
  font-size: 0.85rem;
  color: #aaa;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .nav-bar .nav-logo {
    display: none;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .journal-teaser-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .journal-teaser-title {
    font-size: 3rem;
  }
  .journal-teaser-card {
    width: 220px;
    height: 220px;
  }
  .receipt-meta-row,
  .receipt-row,
  .receipt-total-row {
    font-size: 0.8rem;
  }
  .reference-row {
  flex-direction: column;
  gap: 4px;
  }
}

  .reference-row span {
    width: 100%;
  }


/* ==========================================================
   PROJECT PAGES (Ceramic Archive, and same pattern for others)
   ========================================================== */
 
.project-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px 24px;
}
 
@media (min-width: 1400px) {
  .project-page { max-width: 1200px; }
}
 
@media (min-width: 1900px) {
  .project-page { max-width: 1600px; }
}
 
.project-tag {
  font-size: 1rem;
  color: #888;
}
 
.project-title {
  font-weight: 700;
  font-size: clamp(3rem, 2.3rem + 2vw, 4.5rem);
  margin: 8px 0 16px 0;
}

.archive-header {
  max-width: clamp(900px, 75vw, 1600px);
  margin: 0 auto;
  padding: 48px 24px 32px 24px;
}
 
.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 200px;
  color: #666;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 32px;
}
 
.project-doodle {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 0 auto 32px auto;
}
 
/* Black rounded number/General buttons */
.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
 
.gallery-nav a {
  background: var(--color-black);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 18px;
  border-radius: 1px;
}
 
.gallery-nav a.active {
  background: var(--color-pink);
}
 
.gallery-panel {
  display: none;
}
 
.gallery-panel.active {
  display: block;
}
 
.gallery-panel-title {
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}
 
@media (min-width: 1400px) {
  .gallery-panel-title { font-size: 1.3rem; }
}
 
@media (min-width: 1900px) {
  .gallery-panel-title { font-size: 1.5rem; }
}
 
.gallery-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
 
.gallery-stack img {
  max-width: 100%;
  max-height: clamp(400px, 55vh, 800px);
  width: auto;
  height: auto;
}
/* ==========================================================
   andiamo PAGE
   ========================================================== */

.info-block {
  max-width: 900px;
  margin: 0 auto 48px auto;
}

.info-row {
  margin-bottom: 24px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-label {
  display: inline-block;
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  margin-bottom: 8px;
}

.info-text {
  font-size: 1.05rem;
  line-height: 1.6;
}

.accordion-item {
  max-width: 900px;
  margin: 0 auto 16px auto;
  border: 2px solid var(--color-black);
}

.accordion-header {
  display: block;
  width: 100%;
  background: var(--color-black);
  color: var(--color-white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  text-align: left;
  border: none;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.accordion-pink .accordion-header:hover,
.accordion-pink .accordion-header.active {
  background: var(--color-pink);
  color: var(--color-black);
}

.accordion-green .accordion-header:hover,
.accordion-green .accordion-header.active {
  background: var(--color-green);
  color: var(--color-white);
}

.accordion-red .accordion-header:hover,
.accordion-red .accordion-header.active {
  background: var(--color-red);
  color: var(--color-white);
}

.accordion-header .arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.accordion-header.active .arrow {
  transform: rotate(90deg);
}

.accordion-content {
  display: none;
  padding: 20px;
}

.accordion-content.open {
  display: block;
}

.accordion-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
/* ==========================================================
   FANZINE PAGE
   ========================================================== */

/* The red "blob" intro: a wave-cap, solid body, wave-cap flipped — stacked with no gap, sitting on the plain white page. */
.intro-wave {
  display: block;
  width: 100%;
  height: auto;
  color: var(--color-red);
  margin: -2px 0;
}

.intro-wave-flip {
  transform: scaleY(-1);
}

.intro-body {
  background: var(--color-red);
  color: var(--color-white);
  padding: 8px 24px 32px 24px;
  font-size: 1rem;
  line-height: 1.6;
}

.intro-body-inner {
  max-width: clamp(900px, 75vw, 1600px);
  margin: 0 auto;
}

@media (min-width: 1400px) {
  .intro-body { font-size: 1.1rem; }
}

@media (min-width: 1900px) {
  .intro-body { font-size: 1.2rem; }
}

.intro-body p {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.section-label {
  text-align: left;
  font-weight: 700;
  font-size: clamp(0.9rem, 0.5vw + 0.8rem, 1.2rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 40px 0 24px 0;
}

.pager {
  text-align: center;
  margin-bottom: 16px;
}

.pager-image {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: clamp(400px, 55vh, 900px);
  width: auto;
  height: auto;
}

.pager-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.pager-prev,
.pager-next {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--color-red);
  cursor: pointer;
  padding: 8px;
}

.pager-prev:hover,
.pager-next:hover {
  color: var(--color-black);
}

/* Reference rows — black bars, white text, traffic-light hover color set by JS */
.reference-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-black);
  color: var(--color-white);
  text-decoration: none;
  padding: 12px 20px;
  margin-bottom: 8px;
  font-size: clamp(0.9rem, 0.5vw + 0.8rem, 1.15rem);
  transition: color 0.2s ease, transform 0.2s ease;
}

.reference-row:hover {
  transform: scale(1.02) translateX(4px);
}

.bts-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.bts-images img {
  max-width: min(900px, 100%);
  max-height: clamp(400px, 55vh, 800px);
  width: auto;
  height: auto;
}

.copy-cta {
  text-align: center;
  font-weight: 700;
  margin: 40px 0;
}

/* ==========================================================
   JOURNAL PAGE
   ========================================================== */

.journal-layout {
  display: grid;
  grid-template-columns: 240px 1fr 50px;
  gap: 20px;
  max-width: 1400px;
  margin: 32px auto;
  padding: 0 24px;
}

/* Sidebar */
.journal-sidebar {
  border: 2px solid var(--color-black);
}

.sidebar-block {
  border-bottom: 2px solid var(--color-black);
  padding: 14px;
}

.sidebar-block:last-child {
  border-bottom: none;
}

.sidebar-label {
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 8px 14px;
  margin: -14px -14px 14px -14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-box {
  width: 100%;
  border: 2px solid var(--color-black);
  padding: 6px 10px;
  font-family: var(--font-main);
  font-size: 0.85rem;
}

.topic-chip {
  display: block;
  width: 100%;
  border: 2px solid var(--color-black);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 10px;
  margin-bottom: 8px;
  cursor: pointer;
  color: var(--color-black);
  text-align: left;
}

.topic-chip.active {
  outline: 3px solid var(--color-black);
  outline-offset: -5px;
}

.tip-link {
  display: block;
  border: 2px solid var(--color-black);
  padding: 8px 10px;
  margin-bottom: 8px;
  text-decoration: none;
  color: var(--color-black);
  font-size: 0.85rem;
}

.tip-meta {
  display: block;
  color: #666;
  font-size: 0.75rem;
}

.tip-name {
  font-weight: 700;
}

/* Feed */
.journal-feed-wrap {
  position: relative;
  height: 650px;
  border: 2px solid var(--color-black);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.journal-feed-title {
  background: var(--color-black);
  color: var(--color-white);
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  padding: 10px 14px;
  flex-shrink: 0;
}

.journal-feed {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: none;
}

.journal-feed::-webkit-scrollbar {
  display: none;
}

.feed-loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-loading-overlay[hidden] {
  display: none;
}

.feed-loading-overlay .loading-logo {
  width: 90px;
  height: auto;
}

.feed-loading-overlay .loading-logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.journal-feed.has-expanded .journal-post:not(.is-expanded) {
  display: none;
}

.journal-post.is-expanded {
  min-height: 100%;
}

.journal-post {
  position: relative;
  border: 3px solid var(--topic-color);
  margin-bottom: 20px;
}

.post-header {
  background: var(--topic-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
}

.post-logo {
  width: 26px;
  height: auto;
  color: var(--color-white);
}

.post-logo svg {
  width: 100%;
  height: auto;
  display: block;
}

.post-controls {
  display: flex;
  gap: 6px;
}

.post-btn {
  background: var(--color-white);
  border: 1px solid var(--color-black);
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
}

.post-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  color: #777;
  padding: 10px 14px 0 14px;
}

.post-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.post-content {
  padding: 10px 14px 14px 14px;
  cursor: pointer;
}

.post-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

.post-content img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  margin-bottom: 6px;
}

.post-image-caption {
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 14px !important;
}

.post-content img.post-image-full {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.journal-post:not(.is-expanded) .post-content {
  max-height: 100px;
  overflow: hidden;
  position: relative;
}

.journal-post:not(.is-expanded) .post-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.journal-post.is-expanded .post-content {
  cursor: default;
}

/* Scroll rail */
.journal-scroll-rail {
  background: var(--color-pink);
  border: 2px solid var(--color-black);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
}

.scroll-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 6px;
}

.scroll-track {
  position: relative;
  flex: 1;
  width: 10px;
  margin: 6px 0;
  background: rgba(0, 0, 0, 0.1);
}

.scroll-thumb {
  position: absolute;
  left: 0;
  width: 100%;
  background: var(--color-black);
}


@media (max-width: 800px) {
  .journal-layout {
    grid-template-columns: 1fr;
  }
  .journal-scroll-rail {
    display: none;
  }

  .journal-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .sidebar-block:first-child {
    grid-column: 1 / -1;
  }

  .sidebar-block:nth-child(2) {
    border-right: 2px solid var(--color-black);
  }
}

/* WIP page */

.wip-page {
  text-align: center;
  padding: 60px 24px;
}

.wip-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  margin: 0 auto 32px auto;
}

.wip-text {
  font-weight: 700;
  font-size: 3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media (max-width: 700px) {
  .wip-page {
    padding: 80px 20px;
  }

  .wip-image {
    max-width: 320px;
  }

  .wip-text {
    font-size: 1.8rem;
  }
}
