/* ==========================================================================
   Newstalgist
   Palette sampled directly from the logo file.
   Base type is set large on purpose. The audience is 40 to 60.
   ========================================================================== */

:root {
    /* Sampled from the logo */
    --ink:         #08152D;   /* wordmark navy */
    --navy:        #0E3A63;   /* cube left face */
    --navy-deep:   #091E3C;
    --teal:        #3FB1B5;   /* cube top face */
    --teal-ink:    #146E73;   /* darkened for text contrast */
    --teal-pale:   #DEF0F1;
    --orange:      #F3642B;   /* the dot over the i */
    --orange-warm: #F9882F;
    --orange-ink:  #B93B12;   /* darkened for text contrast */
    --orange-pale: #FDEDE4;

    --paper:   #F1F4F7;
    --card:    #FFFFFF;
    --line:    #C9D3DE;
    --muted:   #4A5A6E;

    --radius: 12px;           /* echoes the rounded cube tiles */
    --wrap:   1180px;

    --font-display: 'Archivo Black', 'Arial Black', Impact, sans-serif;
    --font-body:    'Archivo', 'Segoe UI', Tahoma, Arial, sans-serif;
    --font-mono:    'IBM Plex Mono', Consolas, 'Courier New', monospace;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.125rem;      /* 18px base */
    font-weight: 500;
    line-height: 1.65;
    letter-spacing: 0.005em;
}

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

a { color: var(--navy); }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1.25rem;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 1rem 1.5rem;
    font-weight: 700;
    z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 4px solid var(--orange);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Disclosure bar. Amazon wants this visible without scrolling.
   -------------------------------------------------------------------------- */

.disclosure-bar {
    background: var(--ink);
    color: #E7EDF4;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
}
.disclosure-bar p {
    margin: 0 auto;
    max-width: var(--wrap);
    padding: 0.65rem 1.25rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    background: var(--card);
    border-bottom: 5px solid var(--ink);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.brand { display: block; line-height: 0; }
.brand img { width: 220px; height: auto; }
@media (min-width: 861px) {
    .brand img { width: 280px; }
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--ink);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 700;
    padding: 0.85rem 1.15rem;
    min-height: 52px;
    cursor: pointer;
}
.nav-toggle[hidden] { display: none; }

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 22px; height: 3px;
    background: #fff;
    content: '';
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after  { position: absolute; top:  7px; }

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.site-nav a {
    display: block;
    padding: 0.7rem 0.95rem;
    border-radius: var(--radius);
    color: var(--ink);
    font-weight: 700;
    font-size: 1.0625rem;
    text-decoration: none;
    border: 2px solid transparent;
}
.site-nav a:hover { background: var(--teal-pale); }
.site-nav a[aria-current="page"] {
    border-color: var(--ink);
    background: var(--teal-pale);
}

/* Collapsed nav only applies once the script has run. Without JavaScript
   the nav stays visible and simply wraps. */
@media (max-width: 860px) {
    .site-header[data-nav="js"] .site-nav { display: none; }
    .site-header[data-nav="js open"] .site-nav {
        display: block;
        flex-basis: 100%;
        padding-bottom: 0.75rem;
    }
    .site-header[data-nav="js open"] .site-nav ul { flex-direction: column; }
    .site-header[data-nav="js open"] .site-nav a {
        border: 2px solid var(--line);
        min-height: 52px;
    }
}
@media (min-width: 861px) {
    .nav-toggle { display: none !important; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    background: var(--ink);
    color: #fff;
    border-bottom: 6px solid var(--orange);
}

.hero-inner {
    padding-top: 3rem;
    padding-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 980px) {
    .hero-inner {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 3.5rem;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Specimen card. Shows the anatomy every catalog card follows. */
.hero-specimen { margin: 0; }

.specimen {
    background: var(--card);
    color: var(--ink);
    border: 3px solid var(--ink);
    border-top: 12px solid var(--teal);
    border-radius: var(--radius);
    padding: 1.35rem;
    transform: rotate(-1.25deg);
    box-shadow: 10px 10px 0 rgba(63, 177, 181, 0.22);
}

.specimen-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.375rem;
    line-height: 1.25;
    margin: 0 0 0.7rem;
}

.hero-specimen figcaption {
    margin-top: 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: #AEBCCC;
    text-align: center;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin: 0 0 0.9rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.1rem, 6.5vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin: 0 0 1.1rem;
    max-width: 20ch;
}
.hero h1 .accent { color: var(--orange-warm); }

.hero-lede {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 58ch;
    margin: 0 0 1.75rem;
    color: #DDE5EE;
}

/* The specimen card sits on the dark hero but keeps card colours. */
.specimen p { color: var(--ink); }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0.9rem 1.6rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    border: 3px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}
.btn-primary:hover { background: #D9491C; border-color: #D9491C; }

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #6C8098;
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 3rem 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 2rem; }

.section-head h2,
.page-head h1 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.7rem, 4.5vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
}

.section-head p,
.page-head p {
    margin: 0;
    max-width: 62ch;
    color: var(--muted);
    font-size: 1.125rem;
}

.page-head {
    background: var(--card);
    border-bottom: 5px solid var(--teal);
    padding: 2.5rem 0;
}

/* --------------------------------------------------------------------------
   Era filter
   -------------------------------------------------------------------------- */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--line);
}

.filter {
    display: inline-flex;
    align-items: center;
    min-height: 50px;
    padding: 0.6rem 1.1rem;
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}
.filter:hover { background: var(--teal-pale); }
.filter[aria-current="true"] { background: var(--ink); color: #fff; }

/* --------------------------------------------------------------------------
   Catalog grid and cards
   -------------------------------------------------------------------------- */

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 620px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    border-top-width: 12px;
    padding: 1.35rem;
    height: 100%;
}

.card--teal   { border-top-color: var(--teal); }
.card--orange { border-top-color: var(--orange); }
.card--navy   { border-top-color: var(--navy); }

.card-filing {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 2px solid var(--line);
    padding-bottom: 0.6rem;
}

.card-media {
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 8px;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 1.1rem;
}
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; }

/* Placeholder tile built from the cube faces in the logo.
   Swap in a real Amazon supplied image and this disappears. */
.card-tile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    width: 46%;
    aspect-ratio: 1;
}
.card-tile i { border-radius: 5px; background: var(--navy); }
.card-tile i:nth-child(1),
.card-tile i:nth-child(2),
.card-tile i:nth-child(5) { background: var(--teal); }
.card-tile i:nth-child(3),
.card-tile i:nth-child(6),
.card-tile i:nth-child(9) { background: var(--orange-warm); }

.card-stamp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.85rem;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    background: var(--teal-pale);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    align-self: flex-start;
}
.stamp-then  { color: var(--teal-ink); }
.stamp-arrow { color: var(--muted); }
.stamp-now   { color: var(--orange-ink); }

.card-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.3125rem;
    line-height: 1.25;
    margin: 0 0 0.7rem;
}

.card-blurb {
    margin: 0 0 0.9rem;
    font-size: 1.0625rem;
    line-height: 1.6;
}

.card-twist {
    margin: 0 0 1rem;
    padding: 0.8rem 0.9rem;
    background: var(--orange-pale);
    border-left: 5px solid var(--orange);
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    line-height: 1.55;
}
.twist-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange-ink);
}

.card-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 1.35rem;
    padding: 0;
}
.card-tags li {
    border: 2px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted);
}

.card-button {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0.9rem 1.1rem;
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.0625rem;
    text-align: center;
    text-decoration: none;
}
.card-button:hover { background: var(--orange); }

/* --------------------------------------------------------------------------
   Simple content pages
   -------------------------------------------------------------------------- */

.prose {
    max-width: 68ch;
    padding: 2.75rem 0;
}
.prose h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 2.25rem 0 0.75rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
    font-size: 1.1875rem;
    font-weight: 700;
    margin: 1.75rem 0 0.5rem;
}
.prose p, .prose li { font-size: 1.125rem; line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.35rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { font-weight: 700; }

.callout {
    background: var(--card);
    border: 3px solid var(--ink);
    border-left-width: 10px;
    border-radius: var(--radius);
    padding: 1.35rem;
    margin: 1.75rem 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child  { margin-bottom: 0; }

.meta {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: var(--muted);
}

/* Three up explainer row on the home page */
.pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 760px) {
    .pillars { grid-template-columns: repeat(3, 1fr); }
}
.pillar {
    background: var(--card);
    border: 3px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem;
}
.pillar h3 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.1875rem;
    margin: 0.65rem 0 0.6rem;
}
.pillar p { margin: 0; font-size: 1.0625rem; color: var(--muted); }
.pillar-mark {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-ink);
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.form { max-width: 42rem; }
.field { margin-bottom: 1.35rem; }
.field label {
    display: block;
    font-weight: 700;
    font-size: 1.0625rem;
    margin-bottom: 0.4rem;
}
.field input,
.field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.125rem;
    padding: 0.85rem 0.9rem;
    min-height: 56px;
    border: 3px solid var(--ink);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
}
.field textarea { min-height: 11rem; resize: vertical; }
.honeypot { position: absolute; left: -9999px; }

.form-status {
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    border: 3px solid;
}
.form-status.ok    { background: var(--teal-pale);   border-color: var(--teal-ink);   color: #0C4F53; }
.form-status.error { background: var(--orange-pale); border-color: var(--orange-ink); color: var(--orange-ink); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--ink);
    color: #D7E0EA;
    border-top: 6px solid var(--teal);
    margin-top: 3rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 2.75rem;
    padding-bottom: 2rem;
}
@media (min-width: 760px) {
    .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 0.35rem;
}
.footer-tagline { margin: 0 0 0.75rem; color: var(--teal); font-weight: 700; }
.footer-note { margin: 0; font-size: 1rem; color: #AEBCCC; max-width: 40ch; }

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange-warm);
    margin: 0 0 0.75rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a {
    color: #D7E0EA;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    padding: 0.35rem 0;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-legal {
    border-top: 1px solid #24354F;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}
.footer-legal p {
    margin: 0 0 0.6rem;
    font-size: 0.9375rem;
    color: #9FAEC0;
    max-width: 80ch;
}
.footer-legal p:first-child {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #fff;
}

/* --------------------------------------------------------------------------
   Platform pitch. "This site is the demo."
   -------------------------------------------------------------------------- */

.platform {
    scroll-margin-top: 140px;   /* clears the sticky header on anchor jumps */
    background: var(--ink);
    color: #D7E0EA;
    border-top: 6px solid var(--orange);
    border-bottom: 6px solid var(--teal);
}

.platform-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
    align-items: center;
}
@media (min-width: 980px) {
    .platform-inner {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
        padding-top: 3.75rem;
        padding-bottom: 3.75rem;
    }
}

.platform h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    line-height: 1.15;
    color: #fff;
    margin: 0 0 1rem;
    max-width: 18ch;
}
.platform h2 .accent { color: var(--orange-warm); }

.platform-lede {
    font-size: 1.125rem;
    line-height: 1.65;
    margin: 0 0 1.75rem;
    max-width: 52ch;
}

.platform-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.platform-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.9rem;
    align-items: start;
    font-size: 1.0625rem;
    line-height: 1.55;
}

.platform-list .step {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ink);
    background: var(--teal);
    border-radius: 6px;
    min-width: 2rem;
    padding: 0.2rem 0.5rem;
    text-align: center;
}

.platform-list strong { color: #fff; display: block; }

.platform-note {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: #9FAEC0;
    margin: 1.25rem 0 0;
}

/* The demo panel: a real two column spec table */
.platform-demo {
    background: var(--card);
    color: var(--ink);
    border-radius: var(--radius);
    border: 3px solid var(--teal);
    padding: 0;
    overflow: hidden;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 1.0625rem;
}

.spec-table caption {
    caption-side: top;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.1875rem;
    color: #fff;
    background: var(--ink);
    padding: 0.95rem 1.25rem;
}

.spec-table th,
.spec-table td {
    padding: 0.8rem 1.25rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 2px solid var(--line);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

.spec-table tbody tr:nth-child(even) { background: var(--paper); }

.spec-table th {
    width: 54%;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    border-right: 2px solid var(--line);
}

.spec-table td { font-weight: 700; }

@media (max-width: 400px) {
    .spec-table { font-size: 1rem; }
    .spec-table th, .spec-table td { padding: 0.7rem 0.9rem; }
    .spec-table th { width: 50%; font-size: 0.875rem; }
}

.footer-powered {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: #9FAEC0;
    margin: 0 0 0.6rem;
}
.footer-powered a { color: var(--teal); font-weight: 600; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Motion and print
   -------------------------------------------------------------------------- */

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