@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(../fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/literata-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/literata-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------------------------------------------------------------------------
   Design tokens
   Amber (--tag) is reserved for the placeholder annotation, nothing else.
   Every other accent uses --wire, so the page has exactly one loud element.
--------------------------------------------------------------------------- */
:root {
  --ink:        #0e1b2e;
  --ink-soft:   #1b2e4a;
  --paper:      #e8ecf3;
  --white:      #ffffff;
  --wire:       #2f5bff;
  --tag:        #ffc400;
  --muted:      #5a6a83;
  --rule:       #c3ccdb;

  --display: 'Archivo', system-ui, sans-serif;
  --body:    'Literata', Georgia, serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --page:  min(68rem, 100% - 3rem);
  --step:  clamp(3rem, 7vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; }

a { color: var(--wire); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

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

/* --- site chrome ---------------------------------------------------------- */
.site-header {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.site-header__inner {
  width: var(--page);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  min-height: 3.25rem;
}
.site-header__name { color: var(--white); text-decoration: none; font-weight: 600; }
.site-header__name:hover { color: var(--tag); }
.site-header nav { margin-left: auto; }
.site-header nav .menu { display: flex; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-header nav .menu ul { display: none; }
.site-header nav a { color: var(--paper); text-decoration: none; }
.site-header nav a:hover { color: var(--tag); }

.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: var(--step);
  padding-block: 2rem 3rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}
.site-footer__inner { width: var(--page); margin-inline: auto; }

/* --- the signature: placeholder annotation -------------------------------
   Each <section> below is one django CMS placeholder. The dashed frame and
   the corner chip are drawn from the section's own data-slot attribute, so
   the label always states the template tag that really rendered it.
-------------------------------------------------------------------------- */
.canvas { width: var(--page); margin-inline: auto; padding-block: var(--step); }

.slot { position: relative; padding: var(--step) clamp(1.25rem, 4vw, 3rem); }
.slot + .slot { margin-top: 1.25rem; }

.slot::before {
  content: attr(data-slot);
  position: absolute;
  inset-inline-start: -1px;
  inset-block-start: -1px;
  z-index: 1;
  padding: 0.3rem 0.7rem;
  background: var(--tag);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-0.35rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.slot::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px dashed var(--wire);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.canvas:has(#structure:checked) .slot::before { opacity: 1; transform: none; }
.canvas:has(#structure:checked) .slot::after { opacity: 0.85; }

/* --- the toggle ----------------------------------------------------------- */
.structure {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}
.structure input { position: absolute; opacity: 0; width: 0; height: 0; }
.structure label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--rule);
  background: var(--white);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  cursor: pointer;
  user-select: none;
}
.structure label::before {
  content: "";
  width: 1.9rem;
  height: 0.95rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.structure label::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-left: -1.55rem;
  background: var(--muted);
  transition: transform 0.2s ease, background 0.2s ease;
}
.structure:has(#structure:checked) label { color: var(--ink); border-color: var(--wire); }
.structure:has(#structure:checked) label::before { background: var(--wire); border-color: var(--wire); }
.structure:has(#structure:checked) label::after { background: var(--white); transform: translateX(0.95rem); }
.structure input:focus-visible + label { outline: 2px solid var(--wire); outline-offset: 3px; }

/* --- hero ----------------------------------------------------------------- */
.slot--hero { background: var(--white); }
.slot--hero > :first-child { margin-top: 0; }
.slot--hero > :last-child { margin-bottom: 0; }

.slot--hero p:first-child {
  margin: 0 0 1.5rem;
  color: var(--wire);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.slot--hero h1 {
  margin: 0;
  max-width: 22ch;
  font-family: var(--display);
  font-size: clamp(2.4rem, 1.2rem + 5vw, 4.6rem);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.slot--hero h1 + p {
  margin: 1.75rem 0 0;
  max-width: 46ch;
  font-size: 1.15em;
  color: var(--ink-soft);
}

/* --- content -------------------------------------------------------------- */
.slot--content { background: var(--white); }
.slot--content > :first-child { margin-top: 0; }
.slot--content > :last-child { margin-bottom: 0; }

.slot--content h2,
.slot--cta h2 {
  margin: 0 0 2.5rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.slot--content dl { margin: 0; }
.slot--content dt {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-top: 2.25rem;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  font-stretch: 105%;
  letter-spacing: -0.01em;
}
.slot--content dt::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--rule);
  transform: translateY(-0.2em);
}
.slot--content dd {
  margin: 0.5rem 0 0;
  max-width: 58ch;
  color: var(--ink-soft);
}
.slot--content dl + p {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  max-width: 58ch;
  color: var(--muted);
}

/* --- cta ------------------------------------------------------------------ */
.slot--cta { background: var(--ink); color: var(--paper); }
.slot--cta h2 { color: var(--white); margin-bottom: 1rem; }
.slot--cta p { max-width: 52ch; color: #b9c4d6; }
.slot--cta a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.4rem;
  background: var(--wire);
  color: var(--white);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.slot--cta a:hover { background: var(--white); color: var(--ink); }
.slot--cta a:focus-visible { outline-color: var(--tag); }

/* --- pages that are not the landing template ------------------------------ */
.page { width: var(--page); margin-inline: auto; padding-block: var(--step); }
.page h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  font-weight: 700;
  font-stretch: 110%;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.page p { max-width: 62ch; }

/* --- entrance ------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .slot { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
  .slot:nth-of-type(1) { animation-delay: 0.05s; }
  .slot:nth-of-type(2) { animation-delay: 0.14s; }
  .slot:nth-of-type(3) { animation-delay: 0.23s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(1.25rem); }
    to   { opacity: 1; transform: none; }
  }
}

@media (max-width: 40rem) {
  .site-header__inner { padding-block: 0.75rem; }
  .site-header nav { margin-left: 0; width: 100%; }
  .slot::before { font-size: 0.625rem; }
}
