/* ============================================================
   Artbnb — Scrapbook design system
   Tokens, base, shared nav/footer/modal, landing components.
   ============================================================ */

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

:root {
  --sky: #EFE9DD;
  --paper: #FFFDF8;
  --ink: #242019;
  --coral: #E85D3F;
  --mustard: #E8AA3D;
  --sage: #7A8A5C;
  --tape: #F3DDA8;
  --line: rgba(36, 32, 25, 0.14);
  --body: #4a453b;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-script:  'Caveat', 'Segoe Script', cursive;
  --font-sans:    'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --container-max: 1180px;
  --container-pad: 32px;

  --shadow-ink: 4px 4px 0 var(--ink);
  --shadow-ink-sm: 2px 2px 0 var(--ink);
  --shadow-drop: 0 14px 30px rgba(36, 32, 25, 0.22);
}

html { scroll-behavior: smooth; }

body {
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Typography helpers */
.display { font-family: var(--font-display); }
.script  { font-family: var(--font-script); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink);
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--coral); }
p { color: var(--body); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--coral);
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
}
.lede {
  color: var(--body);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 560px;
}
.rule {
  width: 60px;
  height: 2px;
  background: var(--ink);
  margin-top: 22px;
  border-radius: 2px;
}

.container,
.wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ------------------- Buttons ------------------- */
.btn-primary,
.primary-button,
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  background: var(--coral);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-primary:hover,
.primary-button:hover,
.cta-button:hover {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-ink-sm);
}
.primary-button.large { padding: 18px 34px; font-size: 1rem; }

.btn-outline,
.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease;
}
.btn-outline:hover,
.secondary-button:hover { background: var(--sky); }

.link-underline {
  color: var(--ink);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 3px;
}

/* ------------------- Nav ------------------- */
.navbar {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: relative;
  z-index: 10;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 76px;
}
.nav-logo h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.nav-logo .accent {
  font-style: italic;
  color: var(--coral);
}
.nav-logo h2::after {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  background: var(--coral);
  border-radius: 50%;
  margin-left: 6px;
  transform: translateY(-6px);
}
.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-link {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--coral); }

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 100px;
  background: var(--paper);
  font-size: 0.78rem;
  font-weight: 800;
}
.lang-btn { color: var(--ink); opacity: 0.5; }
.lang-btn.active { color: var(--coral); opacity: 1; }
.lang-separator { color: var(--ink); opacity: 0.4; }

/* Cart / pill variant reused for compact nav CTA if needed */
.nav-menu .cta-button {
  padding: 10px 18px;
  font-size: 0.82rem;
  box-shadow: none;
}
.nav-menu .cta-button:hover { transform: none; box-shadow: none; background: var(--ink); color: var(--paper); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(-45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(45deg); }

/* ------------------- Section head ------------------- */
.section-header {
  max-width: 620px;
  margin-bottom: 44px;
}
.section-header .eyebrow { margin-bottom: 6px; }
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin-top: 6px;
}
.section-header p {
  color: var(--body);
  font-size: 1rem;
  margin-top: 12px;
  max-width: 520px;
}
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center .rule { margin-left: auto; margin-right: auto; }

/* ------------------- Hero ------------------- */
.hero { padding: 72px 0 40px; }
.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.hero-content .eyebrow {
  font-size: 1.5rem;
  transform: rotate(-2deg);
  margin-bottom: 4px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 10px 0 22px;
}
.hero-title em { color: var(--coral); font-style: italic; }
.hero-description {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--body);
  max-width: 460px;
  margin: 0 0 28px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero scrapbook cluster */
.hero-visual { position: relative; }
.cluster {
  position: relative;
  height: 500px;
}
.polaroid {
  position: absolute;
  background: var(--paper);
  padding: 14px 14px 46px;
  border: 1px solid rgba(36, 32, 25, 0.08);
  box-shadow: var(--shadow-drop);
}
.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polaroid .cap {
  position: absolute;
  bottom: 10px;
  left: 16px;
  font-family: var(--font-script);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.polaroid .cap a { color: inherit; border-bottom: 1px dashed var(--line); }
.polaroid .cap a:hover { color: var(--coral); }
.polaroid.p1 { width: 280px; height: 340px; top: 0;      left: 30px;  transform: rotate(-5deg); z-index: 2; }
.polaroid.p2 { width: 220px; height: 270px; top: 60px;   right: 0;    transform: rotate(6deg);  z-index: 1; }
.polaroid.p3 { width: 200px; height: 160px; bottom: 0;   left: 0;     transform: rotate(4deg);  z-index: 3; }

.washi {
  position: absolute;
  width: 96px;
  height: 26px;
  background: var(--tape);
  opacity: 0.9;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.washi.w1 { top: -10px;  left: 70px;   transform: rotate(-8deg); z-index: 4; }
.washi.w2 { top: 44px;   right: 36px;  transform: rotate(10deg); z-index: 4; }

.stamp-badge {
  position: absolute;
  bottom: 18px;
  right: 24px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  border: 2px dashed var(--sage);
  background: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.62rem;
  color: var(--sage);
  transform: rotate(-10deg);
  line-height: 1.25;
  padding: 6px;
  z-index: 5;
}

/* Legacy hero-img fallback (kept so other pages/markup still render) */
.hero-visual .hero-img {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 14px 46px;
  box-shadow: var(--shadow-drop);
  transform: rotate(-2deg);
  aspect-ratio: 4/5;
  overflow: hidden;
}
.hero-visual .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  margin-top: 16px;
  font-family: var(--font-script);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.hero-caption .artist-link { color: var(--coral); }
.hero-caption .artist-link:hover { text-decoration: underline; }
.hero-caption span { color: var(--body); font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; }

/* ------------------- Proof bar ------------------- */
.proof-bar {
  background: var(--mustard);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.proof-inner {
  display: flex;
  flex-wrap: wrap;
  padding: 22px var(--container-pad);
  gap: 0;
}
.proof-item {
  flex: 1;
  min-width: 200px;
  padding: 0 24px;
  font-weight: 800;
  font-size: 0.9rem;
  border-left: 2px solid var(--ink);
}
.proof-item:first-child { border-left: none; padding-left: 0; }
.proof-item span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.05;
  margin-bottom: 2px;
}

/* ------------------- How it works ------------------- */
.how-it-works {
  padding: 88px 0;
  background: var(--paper);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  position: relative;
  background: var(--sky);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 28px 24px;
}
.step .postmark,
.step-num {
  position: absolute;
  top: -18px;
  right: 22px;
  background: var(--coral);
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.9rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  margin: 0;
  line-height: 1;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 10px 0 10px;
}
.step p {
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ------------------- Split sections (hosts / artists) ------------------- */
.hosts-section,
.artists-section { padding: 88px 0; }
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.section-split.reverse { direction: rtl; }
.section-split.reverse > * { direction: ltr; }

.section-content .eyebrow { display: inline-block; margin-bottom: 8px; }
.section-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 18px;
}
.section-content h2 .accent { color: var(--coral); font-style: italic; }
.section-description {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 26px;
  max-width: 520px;
}
.benefits-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}
.benefits-list .benefit,
.benefits-list li {
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 0.98rem;
  color: var(--ink);
  font-weight: 600;
}
.benefits-list .benefit::before,
.benefits-list li::before {
  content: '✶';
  color: var(--coral);
  font-size: 1rem;
  flex-shrink: 0;
}
.benefit svg { display: none; }

/* Framed showcase image (host section) */
.section-visual .host-showcase,
.host-showcase {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-ink);
  transform: rotate(1.5deg);
}
.host-showcase img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Artist showcase polaroid grid */
.artist-showcase { padding: 8px; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.gallery-grid .art-piece {
  aspect-ratio: 1;
  background: var(--paper);
  background-size: cover;
  background-position: center;
  border: 2px solid var(--ink);
  border-radius: 10px;
  position: relative;
  box-shadow: var(--shadow-ink-sm);
  overflow: hidden;
}
.gallery-grid .art-piece:nth-child(1) { transform: rotate(-2deg); }
.gallery-grid .art-piece:nth-child(2) { transform: rotate(1.5deg); }
.gallery-grid .art-piece:nth-child(3) { transform: rotate(1deg); }
.gallery-grid .art-piece:nth-child(4) { transform: rotate(-1deg); }

.gallery-grid .art-piece .credit {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 100px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.gallery-grid .art-piece a.credit:hover { background: var(--coral); color: var(--paper); }
.gallery-grid .art-piece.placeholder {
  background: var(--tape);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: var(--font-script);
  font-size: 1.6rem;
  font-weight: 700;
}

/* ------------------- Impact ------------------- */
.impact-section { padding: 88px 0; background: var(--sky); }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 20px;
}
.impact-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.15s ease;
  display: flex;
  flex-direction: column;
}
.impact-card:hover { transform: translateY(-4px); }
.impact-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
  display: block;
  margin: 0;
}
.impact-card .impact-num {
  display: inline-block;
  margin: 18px 20px 0;
  font-family: var(--font-script);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sage);
}
.impact-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 4px 20px 8px;
}
.impact-card p {
  margin: 0 20px 22px;
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ------------------- CTA band ------------------- */
.cta-section {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 90px 0;
}
.cta-content .eyebrow {
  display: inline-block;
  color: var(--mustard);
  margin-bottom: 6px;
}
.cta-content h2 {
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  max-width: 640px;
  margin: 0 auto 22px;
}
.cta-content h2 em { color: var(--mustard); font-style: italic; }
.cta-content p {
  color: rgba(255, 253, 248, 0.75);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 32px;
}
.cta-content .primary-button {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  box-shadow: 4px 4px 0 var(--mustard);
}
.cta-content .primary-button:hover { box-shadow: 2px 2px 0 var(--mustard); }

/* ------------------- Footer ------------------- */
.footer {
  background: var(--sky);
  border-top: 2px solid var(--ink);
  padding: 56px 0 28px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: baseline;
}
.footer-brand h3 .accent { color: var(--coral); font-style: italic; }
.footer-brand p {
  color: var(--body);
  font-size: 0.92rem;
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
  transition: color 0.15s ease;
}
.footer-social:hover { color: var(--coral); }
.footer-links { display: contents; }
.footer-column h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
  font-weight: 800;
}
.footer-column a {
  display: block;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 5px 0;
  transition: color 0.15s ease;
}
.footer-column a:hover { color: var(--coral); }
.footer-bottom {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  font-weight: 700;
}
.footer-legal a { margin-left: 18px; }
.footer-legal a:hover { color: var(--coral); }

/* ------------------- QR modal ------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(36, 32, 25, 0.6);
  z-index: 100;
  justify-content: center;
  align-items: center;
}
.modal.active { display: flex; }
.modal-content {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-ink);
  max-width: 480px;
  width: 90%;
  padding: 28px;
  position: relative;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 0;
}
.close-modal {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}
.close-modal:hover { color: var(--coral); }
#scanner-container {
  border: 2px dashed var(--ink);
  border-radius: 12px;
  aspect-ratio: 1;
  margin-bottom: 16px;
  background: var(--sky);
}
.camera-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  text-align: center;
  gap: 14px;
}
.camera-placeholder svg { color: var(--sage); }
.camera-placeholder p { font-size: 0.92rem; color: var(--body); font-weight: 600; }
.scanner-help p { font-size: 0.85rem; color: var(--body); text-align: center; }

/* ------------------- Responsive ------------------- */
@media (max-width: 900px) {
  .hero-container,
  .section-split,
  .steps-grid,
  .impact-grid,
  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 36px;
  }
  .section-split.reverse { direction: ltr; }
  .cluster { height: 420px; }
  .polaroid.p1 { width: 240px; height: 290px; left: 10px; }
  .polaroid.p2 { width: 190px; height: 230px; right: 10px; }
  .polaroid.p3 { width: 170px; height: 140px; left: 20px; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px var(--container-pad) 28px;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    z-index: 20;
  }
  .nav-menu.active { display: flex; }
  .nav-menu .nav-link { font-size: 1rem; }
  .hamburger { display: flex; }

  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .footer-legal a:first-child { margin-left: 0; }
}
@media (max-width: 520px) {
  :root { --container-pad: 22px; }
  .hero { padding: 48px 0 24px; }
  .hero-title { font-size: 2.4rem; }
  .cluster { height: 380px; }
  .polaroid.p1 { width: 200px; height: 250px; }
  .polaroid.p2 { width: 160px; height: 200px; }
  .polaroid.p3 { width: 150px; height: 120px; }
  .stamp-badge { width: 70px; height: 70px; font-size: 0.55rem; }
  .proof-inner { padding: 18px 22px; }
  .proof-item { min-width: 100%; border-left: none; padding: 8px 0; border-top: 1px dashed var(--ink); }
  .proof-item:first-child { border-top: none; padding-top: 0; }
}
