/* WPX — Watch Press Exchange
   Editorial / Swiss information system visual system. */

@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/Jost-variable.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: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/assets/Bodoni-Moda-variable.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;
}

:root {
  --paper: #FFFFFF;
  --ink: #111111;
  --muted: #686761;
  --rule: #CBC7BD;
  --accent: #B22920;
  --white: #FFFFFF;

  --font-serif: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --content-max: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

.inline-link {
  text-underline-offset: 0.15em;
}

.inline-link:hover {
  color: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 0.75em 0;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6em 1em;
  z-index: 100;
  transition: top 0.15s ease;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

/* Focus states */
a:focus-visible,
summary:focus-visible,
details:focus-within summary {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

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

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}

.wordmark-icon {
  display: block;
  flex-shrink: 0;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.wordmark-main {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.wordmark-sub {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 780px) {
  .wordmark-sub {
    display: inline;
  }
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.primary-nav ul {
  display: flex;
  gap: 1.75rem;
}

.primary-nav a {
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

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

@media (min-width: 780px) {
  .primary-nav {
    display: flex;
  }
  .mobile-nav {
    display: none;
  }
}

.mobile-nav {
  position: relative;
}

.mobile-nav summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--rule);
  padding: 0.5em 0.9em;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.mobile-nav summary::-webkit-details-marker {
  display: none;
}

.mobile-nav[open] summary {
  border-color: var(--ink);
}

.mobile-nav ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--white);
  border: 1px solid var(--rule);
  min-width: 220px;
  padding: 0.5rem 0;
  z-index: 20;
}

.mobile-nav li a {
  display: block;
  padding: 0.75em 1.1em;
  text-decoration: none;
  font-size: 0.9375rem;
}

.mobile-nav li a:hover {
  background: var(--paper);
}

/* CTA buttons */

.cta {
  display: inline-block;
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 0.85em 1.4em;
  border: 1px solid var(--ink);
  min-height: 44px;
  line-height: 1.2;
}

.cta-header {
  border-color: var(--rule);
  padding: 0.6em 1.1em;
}

.cta-header:hover {
  border-color: var(--ink);
}

.cta-primary {
  background: var(--ink);
  color: var(--paper);
}

.cta-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.cta-secondary {
  background: transparent;
  color: var(--ink);
}

.cta-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

.hero {
  /* Inverted palette: swap the paper/ink roles so every rule below that
     reads var(--paper)/var(--ink)/var(--muted)/var(--rule)/var(--accent)
     resolves to the dark scheme automatically, scoped to this section. */
  --paper: #10130F;
  --ink: #F3F0E9;
  --muted: #A9A69C;
  --rule: rgba(243, 240, 233, 0.22);
  --accent: #E2574B;

  background: var(--paper);
  color: var(--ink);
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1em;
}

.hero h1 {
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  max-width: 14ch;
  margin-bottom: 0.5em;
  color: var(--white);
}

.hero-lede {
  max-width: 46ch;
  font-size: 1.0625rem;
  color: var(--ink);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.75rem 0 1.5rem;
}

.hero-status {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.25em;
}

.hero-founder {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0;
}

.release-panel {
  border: 1px solid var(--rule);
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.release-title {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75em;
}

.release-panel hr {
  margin-bottom: 1em;
}

.release-list li {
  display: flex;
  gap: 0.9em;
  padding: 0.4em 0;
  border-bottom: 1px dotted var(--rule);
}

.release-list li:last-child {
  border-bottom: none;
}

.release-list span {
  color: var(--accent);
}

.release-footer {
  margin: 1.25em 0 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- Minute track motif ---------- */

.minute-track {
  height: 30px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  background-color: var(--paper);
}

.minute-track::before,
.minute-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
}

.minute-track::before {
  background-image: repeating-linear-gradient(
    to right,
    var(--rule) 0,
    var(--rule) 1px,
    transparent 1px,
    transparent 12px
  );
  background-size: 100% 14px;
  background-position: center;
}

.minute-track::after {
  background-image: repeating-linear-gradient(
    to right,
    var(--ink) 0,
    var(--ink) 2px,
    transparent 2px,
    transparent 60px
  );
  background-size: 100% 22px;
  background-position: center;
  opacity: 0.55;
}

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

.section {
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--rule);
}

.section-number {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1em;
}

.section-number span {
  color: var(--accent);
}

.section h2 {
  font-size: clamp(2.125rem, 4.5vw, 3.25rem);
  max-width: 20ch;
  margin-bottom: 0.75em;
}

.section-intro {
  max-width: 60ch;
  font-size: 1.0625rem;
}

.section-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  margin-top: 2rem;
}

@media (min-width: 860px) {
  .section-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }
}

.section-copy {
  max-width: 60ch;
  font-size: 1.0625rem;
}

.section-copy--prose {
  margin-top: 2rem;
}

/* Flow diagrams */

.flow-diagram {
  border: 1px solid var(--rule);
  padding: 1.75rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}

.flow-sources {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  text-transform: uppercase;
  margin-bottom: 0.75em;
}

.flow-arrow {
  color: var(--muted);
  margin: 0.35em 0;
}

.flow-node {
  text-transform: uppercase;
  font-size: 1rem;
  margin: 0;
}

.flow-node--brand {
  color: var(--accent);
  font-weight: 700;
}

.flow-result {
  text-transform: uppercase;
  margin: 0;
}

.flow-diagram--vertical p {
  margin: 0;
}

.flow-diagram--vertical p + p {
  margin-top: 0.35em;
}

/* Stage lists */

.stage-list {
  display: grid;
  gap: 2rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 700px) {
  .stage-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .stage-list--numbered,
  .feature-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stage-list h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.4em;
}

.stage-list--numbered h3 span {
  color: var(--accent);
  font-weight: 400;
  margin-right: 0.4em;
}

.stage-list p {
  font-size: 0.9375rem;
  color: var(--ink);
  margin-bottom: 0;
  max-width: 32ch;
}

.section-footnote {
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

/* Feature list (brands section) */

.feature-list {
  display: grid;
  gap: 2rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 700px) {
  .feature-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-list h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.4em;
}

.feature-list p {
  font-size: 0.9375rem;
  margin-bottom: 0;
  max-width: 32ch;
}

/* Editorial process line */

.section--flow {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.process-line {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  font-family: var(--font-mono);
}

.process-line li {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
}

.process-num {
  color: var(--accent);
  font-size: 0.8125rem;
}

.process-label {
  text-transform: uppercase;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.process-arrow {
  color: var(--muted);
  padding-left: 0.15em;
}

@media (min-width: 900px) {
  .process-line {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .process-line li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15em;
  }
  .process-arrow {
    padding-left: 0;
    align-self: center;
  }
}

/* Contact section */

.contact-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

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

.contact-card h3 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5em;
}

.contact-card p {
  max-width: 42ch;
  margin-bottom: 1.5em;
}

/* FAQ */

.section--faq details {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0;
}

.section--faq details:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.section--faq summary {
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  min-height: 44px;
}

.section--faq summary::-webkit-details-marker {
  display: none;
}

.section--faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--muted);
  flex-shrink: 0;
}

.section--faq details[open] summary::after {
  content: "\2212";
}

.section--faq details p {
  margin-top: 0.9em;
  max-width: 62ch;
  color: var(--ink);
  font-size: 0.9375rem;
  margin-bottom: 0;
}

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

.site-footer {
  padding-top: 3rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 780px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.footer-wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.2em;
}

.footer-brand p {
  margin-bottom: 0.2em;
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.9375rem;
}

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

.footer-contact a {
  text-decoration: none;
  font-size: 0.9375rem;
}

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

.footer-bottom {
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
