/* Jovaii Swiss Style 1.0.0 — the base stylesheet for Jovaii web pages (jovaii.com, Proposal Hub).
   International Typographic Style: paper, black, grey and one red; sans-serif grotesk; flush left,
   ragged right on one red axis; visible grid; objective black-and-white photography with credits.
   No rounded corners, no shadows, no gradients, no decoration.
   Canonical URL: https://jovaii.com/assets/swiss/1.0.0/swiss.css (immutable; a change ships as a new
   version folder). Font URLs are relative to this file, so they resolve to
   https://jovaii.com/assets/fonts/… from any site that links the canonical URL. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../../fonts/inter/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../../fonts/inter/inter-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; }
/* Chinese display face: a Black (900) subset of Noto Sans SC holding only the characters used in
   headings. Missing characters fall back to the system font, never to a third-party host. */
@font-face { font-family: "Jovaii CJK Display"; font-style: normal; font-weight: 900; font-display: swap; src: url(../../fonts/noto-sans-sc/noto-sans-sc-display.woff2) format("woff2"); }

:root {
  /* Colour: paper, black, greys, one red. Red only emphasises; it never decorates. */
  --sw-paper: #f1ece5;
  --sw-white: #ffffff;
  --sw-ink: #111111;
  --sw-text: #2b2b2b;
  --sw-grey: #6e6e6e;
  --sw-grey-light: #a8a39c;
  --sw-line: #111111;
  --sw-hairline: #cfc8bf;
  --sw-red: #da291c;
  --sw-black: #0b0b0b;
  --sw-on-dark: #f4f1ec;
  --sw-on-dark-muted: #a19c95;
  --sw-dark-hairline: #3a3a3a;
  /* Type: Inter for Latin, system CJK for Chinese body, the subset Black face for Chinese display. */
  --sw-font: "Inter", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --sw-font-display: "Inter", "Jovaii CJK Display", "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  /* Scale (fluid): display > h1 > h2 > h3 > body > small. */
  --sw-size-display: clamp(40px, 9vw, 132px);
  --sw-size-h1: clamp(34px, 6vw, 84px);
  --sw-size-h2: clamp(26px, 3.8vw, 52px);
  --sw-size-h3: clamp(20px, 1.6vw, 24px);
  --sw-size-lead: clamp(19px, 1.5vw, 22px);
  --sw-size-body: 17px;
  --sw-size-small: 13px;
  /* Grid: 12 columns, one gutter; the red axis sits just left of the first column. */
  --sw-page: 1280px;
  --sw-gutter: clamp(20px, 4.5vw, 64px);
  --sw-gap: clamp(16px, 2vw, 28px);
  --sw-section: clamp(64px, 10vw, 140px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--sw-paper); color: var(--sw-ink);
  font-family: var(--sw-font); font-size: var(--sw-size-body); line-height: 1.55; font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  /* The red axis: one vertical line all text aligns to. */
  background-image: linear-gradient(var(--sw-red), var(--sw-red));
  background-size: 2px 100%; background-repeat: no-repeat;
  /* 18px left of the first column of .sw-wrap at every width. */
  background-position: max(calc(var(--sw-gutter) - 18px), calc((100% - var(--sw-page)) / 2 - 18px)) 0;
}
html:lang(zh-CN) body { line-height: 1.75; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: balance; }
/* Long German compounds hyphenate instead of pushing the page wider. */
.sw-display, .sw-h1, .sw-h2, .sw-h3, h1, h2 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
:focus-visible { outline: 3px solid var(--sw-red); outline-offset: 3px; }
::selection { background: var(--sw-red); color: var(--sw-white); }
svg { flex: none; }

/* Page frame. */
.sw-wrap { width: 100%; max-width: calc(var(--sw-page) + 2 * var(--sw-gutter)); margin-inline: auto; padding-inline: var(--sw-gutter); }
.sw-skip { position: absolute; left: -9999px; top: 8px; padding: 10px 14px; background: var(--sw-ink); color: var(--sw-white); z-index: 10; }
.sw-skip:focus { left: 8px; }

/* Header: logo left, labels in the grid, one black rule under it. */
.sw-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 12px 40px; padding-block: 28px 14px; border-bottom: 2px solid var(--sw-line); }
.sw-header .sw-logo img { width: 112px; }
.sw-nav { display: flex; flex-wrap: wrap; gap: 6px 32px; justify-self: center; font-size: 15px; font-weight: 600; }
.sw-nav a, .sw-langs a { color: var(--sw-grey); text-decoration: none; }
.sw-nav a:hover, .sw-langs a:hover { color: var(--sw-ink); }
.sw-langs { display: flex; gap: 14px; font-size: 15px; font-weight: 600; }
.sw-langs a[aria-current="page"] { color: var(--sw-ink); text-decoration: underline; text-decoration-color: var(--sw-red); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Type. */
.sw-display { font-family: var(--sw-font-display); font-size: var(--sw-size-display); font-weight: 800; line-height: .98; letter-spacing: -.045em; }
.sw-h1 { font-family: var(--sw-font-display); font-size: var(--sw-size-h1); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; }
.sw-h2 { font-family: var(--sw-font-display); font-size: var(--sw-size-h2); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.sw-h3 { font-size: var(--sw-size-h3); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
html:lang(zh-CN) .sw-display, html:lang(zh-CN) .sw-h1, html:lang(zh-CN) .sw-h2 { font-weight: 900; letter-spacing: 0; line-height: 1.15; }
.sw-lead { font-size: var(--sw-size-lead); line-height: 1.5; color: var(--sw-text); max-width: 34em; }
.sw-body { color: var(--sw-text); max-width: 38em; }
.sw-label { font-size: 15px; font-weight: 600; color: var(--sw-grey); }
.sw-small { font-size: var(--sw-size-small); line-height: 1.45; color: var(--sw-grey); }
.sw-red { color: var(--sw-red); }
.sw-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* The short red rule: sits above a caption title, a heading or a key number. */
.sw-rule { display: block; width: 56px; height: 4px; margin-bottom: 14px; background: var(--sw-red); border: 0; }
.sw-rule--short { width: 28px; height: 3px; margin-bottom: 10px; }
.sw-rule--long { width: min(100%, 320px); }

/* Sections and the 12-column grid. */
.sw-section { padding-block: var(--sw-section) 0; }
.sw-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--sw-gap); row-gap: 32px; }
/* Width sets the end (span N); .sw-start-N sets the start, so the two combine. */
.sw-col-12 { grid-column-end: span 12; } .sw-col-8 { grid-column-end: span 8; } .sw-col-7 { grid-column-end: span 7; } .sw-col-6 { grid-column-end: span 6; }
.sw-col-5 { grid-column-end: span 5; } .sw-col-4 { grid-column-end: span 4; } .sw-col-3 { grid-column-end: span 3; }
.sw-start-5 { grid-column-start: 5; } .sw-start-7 { grid-column-start: 7; } .sw-start-8 { grid-column-start: 8; } .sw-start-9 { grid-column-start: 9; }
.sw-grid > * { min-width: 0; }

/* Columns divided by hairlines, like a concert poster or timetable. 3 by default; --2 / --4.
   No inline style attributes: pages run under a CSP without 'unsafe-inline'. */
.sw-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--sw-hairline); }
.sw-columns--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sw-columns--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sw-columns > * { min-width: 0; padding: 4px var(--sw-gap) 0; border-right: 1px solid var(--sw-hairline); }

/* Rows divided by black rules: indexes, lists, specifications. */
.sw-rows { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--sw-line); }
.sw-rows > li, .sw-rows > div { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sw-gap); padding-block: 20px; border-bottom: 1px solid var(--sw-line); }
.sw-rows h3 { font-size: var(--sw-size-h3); line-height: 1.3; }

/* Figure: photograph, then the red rule, a bold title and a grey credit line. */
.sw-figure { margin: 0; }
.sw-figure img { width: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.sw-figure--colour img { filter: none; }
.sw-figure figcaption { display: grid; gap: 2px; margin-top: 14px; }
.sw-figure figcaption::before { content: ""; width: 28px; height: 3px; margin-bottom: 8px; background: var(--sw-red); }
.sw-figure figcaption strong { font-size: 16px; font-weight: 700; }
.sw-figure figcaption span { font-size: var(--sw-size-small); color: var(--sw-grey); }

/* White sheet with a red left rule: specifications, steps, terms (the "package insert"). */
.sw-sheet { padding: clamp(24px, 3vw, 40px); background: var(--sw-white); border-left: 3px solid var(--sw-red); }
.sw-sheet > * + * { margin-top: 22px; }
.sw-sheet h3 { font-size: 18px; }
.sw-sheet p { color: var(--sw-text); }

/* Full-bleed bands: red to emphasise one statement, black for gravity. */
.sw-band { margin-top: var(--sw-section); padding-block: clamp(56px, 9vw, 120px); }
.sw-band--red { background: var(--sw-red); color: var(--sw-white); }
.sw-band--black { background: var(--sw-black); color: var(--sw-on-dark); }
.sw-band--black .sw-body, .sw-band--black .sw-lead { color: var(--sw-on-dark-muted); }
.sw-band--black .sw-columns, .sw-band--black .sw-columns > * { border-color: var(--sw-dark-hairline); }
.sw-band--black .sw-rows, .sw-band--black .sw-rows > li { border-color: var(--sw-dark-hairline); }
.sw-band--red .sw-lead, .sw-band--red .sw-body { color: var(--sw-white); }

/* Quote: red vertical bar, bold text, grey attribution. */
.sw-quote { margin: 0; padding-left: 22px; border-left: 4px solid var(--sw-red); }
.sw-quote p { font-size: var(--sw-size-h3); font-weight: 700; line-height: 1.4; }
.sw-quote footer { margin-top: 10px; font-size: var(--sw-size-small); color: var(--sw-grey); }

/* Key number: very large numerals with a label. */
.sw-stat strong { display: block; font-family: var(--sw-font-display); font-size: clamp(44px, 6vw, 88px); font-weight: 800; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.sw-stat span { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--sw-grey); }

/* Links and buttons: rectangles, no radius; red only for the action. */
.sw-link { display: inline-flex; align-items: center; gap: 8px; color: var(--sw-red); font-weight: 700; text-decoration: none; }
.sw-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.sw-button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 2px solid var(--sw-ink); border-radius: 0; background: var(--sw-ink); color: var(--sw-white); font: inherit; font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; }
.sw-button:hover { background: var(--sw-red); border-color: var(--sw-red); }
.sw-button--ghost { background: transparent; color: var(--sw-ink); }
.sw-button--ghost:hover { color: var(--sw-white); }

/* Tables: black rules, no fills, tabular numbers. */
.sw-table-wrap { overflow-x: auto; }
.sw-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.sw-table th { padding: 10px 14px 10px 0; border-bottom: 2px solid var(--sw-line); text-align: left; font-size: var(--sw-size-small); font-weight: 700; color: var(--sw-grey); }
.sw-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--sw-hairline); vertical-align: top; color: var(--sw-text); }
.sw-table td.sw-num, .sw-table th.sw-num { text-align: right; }

/* Tag: a black or red rectangle with white text ("事实" on the Bauhaus photo). */
.sw-tag { display: inline-block; padding: 4px 10px; background: var(--sw-ink); color: var(--sw-white); font-size: 13px; font-weight: 700; line-height: 1.3; }
.sw-tag--red { background: var(--sw-red); }

/* Footer: one black rule, small columns, image credits. */
.sw-footer { margin-top: var(--sw-section); padding-block: 22px 40px; border-top: 2px solid var(--sw-line); font-size: 14px; }
.sw-footer a { color: var(--sw-text); text-decoration: none; }
.sw-footer a:hover { color: var(--sw-red); }

@media (max-width: 900px) {
  .sw-grid > [class*="sw-col-"] { grid-column: 1 / -1; }
  .sw-columns, .sw-columns--2, .sw-columns--4 { grid-template-columns: minmax(0, 1fr); border-left: 0; border-top: 1px solid var(--sw-hairline); }
  .sw-columns > * { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--sw-hairline); }
  .sw-rows > li, .sw-rows > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sw-header { grid-template-columns: auto auto; }
  .sw-nav { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; background-position: 8px 0; }
  .sw-nav { gap: 6px 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: var(--sw-white); }
  .sw-band--red, .sw-band--black { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
