/* RIDR — built by a rider, for riders */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Oswald:wght@400;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Colors — borrowed from the app's accent + a workshop feel */
  --ink: #0e0d0c;             /* deep charcoal, almost black */
  --ink-2: #161513;           /* card surface */
  --ink-3: #1f1d1a;           /* elevated surface */
  --steel: #2a2724;           /* border, divider */
  --bone: #f5f1ea;            /* warm off-white text */
  --bone-2: #c9c3b8;          /* secondary text */
  --bone-3: #8a857c;          /* tertiary text */
  --rust: #d97706;            /* oil-drop orange, primary accent */
  --rust-2: #f59e0b;          /* lighter accent for hover */
  --rust-glow: rgba(217, 119, 6, 0.18);
  --chrome: #b8b3a7;          /* warm metallic */

  /* Type */
  --font-display: 'Bebas Neue', 'Oswald', Impact, sans-serif;
  --font-mech: 'Oswald', 'Helvetica Neue', sans-serif;
  --font-body: 'Lora', Georgia, serif;

  /* Spacing scale */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --s-8: 8rem;

  /* Layout */
  --max-w: 1200px;
  --reading-w: 680px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;

  /* Subtle grain to feel like the page has texture, not pure digital flat */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(217, 119, 6, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(217, 119, 6, 0.03) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Noise texture overlay — gives the dark areas tooth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, footer, section, nav {
  position: relative;
  z-index: 2;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--bone);
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: var(--s-3);
}

h3 {
  font-family: var(--font-mech);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}

h4 {
  font-family: var(--font-mech);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
}

p {
  margin-bottom: var(--s-3);
  color: var(--bone-2);
}

p.lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--bone);
}

a {
  color: var(--rust);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: var(--rust-2);
}

/* Layout primitives */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-3);
}

.reading {
  max-width: var(--reading-w);
  margin: 0 auto;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--steel) 20%, var(--steel) 80%, transparent);
  margin: var(--s-7) 0;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 13, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--steel);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-2) var(--s-3);
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  color: var(--bone);
}

.nav-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: var(--s-4);
  list-style: none;
  font-family: var(--font-mech);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  color: var(--bone-2);
}

.nav-links a:hover, .nav-links a.active {
  color: var(--rust);
}

@media (max-width: 720px) {
  .nav-links {
    gap: var(--s-2);
    font-size: 0.75rem;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--s-6) 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: grayscale(15%) contrast(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      var(--ink) 0%,
      transparent 25%,
      transparent 65%,
      var(--ink) 100%
    ),
    linear-gradient(90deg,
      var(--ink) 0%,
      transparent 40%,
      transparent 60%,
      var(--ink) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 0 var(--s-3);
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-mech);
  font-size: 0.875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--s-3);
  opacity: 0;
  animation: rise 800ms 200ms ease forwards;
}

.hero h1 {
  margin-bottom: var(--s-3);
  opacity: 0;
  animation: rise 800ms 400ms ease forwards;
}

.hero-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  color: var(--bone-2);
  max-width: 620px;
  margin: 0 auto var(--s-5);
  opacity: 0;
  animation: rise 800ms 600ms ease forwards;
}

.hero-cta {
  display: inline-flex;
  gap: var(--s-2);
  opacity: 0;
  animation: rise 800ms 800ms ease forwards;
  flex-wrap: wrap;
  justify-content: center;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  padding: 0.95rem 1.75rem;
  font-family: var(--font-mech);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 200ms ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--rust);
  color: var(--ink);
  box-shadow: 0 4px 24px var(--rust-glow);
}

.btn-primary:hover {
  background: var(--rust-2);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 32px var(--rust-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--bone);
  border: 1px solid var(--steel);
}

.btn-ghost:hover {
  border-color: var(--bone-2);
  color: var(--bone);
}

/* Sections */
section {
  padding: var(--s-7) 0;
}

.section-eyebrow {
  font-family: var(--font-mech);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rust);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}

.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--rust);
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-5);
}

.feature {
  background: var(--ink-2);
  border: 1px solid var(--steel);
  border-radius: 6px;
  padding: var(--s-4);
  transition: all 250ms ease;
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rust), transparent);
  opacity: 0;
  transition: opacity 250ms ease;
}

.feature:hover {
  background: var(--ink-3);
  border-color: rgba(217, 119, 6, 0.4);
  transform: translateY(-2px);
}

.feature:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--rust-glow);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-3);
  color: var(--rust);
}

.feature h3 {
  color: var(--bone);
  margin-bottom: var(--s-2);
}

.feature p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-5);
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.price {
  background: var(--ink-2);
  border: 1px solid var(--steel);
  border-radius: 6px;
  padding: var(--s-4);
  text-align: center;
  position: relative;
}

.price.featured {
  border-color: var(--rust);
  background: linear-gradient(180deg, rgba(217, 119, 6, 0.05), var(--ink-2));
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--rust);
  color: var(--ink);
  font-family: var(--font-mech);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
}

.price-name {
  font-family: var(--font-mech);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-2);
  margin-bottom: var(--s-2);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--bone);
  line-height: 1;
  margin-bottom: var(--s-1);
}

.price-amount .small {
  font-size: 1rem;
  color: var(--bone-3);
  font-family: var(--font-mech);
  letter-spacing: 0.05em;
}

.price-period {
  color: var(--bone-3);
  font-size: 0.875rem;
  margin-bottom: var(--s-3);
}

.price-list {
  list-style: none;
  text-align: left;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--steel);
}

.price-list li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--bone-2);
  position: relative;
  padding-left: 1.5rem;
}

.price-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--rust);
  font-weight: 700;
}

/* About page specific */
.about-hero {
  padding: var(--s-7) 0 var(--s-5);
  text-align: center;
  border-bottom: 1px solid var(--steel);
}

.about-hero .container {
  max-width: var(--reading-w);
}

.about-essay {
  padding: var(--s-7) 0;
}

.about-essay h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin-bottom: var(--s-3);
  margin-top: var(--s-6);
}

.about-essay h2:first-child {
  margin-top: 0;
}

.about-essay p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--bone);
  margin-bottom: var(--s-3);
}

.about-essay p.dim {
  color: var(--bone-2);
}

.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-align: center;
  padding: var(--s-5) 0;
  position: relative;
  margin: var(--s-5) 0;
}

.pull-quote::before, .pull-quote::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--rust);
  margin: 0 auto;
}

.pull-quote::before { margin-bottom: var(--s-3); }
.pull-quote::after { margin-top: var(--s-3); }

.pull-quote .attr {
  display: block;
  margin-top: var(--s-2);
  font-family: var(--font-mech);
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
}

.spot-figure {
  margin: var(--s-5) auto;
  text-align: center;
  max-width: 540px;
}

.spot-figure img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--steel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.spot-figure figcaption {
  margin-top: var(--s-2);
  font-family: var(--font-mech);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-3);
}

/* Gallery — Jon's work */
.gallery-section {
  background: var(--ink-2);
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
  padding: var(--s-7) 0;
  margin: var(--s-5) 0;
  /* Bleed beyond reading column */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.gallery-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--s-3);
}

.gallery-intro {
  max-width: var(--reading-w);
  margin: 0 auto var(--s-5);
  text-align: center;
}

.gallery-intro h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--bone);
  margin-bottom: var(--s-2);
}

.gallery-intro p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--bone-2);
  margin-bottom: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}

@media (max-width: 820px) {
  .gallery {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
}

.gallery figure {
  margin: 0;
}

.gallery-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink-3);
  border: 1px solid var(--steel);
  border-radius: 4px;
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms ease;
}

.gallery figure:hover .gallery-img img {
  transform: scale(1.04);
}

.gallery figcaption {
  margin-top: var(--s-2);
  font-family: var(--font-mech);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone-3);
  text-align: center;
}

.gallery figcaption strong {
  color: var(--bone-2);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.gallery-mark {
  text-align: center;
  margin-top: var(--s-4);
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bone-3);
}

.gallery-mark .x {
  font-family: var(--font-mech);
  font-weight: 700;
  color: var(--rust);
  font-style: normal;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

/* Garage list */
.garage {
  background: var(--ink-2);
  border: 1px solid var(--steel);
  border-radius: 6px;
  padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0;
}

.garage-heading {
  font-family: var(--font-mech);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--s-3);
}

.garage ul {
  list-style: none;
}

.garage li {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--steel);
  font-family: var(--font-mech);
  font-size: 1rem;
  color: var(--bone);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-2);
}

.garage li:last-child {
  border-bottom: none;
}

.garage li .bike {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.garage li .note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--bone-3);
  text-align: right;
}

/* Footer */
footer {
  margin-top: var(--s-7);
  padding: var(--s-5) 0 var(--s-4);
  border-top: 1px solid var(--steel);
  background: var(--ink-2);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-3);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-4);
  align-items: start;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-2);
}

.footer-brand img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer-tag {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--bone-3);
  font-size: 0.95rem;
  margin-bottom: var(--s-3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  font-family: var(--font-mech);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--bone-2);
}

.footer-meta {
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--steel);
  text-align: center;
  font-size: 0.8rem;
  color: var(--bone-3);
  font-family: var(--font-mech);
  letter-spacing: 0.08em;
}

.footer-mantra {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--bone-2);
  text-align: center;
  margin-top: var(--s-3);
  letter-spacing: 0.02em;
}

/* Mobile refinements */
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: var(--s-5) 0; }
  .hero { min-height: 78vh; }
}

/* Print: nobody prints this, but if they do, it shouldn't look broken */
@media print {
  body { background: white; color: black; }
}
