/* =========================================================
   Duke&Lume — "Quiet museum"
   Case-study page for the Rasveda Labs portfolio.
   Palette and type are taken from the product's own
   design tokens (src/app/globals.css @theme).
   ========================================================= */

:root {
  --dl-bg:        #f5f3ef;   /* --color-background */
  --dl-surface:   #faf9f6;   /* --color-surface */
  --dl-ink:       #171717;   /* --color-text-primary */
  --dl-ink-soft:  #45423d;
  --dl-ink-dim:   #6f6b64;   /* --color-text-secondary */
  --dl-line:      rgba(23, 23, 23, 0.14);
  --dl-line-soft: rgba(23, 23, 23, 0.07);

  --dl-dark:      #151716;   /* --color-dark-section */
  --dl-dark-text: #f4f1ea;   /* --color-dark-text */

  --dl-bronze:    #8b7252;   /* --color-accent */
  --dl-bronze-tx: #7d6444;   /* --color-accent-text */

  --dl-radius:    2px;       /* the gallery keeps its corners square */
  --dl-maxw:      1000px;

  --dl-serif: "Cormorant Garamond", Didot, "Bodoni MT", Georgia, serif;
  --dl-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --dl-ease:  cubic-bezier(0.22, 1, 0.36, 1);   /* the product's own easing */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

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

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

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus {
  position: fixed; left: 12px; top: 12px;
  background: var(--dl-ink); color: var(--dl-dark-text);
  padding: 10px 16px; z-index: 100;
}

.dl-container {
  width: 100%;
  max-width: var(--dl-maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 44px);
}

/* ---------- Topbar ---------- */
.dl-topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(245, 243, 239, 0.8);
  border-bottom: 1px solid var(--dl-line-soft);
}
.dl-topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.dl-back {
  font-weight: 500; font-size: 0.94rem; color: var(--dl-ink);
  display: inline-flex; align-items: center; gap: 0.5em;
  transition: color 0.2s var(--dl-ease);
}
.dl-back:hover { color: var(--dl-bronze-tx); }
.dl-topbar__tag {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dl-ink-dim);
}

/* ---------- Hero ---------- */
.dl-hero { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.dl-hero__inner { text-align: center; }
.dl-logo {
  width: clamp(112px, 22vw, 148px); height: auto;
  margin: 0 auto clamp(1.4rem, 4vw, 2.2rem);
  border-radius: 4px;
}
.dl-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--dl-bronze-tx); font-weight: 500; margin: 0 0 1.2rem;
}
.dl-hero__title {
  font-family: var(--dl-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 auto 1.4rem;
  max-width: 15ch;
}
.dl-hero__lead {
  color: var(--dl-ink-dim);
  font-size: clamp(1.02rem, 2.2vw, 1.15rem);
  max-width: 60ch;
  margin: 0 auto clamp(1.8rem, 4vw, 2.4rem);
}

.dl-hero__actions {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.9rem; margin-bottom: clamp(2.2rem, 5vw, 3rem);
}
.dl-btn, .dl-btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.82em 1.6em;
  font-size: 0.92rem; font-weight: 500;
  border-radius: var(--dl-radius);
  transition: background 0.25s var(--dl-ease), color 0.25s var(--dl-ease),
              border-color 0.25s var(--dl-ease);
}
.dl-btn {
  background: var(--dl-ink); color: var(--dl-dark-text);
  border: 1px solid var(--dl-ink);
}
.dl-btn:hover { background: #000; }
.dl-btn-ghost {
  border: 1px solid var(--dl-line);
  color: var(--dl-ink);
}
.dl-btn-ghost:hover { border-color: var(--dl-ink); }

.dl-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.4rem;
  max-width: 780px; margin: 0 auto;
  padding-top: clamp(1.6rem, 4vw, 2.2rem);
  border-top: 1px solid var(--dl-line-soft);
  text-align: left;
}
.dl-meta dt {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dl-ink-dim); margin-bottom: 0.4rem;
}
.dl-meta dd { margin: 0; font-size: 0.94rem; font-weight: 500; }

/* ---------- Sections ---------- */
.dl-section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.dl-section--tint {
  background: var(--dl-surface);
  border-block: 1px solid var(--dl-line-soft);
}
.dl-section--dark {
  background: var(--dl-dark);
  color: var(--dl-dark-text);
}
.dl-section--dark .dl-kicker { color: #c4a97f; }
.dl-section--dark .dl-h2 { color: var(--dl-dark-text); }
.dl-section--dark p,
.dl-section--dark .dl-prose p { color: rgba(244, 241, 234, 0.74); }
.dl-section--dark .dl-prose em { color: #d8bd93; }

.dl-prose { max-width: 68ch; }
.dl-kicker {
  display: block;
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--dl-bronze-tx); font-weight: 500; margin-bottom: 1rem;
}
.dl-h2 {
  font-family: var(--dl-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1.4rem;
}
.dl-prose p { color: var(--dl-ink-soft); margin: 0 0 1.15rem; }
.dl-prose p:last-child { margin-bottom: 0; }
.dl-prose em { color: var(--dl-bronze-tx); font-style: italic; }

.dl-pull {
  font-family: var(--dl-serif);
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  line-height: 1.32;
  color: var(--dl-ink);
  border-left: 2px solid var(--dl-bronze);
  padding: 0.2rem 0 0.2rem 1.5rem;
  margin: clamp(2rem, 5vw, 2.6rem) 0;
  max-width: 44ch;
}

/* ---------- The wall (signature visual) ---------- */
.dl-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: end;
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
}
.dl-work { margin: 0; }
.dl-work__frame {
  background: var(--dl-surface);
  padding: clamp(10px, 1.6vw, 16px);
  box-shadow: 0 24px 50px -34px rgba(23, 23, 23, 0.55);
  border: 1px solid var(--dl-line-soft);
}
.dl-work__frame img { width: 100%; height: auto; }
.dl-work--lifted { transform: translateY(clamp(-28px, -3vw, -12px)); }
.dl-work__label {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--dl-line);
}
.dl-work__title {
  font-family: var(--dl-serif);
  font-size: 1.2rem; font-weight: 500;
  margin: 0 0 0.25rem;
}
.dl-work__title i { font-style: italic; }
.dl-work__meta {
  font-size: 0.76rem; letter-spacing: 0.06em;
  color: var(--dl-ink-dim); margin: 0 0 0.5rem;
  text-transform: uppercase;
}
.dl-work__note { font-size: 0.88rem; color: var(--dl-ink-soft); margin: 0; }
.dl-wall__foot {
  margin-top: clamp(2rem, 4vw, 2.6rem);
  font-size: 0.86rem; color: var(--dl-ink-dim);
  max-width: 62ch;
}

/* ---------- Collections ---------- */
.dl-collections {
  margin-top: clamp(2.2rem, 5vw, 3rem);
  border-top: 1px solid var(--dl-line-soft);
}
.dl-collection {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 12rem) minmax(0, 1fr);
  gap: 0.4rem 1.4rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--dl-line-soft);
}
.dl-collection__num {
  font-family: var(--dl-serif);
  font-size: 1rem; color: var(--dl-bronze-tx);
}
.dl-collection__name {
  font-family: var(--dl-serif);
  font-size: 1.3rem; font-weight: 500; margin: 0;
}
.dl-collection__desc { font-size: 0.93rem; color: var(--dl-ink-dim); margin: 0; }
@media (max-width: 640px) {
  .dl-collection { grid-template-columns: 2.4rem minmax(0, 1fr); }
  .dl-collection__desc { grid-column: 2; }
}

/* ---------- Cards ---------- */
.dl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  margin-top: clamp(2.2rem, 5vw, 3rem);
}
.dl-card {
  background: var(--dl-bg);
  border: 1px solid var(--dl-line-soft);
  border-radius: var(--dl-radius);
  padding: 1.7rem 1.6rem;
}
.dl-section--tint .dl-card { background: var(--dl-bg); }
/* Four cards read better as a clean 2×2 than as a row of three with an orphan. */
@media (min-width: 760px) {
  .dl-section--dark .dl-cards { grid-template-columns: repeat(2, 1fr); }
}
.dl-section--dark .dl-card {
  background: rgba(244, 241, 234, 0.04);
  border-color: rgba(244, 241, 234, 0.12);
}
.dl-card__idx {
  display: block;
  font-size: 0.68rem; letter-spacing: 0.2em;
  color: var(--dl-bronze-tx); margin-bottom: 0.8rem;
}
.dl-section--dark .dl-card__idx { color: #c4a97f; }
.dl-card h3 {
  font-family: var(--dl-serif);
  font-size: 1.28rem; font-weight: 500;
  margin: 0 0 0.6rem;
}
.dl-card p { font-size: 0.93rem; color: var(--dl-ink-dim); margin: 0; }
.dl-section--dark .dl-card p { color: rgba(244, 241, 234, 0.7); }
.dl-card code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  background: rgba(139, 114, 82, 0.12);
  padding: 0.1em 0.4em; border-radius: 3px;
}

/* ---------- Palette & chips ---------- */
.dl-palette {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin: 1.8rem 0 1.2rem; padding: 0; list-style: none;
}
.dl-swatch {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: 0.8rem; color: var(--dl-ink-dim);
  border: 1px solid var(--dl-line-soft);
  padding: 0.4em 0.85em; border-radius: 999px;
}
.dl-swatch__dot {
  width: 13px; height: 13px; border-radius: 50%;
  border: 1px solid var(--dl-line);
}
.dl-chips, .dl-stack {
  display: flex; flex-wrap: wrap; gap: 0.55rem;
  margin: 1.6rem 0 0; padding: 0; list-style: none;
}
.dl-chips li, .dl-stack span {
  font-size: 0.82rem;
  border: 1px solid var(--dl-line);
  padding: 0.42em 0.95em; border-radius: 999px;
  color: var(--dl-ink-soft);
}

/* ---------- Status ---------- */
.dl-status-badge {
  display: inline-flex; align-items: center;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500;
  color: var(--dl-bronze-tx);
  border: 1px solid rgba(139, 114, 82, 0.4);
  padding: 0.5em 1.1em; border-radius: 999px;
  margin-bottom: 1.4rem;
}
.dl-list { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.dl-list li {
  position: relative;
  padding-left: 1.5rem; margin-bottom: 0.6rem;
  color: var(--dl-ink-soft); font-size: 0.95rem;
}
.dl-list li::before {
  content: "—";
  position: absolute; left: 0; color: var(--dl-bronze);
}
.dl-inline-link {
  color: var(--dl-bronze-tx);
  font-weight: 500;
  border-bottom: 1px solid rgba(139, 114, 82, 0.4);
  transition: border-color 0.2s var(--dl-ease);
}
.dl-inline-link:hover { border-bottom-color: var(--dl-bronze); }

/* ---------- CTA + footer ---------- */
.dl-cta {
  background: var(--dl-dark);
  color: var(--dl-dark-text);
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  text-align: center;
}
.dl-cta__mark {
  font-family: var(--dl-serif);
  font-size: 1.6rem; color: #c4a97f;
  letter-spacing: 0.5em; margin: 0 0 1.4rem;
}
.dl-cta__title {
  font-family: var(--dl-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.1; margin: 0 0 1rem;
}
.dl-cta__lead {
  color: rgba(244, 241, 234, 0.7);
  max-width: 52ch; margin: 0 auto 2rem;
}
.dl-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; }
.dl-cta .dl-btn {
  background: var(--dl-dark-text); color: var(--dl-dark);
  border-color: var(--dl-dark-text);
}
.dl-cta .dl-btn:hover { background: #fff; }
.dl-cta .dl-btn-ghost {
  border-color: rgba(244, 241, 234, 0.32);
  color: var(--dl-dark-text);
}
.dl-cta .dl-btn-ghost:hover { border-color: var(--dl-dark-text); }

.dl-footer {
  padding: 2.2rem 0;
  border-top: 1px solid var(--dl-line-soft);
  font-size: 0.86rem; color: var(--dl-ink-dim);
}
.dl-footer__inner {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem;
  align-items: center; justify-content: space-between;
}
.dl-footer p { margin: 0; }
.dl-footer a { color: var(--dl-ink); font-weight: 500; }
.dl-footer a:hover { color: var(--dl-bronze-tx); }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--dl-ease), transform 0.7s var(--dl-ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
