:root {
  /* Color Palette: Modern Workshop Archive */
  --sage: #7a9b7f;
  --sage-light: #a8c5ab;
  --sage-dark: #5a7a5e;
  --terracotta: #d97555;
  --terracotta-light: #e89a7d;
  --terracotta-muted: rgba(217, 117, 85, 0.15);
  --charcoal: #2d3436;
  --charcoal-soft: #4a5254;
  --charcoal-light: #636e72;
  --cream: #f5f2ed;
  --cream-warm: #ede7df;
  --cream-dark: #e3dccf;
  --amber: #e8a74e;
  --amber-light: #f4c57c;

  /* Functional colors */
  --bg-primary: var(--cream);
  --bg-secondary: var(--cream-warm);
  --bg-dark: var(--charcoal);
  --text-primary: var(--charcoal);
  --text-secondary: var(--charcoal-light);
  --accent: var(--sage);
  --accent-warm: var(--terracotta);
  --highlight: var(--amber);

  /* Spacing & Layout */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.1);
  --shadow-md: 0 4px 16px rgba(45, 52, 54, 0.12);
  --shadow-lg: 0 8px 32px rgba(45, 52, 54, 0.15);

  /* Typography */
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --font-sans: "Work Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Cormorant Garamond", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  position: relative;
}

/* Graph paper background texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 155, 127, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 155, 127, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
}

p {
  margin-top: 0;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.section {
  padding: clamp(4rem, 8vw, 8rem) 0;
  position: relative;
}

/* Utility Classes */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--terracotta-muted);
  color: var(--terracotta);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--terracotta);
}

.badge.success {
  background: rgba(122, 155, 127, 0.15);
  color: var(--sage-dark);
  border-color: var(--sage);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 242, 237, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--charcoal);
  box-shadow: 0 2px 0 var(--sage);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.logo:hover {
  color: var(--sage-dark);
}

.logo-mark {
  width: 48px;
  height: 48px;
  background: var(--charcoal);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.logo-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(122, 155, 127, 0.2));
}

/* Navigation */
.site-nav {
  position: relative;
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle-line {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  display: block;
  margin: 4px 0;
  transition: transform 0.3s ease;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-list a {
  position: relative;
  padding: 0.5rem 0;
}

.nav-list a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width 0.3s ease;
}

.nav-list a:hover::after,
.nav-list a:focus::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(217, 117, 85, 0.08), transparent 50%),
    linear-gradient(-45deg, rgba(122, 155, 127, 0.12), transparent 50%),
    var(--cream);
  position: relative;
  overflow: hidden;
}

/* Blueprint corner marks */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(45, 52, 54, 0.2);
}

.hero::before {
  top: 2rem;
  left: 2rem;
  border-right: none;
  border-bottom: none;
}

.hero::after {
  bottom: 2rem;
  right: 2rem;
  border-left: none;
  border-top: none;
}

.hero-content {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--charcoal), var(--sage-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text .lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 2px solid var(--charcoal);
}

.button.primary {
  background: var(--charcoal);
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--sage);
}

.button.primary:hover,
.button.primary:focus {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--sage);
}

.button.secondary {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.button.secondary:hover,
.button.secondary:focus {
  background: var(--charcoal);
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--terracotta);
  transform: translate(-2px, -2px);
}

/* Featured Product Card */
.featured-product {
  background: white;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: 8px 8px 0 var(--terracotta-muted);
  position: relative;
}

.featured-product::before {
  content: "CASE FILE";
  position: absolute;
  top: -12px;
  left: 1.5rem;
  background: var(--cream);
  padding: 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  font-weight: 600;
}

.product-number {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 1rem;
}

.featured-product h3 {
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.featured-product p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* The Inventory Section */
.inventory {
  background: var(--cream-warm);
  position: relative;
}

.inventory::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--charcoal) 0px,
      var(--charcoal) 2px,
      transparent 2px,
      transparent 12px
    );
  opacity: 0.4;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header .eyebrow {
  margin-bottom: 0.75rem;
  display: block;
}

.section-intro {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: white;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 8px 8px 0 var(--sage);
}

.product-image {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream-warm));
  display: grid;
  place-items: center;
  border-bottom: 2px solid var(--charcoal);
  position: relative;
  overflow: hidden;
}

.product-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(45, 52, 54, 0.03) 10px, rgba(45, 52, 54, 0.03) 20px);
}

.product-icon {
  font-size: 4rem;
  opacity: 0.3;
}

.product-content {
  padding: 1.75rem;
}

.product-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.product-description {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--sage-dark);
  transition: gap 0.2s ease;
}

.product-link:hover {
  gap: 0.7rem;
  color: var(--terracotta);
}

.product-link::after {
  content: "→";
  font-size: 1.2em;
}

/* How It's Made Section */
.how-it-works {
  background: var(--charcoal);
  color: var(--cream);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.process-step {
  position: relative;
  padding-left: 4rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--sage);
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--terracotta);
}

.process-step h3 {
  color: var(--cream);
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.process-step p {
  color: rgba(245, 242, 237, 0.8);
  line-height: 1.7;
}

/* The Workshop Section */
.workshop {
  background: var(--cream);
}

.workshop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.workshop-path {
  background: white;
  border: 3px solid var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 3rem;
  position: relative;
  transition: all 0.3s ease;
}

.workshop-path::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, transparent, rgba(122, 155, 127, 0.05));
  pointer-events: none;
}

.workshop-path:hover {
  transform: translateY(-8px);
  box-shadow: 12px 12px 0 var(--sage);
}

.workshop-path.buy:hover {
  box-shadow: 12px 12px 0 var(--terracotta);
}

.path-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.workshop-path h3 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.workshop-path p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.workshop-path ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.workshop-path li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.workshop-path li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: bold;
}

/* Contact Section */
.contact {
  background: var(--cream-warm);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 120px;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.info-list {
  display: grid;
  gap: 1.5rem;
}

.info-item dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.info-item dd {
  margin: 0;
  color: var(--charcoal);
  font-size: 1.05rem;
}

.info-item a:hover {
  color: var(--terracotta);
}

.contact-form {
  background: white;
  border: 3px solid var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 8px 8px 0 var(--sage);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--charcoal);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  border: 2px solid var(--charcoal);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--charcoal);
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: white;
  box-shadow: 4px 4px 0 var(--terracotta-muted);
  transform: translate(-2px, -2px);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-footnote {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  font-style: italic;
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  padding: 3rem 0 2rem;
  border-top: 4px solid var(--sage);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: start;
}

.footer-brand .logo {
  margin-bottom: 1rem;
  color: var(--cream);
}

.footer-brand .logo:hover {
  color: var(--sage-light);
}

.footer-copy {
  color: rgba(245, 242, 237, 0.6);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-nav a {
  color: rgba(245, 242, 237, 0.8);
}

.footer-nav a:hover {
  color: var(--sage-light);
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .workshop-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    position: static;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-list {
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    flex-direction: column;
    background: white;
    border: 2px solid var(--charcoal);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    gap: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .nav-list[aria-hidden='false'] {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-nav {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 520px) {
  .section {
    padding: clamp(3rem, 6vw, 4rem) 0;
  }

  .product-grid {
    gap: 2rem;
  }

  .workshop-path {
    padding: 2rem;
  }

  .contact-form {
    padding: 1.75rem;
  }

  .button {
    width: 100%;
    justify-content: center;
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .button {
    display: none;
  }
}
