/* ============================================================
   ART ADDA — monochrome gallery system
   Display: Bodoni Moda (high-contrast serif)
   UI/body: Archivo (clean grotesque)
   Labels:  Space Mono (curatorial tags)
   ============================================================ */

:root {
  --ink: #131210;          /* warm near-black */
  --ink-soft: #4a4843;
  --ink-faint: #8d8a82;
  --paper: #f4f1ea;        /* warm off-white */
  --paper-2: #ebe7dd;      /* slightly deeper panel */
  --line: #d8d3c7;
  --line-strong: #c2bcae;
  --accent: #131210;       /* default = ink (true monochrome); tweakable */
  --accent-ink: #f4f1ea;   /* text on accent */

  --serif: "Bodoni Moda", "Times New Roman", serif;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- typography ---------- */
.serif { font-family: var(--serif); }
.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; line-height: 1.02; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-size: clamp(56px, 12vw, 168px);
}

.h-xl { font-size: clamp(40px, 6.5vw, 92px); line-height: 0.96; letter-spacing: -0.01em; }
.h-lg { font-size: clamp(32px, 4.5vw, 60px); line-height: 1.0; }
.h-md { font-size: clamp(26px, 3vw, 40px); line-height: 1.05; }

p { text-wrap: pretty; }
.lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.5; color: var(--ink-soft); }

a { color: inherit; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-block: clamp(60px, 9vw, 140px); }
.rule { height: 1px; background: var(--line-strong); border: 0; margin: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  padding: 5px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background .25s, color .25s, transform .15s;
  text-decoration: none;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn .arr { transition: transform .25s; }
.btn:hover .arr { transform: translateX(4px); }

/* ---------- image placeholder ---------- */
.ph {
  position: relative;
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0 11px,
    rgba(19,18,16,0.045) 11px 12px
  );
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--ink-faint);
}
.ph__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 12px;
  line-height: 1.3;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 9px;
  background: none; border: 0; padding: 0; color: inherit;
}
.brand .dot { width: 9px; height: 9px; background: var(--accent); border-radius: 50%; display: inline-block; transform: translateY(-2px); }
.brand__logo { width: 34px; height: auto; display: block; align-self: center; flex: none; }
.brand small { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.brand > span { white-space: nowrap; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 8px 13px;
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 2px;
  height: 2px; background: var(--accent);
}
.nav__cta { margin-left: 8px; }
.nav__burger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); display: block; }

/* mobile menu */
.mobile-menu { display: none; }

/* Nav content (brand + links + gutters) only fits at ≥ ~1100px — collapse below that */
@media (max-width: 1140px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--paper);
    z-index: 49;
    padding: var(--gutter);
    gap: 4px;
    animation: fade .25s ease;
  }
  .mobile-menu button {
    text-align: left;
    font-family: var(--serif);
    font-size: 36px;
    background: none; border: 0;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    color: var(--ink);
  }
}

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); }
.footer a { text-decoration: none; }
.footer .footer__big {
  font-family: var(--serif);
  font-size: clamp(48px, 11vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.01em;
}

/* ---------- utilities ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.flow > * + * { margin-top: 1em; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.center { text-align: center; }
.hover-rise { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.hover-rise:hover { transform: translateY(-5px); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise-in { animation: riseIn .6s cubic-bezier(.2,.8,.2,1) both; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
