@font-face { font-family: 'SUSE Mono'; font-style: italic; font-weight: 100; font-display: swap; src: url("/assets/fonts/suse-mono-latin-100-italic.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: normal; font-weight: 100; font-display: swap; src: url("/assets/fonts/suse-mono-latin-100-normal.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: italic; font-weight: 200; font-display: swap; src: url("/assets/fonts/suse-mono-latin-200-italic.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: normal; font-weight: 200; font-display: swap; src: url("/assets/fonts/suse-mono-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: italic; font-weight: 300; font-display: swap; src: url("/assets/fonts/suse-mono-latin-300-italic.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: normal; font-weight: 300; font-display: swap; src: url("/assets/fonts/suse-mono-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/suse-mono-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/suse-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/suse-mono-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/suse-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: italic; font-weight: 600; font-display: swap; src: url("/assets/fonts/suse-mono-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/suse-mono-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/suse-mono-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/suse-mono-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/suse-mono-latin-800-italic.woff2") format("woff2"); }
@font-face { font-family: 'SUSE Mono'; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/suse-mono-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Sans New Tai Lue'; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/noto-sans-new-tai-lue-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Sans New Tai Lue'; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/noto-sans-new-tai-lue-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Sans New Tai Lue'; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/noto-sans-new-tai-lue-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: 'Noto Sans New Tai Lue'; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/noto-sans-new-tai-lue-latin-700-normal.woff2") format("woff2"); }
:root {
  --bg-light-base: #e8edf3;
  --fg-light-base-body: #121a26;
  --fg-light-base-heading: #121a26;
  --fg-light-base-muted: #3e4b5e;
  --fg-light-base-link: #3534c4;
  --fg-light-base-inverse: #121a26;
  --bg-light-card: #f6f8fb;
  --fg-light-card-body: #121a26;
  --fg-light-card-heading: #121a26;
  --fg-light-card-muted: #3e4b5e;
  --fg-light-card-link: #3534c4;
  --fg-light-card-inverse: #121a26;
  --bg-light-elevated: #d9e1eb;
  --fg-light-elevated-body: #121a26;
  --fg-light-elevated-heading: #121a26;
  --fg-light-elevated-muted: #3e4b5e;
  --fg-light-elevated-link: #3534c4;
  --fg-light-elevated-inverse: #121a26;
  --brand-light-accent: #3534c4;
  --brand-light-accent-hover: #201f8a;
  --brand-light-on-accent: #ffffff;
  --focus-light-ring: #3534c4;
  --border-light-default: #66768c;
  --border-light-subtle: #b9c4d2;
}
.bg-surface-base { background: var(--bg-light-base); --fg-body: var(--fg-light-base-body); --fg-heading: var(--fg-light-base-heading); --fg-muted: var(--fg-light-base-muted); --fg-link: var(--fg-light-base-link); --fg-inverse: var(--fg-light-base-inverse); }
.bg-surface-card { background: var(--bg-light-card); --fg-body: var(--fg-light-card-body); --fg-heading: var(--fg-light-card-heading); --fg-muted: var(--fg-light-card-muted); --fg-link: var(--fg-light-card-link); --fg-inverse: var(--fg-light-card-inverse); }
.bg-surface-elevated { background: var(--bg-light-elevated); --fg-body: var(--fg-light-elevated-body); --fg-heading: var(--fg-light-elevated-heading); --fg-muted: var(--fg-light-elevated-muted); --fg-link: var(--fg-light-elevated-link); --fg-inverse: var(--fg-light-elevated-inverse); }
.text-role-body { color: var(--fg-body); overflow-wrap: anywhere; }
.text-role-heading { color: var(--fg-heading); overflow-wrap: anywhere; }
.text-role-muted { color: var(--fg-muted); }
.text-role-link { color: var(--fg-link); }
.text-role-inverse { color: var(--fg-inverse); }
.text-role-link { text-decoration: underline; }
.text-role-link:hover { color: var(--brand-light-accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--focus-light-ring); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.site-logo { max-width: 100%; height: auto; }
.site-menu > summary { list-style: none; cursor: pointer; }
.site-menu > summary::-webkit-details-marker { display: none; }
html:has(:focus-visible) :is(details.site-menu, details.site-nav-group)[open]:not(:focus-within) > ul { visibility: hidden; }
:where(section[data-section][style]) { background-size: cover; background-position: center; padding: clamp(1.5rem, 4vw, 3rem); }
:where(section[data-section][style] > .bg-surface-card) { padding: clamp(1rem, 3vw, 2rem); }
:where(section[data-section][style] > .bg-surface-card > :first-child) { margin-top: 0; }
:where(section[data-section][style] > .bg-surface-card > :last-child) { margin-bottom: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { position: static; padding: 0.25rem 0.5rem; outline: 2px solid var(--focus-light-ring); }

:root {
  --face-head: 'SUSE Mono', ui-monospace, Menlo, Consolas, monospace;
  --face-body: 'Noto Sans New Tai Lue', system-ui, 'Segoe UI', Roboto, sans-serif;
  --line: var(--border-light-default);
  --line-soft: var(--border-light-subtle);
  --cobalt: var(--brand-light-accent);
  --cobalt-deep: var(--brand-light-accent-hover);
  --rail: 15.5rem;
  --pad: clamp(1rem, 3.5vw, 2.75rem);
}

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

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

body {
  margin: 0;
  font-family: var(--face-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--face-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}

h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }

p, ul, ol, dl, figure, blockquote { margin: 0; }

a.text-role-link { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a.text-role-link:hover { text-decoration-thickness: 2px; }

/* Bench: rail + sheet */

.bench { min-height: 100vh; }

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--pad);
  border-bottom: 1px solid var(--line);
}

.rail-brand { display: inline-flex; line-height: 0; }
.rail-brand .site-logo { width: 12.5rem; height: auto; }

.site-nav { display: none; }

.site-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  font-family: var(--face-head);
  font-size: 0.85rem;
  white-space: nowrap;
}

.site-menu .menu-icon {
  position: relative;
  width: 1rem;
  height: 0.75rem;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.site-menu .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1px);
  height: 2px;
  background: currentColor;
}

.site-menu > ul {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 0.5rem var(--pad) 1rem;
  background: var(--bg-light-elevated);
  border-bottom: 1px solid var(--line);
}

.site-menu > ul li { border-top: 1px solid var(--line-soft); }
.site-menu > ul ul { list-style: none; padding-left: 1rem; }

.site-menu a {
  display: block;
  padding: 0.7rem 0;
  font-family: var(--face-head);
  font-size: 0.95rem;
  text-decoration: none;
}

.bench-sheet { min-width: 0; }

.breadcrumbs { padding: 1rem var(--pad) 0; }

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  font-family: var(--face-head);
  font-size: 0.8rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.6rem;
  color: var(--line);
}

.site-footer {
  display: grid;
  gap: 0.4rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding: 1.5rem var(--pad);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.footer-line { max-width: 60ch; }
.footer-mark { font-family: var(--face-head); font-size: 0.8rem; }

@media (min-width: 1024px) {
  .bench {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2rem;
    padding: 1.75rem 1.25rem;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .rail-brand .site-logo { width: 100%; }

  .site-menu { display: none; }

  .site-nav { display: block; }

  .site-nav > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
  }

  .site-nav li { border-bottom: 1px solid var(--line-soft); }

  .site-nav a {
    display: block;
    padding: 0.7rem 0 0.7rem 0.75rem;
    border-left: 3px solid transparent;
    font-family: var(--face-head);
    font-size: 0.9rem;
    line-height: 1.35;
    text-decoration: none;
  }

  .site-nav a:hover { border-left-color: var(--cobalt); }

  .site-nav details > summary {
    padding: 0.7rem 0 0.7rem 0.75rem;
    font-family: var(--face-head);
    font-size: 0.9rem;
    cursor: pointer;
  }

  .site-nav details > ul { list-style: none; padding: 0 0 0.5rem 0.75rem; }
}

/* Folio: shared page frame */

.folio {
  padding: clamp(1.25rem, 3vw, 2.25rem) var(--pad) 0;
  max-width: 78rem;
}

.folio h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

.folio h2 {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.04em;
  font-size: 1.3rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.folio p.text-role-body,
.folio li.text-role-body { max-width: 68ch; }

.folio ul, .folio ol { padding-left: 1.2rem; }

.photo-hero img,
.photo-inline img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
}

.photo-inline { margin: 0.25rem 0; }

/* Home: cover + spec-sheet grid */

.folio-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
}

.cover {
  display: grid;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--cobalt);
}

.cover-title h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.1rem); max-width: 20ch; }

.cover-lines { display: grid; gap: 0.5rem; max-width: 44ch; }

.cover-lines .display-line {
  padding-left: 0.75rem;
  border-left: 3px solid var(--cobalt);
  font-size: 1.1rem;
}

.spec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 1px 0 0 1px;
}

.spec-grid > p,
.spec-grid > ul,
.spec-grid > ol {
  margin: -1px 0 0 -1px;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--bg-light-card);
  position: relative;
}

.spec-grid > p::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  width: 2.25rem;
  height: 3px;
  background: var(--cobalt);
}

.spec-grid > h2 {
  grid-column: 1 / -1;
  margin: 1.75rem 0 0.9rem -1px;
}

.spec-grid > .photo-hero { grid-column: 1 / -1; margin: 0 0 1.5rem -1px; }

@media (min-width: 760px) {
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .folio-home { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; }
  .cover { grid-column: 1 / 8; grid-row: 1; align-self: end; margin: 0 0 1.75rem; }
  .spec-grid { display: contents; }
  .spec-grid > .photo-hero { grid-column: 8 / 13; grid-row: 1; margin: 0 0 1.75rem; padding-left: 2.5rem; }
  .spec-grid > .photo-hero img { aspect-ratio: 4 / 3; object-fit: cover; }
  .spec-grid > h2 { grid-column: 1 / 13; }
  .spec-grid > p, .spec-grid > ul, .spec-grid > ol { grid-column: span 6; }
  .spec-grid > h2 ~ p { grid-column: span 4; }
}

/* Topic hub: tile index + body */

.folio-hub { display: grid; gap: 1.75rem; }

.hub-tiles { padding: 1px 0 0 1px; background: transparent; }

.hub-tiles ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  counter-reset: tile;
}

.hub-tiles li {
  counter-increment: tile;
  margin: -1px 0 0 -1px;
  border: 1px solid var(--line);
  background: var(--bg-light-card);
  padding: 1rem 1.1rem 1.25rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.hub-tiles li::before {
  content: counter(tile, decimal-leading-zero);
  font-family: var(--face-head);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--cobalt);
}

.hub-tiles a {
  font-family: var(--face-head);
  font-size: 1rem;
  line-height: 1.35;
}

.hub-body { display: grid; gap: 1rem; max-width: 70ch; }
.hub-body h2 { margin-top: 1rem; }

@media (min-width: 700px) {
  .hub-tiles ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .hub-tiles ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Article: sticky data panel beside body */

.folio-article { display: grid; gap: 1.75rem; }

.article-panel {
  border: 1px solid var(--line);
  border-top: 3px solid var(--cobalt);
  padding: 1.1rem 1.15rem 1.25rem;
  display: grid;
  gap: 1rem;
  align-self: start;
}

.article-panel h1 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); }

.panel-rows {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem;
}

.panel-rows dt,
.panel-rows dd {
  margin: 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.panel-rows dt {
  padding-right: 1rem;
  font-family: var(--face-head);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.05em;
}

.article-body { display: grid; gap: 1rem; min-width: 0; }
.article-body h2 { margin-top: 1.25rem; }

@media (min-width: 1100px) {
  .folio-article { grid-template-columns: minmax(15rem, 4fr) minmax(0, 8fr); column-gap: 2.75rem; }
  .article-panel { position: sticky; top: 1.25rem; }
}

/* About: statement beside a section timeline */

.folio-about { display: grid; gap: 1.25rem; }

.about-flow { display: grid; }
.about-flow > p:first-child { margin-bottom: 1.5rem; }

.about-flow > p:first-child {
  font-size: 1.2rem;
  line-height: 1.5;
  padding-left: 1rem;
  border-left: 3px solid var(--cobalt);
}

.about-flow > h2 ~ * {
  position: relative;
  padding: 0 0 1rem 1.75rem;
  border-left: 1px solid var(--line);
  margin-left: 0.4rem;
}

.about-flow > h2 {
  position: relative;
  border-top: 0;
  padding: 1.25rem 0 0.5rem 1.75rem;
  border-left: 1px solid var(--line);
  margin-left: 0.4rem;
}

.about-flow > h2::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: 1.45rem;
  width: 0.8rem;
  height: 0.8rem;
  background: var(--cobalt);
  border: 2px solid var(--bg-light-base);
}

@media (min-width: 1100px) {
  .folio-about {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 3rem;
    align-items: start;
  }
  .folio-about { row-gap: 0; }
  .about-title { grid-column: 1; grid-row: 1 / span 2; }
  .about-flow { display: contents; }
  .about-flow > * { grid-column: 2; }
  .about-flow > p:first-child { grid-column: 1; grid-row: 3 / span 30; align-self: start; margin: 1.5rem 0 0; }
  .about-flow > h2:first-of-type { padding-top: 0; }
  .about-flow > h2:first-of-type::before { top: 0.2rem; }
}

/* Contact: copy beside the requisition form */

.folio-contact { display: grid; gap: 2rem; }

.contact-copy { display: grid; gap: 1rem; }
.contact-copy h2 { margin-top: 1rem; }

.requisition {
  border: 1px solid var(--line);
  border-top: 3px solid var(--cobalt);
  align-self: start;
}

.requisition-head {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--face-head);
  font-size: 0.85rem;
}

.requisition-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.4rem;
  padding: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

.requisition-row:last-child { border-bottom: 0; }

.requisition label {
  font-family: var(--face-head);
  font-variant-caps: all-small-caps;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  align-self: center;
}

.requisition input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.7rem;
  font: inherit;
  color: var(--fg-body);
  background: var(--bg-light-base);
  border: 1px solid var(--line);
  border-radius: 0;
}

.requisition input:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 1px;
}

.requisition-actions { justify-items: start; }

.requisition button {
  min-height: 2.75rem;
  padding: 0.5rem 1.4rem;
  font-family: var(--face-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-light-on-accent);
  background: var(--cobalt);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.requisition button:hover { background: var(--cobalt-deep); }

@media (min-width: 560px) {
  .requisition-row { grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; }
  .requisition-actions { grid-template-columns: 9rem minmax(0, 1fr); }
  .requisition-actions button { grid-column: 2; }
}

@media (min-width: 1100px) {
  .folio-contact { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); column-gap: 3rem; }
}

/* Thank you: receipt panel split from next reading */

.folio-thanks { display: grid; gap: 2rem; }

.receipt {
  border: 1px solid var(--line);
  border-bottom: 2px dashed var(--line);
  padding: 1.25rem 1.25rem 1.5rem;
  display: grid;
  gap: 1rem;
  align-self: start;
}

.receipt-source {
  font-family: var(--face-head);
  font-size: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line-soft);
}

.thanks-body { display: grid; gap: 1rem; }
.thanks-body h2 { margin-top: 0.75rem; }

@media (min-width: 900px) {
  .folio-thanks { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 3rem; }
}

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