/* ==========================================================================
   99esim — design tokens, reset, primitives
   Tone: warm, assured, modern-travel. One brand hue (burnt orange),
   warm paper neutrals, a single editorial serif accent.
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../assets/fonts/manrope-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/instrument-serif-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/instrument-serif-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2C60-2C7F;
}

:root {
  color-scheme: light;

  /* Warm neutrals, tinted toward the brand hue */
  --bg: #fbf7f0;
  --bg-deep: #f4ece0;
  --surface: #fffdf9;
  --surface-2: #fff7ee;
  --ink: #191510;
  --ink-soft: #564d3f;
  --ink-mute: #7d7263;
  --line: #e8dfd0;
  --line-strong: #d3c5b1;

  /* Brand */
  --brand: #f1580c;
  --brand-strong: #bc4006;
  --brand-soft: #ffe2cd;
  --brand-tint: #fff1e5;
  --on-brand: #1c1209;

  /* Support */
  --success: #176f45;
  --success-soft: #dff3e7;
  --danger: #a8261c;
  --danger-soft: #fde7e4;
  --star: #d97a08;

  /* Radius family */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgb(28 20 10 / 6%), 0 2px 8px rgb(28 20 10 / 4%);
  --shadow-2: 0 12px 30px -14px rgb(52 33 12 / 22%), 0 2px 6px rgb(52 33 12 / 4%);
  --shadow-3: 0 34px 70px -30px rgb(52 33 12 / 38%), 0 8px 20px -12px rgb(52 33 12 / 16%);

  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-display: clamp(2.55rem, 4.4vw, 3.95rem);
  --fs-h2: clamp(1.85rem, 3.1vw, 2.85rem);
  --fs-h3: clamp(1.15rem, 1.6vw, 1.35rem);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #14100a;
    --bg-deep: #0e0b07;
    --surface: #1d1811;
    --surface-2: #241d14;
    --ink: #f7efe3;
    --ink-soft: #d6cbbb;
    --ink-mute: #a99d8c;
    --line: #362c20;
    --line-strong: #4a3d2c;
    --brand: #ff7a33;
    --brand-strong: #ffa269;
    --brand-soft: #3d2414;
    --brand-tint: #2a1a10;
    --on-brand: #1a1008;
    --success: #6ed6a1;
    --success-soft: #18301f;
    --danger: #ff8f83;
    --danger-soft: #3a1a16;
    --star: #f0ad4e;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 40%), 0 2px 8px rgb(0 0 0 / 24%);
    --shadow-2: 0 14px 32px -16px rgb(0 0 0 / 70%), 0 2px 6px rgb(0 0 0 / 30%);
    --shadow-3: 0 36px 70px -30px rgb(0 0 0 / 80%), 0 8px 20px -12px rgb(0 0 0 / 40%);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
strong { font-weight: 800; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand-soft); color: var(--on-brand); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 8vw, 112px);
  position: relative;
}
.section--tight { padding-block: clamp(40px, 5vw, 72px); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: clamp(28px, 4vw, 48px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-title {
  font-size: var(--fs-h2);
  max-width: 22ch;
}
.section-lead {
  margin-top: var(--space-4);
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.65;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.18s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-5);
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: center;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-1);
}
.btn--primary:hover { background: #2c251a; }
@media (prefers-color-scheme: dark) {
  .btn--primary { background: var(--ink); color: #1a1208; }
  .btn--primary:hover { background: #fffaf2; }
}

.btn--accent {
  background: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 10px 24px -14px rgb(241 88 12 / 80%);
}
.btn--accent:hover { background: #ff6c1f; }

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--surface-2); }

.btn--quiet {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.btn--quiet:hover { border-color: var(--line-strong); }

.btn--sm { min-height: 40px; padding: 0 var(--space-4); font-size: 0.875rem; }
.btn--block { width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Hide native search clear buttons in favour of the styled control */
input[type='search']::-webkit-search-cancel-button,
input[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}
