/* ==========================================================================
   083 · INKWELL (محبرة النقش — Inkwell Atelier) — 1:1 Brutalist Woodcut & Engraving Sheet
   Bone-Cream #F1E6D0 · Card #F7EEDB · Obsidian #111111 · Crimson #C1272D · Teal #1F6F78 · Mustard #E3A82B
   0px sharp corners · 3px solid #111111 borders · Paper-lift loupe · Claimable flash-print cards
   ========================================================================== */

:root {
  --iw-paper: #F1E6D0;
  --iw-card: #F7EEDB;
  --iw-ink: #111111;
  --iw-crimson: #C1272D;
  --iw-teal: #1F6F78;
  --iw-mustard: #E3A82B;
  --iw-green: #2E7D32;
  --iw-serif: 'Amiri', Georgia, serif;
  --iw-sans: 'IBM Plex Sans Arabic', 'Cairo', system-ui, sans-serif;
  --iw-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background: var(--iw-paper);
  color: var(--iw-ink);
  font-family: var(--iw-sans);
  letter-spacing: 0;
}

body {
  background: var(--iw-paper);
  color: var(--iw-ink);
  font-family: var(--iw-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; letter-spacing: 0; }
.bidi { unicode-bidi: isolate; font-family: var(--iw-mono); }

/* 0px Sharp Brutalist Buttons */
.iw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 3px solid var(--iw-ink);
  border-radius: 0;
  background: var(--iw-card);
  color: var(--iw-ink);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 6px 6px 0 var(--iw-ink);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.iw-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--iw-ink);
}

.iw-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--iw-ink);
}

.iw-btn-crimson {
  background: var(--iw-crimson);
  color: #FFFFFF;
}

.iw-btn-mustard {
  background: var(--iw-mustard);
  color: var(--iw-ink);
}

/* ======================== FIXED OBSIDIAN NAVBAR ======================== */
.iw-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 75;
  height: 68px;
  background: var(--iw-ink);
  color: var(--iw-paper);
  border-bottom: 3px solid var(--iw-crimson);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.iw-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--iw-serif);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.iw-nib {
  width: 26px;
  height: 26px;
  background: var(--iw-crimson);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 2px solid var(--iw-paper);
}

.iw-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}

.iw-nav a:hover { color: var(--iw-mustard); }

/* ======================== 1. HERO (100dvh PAPER-LIFT WOODCUT STAGE) ======================== */
.iw-hero {
  position: relative;
  min-height: 100dvh;
  padding: 88px 28px 28px;
  background: var(--iw-ink);
  color: var(--iw-paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.iw-hero-stage {
  position: relative;
  flex: 1;
  min-height: 460px;
  border: 3px solid rgba(241, 230, 208, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 36px;
  cursor: crosshair;
}

.iw-hero-bg-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(0.85) contrast(1.25);
}

/* Pointer-following circular Paper-Lift Loupe revealing full-color engraving */
.iw-paper-loupe {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 3px solid var(--iw-paper);
  box-shadow: 6px 6px 0 3px var(--iw-crimson);
  background-image: url('../assets/art/inkwell.webp');
  background-size: 1120px auto;
  background-position: center;
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  top: 44%;
  left: 16%;
}

.iw-hero-lockup {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 860px;
  pointer-events: none;
}

.iw-kicker {
  display: inline-block;
  background: var(--iw-crimson);
  color: #FFFFFF;
  padding: 4px 14px;
  font-family: var(--iw-mono);
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 14px;
  border: 2px solid var(--iw-paper);
}

.iw-h1 {
  font-family: var(--iw-serif);
  font-size: clamp(2.5rem, 5.4vw, 4.7rem);
  line-height: 1.12;
  color: #FFFFFF;
  text-shadow: 4px 4px 0 #000000;
}

.iw-h1 em {
  font-style: italic;
  color: var(--iw-mustard);
}

.iw-hero-sub {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 16px;
  color: rgba(241, 230, 208, 0.9);
}

/* Bottom 3-Column Brutalist Strip */
.iw-hero-bottom {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.iw-today-tag {
  justify-self: end;
  background: var(--iw-card);
  color: var(--iw-ink);
  border: 3px solid var(--iw-paper);
  padding: 10px 18px;
  font-weight: 800;
  font-size: 13px;
  transform: rotate(-2deg);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.iw-today-tag i {
  width: 9px;
  height: 9px;
  background: var(--iw-green);
  display: inline-block;
}

/* ======================== CRIMSON MARQUEE ======================== */
.iw-marquee {
  background: var(--iw-crimson);
  color: #FFFFFF;
  border-top: 3px solid var(--iw-ink);
  border-bottom: 3px solid var(--iw-ink);
  padding: 11px 0;
  overflow: hidden;
}

.iw-marquee-track {
  display: flex;
  gap: 34px;
  width: max-content;
  font-weight: 800;
  font-size: 14.5px;
  animation: iwTick 24s linear infinite;
}

@keyframes iwTick {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* ======================== SECTIONS ======================== */
.iw-sec {
  max-width: 1220px;
  margin: 0 auto;
  padding: 86px 28px;
}

.iw-h2 {
  font-family: var(--iw-serif);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.15;
}

/* 2. Engraving Sheet with Wavy SVG Rail */
.iw-sheet-grid {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 28px;
  margin-top: 36px;
}

.iw-rail-col {
  position: relative;
  display: flex;
  justify-content: center;
}

.iw-ink-drop {
  position: sticky;
  top: 45vh;
  width: 24px;
  height: 24px;
  background: var(--iw-ink);
  border: 3px solid var(--iw-crimson);
  transform: rotate(45deg);
}

.iw-beats-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.iw-beat-box {
  background: var(--iw-card);
  border: 3px solid var(--iw-ink);
  padding: 24px;
  box-shadow: 6px 6px 0 var(--iw-ink);
}

/* 3. Flash-Sheet 3-Column Tilted Print Cards */
.iw-flash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 38px;
}

.iw-flash-card {
  position: relative;
  background: var(--iw-card);
  border: 3px solid var(--iw-ink);
  padding: 22px;
  box-shadow: 8px 8px 0 var(--iw-ink);
  transition: transform 0.2s ease, filter 0.25s ease;
}

.iw-flash-card:nth-child(1) { transform: rotate(-1.3deg); }
.iw-flash-card:nth-child(2) { transform: rotate(1.1deg); }
.iw-flash-card:nth-child(3) { transform: rotate(-0.8deg); }
.iw-flash-card:hover { transform: rotate(0deg) translateY(-4px); }

.iw-flash-card.claimed {
  filter: grayscale(0.88);
}

/* Brass corner tacks */
.iw-tack {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--iw-mustard);
  border: 2px solid var(--iw-ink);
}
.iw-tack.tl { top: 8px; left: 8px; }
.iw-tack.tr { top: 8px; right: 8px; }

.iw-flash-plate {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border: 3px solid var(--iw-ink);
  overflow: hidden;
  background: var(--iw-paper);
  margin-bottom: 16px;
}

.iw-flash-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iw-claimed-stamp {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-14deg) scale(0.7);
  background: var(--iw-crimson);
  color: #FFFFFF;
  border: 3px solid var(--iw-ink);
  padding: 8px 18px;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 5px 5px 0 var(--iw-ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.iw-flash-card.claimed .iw-claimed-stamp {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-14deg) scale(1);
}

.iw-size-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 12px 0;
}

.iw-size-btn {
  padding: 7px 6px;
  border: 2px solid var(--iw-ink);
  background: var(--iw-paper);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.iw-size-btn.active {
  background: var(--iw-ink);
  color: var(--iw-mustard);
}

.iw-price-tag {
  display: inline-block;
  background: var(--iw-mustard);
  border: 2px solid var(--iw-ink);
  padding: 4px 12px;
  font-weight: 900;
  font-size: 18px;
}

/* 4. Teal Panorama & 5-Row Dashed Master Engravers List */
.iw-teal-band {
  background: var(--iw-teal);
  color: var(--iw-paper);
  border-top: 3px solid var(--iw-ink);
  border-bottom: 3px solid var(--iw-ink);
  padding: 64px 28px;
}

.iw-artists-list {
  margin-top: 30px;
  border-top: 3px solid var(--iw-ink);
}

.iw-artist-row {
  padding: 18px 10px;
  border-bottom: 2px dashed var(--iw-ink);
  display: grid;
  grid-template-columns: 70px 1.2fr 1.3fr auto;
  align-items: center;
  gap: 16px;
}

/* 5. Flash Day Live Yellow Countdown Card (#111111) */
.iw-flashday {
  background: var(--iw-ink);
  color: var(--iw-paper);
  border: 3px solid var(--iw-ink);
  box-shadow: 10px 10px 0 var(--iw-crimson);
  padding: 38px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.iw-countdown-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.iw-cd-cell {
  background: var(--iw-mustard);
  color: var(--iw-ink);
  border: 3px solid var(--iw-paper);
  padding: 14px 8px;
  text-align: center;
}

.iw-cd-cell strong {
  display: block;
  font-family: var(--iw-mono);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

/* Footer with Giant Black-Outlined Inkwell Wordmark */
.iw-footer {
  background: var(--iw-paper);
  border-top: 3px solid var(--iw-ink);
  padding: 60px 28px 38px;
}

.iw-outline-wordmark {
  font-family: var(--iw-serif);
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 700;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--iw-ink);
  line-height: 0.92;
  margin: 18px 0 32px;
  direction: ltr;
}

.iw-showcase-nav {
  max-width: 1220px;
  margin: 0 auto;
  padding-top: 22px;
  border-top: 3px solid var(--iw-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .iw-nav { display: none; }
  .iw-hero-bottom,
  .iw-beats-stack,
  .iw-flash-grid,
  .iw-flashday {
    grid-template-columns: 1fr;
  }
  .iw-artist-row {
    grid-template-columns: 1fr auto;
  }
  .iw-hide-sm { display: none; }
}
