@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Courier+Prime&display=swap');

/* ─────────────────────────────────────────
   Reset & Base
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --cream: #F4EFE4;
  --cream-dark: #E8E0CF;
  --ink: #1C1208;
  --ink-light: #4A3F2F;
  --burgundy: #7A1F2E;
  --burgundy-dark: #5C1621;
  --tan: #C4A97D;
  --tan-light: #DDD0B8;
  --rule: #B8A88A;
}

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

body {
  background-color: var(--cream);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  min-height: 100vh;
}

/* ─────────────────────────────────────────
   Typography
───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
}

a {
  color: var(--burgundy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--burgundy-dark);
}

p {
  margin-bottom: 1.2em;
}

/* ─────────────────────────────────────────
   Layout
───────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─────────────────────────────────────────
   Ornamental Rule
───────────────────────────────────────── */
.ornament {
  text-align: center;
  color: var(--tan);
  font-size: 1.2rem;
  letter-spacing: 0.5em;
  margin: 2.5rem 0;
  user-select: none;
}

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

.rule-double {
  border: none;
  border-top: 3px double var(--rule);
  margin: 3rem 0;
}

/* ─────────────────────────────────────────
   Masthead / Header
───────────────────────────────────────── */
header {
  border-bottom: 3px double var(--rule);
  padding: 1.5rem 0 1rem;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.masthead-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.masthead-title:hover {
  color: var(--burgundy);
}

.masthead-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.masthead-nav a {
  color: var(--ink-light);
  text-decoration: none;
}

.masthead-nav a:hover {
  color: var(--burgundy);
  text-decoration: underline;
}

.tagline-bar {
  text-align: center;
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding: 0.5rem 0 0;
  border-top: 1px solid var(--tan-light);
  margin-top: 0.75rem;
}

/* ─────────────────────────────────────────
   Hero
───────────────────────────────────────── */
.hero {
  padding: 4rem 0 2.5rem;
  text-align: center;
}

.hero-kicker {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 2rem;
}

.hero-intro {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--ink-light);
  line-height: 1.8;
}

.hero-intro p:last-child {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0;
}

/* ─────────────────────────────────────────
   Section Headers
───────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header::before,
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.section-header h2 {
  font-size: 0.78rem;
  font-family: 'Courier Prime', monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  white-space: nowrap;
  font-weight: 400;
}

/* ─────────────────────────────────────────
   Case Study Grid
───────────────────────────────────────── */
.case-studies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--rule);
}

.case-study {
  padding: 1.75rem 2rem;
  border: 1px solid var(--tan-light);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  display: block;
}

.case-study:hover {
  background: var(--cream-dark);
  color: inherit;
}

.case-study-num {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
  display: block;
}

.case-study h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

/* ─────────────────────────────────────────
   Single-column list (Design Systems, Other)
───────────────────────────────────────── */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--rule);
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--tan-light);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.project-item:last-child {
  border-bottom: none;
}

.project-item:hover {
  background: var(--cream-dark);
}

.project-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.project-arrow {
  font-size: 1.2rem;
  color: var(--tan);
}

/* ─────────────────────────────────────────
   About Strip
───────────────────────────────────────── */
.about {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0;
  margin-top: 4rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.about-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tan);
  margin-bottom: 0.5rem;
}

.about h2 {
  font-size: 2rem;
  font-style: italic;
  color: var(--cream);
  line-height: 1.2;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #CCC4B4;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ─────────────────────────────────────────
   Footer
───────────────────────────────────────── */
footer {
  border-top: 3px double var(--rule);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-light);
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--burgundy);
  text-decoration: underline;
}

/* ─────────────────────────────────────────
   Sections spacing
───────────────────────────────────────── */
.portfolio-section {
  padding: 3rem 0;
}

/* ─────────────────────────────────────────
   Responsive
───────────────────────────────────────── */
@media (max-width: 640px) {
  .case-studies {
    grid-template-columns: 1fr;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .masthead {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* ─────────────────────────────────────────
   Case Study Pages
───────────────────────────────────────── */
.breadcrumb {
  padding: 1.25rem 0 0;
}

.breadcrumb a {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--burgundy);
  text-decoration: underline;
}

.cs-hero {
  padding: 3rem 0 2rem;
  border-bottom: 3px double var(--rule);
  margin-bottom: 3rem;
}

.cs-company {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 1rem;
  display: block;
}

.cs-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.2;
  max-width: 720px;
}

.cs-hero .cs-intro {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--ink-light);
  max-width: 680px;
  line-height: 1.8;
}

.cs-body {
  max-width: 680px;
}

.cs-body h2 {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 1rem;
  margin-top: 2.5rem;
  color: var(--ink);
}

.cs-body h3 {
  font-family: 'Courier Prime', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.cs-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.cs-body p {
  margin-bottom: 1.2em;
  font-size: 1rem;
  line-height: 1.8;
}

.cs-body ul, .cs-body ol {
  margin: 0 0 1.2em 1.5rem;
  line-height: 1.8;
}

.cs-body li {
  margin-bottom: 0.4em;
}

.cs-body strong {
  font-weight: 700;
  color: var(--ink);
}

.callout {
  border-left: 3px solid var(--burgundy);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--cream-dark);
  font-style: italic;
  color: var(--ink-light);
}

.callout p:last-child {
  margin-bottom: 0;
}

.archetype-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.archetype-card {
  border: 1px solid var(--rule);
  padding: 1.25rem;
  background: var(--cream-dark);
}

.archetype-card h4 {
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.archetype-card ul {
  margin-left: 1rem;
  font-size: 0.9rem;
}

.cs-nav {
  border-top: 3px double var(--rule);
  margin-top: 4rem;
  padding: 2.5rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cs-nav a {
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-decoration: none;
}

.cs-nav a:hover {
  color: var(--burgundy);
  text-decoration: underline;
}

.cs-nav .nav-label {
  display: block;
  font-size: 0.65rem;
  color: var(--tan);
  margin-bottom: 0.25rem;
}

.cs-nav .nav-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
  display: block;
}

.cs-page {
  padding-bottom: 2rem;
}

@media (max-width: 640px) {
  .archetype-grid {
    grid-template-columns: 1fr;
  }
  .cs-nav {
    flex-direction: column;
  }
}

/* ─────────────────────────────────────────
   Case Study Images
───────────────────────────────────────── */
.cs-figure {
  margin: 2rem auto;
  border: 1px solid var(--rule);
}

.cs-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.cs-figure figcaption {
  padding: 0.6rem 1rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-light);
  background: var(--cream-dark);
  border-top: 1px solid var(--tan-light);
}

.cs-figure-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.cs-figure-group .cs-figure {
  margin: 0 auto;
}

.cs-figure--narrow {
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 640px) {
  .cs-figure-group {
    grid-template-columns: 1fr;
  }
}

/* ─────────────────────────────────────────
   Lightbox
───────────────────────────────────────── */
.cs-figure img {
  cursor: zoom-in;
}

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(28, 18, 8, 0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
  cursor: default;
  border: 1px solid var(--tan-light);
}

.lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--tan-light);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  font-family: 'Playfair Display', Georgia, serif;
  transition: color 0.15s ease;
}

.lightbox-close:hover {
  color: var(--cream);
}

.lightbox-caption {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--tan-light);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
