/* ===================================================================
   RAMJI MISHRA - EDITORIAL MINIMALIST DESIGN SYSTEM
   Human-designed, timeless, warm paper aesthetic.
   Inspired by Stripe Press, ReadCV, Minimal Goods & Substack.
   Zero cheesy blue glow, zero AI clutter.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-page: #fafaf9;          /* Warm stone / fine paper */
  --bg-card: #ffffff;          /* Pure crisp white */
  --bg-card-subtle: #f4f4f5;   /* Soft neutral hover */
  --bg-dark: #18181b;          /* Deep obsidian charcoal */

  --border-subtle: #e4e4e7;
  --border-strong: #d4d4d8;
  --border-dark: #27272a;

  --text-main: #18181b;        /* Charcoal black */
  --text-muted: #52525b;       /* Balanced gray */
  --text-dim: #71717a;         /* Soft metadata */
  --text-light: #f4f4f5;

  --accent-action: #18181b;    /* Timeless monochrome action */
  --accent-action-hover: #27272a;
  --accent-sage: #059669;      /* Natural emerald */
  --accent-sage-bg: #ecfdf5;

  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 12px 24px -6px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* ================= CONTAINER ================= */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-symbol {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-main);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active {
  font-weight: 600;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  box-shadow: var(--shadow-card);
}

.cart-pill:hover {
  border-color: var(--text-main);
}

/* ================= HERO ================= */
.hero-section {
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.775rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-main);
  max-width: 760px;
  margin: 0 auto 1.25rem;
}

.hero-title em {
  font-style: italic;
  font-family: var(--font-serif);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  font-size: 0.825rem;
  color: var(--text-dim);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  max-width: 600px;
  margin: 0 auto;
}

.hero-trust-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust-row svg {
  color: var(--accent-sage);
}

/* ================= CARDS GRID ================= */
.catalog-wrap {
  padding: 2rem 0 5.5rem;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.card-top {
  margin-bottom: 2rem;
}

.card-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-category {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.card-edition {
  font-size: 0.725rem;
  padding: 2px 8px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.card-heading {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.card-subheading {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  font-weight: 400;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.checklist {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.checklist li svg {
  color: var(--text-main);
  flex-shrink: 0;
  margin-top: 3px;
}

.card-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.price-num {
  font-family: var(--font-sans);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.price-delivery-note {
  font-size: 0.775rem;
  color: var(--accent-sage);
  font-weight: 600;
}

/* ================= BUTTONS ================= */
.btn-group {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  width: 100%;
}

.btn-dark {
  background: var(--accent-action);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--accent-action-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: var(--bg-card-subtle);
  border-color: var(--border-strong);
}

/* ================= FAQ ACCORDION ================= */
.faq-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-card);
}

.faq-q {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.faq-a {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ================= EDITORIAL LEGAL & POLICY PAGES ================= */
.article-container {
  max-width: 740px;
  margin: 3.5rem auto 6rem;
  padding: 0 1.5rem;
}

.article-header {
  text-align: center;
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 400;
  color: var(--text-main);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.article-body {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  font-size: 0.95rem;
  line-height: 1.8;
  color: #3f3f46;
  box-shadow: var(--shadow-card);
}

.article-body h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--text-main);
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.article-body h2:first-of-type {
  margin-top: 0;
}

.article-body p {
  margin-bottom: 1.15rem;
}

.article-body ul, .article-body ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.statutory-box {
  background: #fdfbf7;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-sm);
  margin: 1.75rem 0;
  color: #92400e;
  font-size: 0.9rem;
}

/* ================= CONTACT & CHECKOUT LAYOUT ================= */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0 5rem;
}

.editorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.form-field {
  margin-bottom: 1.15rem;
}

.field-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.field-input {
  width: 100%;
  padding: 11px 14px;
  background: #fafaf9;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  transition: all 0.15s ease;
}

.field-input:focus {
  outline: none;
  border-color: var(--text-main);
  background: #ffffff;
}

textarea.field-input {
  min-height: 110px;
  resize: vertical;
}

/* ================= FOOTER ================= */
.site-footer {
  margin-top: auto;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2.5rem;
  font-size: 0.875rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.55rem;
}

.footer-nav a {
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text-main);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-dim);
  font-size: 0.8rem;
}

.badge-pill-flat {
  padding: 2px 7px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 850px) {
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .two-col-layout {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
}
