/* Real Rogue — kit.css (Netlify-ready, self-contained) */

/* Design tokens — previously in colors_and_type.css */
:root {
  --rr-bone:        #F4EFE6;
  --rr-linen:       #EDE6D6;
  --rr-paper:       #F8F4EE;
  --rr-ink:         #1A1815;
  --rr-fg:          #2C2820;
  --rr-fg-muted:    #6B6459;
  --rr-fg-subtle:   #9B9182;
  --rr-fg-faint:    #C5BCB0;
  --rr-border:      #C8BFB0;
  --rr-border-soft: #DDD5C8;
  --rr-rule:        #C8BFB0;

  --rr-font-display: 'Cormorant Garant', Georgia, serif;
  --rr-font-sans:    'DM Sans', system-ui, sans-serif;
  --rr-font-mono:    'DM Mono', 'Courier New', monospace;

  --rr-s-3:  12px;
  --rr-s-4:  16px;
  --rr-s-5:  24px;
  --rr-s-6:  32px;
  --rr-s-7:  48px;
  --rr-s-8:  64px;
  --rr-s-9:  80px;

  --rr-dur-base: 180ms;
  --rr-ease:     cubic-bezier(.4, 0, .2, 1);
  --rr-track-eyebrow: .18em;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--rr-bone);
  color: var(--rr-fg);
  font-family: var(--rr-font-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ============ layout ============ */
.rr-page { min-height: 100vh; }

.rr-section {
  padding: var(--rr-s-9) 8%;
  position: relative;
}
.rr-section + .rr-section { border-top: 1px solid var(--rr-rule); }
.rr-section-head {
  max-width: 760px;
  margin-bottom: var(--rr-s-7);
  display: flex; flex-direction: column; gap: var(--rr-s-3);
}
.rr-eyebrow {
  font-family: var(--rr-font-sans);
  font-weight: 500; font-size: var(--rr-text-xs);
  letter-spacing: var(--rr-track-eyebrow);
  text-transform: uppercase; color: var(--rr-fg-subtle);
}
.rr-h1 { font-family: var(--rr-font-display); font-weight: 300;
  font-size: clamp(40px, 5.4vw, 80px); line-height: 1.02;
  letter-spacing: -.025em; margin: 0; text-wrap: balance; color: var(--rr-ink); }
.rr-h2 { font-family: var(--rr-font-display); font-weight: 300;
  font-size: clamp(32px, 4vw, 56px); line-height: 1.05;
  letter-spacing: -.02em; margin: 0; text-wrap: balance; color: var(--rr-ink); }
.rr-h3 { font-family: var(--rr-font-display); font-weight: 400;
  font-size: 28px; line-height: 1.12; letter-spacing: -.015em; margin: 0; color: var(--rr-ink); }
.rr-lead { font-family: var(--rr-font-sans); font-weight: 300;
  font-size: 21px; line-height: 1.5; color: var(--rr-fg-muted);
  max-width: 56ch; margin: 0; text-wrap: pretty; }
.rr-body { font-family: var(--rr-font-sans); font-weight: 400;
  font-size: 16px; line-height: 1.65; color: var(--rr-fg-muted);
  max-width: 62ch; margin: 0; text-wrap: pretty; }
.rr-small { font-size: 13px; color: var(--rr-fg-subtle); line-height: 1.55; }
.rr-caption { font-family: var(--rr-font-sans); font-weight: 500;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--rr-fg-subtle); }
.rr-link {
  font-size: 14px; font-weight: 500; color: var(--rr-ink);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--rr-ink); padding-bottom: 2px;
  align-self: flex-start;
  transition: gap var(--rr-dur-base) var(--rr-ease);
}
.rr-link:hover { gap: 12px; }
.rr-link svg { width: 14px; height: 14px; stroke-width: 1.5; }

/* ============ buttons ============ */
.rr-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--rr-font-sans); font-size: 14px; font-weight: 500;
  background: var(--rr-ink); color: var(--rr-bone);
  border: 1px solid var(--rr-ink);
  padding: 14px 22px; border-radius: 4px; line-height: 1;
  transition: background var(--rr-dur-base) var(--rr-ease),
              color var(--rr-dur-base) var(--rr-ease);
}
.rr-btn:hover { background: #000; }
.rr-btn:active { background: #2a2823; }
.rr-btn svg { width: 16px; height: 16px; stroke-width: 1.5; }
.rr-btn-ghost {
  background: transparent; color: var(--rr-ink); border-color: var(--rr-ink);
}
.rr-btn-ghost:hover { background: var(--rr-ink); color: var(--rr-bone); }
.rr-btn-block { width: 100%; justify-content: center; padding: 16px 22px; }

/* ============ nav ============ */
.rr-nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(244, 239, 230, 0.94);
  border-bottom: 1px solid var(--rr-border);
  backdrop-filter: blur(6px);
}
.rr-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 8%; height: 64px;
}
.rr-nav-logo img { height: 30px; width: auto; }
.rr-nav-links { display: flex; gap: 26px; align-items: center; }
.rr-nav-link {
  font-size: 14px; font-weight: 500; color: var(--rr-fg-muted);
  position: relative; padding: 6px 0;
  transition: color var(--rr-dur-base) var(--rr-ease);
}
.rr-nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--rr-ink);
  transition: right var(--rr-dur-base) var(--rr-ease);
}
.rr-nav-link:hover { color: var(--rr-ink); }
.rr-nav-link:hover::after { right: 0; }
.rr-nav-burger {
  background: none; border: none; padding: 6px;
  color: var(--rr-ink); display: none;
}
.rr-nav-burger svg { width: 22px; height: 22px; stroke-width: 1.5; }
.rr-nav-sheet {
  display: none; flex-direction: column;
  padding: 16px 8% 24px; gap: 12px;
  border-top: 1px solid var(--rr-border);
}
.rr-nav-sheet-link {
  font-size: 16px; font-weight: 500; color: var(--rr-ink);
  padding: 8px 0; border-bottom: 1px solid var(--rr-border-soft);
}
@media (max-width: 880px) {
  .rr-nav-links { display: none; }
  .rr-nav-burger { display: inline-flex; }
  .rr-nav-sheet { display: flex; }
}

/* ============ hero ============ */
.rr-hero {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--rr-s-8); padding: var(--rr-s-9) 8% var(--rr-s-9);
  align-items: center;
}
.rr-hero-copy { display: flex; flex-direction: column; gap: var(--rr-s-5); }
.rr-hero-ctas { display: flex; gap: 12px; margin-top: var(--rr-s-3); flex-wrap: wrap; }
.rr-hero-plate {
  position: relative; aspect-ratio: 4/5;
  background: var(--rr-paper); border: 1px solid var(--rr-border-soft);
  overflow: hidden;
}
.rr-hero-plate img { width: 100%; height: 100%; object-fit: contain; padding: 6%; box-sizing: border-box; }
.rr-hero-plate-caption { position: absolute; left: 20px; bottom: 20px; }
@media (max-width: 880px) {
  .rr-hero { grid-template-columns: 1fr; padding-top: var(--rr-s-7); }
}

/* ============ services ============ */
.rr-services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--rr-s-6);
}
.rr-service { display: flex; flex-direction: column; gap: var(--rr-s-3);
  padding-top: var(--rr-s-4); border-top: 1px solid var(--rr-ink); }
.rr-service-num { font-family: var(--rr-font-mono); font-size: 12px; color: var(--rr-fg-subtle); }
.rr-service-title { margin-top: 4px; }
.rr-service-body { font-size: 15px; }
@media (max-width: 1080px) { .rr-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .rr-services-grid { grid-template-columns: 1fr; } }

/* ============ product grid ============ */
.rr-product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--rr-s-6) var(--rr-s-5);
}
.rr-product { display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.rr-product-img {
  aspect-ratio: 1/1; background: var(--rr-paper);
  border: 1px solid var(--rr-border-soft); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--rr-dur-base) var(--rr-ease);
}
.rr-product-img img { width: 88%; height: 88%; object-fit: contain; }
.rr-product:hover .rr-product-img { opacity: .92; }
.rr-product:hover .rr-product-name { transform: translateY(-2px); }
.rr-product-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; }
.rr-product-name {
  font-family: var(--rr-font-display); font-size: 22px; color: var(--rr-ink);
  font-weight: 400; letter-spacing: -.01em;
  transition: transform var(--rr-dur-base) var(--rr-ease);
}
.rr-product-dims { font-family: var(--rr-font-mono); font-size: 11px; color: var(--rr-fg-subtle); }
.rr-product-cap { font-size: 13px; color: var(--rr-fg-subtle); }
.rr-product-swatches { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.rr-swatch {
  width: 14px; height: 14px; border-radius: 999px;
  border: 1px solid var(--rr-border);
  padding: 0; outline: none;
  transition: transform var(--rr-dur-base) var(--rr-ease);
  position: relative;
}
.rr-swatch.is-picked {
  outline: 1px solid var(--rr-ink); outline-offset: 2px;
}
.rr-swatch-label { font-size: 12px; color: var(--rr-fg-subtle); margin-left: 4px; }

@media (max-width: 1000px) { .rr-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .rr-product-grid { grid-template-columns: 1fr; } }

/* ============ founder block ============ */
.rr-founder {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--rr-s-8);
  align-items: center; background: var(--rr-linen);
}
.rr-founder-photo {
  aspect-ratio: 4/5; overflow: hidden;
  background: var(--rr-ink); position: relative;
}
.rr-founder-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); }
.rr-founder-caption {
  position: absolute; left: 16px; bottom: 14px;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 500; color: var(--rr-bone);
}
.rr-founder-copy { display: flex; flex-direction: column; gap: var(--rr-s-4); }
@media (max-width: 880px) { .rr-founder { grid-template-columns: 1fr; } }

/* ============ contact ============ */
.rr-contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--rr-s-8);
}
.rr-contact-copy { display: flex; flex-direction: column; gap: var(--rr-s-4); }
.rr-contact-meta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rr-s-5); margin-top: var(--rr-s-4); }
.rr-form { display: flex; flex-direction: column; gap: var(--rr-s-5); }
.rr-field { display: flex; flex-direction: column; gap: 6px; }
.rr-field-lab {
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rr-fg-subtle); font-weight: 500;
}
.rr-input {
  font-family: var(--rr-font-sans); font-size: 15px;
  color: var(--rr-ink); background: transparent;
  border: none; border-bottom: 1px solid var(--rr-ink);
  padding: 8px 0; border-radius: 0; outline: none;
}
.rr-input:focus { border-bottom-width: 2px; padding-bottom: 7px; }
.rr-input::placeholder { color: var(--rr-fg-faint); }
.rr-textarea { min-height: 110px; resize: vertical;
  border: 1px solid var(--rr-border); padding: 12px 14px; border-radius: 2px; }
@media (max-width: 880px) { .rr-contact { grid-template-columns: 1fr; } }

/* ============ footer ============ */
.rr-footer { background: var(--rr-linen); padding: var(--rr-s-7) 8% var(--rr-s-5); }
.rr-footer-rule { height: 1px; background: var(--rr-ink); margin-bottom: var(--rr-s-7); }
.rr-footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--rr-s-6); }
.rr-footer-mark { height: 36px; width: auto; }
.rr-footer ul li { margin: 8px 0; }
.rr-footer ul a { font-size: 14px; color: var(--rr-fg-muted); transition: color var(--rr-dur-base) var(--rr-ease); }
.rr-footer ul a:hover { color: var(--rr-ink); }
.rr-footer-bottom {
  display: flex; justify-content: space-between;
  margin-top: var(--rr-s-7); padding-top: var(--rr-s-4);
  border-top: 1px solid var(--rr-border-soft);
  font-size: 12px; color: var(--rr-fg-subtle);
}
@media (max-width: 880px) {
  .rr-footer-cols { grid-template-columns: 1fr 1fr; }
}
