/* ============================================================================
   nichtle-design — Editorial Light
   Drop-in design tokens + base styles distilled from the Ritovex aesthetic.

   One typeface, Lexend, for headings and text. Load it once:
     <link rel="preconnect" href="https://fonts.googleapis.com">
     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
     <link href="https://fonts.googleapis.com/css2?family=Lexend:wght@400..700&display=swap" rel="stylesheet">
   ========================================================================== */

:root {
  /* --- Base / surfaces (light-first) --- */
  --bg-base:          #FFFFFF;   /* primary page canvas, gallery white */
  --bg-subtle:        #F4F3EF;   /* warm off-white / cream fills */
  --bg-muted:         #ECECEC;   /* secondary grey fills, image placeholders */
  --bg-dark:          #0E0E0E;   /* full-bleed contrast sections */
  --surface:          #FFFFFF;   /* cards lifted off the paper canvas */

  /* --- Borders --- */
  --border-hairline:  #E5E5E5;   /* 1px separators, logo strip, inputs */
  --border-strong:    #111111;   /* active outlines, focus rings */

  /* --- Text on light --- */
  --text-primary:     #111111;
  --text-secondary:   #6B6B6B;
  --text-muted:       #9A9A9A;

  /* --- Text on dark sections --- */
  --text-on-dark:       #F5F5F3;
  --text-on-dark-muted: #8A8A8A;

  /* --- Action (monochrome by design — black IS the accent) --- */
  --action:           #111111;
  --action-hover:     #2E2E2E;
  --action-inverse:   #FFFFFF;
  --action-inverse-hover: #E6E6E6;

  /* --- Type families --- */
  --font-sans:    "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: var(--font-sans);   /* headings share the one face */

  /* --- Radius --- */
  --rounded-sm:   8px;
  --rounded-md:   14px;
  --rounded-lg:   24px;
  --rounded-pill: 999px;

  /* --- Spacing (8px scale) --- */
  --space-1: 4px;   --space-2: 8px;   --space-3: 16px;  --space-4: 24px;
  --space-5: 32px;  --space-6: 48px;  --space-7: 64px;  --space-8: 96px;
  --space-9: 128px; --space-10: 160px;

  /* --- Elevation (soft, light) --- */
  --shadow-card: 0 20px 50px rgba(17, 17, 17, 0.08);
  --shadow-menu: 0 24px 60px rgba(17, 17, 17, 0.12);

  /* --- Motion --- */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);   /* long, soft landings for reveals */
  --dur:      240ms;
}

/* ---------------------------------------------------------------------------
   Base
   ------------------------------------------------------------------------- */
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Headings: bold, tight tracking, sentence case */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}
.display { font-size: clamp(2.75rem, 6vw, 5.5rem); line-height: 1.05; }
h1        { font-size: clamp(2.25rem, 4.5vw, 3.75rem); line-height: 1.08; }
h2        { font-size: clamp(1.75rem, 3vw, 2.75rem);   line-height: 1.12; }
h3        { font-size: 1.5rem; line-height: 1.2; }

/* The one oversized statement on a page (the hero claim) */
.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 10.5vw, 9.75rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
  margin: 0;
}

/* Bold sans heading — for the numbered service list on dark sections */
.h-ui {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Small tracked label above a heading */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.body-large { font-size: 1.1875rem; line-height: 1.55; }
.caption    { font-size: 0.875rem;  font-weight: 500; line-height: 1.4; color: var(--text-secondary); }
.index-number { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-muted); }

a { color: var(--action); text-decoration: none; }
a:hover { color: var(--action-hover); }

:focus-visible { outline: 2px solid var(--border-strong); outline-offset: 3px; border-radius: 2px; }
.section-dark :focus-visible { outline-color: var(--text-on-dark); }

/* ---------------------------------------------------------------------------
   Layout helpers
   ------------------------------------------------------------------------- */
/* width: 100% keeps the container full width inside flex columns too */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--space-4); }
.section   { padding-block: var(--space-9); }          /* generous vertical rhythm */
.prose     { max-width: 68ch; color: var(--text-secondary); }

/* Full-bleed dark contrast section */
.section-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: var(--space-9);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark .h-ui { color: var(--text-on-dark); }
.section-dark .eyebrow, .section-dark .index-number,
.section-dark .lead, .section-dark .prose { color: var(--text-on-dark-muted); }

/* ---------------------------------------------------------------------------
   Components
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 0.875rem; font-weight: 500;
  border-radius: var(--rounded-pill);
  padding: 14px 26px; border: 0; cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-primary { background: var(--action); color: var(--action-inverse); }
.btn-primary:hover { background: var(--action-hover); color: var(--action-inverse); }
/* Outlined pill; 1px less padding so it is as tall as the filled one */
.btn-ghost   { background: transparent; color: var(--text-primary); border: 1px solid var(--border-strong); padding: 13px 25px; }
.btn-primary:hover, .btn-ghost:hover { transform: translateY(-2px); }
/* On dark sections, invert: white pill with black label */
.section-dark .btn-primary { background: var(--action-inverse); color: var(--text-primary); }
.section-dark .btn-primary:hover { background: var(--action-inverse-hover); color: var(--text-primary); }
.section-dark .btn-ghost { color: var(--text-on-dark); border-color: rgba(255, 255, 255, 0.4); }
.section-dark .btn-ghost:hover { color: var(--action-inverse); border-color: var(--action-inverse); }

.card {
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border-radius: var(--rounded-lg);
  padding: var(--space-5);
}
.card-floating {
  background: var(--bg-base);
  color: var(--text-primary);
  border-radius: var(--rounded-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
}

.media {
  background: var(--bg-muted);
  border-radius: var(--rounded-lg);
  overflow: hidden;
}
.media img { display: block; width: 100%; height: auto; transition: transform var(--dur) var(--ease); }
a.media:hover img, a:hover > .media img { transform: scale(1.02); }   /* quiet hover, only on what can be clicked */

.chip {
  display: inline-block;
  background: var(--bg-subtle); color: var(--text-primary);
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.04em;
  border-radius: var(--rounded-pill); padding: 6px 14px;
}

/* Small metadata pill (outline, not filled) */
.tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--rounded-pill); padding: 4px 11px;
}

.input {
  background: var(--bg-base); color: var(--text-primary);
  border: 1px solid var(--border-hairline); border-radius: var(--rounded-sm);
  padding: 14px 18px; font-family: var(--font-sans); font-size: 1rem;
}
.input:focus { outline: none; border-color: var(--border-strong); }

.hairline { border: 0; border-top: 1px solid var(--border-hairline); margin: 0; }

/* Numbered list row (services / process) */
.list-row {
  display: flex; align-items: baseline; gap: var(--space-4);
  padding-block: var(--space-4);
  border-top: 1px solid var(--border-hairline);
}
.section-dark .list-row { border-top-color: rgba(255,255,255,0.1); }

/* Link with an arrow that nudges on hover */
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 0.95rem; }
.link-arrow .arw { transition: transform var(--dur) var(--ease); }
.link-arrow:hover .arw { transform: translateX(4px); }
