/* ============================================================
   Roha — Global Styles
   Reset, variables, typography, layout primitives, patterns
   ============================================================ */

/* ---------- Variables (jangan ubah tanpa update brand book) ---------- */
:root {
  --terracotta: #C9583B;
  --terracotta-soft: #E07B5C;
  --clay: #7A2E1B;
  --sand: #E8D9BE;
  --cream: #F4ECD9;
  --paper: #FDFAF1;            /* lebih terang, mendekati off-white hangat */
  --paper-tint: #FAF5E8;        /* untuk surface kedua / divider section */
  --ink: #221512;
  --mustard: #D8A23F;
  --sage: #6B7A5A;
  --rule: rgba(34, 21, 18, .12);
  --rule-strong: rgba(34, 21, 18, .22);

  --maxw: 1080px;
  --gutter: 28px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

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

/* ---------- Type primitives ---------- */
.display {
  font-family: 'Bricolage Grotesque', serif;
  letter-spacing: -.03em;
  line-height: .95;
  font-weight: 500;
}
.serif { font-family: 'Instrument Serif', serif; }
.mono {
  font-family: 'Geist Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
}
.italic-accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--terracotta);
  font-weight: 400;
}

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 64px 0;
  border-top: 1px solid var(--rule);
}
.section:first-of-type { border-top: 0; }
.section-tight { padding: 40px 0; }

@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-tight { padding: 32px 0; }
  :root { --gutter: 20px; }
}

/* ---------- Eyebrow + section titles ---------- */
.eyebrow {
  font-family: 'Geist Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10.5px;
  color: var(--clay);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: .82;
}
.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--clay);
  opacity: .6;
}

.section-title {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 500;
  margin: 10px 0 4px;
  text-wrap: pretty;
}
.section-title em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--terracotta); font-weight: 400; }

.section-lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  opacity: .66;
  max-width: 54ch;
  margin: 0;
  text-wrap: pretty;
}

.section-head { margin-bottom: 32px; }
.section-head--split {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; flex-wrap: wrap; margin-bottom: 32px;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero h1 {
  font-family: 'Bricolage Grotesque', serif;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .94;
  margin: 18px 0 24px;
  text-wrap: balance;
}
.hero h1 em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--terracotta); font-weight: 400; }
.hero-h1--xl { font-size: clamp(48px, 7.2vw, 104px); line-height: .92; }
.hero-h1--lg { font-size: clamp(40px, 5.6vw, 80px); line-height: .96; }

.hero-sub {
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.55;
  color: var(--ink);
  opacity: .7;
  max-width: 54ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.hero-stripe {
  display: flex;
  gap: 0;
  height: 8px;
  margin-top: 56px;
  border-radius: 99px;
  overflow: hidden;
}
.hero-stripe span { flex: 1; }

/* ---------- Pull quote ---------- */
.pull {
  font-family: 'Bricolage Grotesque', serif;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -.015em;
  font-weight: 400;
  text-wrap: pretty;
}
.pull em { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--terracotta); }

/* ---------- Brand patterns (background utility) ---------- */
.pat-arcs {
  background:
    radial-gradient(circle at 50% 100%, transparent 0 60px, var(--terracotta) 60px 64px, transparent 64px 100px, var(--terracotta) 100px 104px, transparent 104px 140px, var(--terracotta) 140px 144px, transparent 144px 180px, var(--terracotta) 180px 184px, transparent 184px 220px, var(--terracotta) 220px 224px, transparent 224px),
    var(--cream);
}
.pat-grid {
  background:
    radial-gradient(circle, var(--terracotta) 1.5px, transparent 2px) 0 0 / 22px 22px,
    var(--cream);
}
.pat-stripe {
  background: repeating-linear-gradient(45deg, var(--terracotta) 0 14px, var(--cream) 14px 28px);
}
.pat-confetti {
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 18% 28%, var(--terracotta) 0 7px, transparent 8px),
    radial-gradient(circle at 70% 18%, var(--mustard) 0 5px, transparent 6px),
    radial-gradient(circle at 82% 68%, var(--sand) 0 6px, transparent 7px),
    radial-gradient(circle at 28% 78%, var(--terracotta-soft) 0 5px, transparent 6px),
    radial-gradient(circle at 55% 55%, var(--sage) 0 4px, transparent 5px),
    radial-gradient(circle at 12% 65%, var(--mustard) 0 4px, transparent 5px),
    radial-gradient(circle at 90% 40%, var(--terracotta) 0 6px, transparent 7px);
}
.pat-block {
  background: linear-gradient(var(--terracotta) 0 50%, var(--clay) 50% 100%);
}
.pat-grain {
  background-color: var(--terracotta);
  position: relative;
}
.pat-grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.13  0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  mix-blend-mode: multiply;
  opacity: .45;
  pointer-events: none;
}

/* Heat: terracotta → clay gradient with grain */
.pat-heat {
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--clay) 100%);
  position: relative;
}
.pat-heat::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.13  0 0 0 0 0.08  0 0 0 0 0.07  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
  mix-blend-mode: overlay;
  opacity: .55;
  pointer-events: none;
}

/* ---------- Utility ---------- */
.text-mono {
  font-family: 'Geist Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  color: var(--clay);
}
.muted { opacity: .68; }
.center { text-align: center; }
.tabular { font-variant-numeric: tabular-nums; }

.divider { height: 1px; background: var(--rule); border: 0; }

/* container patterns wrapped (so ::after positioning works) */
.pattern-wrap { position: relative; overflow: hidden; }
