/* Cimalor - style.css
   Sections: 1 fonts and tokens, 2 base, 3 site chrome (.site-*),
             4 MODULE BLOCK (.tt-*, movable with <article class="tt">), 5 legal pages. */

/* ===== 1. Fonts and tokens ===== */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --teal: #208078;
  --teal-deep: #14594F;
  --slate: #17262E;
  --paper: #F1F5F4;
  --white: #FFFFFF;
  --overdue: #B3261E;
  --today: #8A5A00;
  --rule: #C3D1CE;
  --teal-wash: #CFE3E0;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: 1.25rem;
  --wrap: 72rem;
  --space-section: clamp(3rem, 2rem + 4vw, 5.5rem);
}

/* ===== 2. Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (max-width: 40rem) { html { scroll-padding-top: 7.5rem; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--slate);
  font: 400 1.0625rem/1.65 var(--sans);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; color: var(--slate); }
h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.25rem); line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.125rem); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }
h2 + p, h2 + ul, h2 + ol, h3 + p { margin-top: 1rem; }
em { font-style: normal; font-weight: 600; }
a { color: var(--teal-deep); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.15em; }
:focus-visible { outline: 3px solid var(--slate); outline-offset: 3px; border-radius: 2px; }
code { font-family: var(--mono); font-size: 0.9em; }

.skip {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 10;
  background: var(--slate); color: var(--white); padding: 0.6rem 1rem;
}
.skip:focus { top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== 3. Site chrome ===== */
.site-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* Sticky header: scroll-padding-top on html keeps anchored headings clear of it. */
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--rule); background: var(--white); }
@media (max-width: 40rem) { .site-header__row { padding-block: 0.5rem; row-gap: 0.15rem; } }
.site-header__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.75rem; }
.site-brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--slate); text-decoration: none; }
.site-brand__icon { width: 2rem; height: 2rem; border-radius: 0.4rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.9375rem; }
.site-nav a { color: var(--slate); text-decoration: none; padding-block: 0.4rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--teal); }

.site-pair { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .site-pair { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.site-section { padding-block: var(--space-section); border-top: 3px solid var(--teal); }

.site-footer { background: var(--white); border-top: 1px solid var(--rule); padding-block: 2rem 2.5rem; font-size: 0.9375rem; }
.site-footer__grid { display: grid; gap: 1.5rem 3rem; }
.site-footer p { margin-bottom: 0.4rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
@media (min-width: 48rem) {
  .site-footer__grid { grid-template-columns: 1fr auto; align-items: start; }
  .site-footer__links { flex-direction: column; }
}

/* ===== 4. MODULE BLOCK (Team To-Do): all selectors start with .tt =====
   Self-contained: its own container (.tt-wrap) and layout tokens. It only reads the
   shared colour/font tokens from :root (section 1), so keep those when moving it. */
.tt { --tt-wrap: 72rem; --tt-gutter: 1.25rem; --tt-space: clamp(3rem, 2rem + 4vw, 5.5rem); }
.tt-wrap { width: 100%; max-width: var(--tt-wrap); margin-inline: auto; padding-inline: var(--tt-gutter); }
.tt-section { padding-block: var(--tt-space); border-top: 3px solid var(--teal); }

/* Hero */
.tt-hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) var(--tt-space); overflow-x: hidden; overflow-x: clip; }
.tt-hero__grid { display: grid; gap: 1.75rem; align-items: start; }
.tt-hero__body { margin-top: 0.25rem; }
.tt-hero h1 { font-size: clamp(2.5rem, 1.6rem + 4vw, 3.75rem); }
.tt-sub { margin-top: 1.25rem; font-size: 1.375rem; line-height: 1.35; font-weight: 600; max-width: 28ch; }
.tt-lede { margin-top: 1.25rem; font-size: 1.1875rem; line-height: 1.55; }

.tt-spec { margin: 1.75rem 0 0; max-width: 34rem; border-top: 1px solid var(--slate); font-family: var(--mono); font-size: 0.9375rem; line-height: 1.4; }
.tt-spec > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.tt-spec dt { color: var(--teal-deep); }
.tt-spec dd { margin: 0; }

/* CTA fragment (see comment in index.html) */
.tt-cta { margin-top: 2rem; padding-left: 1rem; border-left: 0.375rem solid var(--teal); }
.tt-cta__status { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.tt-cta__alt { margin: 0.35rem 0 0; }
.tt-cta__help { margin: 0.75rem 0 0; font-size: 0.9375rem; }
.tt-cta__button { display: inline-block; padding: 0.7rem 1.25rem; background: var(--teal-deep); color: var(--white); font-weight: 600; text-decoration: none; border-radius: 0.25rem; }
.tt-cta__button:hover { background: var(--slate); }

/* The one bold element: the oversized, framed, edge-bleeding hero screenshot */
.tt-hero__shot { margin: 0; min-width: 0; max-width: 30rem; }
.tt-frame { background: var(--white); border: 1px solid var(--rule); border-radius: 0.25rem; overflow: hidden; }
.tt-hero__shot .tt-frame { border: 0.375rem solid var(--teal); border-radius: 0.125rem; box-shadow: 0.75rem 0.75rem 0 var(--teal-wash); }
.tt-hero__shot .tt-frame img { width: 100%; aspect-ratio: 640 / 360; }
figcaption { margin-top: 1.1rem; font-size: 0.875rem; line-height: 1.5; color: var(--slate); max-width: 62ch; }
.tt-frame img { width: 100%; }

@media (min-width: 64rem) {
  .tt-hero__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-rows: auto 1fr; column-gap: 3rem; row-gap: 0; }
  .tt-hero__head { grid-column: 1; grid-row: 1; }
  .tt-hero__body { grid-column: 1; grid-row: 2; margin-top: 1.25rem; }
  .tt-hero__shot { grid-column: 2; grid-row: 1 / span 2; max-width: none; }
  .tt-hero__shot .tt-frame img { aspect-ratio: 1330 / 800; }
  /* bleed to the right edge of the viewport */
  .tt-hero__shot { margin-right: calc((min(100vw, var(--tt-wrap)) - 100vw) / 2 - var(--tt-gutter)); margin-top: 0.5rem; }
  .tt-hero__shot figcaption { padding-right: var(--tt-gutter); }
}
@media (max-width: 63.99rem) {
  .tt-hero__shot .tt-frame { box-shadow: 0.5rem 0.5rem 0 var(--teal-wash); margin-right: 0.5rem; }
}

/* Three things: three columns, hairlines, no cards */
.tt-three { margin-top: 2.25rem; display: grid; gap: 2rem; }
.tt-three > div { padding-top: 0.25rem; }
.tt-three h3 { font-size: 1.3125rem; }
@media (min-width: 48rem) {
  .tt-three { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .tt-three > div { padding-inline: 1.75rem; border-left: 1px solid var(--rule); }
  .tt-three > div:first-child { padding-left: 0; border-left: 0; }
  .tt-three > div:last-child { padding-right: 0; }
}

/* Text + screenshot splits */
.tt-split { display: grid; gap: 2rem; align-items: start; }
.tt-split__shot { margin: 0; min-width: 0; }
@media (min-width: 64rem) {
  .tt-split--text-first { grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 3rem; }
  .tt-split--shot-first { grid-template-columns: minmax(0, 5fr) minmax(0, 2fr); gap: 3rem; }
}
.tt-list { margin: 1rem 0 0; padding-left: 1.1rem; max-width: 40ch; }
.tt-list li { margin-bottom: 0.7rem; padding-left: 0.25rem; }
.tt-list li::marker { color: var(--teal); }
.tt-overdue { color: var(--overdue); font-weight: 600; }
.tt-today { color: var(--today); font-weight: 600; }

.tt-narrow { max-width: 44rem; }
.tt-stack-shot { margin: 2.25rem 0 0; }

/* Two-column text pairs */
.tt-pair { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .tt-pair { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Steps: a real sequence, so a real numbered list */
.tt-steps { margin: 1.75rem 0 0; padding: 0; list-style: none; counter-reset: step; max-width: 46rem; }
.tt-steps li { counter-increment: step; position: relative; padding: 0.9rem 0 0.9rem 3rem; border-top: 1px solid var(--rule); }
.tt-steps li:last-child { border-bottom: 1px solid var(--rule); }
.tt-steps li::before { content: counter(step); position: absolute; left: 0; top: 0.9rem; font-family: var(--mono); font-weight: 400; color: var(--teal-deep); }

/* FAQ */
.tt-faq { margin-top: 1.75rem; max-width: 46rem; border-top: 1px solid var(--slate); }
.tt-faq details { border-bottom: 1px solid var(--rule); }
.tt-faq summary { cursor: pointer; padding: 0.9rem 2rem 0.9rem 0; font-weight: 600; list-style: none; position: relative; }
.tt-faq summary::-webkit-details-marker { display: none; }
.tt-faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.8rem; font-family: var(--mono); font-weight: 400; color: var(--teal-deep); }
.tt-faq details[open] summary::after { content: "\2212"; }
.tt-faq details p { padding-bottom: 1rem; }

/* ===== 5. Legal pages ===== */
.legal { padding-block: clamp(2rem, 1rem + 3vw, 4rem) var(--space-section); }
.legal__body { max-width: 46rem; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); }
.legal h2 { font-size: 1.375rem; margin-top: 2.25rem; padding-top: 1rem; border-top: 3px solid var(--teal); }
.legal h3 { margin-top: 1.5rem; }
.legal ul { padding-left: 1.1rem; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4rem; }
.legal__updated { margin-top: 1rem; font-size: 0.9375rem; }
mark.pending { background: #FFE9A8; color: var(--slate); padding: 0.05em 0.25em; border-radius: 0.15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
