/* ==========================================================================
   Get a Swiss Job — single stylesheet.
   Light theme, no external dependencies, no remote fonts.
   To restyle the site, change the custom properties below.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --text: #1b1f24;
  --muted: #5b636c;
  --line: #e2e6ea;
  --accent: #d0021b;          /* Swiss red */
  --accent-soft: #fdecee;
  --link: #0b4fa8;
  --link-visited: #5a3a9b;

  --radius: 10px;
  /* --wrap and --measure are deliberately close: a container much wider than
     the text column makes the page read as left-hugging rather than centred */
  --wrap: 56rem;
  --measure: 46rem;           /* comfortable line length for body copy */
}

/* --- minimal reset ------------------------------------------------------ */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

/* --- utilities ---------------------------------------------------------- */

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* --- typography --------------------------------------------------------- */

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 .5rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); margin-bottom: .75rem; }
h3 { font-size: 1.05rem; margin-top: 1.5rem; }

/* a rule above every section keeps the long link lists from running together */
h2 {
  font-size: clamp(1.25rem, 1.1rem + .8vw, 1.55rem);
  margin-top: 3.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.fact h2, .note h2 { margin-top: 0; padding-top: 0; border-top: 0; }

p, ul, ol { margin: 0 0 1rem; }

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: var(--measure);
}

.prose { max-width: var(--measure); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: .15em;
}
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .1em .35em;
}

/* --- header and navigation ---------------------------------------------- */

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

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem 1.5rem;
  padding-block: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}
.brand:visited { color: var(--text); }
.brand::before {
  content: "";
  width: 1.05em;
  height: 1.05em;
  flex: none;
  background: var(--accent);
  border-radius: 3px;
  /* Swiss cross drawn in CSS, so there is no image file to load */
  background-image:
    linear-gradient(#fff, #fff),
    linear-gradient(#fff, #fff);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 55% 18%, 18% 55%;
}

.site-nav {
  margin-left: auto;          /* pushes the menu to the right of the brand */
}

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

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  padding: .15rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:visited { color: var(--muted); }
.site-nav a:hover { color: var(--text); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* --- main content ------------------------------------------------------- */

main { padding-block: 3rem 4rem; }

.page-head { margin-bottom: 2.5rem; }

/* --- card grid (home page) ---------------------------------------------- */

.cards {
  display: grid;
  /* 21rem keeps the four home cards in a balanced 2x2 on desktop,
     and stacks them to a single column on narrow screens */
  grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
}
.card:visited { color: inherit; }
.card:hover { border-color: var(--accent); background: var(--bg-soft); }

.card strong { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
.card span { color: var(--muted); font-size: .93rem; display: block; }

/* --- link lists --------------------------------------------------------- */

.links {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

/* the negative margin lets the hover band breathe without shifting the text */
.links > li {
  padding: .95rem .75rem;
  margin-inline: -.75rem;
  border-bottom: 1px solid var(--line);
}
/* faint highlight so the eye can track a single entry in a long list */
.links > li:hover { background: var(--bg-soft); }

.links .name {
  font-weight: 600;
  font-size: 1.03rem;
}

.links p {
  margin: .2rem 0 0;
  color: var(--muted);
  font-size: .95rem;
  max-width: var(--measure);
}

.tag {
  display: inline-block;
  font-size: .74rem;
  line-height: 1.5;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 .55rem;
  margin-left: .4rem;
  vertical-align: .12em;
  white-space: nowrap;
}
.tag--official {
  color: #7a1a10;
  background: var(--accent-soft);
  border-color: #f5c9ce;
}

/* --- callout boxes ------------------------------------------------------ */

.note {
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: .9rem 1.1rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
  font-size: .95rem;
}
.note :last-child { margin-bottom: 0; }
.note strong { font-weight: 650; }

/* --- "did you know?" page ----------------------------------------------- */

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 0 0 2rem;
  max-width: var(--measure);
  background: var(--bg-soft);
}
.toc p { font-weight: 600; margin: 0 0 .4rem; font-size: .95rem; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { font-size: .95rem; }

.facts {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}

.fact {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.fact h3 { margin: 0 0 .35rem; font-size: 1rem; }
.fact p { margin: 0; font-size: .95rem; color: var(--muted); }
.fact p + p { margin-top: .6rem; }

h2[id] { scroll-margin-top: 1rem; }

/* --- footer ------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: 1.75rem 2.25rem;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer p { max-width: var(--measure); margin-bottom: .6rem; }
.site-footer :last-child { margin-bottom: 0; }

/* --- print -------------------------------------------------------------- */

@media print {
  .site-nav, .skip-link, .toc { display: none; }
  body { font-size: 11pt; }
  .card, .fact, .note, .links > li { break-inside: avoid; }
  a { color: #000; }
  /* a printed link is not clickable, so spell the URL out */
  .links a[href^="http"]::after {
    content: " — " attr(href);
    font-size: .85em;
    color: #444;
    word-break: break-all;
  }
}

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