/* ============================================
   apostala-paraguayplay.com — Editorial paper
   Palette: cream + crimson + ink
   Fonts: Crimson Pro (display, italic axis) + Geist (body)
   ============================================ */

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

html {
  font-size: calc(0.433vw + 0.433vh + 0.3175vmin);
  scroll-behavior: smooth;
}

:root {
  /* ===== Paper foundation ===== */
  --bg-paper: #fbf8f3;
  --bg-paper-soft: #f5f1e8;
  --bg-paper-deep: #efe9dd;

  /* ===== Surface alphas (header / mobile menu / footer) ===== */
  --surface-bg: rgba(251, 248, 243, 0.82);
  --surface-bg-strong: rgba(251, 248, 243, 0.97);
  --surface-bg-deep: #efe9dd;

  /* ===== Ink — typography ===== */
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --ink-muted: #6e6e6e;
  --ink-dim: #9a9a9a;

  /* ===== Accent — crimson ===== */
  --accent: #c41e3a;
  --accent-dark: #8e1428;
  --accent-bright: #d8324a;
  --accent-deep: #6e0f1f;
  --accent-soft: rgba(196, 30, 58, 0.07);
  --accent-tint: rgba(196, 30, 58, 0.12);
  --accent-line: rgba(196, 30, 58, 0.16);
  --accent-line-soft: rgba(196, 30, 58, 0.24);
  --accent-line-mid: rgba(196, 30, 58, 0.36);
  --accent-border: rgba(196, 30, 58, 0.5);

  /* ===== Hairlines — editorial borders ===== */
  --hairline: rgba(26, 26, 26, 0.12);
  --hairline-strong: rgba(26, 26, 26, 0.24);
  --hairline-soft: rgba(26, 26, 26, 0.06);

  /* ===== Shadows — paper-soft, NO glow ===== */
  --shadow-paper: 0 1px 2px rgba(26, 26, 26, 0.05), 0 8px 24px rgba(26, 26, 26, 0.06);
  --shadow-paper-lifted: 0 2px 6px rgba(26, 26, 26, 0.08), 0 16px 40px rgba(26, 26, 26, 0.10);
  --shadow-card: 0 1px 0 rgba(26, 26, 26, 0.04), 0 6px 18px rgba(26, 26, 26, 0.06);

  /* ===== Gradients — subtle ===== */
  --gradient-footer: linear-gradient(180deg, var(--bg-paper) 0%, var(--bg-paper-deep) 100%);
  --gradient-paper: linear-gradient(180deg, var(--bg-paper) 0%, var(--bg-paper-soft) 100%);

  /* ===== Radius — editorial (мало скруглений) ===== */
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  /* ===== Spacing ===== */
  --main-padding: 80px;
}

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: flex;
  flex-direction: column;
  gap: 0;
}

section {
  padding: 9rem var(--main-padding);
  position: relative;
  overflow: hidden;
}

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

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

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

em,
i {
  font-style: italic;
}

/* ============================================
   Text scale
   ============================================ */
.text-xxl {
  font-size: 5.2rem;
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.022em;
}
.text-xl {
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1.10;
  letter-spacing: -0.018em;
}
.text-l {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
}
.text-ml {
  font-size: 1.95rem;
  font-weight: 600;
  line-height: 1.25;
}
.text-m {
  font-size: 1.52rem;
  font-weight: 500;
  line-height: 1.55;
}
.text-ms {
  font-size: 1.46rem;
  font-weight: 400;
  line-height: 1.6;
}
.text-s {
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.65;
}
.text-xs {
  font-size: 1.07rem;
  font-weight: 400;
  line-height: 1.55;
}
.text-xxs {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ===== Display (Crimson Pro) — for h1/h2/h3 hero/section titles ===== */
.text-display {
  font-family: "Crimson Pro", "Geist", Georgia, serif;
  font-weight: 500;
  font-feature-settings: "ss01", "ss02";
}

.text-display em,
.text-display i {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.text-accent {
  color: var(--accent);
}
.text-ink {
  color: var(--ink);
}
.text-muted {
  color: var(--ink-muted);
}
.text-dim {
  color: var(--ink-dim);
}

/* ============================================
   Buttons — editorial: primary filled crimson, outline ink hairline
   ============================================ */
.primary_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.15rem 2.3rem;
  font-family: "Geist", inherit;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bg-paper);
  background: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  text-transform: none;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.primary_button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--bg-paper);
  transform: translateY(-1px);
}

.outline_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.15rem 2.3rem;
  font-family: "Geist", inherit;
  font-size: 1.04rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.outline_button:hover {
  background: var(--ink);
  color: var(--bg-paper);
  transform: translateY(-1px);
}

/* ============================================
   Brand — boxed badge logo (shared header/footer)
   ============================================ */
.brand_logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Geist", inherit;
  letter-spacing: -0.02em;
}

.brand_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.36rem 0.6rem;
  font-family: "Crimson Pro", serif;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bg-paper);
  background: var(--accent);
  border-radius: var(--radius-sm);
  position: relative;
}

.brand_badge::before,
.brand_badge::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--ink);
  border-style: solid;
  border-width: 0;
}

.brand_badge::before {
  top: -3px;
  left: -3px;
  border-top-width: 1.5px;
  border-left-width: 1.5px;
}

.brand_badge::after {
  bottom: -3px;
  right: -3px;
  border-bottom-width: 1.5px;
  border-right-width: 1.5px;
}

.brand_word {
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--ink);
  text-transform: lowercase;
}

.brand_word > i {
  color: var(--accent);
  font-style: normal;
  margin: 0 0.05em;
}

/* ============================================
   Section tag — editorial hairline marker
   ============================================ */
.section_tag {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Geist", inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section_tag::before {
  content: "";
  display: inline-block;
  width: 1.6rem;
  height: 1.5px;
  background: var(--accent);
}

/* ============================================
   Layout helper
   ============================================ */
.base_position {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* ============================================
   Check list — crimson tick on cream
   ============================================ */
.check_list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.check_list > li {
  position: relative;
  padding-left: 2.4rem;
  color: var(--ink-soft);
  font-size: 1.18rem;
  line-height: 1.6;
}

.check_list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--bg-paper);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
}

.check_list > li::after {
  content: "";
  position: absolute;
  left: 0.46rem;
  top: 0.7rem;
  width: 0.5rem;
  height: 0.26rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ============================================
   Tables — editorial paper, hairline borders
   ============================================ */
._table {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-paper);
  border: 1.5px solid var(--ink);
}

._table > table {
  width: 100%;
  border-collapse: collapse;
}

._table > table > thead > tr {
  background: var(--ink);
}

._table > table > thead > tr > th {
  color: var(--bg-paper);
  font-family: "Geist", inherit;
  font-weight: 600;
  font-size: 0.94rem;
  text-align: left;
  padding: 1.3rem 1.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

._table > table > tbody > tr {
  transition: background 0.2s ease;
}

._table > table > tbody > tr:nth-child(even) {
  background: var(--bg-paper-soft);
}

._table > table > tbody > tr:hover {
  background: var(--accent-soft);
}

._table > table > tbody > tr > td {
  padding: 1.3rem 1.6rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  border-bottom: 1px solid var(--hairline-soft);
  vertical-align: top;
}

._table > table > tbody > tr > td:first-child {
  font-weight: 600;
  color: var(--ink);
  font-family: "Crimson Pro", serif;
  font-size: 1.18rem;
}

._table > table > tbody > tr:last-child > td {
  border-bottom: none;
}

/* ============================================
   Inline section CTA row (universal)
   ============================================ */
.section_cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2.5rem;
}

.section_cta > .cta_note {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin-left: 0.6rem;
  letter-spacing: 0.02em;
}

.section_cta > .cta_note > span {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   Selection
   ============================================ */
::selection {
  background: var(--accent);
  color: var(--bg-paper);
}

/* ============================================
   Mobile — ≤1024px
   ============================================ */
@media (max-width: 1024px) {
  html {
    font-size: calc(0.333vw + 0.333vh + 0.2175vmin);
  }

  :root {
    --main-padding: 20px;
  }

  section {
    padding: 11rem var(--main-padding);
  }

  .text-xxl { font-size: 7rem; }
  .text-xl  { font-size: 5.4rem; }
  .text-l   { font-size: 4rem; }
  .text-ml  { font-size: 3.4rem; }
  .text-m   { font-size: 2.8rem; }
  .text-ms  { font-size: 2.6rem; }
  .text-s   { font-size: 2.4rem; }
  .text-xs  { font-size: 2.2rem; }
  .text-xxs { font-size: 2rem; }

  .primary_button,
  .outline_button {
    font-size: 3.3rem;
    padding: 2rem 3rem;
  }

  .primary_button {
    width: 90%;
    height: 16rem;
  }

  .outline_button {
    width: 90%;
    height: 16rem;
  }

  .brand_badge {
    padding: 0.7rem 1.2rem;
    font-size: 4rem;
  }

  .brand_word {
    font-size: 4.4rem;
  }

  .section_tag {
    font-size: 2rem;
    letter-spacing: 0.24em;
  }

  .section_tag::before {
    width: 3rem;
    height: 2px;
  }

  .check_list > li {
    padding-left: 4.2rem;
    font-size: 2.4rem;
  }

  .check_list > li::before {
    width: 2.6rem;
    height: 2.6rem;
    top: 0.4rem;
  }

  .check_list > li::after {
    width: 0.9rem;
    height: 0.46rem;
    left: 0.84rem;
    top: 1.05rem;
    border-left-width: 3px;
    border-bottom-width: 3px;
  }

  ._table > table > thead > tr > th,
  ._table > table > tbody > tr > td {
    padding: 2rem 1.6rem;
    font-size: 2.1rem;
  }

  ._table > table > thead > tr > th {
    font-size: 1.8rem;
  }

  ._table > table > tbody > tr > td:first-child {
    font-size: 2.3rem;
  }

  .section_cta {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .section_cta > .cta_note {
    font-size: 2rem;
    text-align: center;
    margin-left: 0;
    margin-top: 0.5rem;
  }
}
