/* Tavin Makai v5. Simple, artsy, quiet. */

:root {
  --paper: #f4f1e8;
  --plate: #e8e2d1;
  --ink: #1c1a16;
  --ink-soft: #5c564b;
  --line: rgba(28, 26, 22, 0.22);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Karla', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: var(--ink); }

/* ---------- big hero ---------- */

.top-hero {
  min-height: 92vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.hero-row {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1.2rem, 4vw, 2.6rem);
  flex-wrap: wrap;
}

.top-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.hero-dude {
  display: flex; flex-direction: column; align-items: center;
}

.hero-doodle {
  width: clamp(150px, 20vw, 210px);
  height: auto;
  border-radius: 8px;
  transform: rotate(3deg);
  background: #fff;
}

.hero-dude-cap {
  margin-top: 0.7rem;
  background: var(--plate);
  padding: 0.28rem 1rem;
  border-radius: 3px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  transform: rotate(-1.5deg);
  white-space: nowrap;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 1.6rem;
}

.hero-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.4rem 1.7rem;
  margin-top: 1.6rem;
}

.hero-nav a, .slimbar-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
}
.hero-nav a:hover, .slimbar-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- slim bar ---------- */

.slimbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.65rem 1.5rem;
  background: rgba(244, 241, 232, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform 0.35s ease;
}
.slimbar.visible { transform: translateY(0); }

.slimbar-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
}

.slimbar-nav { display: flex; align-items: center; gap: 1.4rem; }

.menu-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 6px;
}
.menu-btn span { width: 24px; height: 2px; background: var(--ink); }

/* ---------- sections ---------- */

.section {
  max-width: 1020px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  scroll-margin-top: 80px;
}

.forsale-anchor { scroll-margin-top: 80px; }

.section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 2.7rem);
  margin-bottom: 0.3rem;
}

.lede { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 2.2rem; max-width: 38rem; }
.lede a, .note a, .want, .price.link { text-decoration: underline; text-underline-offset: 3px; }

.label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}
#work .label:not(:first-child) { margin-top: 3rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem;
}

.grid-paintings { grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.pet-sign {
  background: var(--plate);
  border-radius: 8px;
  padding: 1.5rem 1.3rem;
  transform: rotate(-1deg);
  box-shadow: 0 6px 16px rgba(28, 26, 22, 0.09);
  display: flex; flex-direction: column; justify-content: center; gap: 0.5rem;
}
.pet-sign h4 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.2; }
.pet-sign p { font-size: 0.92rem; color: var(--ink-soft); }
.pet-sign a { font-weight: 600; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; }

.piece { cursor: zoom-in; }
.piece img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.piece:hover img { opacity: 0.88; }
.piece figcaption { margin-top: 0.7rem; }
.piece .t { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; display: block; }
.piece .m { display: block; font-size: 0.88rem; color: var(--ink-soft); }
.piece .want { display: inline-block; font-size: 0.9rem; font-weight: 600; margin-top: 0.3rem; cursor: pointer; }

.note { margin-top: 2rem; color: var(--ink-soft); }

/* commissions */
.rows { border-top: 1px solid var(--line); margin-bottom: 0.5rem; }
.row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.row h3 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; }
.row p { color: var(--ink-soft); font-size: 0.98rem; }
.row .price { font-family: var(--serif); font-size: 1.3rem; white-space: nowrap; }

/* for businesses */
.shop {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
}
.shop-text p { margin-bottom: 1rem; color: var(--ink-soft); font-size: 1.05rem; max-width: 30rem; }
.shop-text a { font-weight: 600; }
#business .label { margin-top: 2.5rem; }

/* about + footer */
#about p { font-size: 1.1rem; max-width: 36rem; margin-bottom: 0.6rem; }
#about .dim, .footer .dim { color: var(--ink-soft); }

.footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 2.2rem 1.5rem 2.6rem;
  font-size: 0.95rem;
}
.footer p { margin-bottom: 0.25rem; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28, 26, 22, 0.93);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.8rem;
  padding: 2rem; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 900px); max-height: 78vh; }
.lightbox p { color: var(--paper); font-family: var(--serif); font-style: italic; font-size: 1.35rem; }
.lightbox-close {
  position: absolute; top: 1rem; right: 1.4rem;
  background: none; border: none; color: var(--paper);
  font-size: 2.4rem; cursor: pointer; line-height: 1;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .grid-paintings { grid-template-columns: 1fr 1fr; }
  .shop { grid-template-columns: 1fr; }
  .shop .piece { max-width: 280px; }

  .menu-btn { display: flex; }
  .slimbar-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1rem;
    gap: 0;
  }
  .slimbar-nav.open { display: flex; }
  .slimbar-nav a { padding: 0.55rem 0; border-top: 1px solid var(--line); }
  .slimbar-nav a:first-child { border-top: none; }
}

