@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ═══════════════════════════════════════════════════════
   CUSTOM PROPERTIES
═══════════════════════════════════════════════════════ */
:root {
  --ink:           #1C1917;
  --ink-soft:      #2C2825;
  --gamboge:       #E49B0F;
  --gamboge-d:     #B87A0C;
  --crimson:       #BE0032;
  --prussian:      #003153;
  --verdigris:     #43B3AE;
  --tyrian:        #66023C;
  --barnsley:      #D9587A;
  --cochineal:     #BE0032;
  --scheele:       #8DB600;
  --egyptian:      #1A72A8;
  --stripe-blue:   #2B5BA8;
  --stripe-red:    #C13528;
  --stripe-yellow: #E49B0F;
  --stripe-green:  #3A7A4F;
  --ivory:         #FAF9F6;
  --ivory-deep:    #F0EBE3;
  --ivory-mid:     #F6F2EC;
  --warm-grey:     #6B6560;
  --light-grey:    #A09B96;
  --border:        #DDD9D4;
  --border-light:  #EDEAE6;
  --white:         #FFFFFF;

  --stripe-blue:   #2B5BA8;
  --stripe-red:    #C13528;
  --stripe-yellow: #C9900A;
  --stripe-green:  #3A7A4F;

  --font-display:  'Syne', sans-serif;
  --font-body:     'Avenir Next', 'Avenir', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono:     'DM Mono', 'Courier New', monospace;

  --nav-h:   72px;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ═══════════════════════════════════════════════════════
   RESET + BASE
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

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

/* ═══════════════════════════════════════════════════════
   STRIPE LOGO
═══════════════════════════════════════════════════════ */
.stripe-logo {
  display: flex;
  flex-direction: row;
  gap: 3px;
  flex-shrink: 0;
  width: 26px;
  height: 36px;
}
.stripe-logo span {
  flex: 1;
  display: block;
  border-radius: 1px;
}
.stripe-logo span:nth-child(1) { background: var(--stripe-blue); }
.stripe-logo span:nth-child(2) { background: var(--stripe-red); }
.stripe-logo span:nth-child(3) { background: var(--stripe-yellow); }
.stripe-logo span:nth-child(4) { background: var(--stripe-green); }

.stripe-logo--lg {
  width: 40px;
  height: 58px;
  gap: 5px;
}

.stripe-logo--xl {
  width: 56px;
  height: 80px;
  gap: 6px;
}

/* Horizontal stripe bar */
.stripe-bar {
  display: flex;
  width: 100%;
  height: 5px;
}
.stripe-bar span {
  flex: 1;
}
.stripe-bar span:nth-child(1) { background: var(--stripe-blue); }
.stripe-bar span:nth-child(2) { background: var(--stripe-red); }
.stripe-bar span:nth-child(3) { background: var(--stripe-yellow); }
.stripe-bar span:nth-child(4) { background: var(--stripe-green); }

/* ═══════════════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 44px;
  z-index: 200;
  gap: 16px;
}

.site-nav--dark {
  background: rgba(28, 25, 23, 0.94);
  border-bottom-color: rgba(255,255,255,0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  transition: opacity 0.2s;
}
.nav-brand:hover { opacity: 0.75; }

.site-nav--dark .nav-brand { color: white; }

.nav-wordmark {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}
.nav-wordmark em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.2em;
  color: var(--light-grey);
  margin-top: 4px;
  text-transform: uppercase;
}

.site-nav--dark .nav-wordmark em { color: rgba(255,255,255,0.35); }

.nav-spacer { flex: 1; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-grey);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.site-nav--dark .nav-links a { color: rgba(255,255,255,0.45); }
.site-nav--dark .nav-links a:hover { color: white; }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--ivory) !important;
  padding: 10px 22px;
  border-radius: 2px;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--stripe-blue) !important; }
.site-nav--dark .nav-cta { background: white; color: var(--ink) !important; }
.site-nav--dark .nav-cta:hover { background: var(--ivory-deep) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.2s;
}
.site-nav--dark .nav-hamburger span { background: white; }

/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY UTILITIES
═══════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
}

.label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--light-grey);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.label--centered {
  justify-content: center;
}
.label--centered::before { display: none; }
.label--light { color: rgba(255,255,255,0.35); }

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn-primary:hover { background: var(--stripe-blue); color: white; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--ivory); }

.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--warm-grey);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ═══════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════ */
.container       { max-width: 1160px; margin: 0 auto; padding: 0 44px; }
.container-narrow { max-width: 780px;  margin: 0 auto; padding: 0 44px; }
.container-wide  { max-width: 1400px; margin: 0 auto; padding: 0 44px; }

section { padding: 120px 0; }

/* ═══════════════════════════════════════════════════════
   COLOUR CARD COMPONENT
═══════════════════════════════════════════════════════ */
.colour-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  min-width: 240px;
}
.colour-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.1);
}
.colour-card__swatch {
  height: 160px;
  flex-shrink: 0;
  position: relative;
}
.colour-card__lrv {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 2px;
  background: rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.8);
}
.colour-card__body {
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.colour-card__archive {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light-grey);
}
.colour-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}
.colour-card__provenance {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12.5px;
  color: var(--warm-grey);
  line-height: 1.6;
  flex: 1;
  padding-top: 2px;
}
.colour-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--border-light);
}
.colour-card__hex {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--light-grey);
  letter-spacing: 0.06em;
}
.colour-card__badge {
  font-family: var(--font-mono);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  border: 1px solid var(--border);
  color: var(--warm-grey);
}
.colour-card__badge--pigment { border-color: #8B6914; color: #8B6914; background: #8B691408; }
.colour-card__badge--dye     { border-color: #2B5BA8; color: #2B5BA8; background: #2B5BA808; }
.colour-card__badge--lake    { border-color: #C13528; color: #C13528; background: #C1352808; }
.colour-card__badge--syn     { border-color: #3A7A4F; color: #3A7A4F; background: #3A7A4F08; }

/* ═══════════════════════════════════════════════════════
   CODE BLOCK
═══════════════════════════════════════════════════════ */
.code-block {
  background: #111110;
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
}
.code-block__header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-dot { width: 11px; height: 11px; border-radius: 50%; }
.code-dot:nth-child(1) { background: #FF5F57; }
.code-dot:nth-child(2) { background: #FEBC2E; }
.code-dot:nth-child(3) { background: #28C840; }
.code-label {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.25);
}
.code-block__body {
  padding: 28px 28px 24px;
  overflow-x: auto;
}
.code-block pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,0.8);
  white-space: pre;
  tab-size: 2;
}
.t-kw  { color: #C792EA; }
.t-str { color: #C3E88D; }
.t-key { color: #89DDFF; }
.t-val { color: #EEFFFF; }
.t-num { color: #F78C6C; }
.t-com { color: rgba(255,255,255,0.28); font-style: italic; }
.t-url { color: #80CBC4; text-decoration: underline; text-decoration-color: rgba(128,203,196,0.4); }
.t-meth{ color: #FFCB6B; }
.t-punc{ color: rgba(255,255,255,0.45); }

/* ═══════════════════════════════════════════════════════
   FEATURE GRID ITEM
═══════════════════════════════════════════════════════ */
.feature-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border-light);
}
.feature-item:last-child { border-bottom: none; }
.feature-item__num {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--light-grey);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.feature-item__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.2;
}
.feature-item__desc {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.75;
  color: var(--warm-grey);
}

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  padding: 72px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 36px;
}
.footer-brand-col .nav-wordmark { color: white; font-size: 18px; }
.footer-brand-col .nav-wordmark em { color: rgba(255,255,255,0.3); }
.footer-brand-col p {
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.75;
  margin-top: 18px;
  color: rgba(255,255,255,0.4);
  max-width: 260px;
}
.footer-brand-col .stripe-logo { margin-top: 24px; }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col li a {
  font-family: var(--font-display);
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col li a:hover { color: white; }

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.2);
  line-height: 1.7;
}
.footer-tm {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.2);
  text-align: right;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.anim { animation: fadeUp 0.9s var(--ease) both; }
.anim-fade { animation: fadeIn 0.7s ease both; }
.d1  { animation-delay: 0.08s; }
.d2  { animation-delay: 0.18s; }
.d3  { animation-delay: 0.28s; }
.d4  { animation-delay: 0.40s; }
.d5  { animation-delay: 0.54s; }
.d6  { animation-delay: 0.68s; }

/* ═══════════════════════════════════════════════════════
   PAGE-SPECIFIC SHARED: INTERNAL PAGE HERO
═══════════════════════════════════════════════════════ */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-light);
}
.page-hero h1 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.page-hero h1 em { font-style: italic; color: var(--warm-grey); }
.page-hero p {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.75;
  color: var(--warm-grey);
  max-width: 600px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: flex; }

  .container,
  .container-narrow,
  .container-wide { padding: 0 20px; }

  section { padding: 80px 0; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .footer-tm { text-align: left; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
