/* Site header and footer, self-contained so any page can wear them without adopting the home page's styles */
.site-head, .site-foot { --c-paper: #eef4f6; --c-ink: #16273c; --c-ink2: #3c4d61; --c-rule: #23324a; --c-rule-l: #c9d4dc;
  font-family: "Smooch Sans", "Arial Narrow", sans-serif; color: var(--c-ink); background: var(--c-paper); }
.site-head .wrap, .site-foot .wrap { max-width: 1720px; margin: 0 auto; padding-inline: clamp(16px, 2.4vw, 40px); box-sizing: border-box; }
.site-head { border-bottom: 3px solid var(--c-rule); }
.site-head .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-block: 18px 14px; flex-wrap: wrap; }
.site-head .mark { text-decoration: none; color: inherit; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.site-head .mark b { font-weight: 800; font-size: 26px; letter-spacing: 0.26em; }
.site-head .mark i { font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-size: 17px; color: var(--c-ink2); }
.site-head .nav { display: flex; gap: clamp(14px, 2.2vw, 36px); flex-wrap: wrap; }
.site-head .nav a { color: inherit; text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: 0.2em; padding-block: 4px; border-bottom: 2px solid transparent; }
.site-head .nav a:hover, .site-head .nav a[aria-current="page"] { border-bottom-color: var(--c-ink); }
.site-head a:focus-visible, .site-foot a:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }
.site-foot { border-top: 1px solid var(--c-rule-l); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 22px 40px; font-size: 15px; letter-spacing: 0.16em; font-weight: 700; color: var(--c-ink2); }
.site-foot i { font-family: "Source Serif 4", Georgia, serif; font-style: italic; letter-spacing: 0; font-weight: 400; font-size: 15px; }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: baseline; }
.site-foot a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
@media (max-width: 900px) {
  .site-head .wrap { flex-direction: column; gap: 10px; }
  .site-head .mark b { font-size: 22px; }
  .site-head .nav a { font-size: 14px; letter-spacing: 0.16em; }
}

/* Fixed-proportion plates (the quiz, the compasses) fit below the site header: the plate unit takes
   whichever is tighter, the window's width or the height left under the header, and the plate centres. */
@media (min-width: 901px) {
  :root { --u: min(100vw / 2688, (100svh - var(--head-h, 72px) - 4px) / 1520); }
  .plate { width: calc(var(--u) * 2688) !important; margin-inline: auto; }
}

/* a section's own row under the header (Explore: its four views, and the 3 models · 10 makers switch) */
.site-head .sub { border-top: 1px solid var(--c-rule-l); }
.site-head .sub .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding-block: 9px; }
.site-head .tabs { display: flex; gap: clamp(12px, 1.8vw, 30px); flex-wrap: wrap; }
.site-head .tabs a, .site-head .models a { color: var(--c-ink2); text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: 0.2em; padding-block: 3px; border-bottom: 2px solid transparent; }
.site-head .tabs a:hover, .site-head .tabs a[aria-current="page"] { color: var(--c-ink); border-bottom-color: var(--c-ink); }
.site-head .models { display: inline-flex; align-items: baseline; gap: 14px; font-size: 13px; }
.site-head .models > span { font-family: "Source Serif 4", Georgia, serif; font-style: italic; letter-spacing: 0; color: var(--c-ink2); font-size: 14px; }
.site-head .models a[aria-current="true"] { color: var(--c-ink); border-bottom-color: var(--c-ink); }
.site-head .models a:hover { color: var(--c-ink); }
@media (max-width: 900px) { .site-head .tabs a, .site-head .models a { font-size: 12px; letter-spacing: .14em; } }

/* phones: keep the header compact, each row a single line that scrolls sideways if it must */
@media (max-width: 900px) {
  .site-head .wrap { gap: 6px; padding-block: 12px 8px; }
  .site-head .mark i { display: none; }
  .site-head .nav, .site-head .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 18px; max-width: 100%; }
  .site-head .nav::-webkit-scrollbar, .site-head .tabs::-webkit-scrollbar { display: none; }
  .site-head .nav a, .site-head .tabs a { white-space: nowrap; flex: none; }
  .site-head .sub .wrap { padding-block: 6px; gap: 6px; }
  .site-head .models { font-size: 12px; }
}
