/* ==========================================================================
   TYPOGRAPHY — Major Third Scale (1.250)
   Base: 18px | Font: Inter | Weight: 500
   Generated from https://typescale.com
   ========================================================================== */

/*
   Scale reference (ratio 1.250, base 18px):
   ─────────────────────────────────────────
   Step -2  (small/caption):  11.52px  →  0.64rem
   Step -1  (footnote):       14.40px  →  0.80rem
   Step  0  (body):           18.00px  →  1.00rem   ← base
   Step  1  (h6/h5):          22.50px  →  1.25rem
   Step  2  (h4):             28.13px  →  1.563rem
   Step  3  (h3):             35.16px  →  1.953rem
   Step  4  (h2):             43.95px  →  2.441rem
   Step  5  (h1):             54.93px  →  3.052rem
   Step  6  (display):        68.66px  →  3.815rem
*/



/* ===== SELF-HOSTED INTER VARIABLE ===== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/InterVariable.woff2') format('woff2-variations');
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 100 900;
    font-display: swap;
    src: url('/fonts/InterVariable-Italic.woff2') format('woff2-variations');
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --bg: #1c1b2e;
      --text: #e0dfe6;
      --text-muted: #c4c3d4;
      --focus-ring: #d2e34e;
      --accent: #d2e34e;
      --max-width: 1200px;
      --padding-side: clamp(1.5rem, 5vw, 5rem); */

    --bg: #221E28;
    --bg-accent: #322C3A;

    --text: #FFFBDB;
    --text-muted: #B0AFC0;
    --text-size-standard: 1em;
    --font-thin: 100;
    --font-regular: 400;
    --font-semibold: 600;
    --font-bold: 700;

    --focus-ring: #E0F250;
    --accent: #E0F250;
    --accent-hover: #BACA09;

    --max-width: 1200px;

    --padding-side: clamp(1rem, 2.5vw, 5rem);
    /*clamp(1rem, 5vw, 5rem);*/
    --padding-standard: 1rem;

    /* ── Scale tokens ── */
    --text-display: 3.815rem;
    /* 68.66px */
    --text-h1: 3.052rem;
    /* 54.93px */
    --text-h2: 2.441rem;
    /* 43.95px */
    --text-h3: 1.953rem;
    /* 35.16px */
    --text-h4: 1.563rem;
    /* 28.13px */
    --text-h5: 1.25rem;
    /* 22.50px */
    --text-h6: 1rem;
    /* 18.00px */
    --text-body: 1rem;
    /* 18.00px */
    --text-small: 0.8rem;
    /* 14.40px */
    --text-caption: 0.64rem;
    /* 11.52px */

    /* ── Base font settings ── */
    --font-base-size: 18px;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-weight: 500;
}

html {
    font-size: var(--font-base-size);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-weight: var(--font-weight);
    font-optical-sizing: auto;
    font-size: var(--text-body);
    line-height: 1.65;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        1fr min(var(--max-width), 100% - var(--padding-side) * 2) 1fr;
    grid-template-rows: auto 1fr auto;
}

/* ── Headings ──────────────────────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-bold, 700);
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 {
    font-size: var(--text-h1);
    line-height: 1.15;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: var(--text-h2);
    line-height: 1.2;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: var(--text-h3);
    line-height: 1.25;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

h4 {
    font-size: var(--text-h4);
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

h5 {
    font-size: var(--text-h5);
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

h6 {
    font-size: var(--text-h6);
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Remove top margin when a heading is the first child */
:is(h1, h2, h3, h4, h5, h6):first-child {
    margin-top: 0;
}


/* ── Body text ─────────────────────────────────────────────────────────── */

p {
    font-size: var(--text-body);
    line-height: 1.65;
    margin-top: 0;
    margin-bottom: 1rem;
    max-width: 70ch;
}

/* Tighten spacing when paragraphs follow headings */
:is(h1, h2, h3, h4, h5, h6)+p {
    margin-top: 0;
}

/* Lead / intro paragraph */
.lead {
    font-size: var(--text-h5);
    line-height: 1.5;
    font-weight: var(--font-weight);
}


/* ── Links ─────────────────────────────────────────────────────────────── */

p a,
li a,
td a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}


/* ── Lists ─────────────────────────────────────────────────────────────── */

ul,
ol {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    line-height: 1.65;
}

li {
    margin-bottom: 0.4rem;
    padding-left: 0.25rem;
}

li:last-child {
    margin-bottom: 0;
}

/* Nested lists */
li>ul,
li>ol {
    margin-top: 0.4rem;
    margin-bottom: 0;
}

/* Description lists */
dl {
    margin-top: 0;
    margin-bottom: 1rem;
}

dt {
    font-weight: var(--font-bold, 700);
    margin-bottom: 0.25rem;
}

dd {
    margin-left: 0;
    margin-bottom: 0.75rem;
    color: var(--text-muted, inherit);
}


/* Default: all direct children sit in the center column */
body>* {
    grid-column: 2;
}

main {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: inherit;
}

main>* {
    grid-column: 2;
}

/* Full-bleed: spans all 3 columns, re-inherits the grid for its children */
.full-bleed {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: inherit;
    background-color: var(--bg-accent);
    padding-block: 4rem;
}

.full-bleed>* {
    grid-column: 2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--padding-side);
    background: var(--accent);
    color: var(--bg);
    padding: 0.75rem 1.25rem;
    font-weight: var(--font-regular);
    font-size: 0.9rem;
    border-radius: 0 0 6px 6px;
    z-index: 200;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    color: var(--bg);
}

/* ===== FOCUS INDICATORS (WCAG 2.4.7 / 2.4.11) ===== */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 4px;
    border-radius: 2px;
}

/* ===== HEADER / NAV ===== */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

header {
    display: flex;
    align-items: center;
}

.logo {
    font-weight: var(--font-bold);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

nav {
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-size: 0.9rem;
    font-weight: var(--font-bold);
    color: var(--text);
    position: relative;
    padding: 0.5rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover,
nav a:focus-visible {
    color: var(--accent);
}

nav a:hover::after,
nav a:focus-visible::after {
    width: 100%;
}

/* ===== HERO / MAIN ===== */
.hero {
    display: flex;
    align-items: center;
    min-height: 70vh;
}

.hero-text {
    /*max-width: 680px;*/
    font-size: clamp(1.5rem, 3.2vw, 2.2rem);
    font-weight: var(--font-regular);
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--text);
}

.highlight {
    color: var(--accent);
    font-weight: var(--font-bold);
}

/* ===== CONTENT LAYOUT ===== */
section+section {
    margin-top: 4rem;
}

.row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 2rem;
}

.row+.row {
    margin-top: 2rem;
}

.col.sticky {
    position: sticky;
    top: 2rem;
    align-self: start;
    height: fit-content;
}

.placeholder-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.placeholder-img+.placeholder-img {
    margin-top: 1.5rem;
}

/* ===== TYPOGRAPHY UTILITIES ===== */
.semibold {
    font-weight: 600;
}

.accent {
    color: var(--accent);
}

/* ===== CONTENT TYPOGRAPHY ===== */
h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: var(--font-semibold);
    margin-bottom: 0.75rem;
}

p {
    line-height: 1.7;
    color: var(--text);
}

p+p {
    margin-top: 1rem;
}

ul {
    margin-top: 1rem;
    padding-left: 1.25rem;
    color: var(--text);
}

li {
    line-height: 1.7;
    padding-left: 0.25rem;
}

li+li {
    margin-top: 0.5rem;
}

/* ===== RESPONSIVE CONTENT ===== */
@media (max-width: 1024px) {
    .row {
        grid-template-columns: 1fr 1fr;
        grid-auto-flow: row;
    }
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: 1fr;
        grid-auto-columns: unset;
    }

    .col.sticky {
        position: static;
    }
}

/* ===== FOOTER ===== */
footer {
    padding: 0 0 2.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(210, 227, 78, 0.3);
    padding-top: 1.5rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.5rem 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.625rem;
    min-width: 44px;
    min-height: 44px;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILE / SMALL TABLET ===== */
@media (max-width: 768px) {
    #header {
        padding: 1.5rem 0;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        inset: 0;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    nav.open {
        opacity: 1;
        pointer-events: auto;
    }

    nav a {
        font-size: 1.5rem;
        font-weight: var(--font-regular);
        color: var(--text);
        transform: translateY(12px);
        opacity: 0;
        transition: transform 0.35s ease, opacity 0.35s ease, color 0.2s ease;
    }

    nav.open a {
        transform: translateY(0);
        opacity: 1;
    }

    nav.open a:nth-child(1) {
        transition-delay: 0.1s;
    }

    nav.open a:nth-child(2) {
        transition-delay: 0.18s;
    }

    nav.open a:nth-child(3) {
        transition-delay: 0.26s;
    }

    .hero-text {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .hero-text {
        font-size: clamp(1.15rem, 5vw, 1.5rem);
    }
}

table {
    text-align: left;

    width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body);
  line-height: 1.5;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

th, td {
    border-bottom: 1px solid var(--text);
    padding: 1.25rem 0;
    font-size: 1rem;
    vertical-align: top;
}

td {
    padding-left: 2rem;

}

tr:last-child th,
tr:last-child td {
    border-bottom: none;
}

th {
    font-weight: var(--font-bold, 700);
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;

}

/* ── Blockquotes ───────────────────────────────────────────────────────── */

blockquote {
  margin: 1.5rem 0;
  padding: 1rem 0 1rem 1.5rem;
  border-left: 3px solid var(--accent, currentColor);
  font-size: var(--text-h5);
  font-style: italic;
  line-height: 1.5;
}

blockquote p {
  margin-bottom: 0;
  max-width: none;
}

blockquote footer,
blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: var(--text-small);
  font-style: normal;
  font-weight: var(--font-weight);
  opacity: 0.7;
}

.semibold {
    font-weight: var(--font-semibold);
}

.accent {
    color: var(--accent);
}

.spacer {
    height: 1px;
    background: var(--accent);
    margin: 2.5rem 5rem;
}

.placeholder-img {
    display: block;
    width: 100%;
    height: auto;
    background-color: var(--text-muted);
    border: 2px solid var(--bg-accent);
    aspect-ratio: 16 / 9;
    margin-bottom: 3rem;
}


/* Form Styling - to be refined at a later date */

form {
    margin-bottom: 2rem;
}
form input,
form textarea {
    display: block;
    width: 100%;
    padding: 20px;
    border: 2px solid #e0f250;
}

form div {
    margin-bottom: 1.5rem;
}

form button {
    padding: 1rem;
    background: #e0f250;
    border-color: transparent;
    font-size: 1rem;
}

form button:hover,
form button:focus {
    background: #baca09;
}

/* For most modern browsers */
::placeholder, textarea::placeholder {
 font-size: 0.9rem;
   color: #666;                 /* Change color as needed */
  opacity: 1;                    /* Ensures consistent opacity across browsers, especially Firefox */
}

/* For older WebKit browsers (Chrome, Safari, older Edge) */
::-webkit-input-placeholder {
  font-size: 0.9rem;
   color: #666;
  opacity: 1;
}

/* For older Firefox versions */
::-moz-placeholder {
  font-size: 0.9rem;
  color: #666;
  opacity: 1;
}

form div[id*="error"], label abbr {
    color: #baca09;
}

button img {
    margin-bottom: -2.5px;
    margin-right: 5px;
}

textarea {
    font-family: Arial;
    font-size: 1rem;
}

button:hover {
    cursor: pointer;
}

.non-index {
    margin-top: 3.5rem;
}