/* ==========================================================================
   BASE STYLES — Spices of Kerala
   Direction: Spice Dept editorial warmth with brand plum.
   Body: Fraunces (characterful serif)
   Headings: Archivo 900, TIGHT tracking, sentence case — big and confident.
   Uppercase + wide tracking lives ONLY on micro-labels (11–13px).
   Fonts are loaded via <link> in each page head (no @import here).
   ========================================================================== */

/* --------------------------------------------------------------------------
   DOCUMENT
   -------------------------------------------------------------------------- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--announcement-bar-height));
}

body {
  font-family: var(--font-body);            /* Fraunces */
  font-size: var(--font-size-base);         /* 17px */
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);     /* 1.65 */
  color: var(--color-text-primary);         /* #4D0332 plum */
  background-color: var(--color-bg-page);   /* #F5F3EC cream */
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   SELECTION — plum background, cream text
   -------------------------------------------------------------------------- */
::selection {
  background-color: var(--color-plum);
  color: var(--color-cream);
}

::-moz-selection {
  background-color: var(--color-plum);
  color: var(--color-cream);
}

/* --------------------------------------------------------------------------
   SCROLLBAR — WebKit custom scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-tan);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-sand-300);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-tan);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-plum);
}

/* --------------------------------------------------------------------------
   HEADINGS — Archivo 900, tight tracking, sentence case.
   NO uppercase by default: uppercase is a micro-label treatment only.
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);          /* Archivo */
  font-weight: var(--font-weight-black);     /* 900 */
  font-stretch: var(--font-display-stretch); /* 118% — chunky Ginto mass */
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tight);  /* -0.02em */
  color: var(--color-text-primary);
  margin-top: 0;
}

h1 {
  font-size: var(--font-size-display);          /* clamp 2.75–5rem */
  line-height: var(--line-height-tight);        /* 1.05 */
  letter-spacing: var(--letter-spacing-display);/* -0.03em */
}

h2 {
  font-size: var(--font-size-h2);               /* clamp 2–3.25rem */
  line-height: 1.08;
  letter-spacing: var(--letter-spacing-tight);
}

h3 {
  font-size: var(--font-size-h3);
  letter-spacing: var(--letter-spacing-tight);
}

h4 {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  line-height: var(--line-height-normal);
  letter-spacing: var(--letter-spacing-snug);
  font-weight: var(--font-weight-bold);
}

h5 {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  letter-spacing: var(--letter-spacing-snug);
  font-weight: var(--font-weight-bold);
}

h6 {
  font-size: 1rem;
  letter-spacing: var(--letter-spacing-normal);
  font-weight: var(--font-weight-bold);
}

/* --------------------------------------------------------------------------
   PARAGRAPHS & BODY TEXT
   -------------------------------------------------------------------------- */
p {
  font-family: var(--font-body);            /* Fraunces */
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
  max-width: 68ch;
}

p + p {
  margin-top: var(--space-5);
}

.lead {
  font-family: var(--font-body);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-charcoal-600);
  font-weight: var(--font-weight-regular);
}

.text-small {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Overline / eyebrow: the ONE place uppercase + ultra tracking belongs */
.text-overline {
  font-family: var(--font-display);         /* Archivo */
  font-size: var(--font-size-eyebrow);      /* 11px */
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-ultra); /* 0.15em */
  text-transform: uppercase;
  color: var(--color-accent-text);          /* text-safe paprika */
}

/* --------------------------------------------------------------------------
   LINKS — no underline by default, underline on hover
   -------------------------------------------------------------------------- */
a {
  color: var(--color-plum);
  text-decoration: none;
  transition: var(--transition-color);
}

a:hover {
  color: var(--color-accent-dark);          /* paprika */
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:focus-visible {
  outline: 2px solid var(--color-border-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Body-text inline links */
.prose a {
  color: var(--color-plum);
  text-decoration: underline;
  text-decoration-color: var(--color-turmeric-200);
  text-underline-offset: 4px;
  transition: var(--transition-color);
}

.prose a:hover {
  color: var(--color-accent-text);
  text-decoration-color: var(--color-turmeric-400);
}

/* --------------------------------------------------------------------------
   FOCUS STYLES — paprika outline, consistent site-wide
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--color-turmeric-400);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   LISTS
   -------------------------------------------------------------------------- */
ul,
ol {
  padding-left: var(--space-6);
}

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

li {
  font-family: var(--font-body);
  line-height: var(--line-height-body);
  margin-bottom: var(--space-1-5);
}

/* Decorative list with paprika square bullets */
.list-spice {
  list-style: none;
  padding-left: 0;
}

.list-spice li {
  padding-left: var(--space-6);
  position: relative;
}

.list-spice li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background-color: var(--color-accent);
  transform: rotate(45deg);                 /* diamond bullet */
}

/* --------------------------------------------------------------------------
   BLOCKQUOTE
   -------------------------------------------------------------------------- */
blockquote {
  border-left: 3px solid var(--color-turmeric-400);
  padding: var(--space-5) var(--space-8);
  background-color: var(--color-tan);
  border-radius: 0;
  font-style: italic;
  font-family: var(--font-body);            /* Fraunces italic */
  color: var(--color-charcoal-700);
  font-size: var(--font-size-md);
}

blockquote cite {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--font-size-eyebrow);
  font-style: normal;
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   INLINE TEXT
   -------------------------------------------------------------------------- */
strong,
b {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

em,
i {
  font-style: italic;
}

small {
  font-size: var(--font-size-xs);
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background-color: var(--color-tan);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-base);
  padding: 0.1em 0.4em;
  color: var(--color-cinnamon-600);
}

pre {
  background-color: var(--color-plum);
  color: var(--color-cream);
  padding: var(--space-8);
  border-radius: 0;
  overflow-x: auto;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-body);
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

mark {
  background-color: var(--color-turmeric-100);
  color: var(--color-charcoal-800);
  padding: 0.1em 0.3em;
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   IMAGES
   -------------------------------------------------------------------------- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

figcaption {
  font-family: var(--font-display);
  font-size: var(--font-size-eyebrow);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   HORIZONTAL RULE
   -------------------------------------------------------------------------- */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-12) 0;
}

.hr--decorative {
  border: none;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--color-turmeric-400),
    var(--color-plum),
    var(--color-turmeric-400),
    transparent
  );
  margin: var(--space-16) auto;
  max-width: 280px;
}

/* --------------------------------------------------------------------------
   TABLES
   -------------------------------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

th {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  text-align: left;
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-tan);
  color: var(--color-text-primary);
  border-bottom: 2px solid var(--color-border-strong);
  letter-spacing: var(--letter-spacing-widest);
  font-size: var(--font-size-eyebrow);
  text-transform: uppercase;
}

td {
  font-family: var(--font-body);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: var(--color-warm-white);
}

/* --------------------------------------------------------------------------
   SECTION TYPOGRAPHY DEFAULTS
   Big, tight, sentence-case headings + tiny uppercase eyebrows.
   -------------------------------------------------------------------------- */
.section-title {
  font-family: var(--font-display);
  font-size: var(--font-size-h2);
  line-height: 1.08;
  font-weight: var(--font-weight-black);
  font-stretch: var(--font-display-stretch);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-primary);
  text-align: center;
  margin-bottom: var(--space-5);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto var(--space-14);
}

.section-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: var(--font-size-eyebrow);      /* 11px */
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-ultra);
  text-transform: uppercase;
  color: var(--color-accent-text);          /* text-safe paprika */
  text-align: center;
  margin-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   MOBILE ADJUSTMENTS
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  body {
    font-size: 1rem;
    line-height: 1.65;
  }

  .section-subtitle {
    font-size: var(--font-size-base);
  }

  blockquote {
    padding: var(--space-4) var(--space-5);
  }
}
