@import url('https://fonts.googleapis.com/css2?family=Berkshire+Swash&family=Courier+Prime:wght@400;700&display=swap');

:root {
  --bg-deep: #0F1A2E;
  --bg-navy: #1B2A4A;
  --bg-cream: #F5F0E8;
  --bg-crimson: #7A1F1F;
  --text-cream: #F5F0E8;
  --text-navy: #1B2A4A;
  --accent-blush: #E8A598;
  --accent-crimson: #8B3A3A;
  --font-brand: 'Berkshire Swash', Georgia, serif;
  --font-mono: 'Courier Prime', 'Courier New', monospace;
}

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

html { background: var(--bg-deep); }

body {
  background: var(--bg-deep);
  color: var(--text-cream);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(245,240,232,0.2); border-radius: 3px; }

/* ── Nav ── */
.nav {
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(245,240,232,0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo .brand {
  font-family: var(--font-brand);
  font-size: 17px;
  color: var(--text-cream);
}
.nav-logo .subtitle {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(245,240,232,0.35);
  text-transform: uppercase;
  margin-left: 2px;
  padding-top: 2px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a.active { color: #F5F0E8; }
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-menu {
  display: none;
  padding: 24px 48px 32px;
  border-bottom: 1px solid rgba(245,240,232,0.08);
  background-color: var(--bg-deep);
  flex-direction: column;
  gap: 20px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.5);
  text-decoration: none;
}
.nav-mobile-menu a.active { color: #F5F0E8; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-logo .subtitle { display: none; }
}

/* ── Hero ── */
.hero {
  padding: 96px 48px 80px;
  max-width: 760px;
  animation: fadeUp 0.7s ease 0.1s both;
}
.hero .path {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(245,240,232,0.35);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  margin-bottom: 28px;
  color: var(--text-cream);
}
.hero h1 .dim {
  color: rgba(245,240,232,0.35);
  font-style: italic;
}
.hero .tagline {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(245,240,232,0.5);
  max-width: 480px;
}

/* ── Dividers ── */
.divider-dashed {
  margin: 0 48px 64px;
  border: none;
  border-top: 1px dashed rgba(245,240,232,0.1);
}
.divider-solid {
  border: none;
  border-top: 1px solid rgba(245,240,232,0.08);
}

/* ── Section header ── */
.section-header {
  padding: 0 48px;
  margin-bottom: 32px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  animation: fadeUp 0.5s ease 0.3s both;
}
.section-header .title {
  font-family: var(--font-brand);
  font-size: 22px;
  color: var(--text-cream);
}
.section-header .count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(245,240,232,0.3);
  letter-spacing: 0.1em;
}

/* ── Product grid ── */
.product-grid {
  padding: 0 48px 96px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ── Product card ── */
.product-card {
  border-radius: 6px;
  padding: 32px 28px 24px;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  animation: fadeUp 0.5s ease both;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}
.product-card .texture {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px;
  pointer-events: none;
}
.product-card .card-header { margin-bottom: 20px; }
.product-card .card-header .logo-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.product-card .card-header .logo-row .brand {
  font-family: var(--font-brand); font-size: 15px;
}
.product-card .card-header .co-line {
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.product-card .card-sep { margin-bottom: 16px; border: none; }
.product-card .card-path {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 10px;
}
.product-card .card-name {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  line-height: 1.2;
}
.product-card .card-roast {
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 16px;
}
.product-card .badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 14px;
}
.product-card .card-log {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 14px;
  line-height: 1.6;
}
.product-card .notes-block {
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 16px;
}
.product-card .note-item { padding-left: 16px; }
.product-card .card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.8;
}
.product-card .card-footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card .price-struck {
  font-family: var(--font-brand);
  font-size: 16px;
  text-decoration: line-through;
}
.product-card .coming-soon {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 3px;
}

/* Dark card variant */
.product-card.dark .card-header .logo-row .brand { color: #F5F0E8; }
.product-card.dark .card-header .co-line { color: rgba(245,240,232,0.5); border-top: 1px solid rgba(245,240,232,0.2); }
.product-card.dark .card-sep { border-top: 1px dashed rgba(245,240,232,0.2); }
.product-card.dark .card-path { color: rgba(245,240,232,0.45); }
.product-card.dark .card-name { color: #F5F0E8; }
.product-card.dark .card-roast { color: rgba(245,240,232,0.65); }
.product-card.dark .badge { border: 1px solid rgba(245,240,232,0.2); color: rgba(245,240,232,0.5); }
.product-card.dark .card-log { color: rgba(245,240,232,0.55); }
.product-card.dark .notes-block { color: rgba(245,240,232,0.55); }
.product-card.dark .card-meta { color: rgba(245,240,232,0.4); }
.product-card.dark .price-struck { color: rgba(245,240,232,0.3); }
.product-card.dark .coming-soon { border: 1px dashed rgba(245,240,232,0.25); color: rgba(245,240,232,0.5); }

/* Light card variant */
.product-card.light .card-header .logo-row .brand { color: #1B2A4A; }
.product-card.light .card-header .co-line { color: rgba(27,42,74,0.4); border-top: 1px solid rgba(27,42,74,0.15); }
.product-card.light .card-sep { border-top: 1px dashed rgba(27,42,74,0.15); }
.product-card.light .card-path { color: rgba(27,42,74,0.4); }
.product-card.light .card-name { color: #1B2A4A; }
.product-card.light .card-roast { color: rgba(27,42,74,0.6); }
.product-card.light .badge { border: 1px solid rgba(27,42,74,0.15); color: rgba(27,42,74,0.4); }
.product-card.light .card-log { color: rgba(27,42,74,0.5); }
.product-card.light .notes-block { color: rgba(27,42,74,0.5); }
.product-card.light .card-meta { color: rgba(27,42,74,0.35); }
.product-card.light .price-struck { color: rgba(27,42,74,0.25); }
.product-card.light .coming-soon { border: 1px dashed rgba(27,42,74,0.2); color: rgba(27,42,74,0.4); }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid rgba(245,240,232,0.08);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-footer .footer-brand span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(245,240,232,0.25);
  letter-spacing: 0.1em;
}
.site-footer .footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-footer .footer-links a,
.site-footer .footer-links span {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(245,240,232,0.2);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.thirtyk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px;
  text-decoration: none;
}
.thirtyk-badge .label-top {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.3);
  line-height: 1;
}
.thirtyk-badge .label-bottom {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: #c9a84c;
  line-height: 1;
}

/* ── Inner page layout ── */
.page-hero {
  padding: 96px 48px 64px;
  max-width: 680px;
}
.page-hero .path {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(245,240,232,0.35);
  margin-bottom: 24px;
  text-transform: uppercase;
}
.page-hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-cream);
}
.page-hero .subtitle {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(245,240,232,0.45);
  max-width: 480px;
}

/* ── Prose content (story, terms, privacy) ── */
.prose {
  padding: 0 48px 96px;
  max-width: 640px;
}
.prose-body {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  color: rgba(245,240,232,0.55);
}
.prose-body p { margin-bottom: 36px; }
.prose-body p:last-child { margin-bottom: 0; }
.prose-body .lead {
  font-size: 15px;
  color: rgba(245,240,232,0.7);
  font-style: italic;
}
.prose-body .pullquote {
  border-left: 2px solid rgba(245,240,232,0.15);
  padding-left: 20px;
  color: var(--accent-blush);
  font-style: italic;
}
.prose-body .sign-off {
  color: var(--accent-blush);
  font-family: var(--font-brand);
  font-size: 16px;
}
.prose-body h2 {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-cream);
  margin-bottom: 12px;
}
.prose-body section { margin-bottom: 32px; }
.prose-body section p { margin-bottom: 0; }
.prose-body a {
  color: var(--accent-blush);
  text-decoration: none;
}
.prose .back-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blush);
  text-decoration: none;
}
.prose .date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245,240,232,0.35);
  margin-bottom: 48px;
}
.prose .divider-dashed-inline {
  border: none;
  border-top: 1px dashed rgba(245,240,232,0.1);
  margin: 64px 0 48px;
}

/* ── Roasts page ── */
.roast-list {
  padding: 64px 48px 96px;
  max-width: 760px;
}
.roast-entry { padding: 48px 0; }
.roast-entry + .roast-entry { border-top: 1px dashed rgba(245,240,232,0.08); }
.roast-entry .roast-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}
.roast-entry .swatch {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.roast-entry .swatch.light-swatch { border: 1px solid rgba(245,240,232,0.15); }
.roast-entry .roast-name {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-cream);
  margin-bottom: 4px;
}
.roast-entry .roast-type {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(245,240,232,0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}
.roast-entry .roast-type .badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid rgba(245,240,232,0.2);
  border-radius: 2px;
  color: rgba(245,240,232,0.5);
}
.roast-entry .roast-origin {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(245,240,232,0.4);
  margin-top: 4px;
}
.roast-entry .roast-log {
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: italic;
  margin-bottom: 24px;
}
.roast-entry .roast-desc {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  color: rgba(245,240,232,0.55);
  max-width: 560px;
  margin-bottom: 24px;
}
.roast-entry .note-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.roast-entry .note-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid rgba(245,240,232,0.15);
  border-radius: 3px;
  color: rgba(245,240,232,0.5);
}

/* ── Contact section ── */
.contact-section {
  border-top: 1px solid rgba(245,240,232,0.08);
  padding: 80px 48px;
  max-width: 560px;
}
.contact-section .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: rgba(245,240,232,0.3);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.contact-section h2 {
  font-family: var(--font-brand);
  font-size: 28px;
  color: var(--text-cream);
  margin-bottom: 16px;
}
.contact-section p {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  color: rgba(245,240,232,0.45);
  margin-bottom: 32px;
}
.contact-section .email-btn {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-blush);
  text-decoration: none;
  padding: 12px 24px;
  border: 1px solid var(--accent-blush);
  border-radius: 4px;
  display: inline-block;
}

/* ── Cursor blink ── */
.cursor-blink { animation: blink 1.06s step-end infinite; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
