/* ---------- v9 type system: one set of faces for every page ----------
   Archivo + Newsreader (SIL OFL) and the OWNCHA symbol font (build/owncha-symbols.py).
   Loaded after each page's own stylesheet, so these variables replace its Arial/Georgia stacks.
   The symbol font carries the arrows and marks used in running text; without it iOS swaps
   some of them (↗ ↖ ↔ ✳) for colour emoji. */
@font-face { font-family: "Archivo"; src: url("/assets/fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Label"; src: url("/assets/fonts/archivo-variable.woff2") format("woff2"); font-weight: 100 900; font-stretch: 116%; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-italic-variable.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Owncha Symbols"; src: url("/assets/fonts/owncha-symbols.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: block; unicode-range: U+2161, U+2190-2199, U+21A5, U+21BB, U+25B7, U+25C7-25C8, U+25CF, U+270E, U+2713, U+2733; }
@font-face { font-family: "Owncha Symbols"; src: url("/assets/fonts/owncha-symbols.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: block; unicode-range: U+2161, U+2190-2199, U+21A5, U+21BB, U+25B7, U+25C7-25C8, U+25CF, U+270E, U+2713, U+2733; }
/* Display headings share the homepage's slightly condensed cut. */
:where(h1, h2) { font-stretch: 84%; }
:where(h1, h2) :where(em, i) { font-stretch: normal; }
.wordmark { font-family: var(--sans); font-weight: 760; font-stretch: 96%; letter-spacing: -0.055em; line-height: 1; display: inline-flex; align-items: center; }
.wordmark .logo-dot { display: inline-block; flex: none; width: .34em; height: .34em; margin-left: .16em; border-radius: 50%; background: currentColor; position: relative; transform: rotate(-40deg); }
.wordmark .logo-dot::after { content: ""; position: absolute; left: 41%; top: -12%; width: 18%; height: 124%; background: var(--wordmark-cut, var(--paper, #f2f0e9)); }
:root {
  --sans: "Archivo", "Owncha Symbols", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Arial, sans-serif;
  --serif: "Newsreader", "Owncha Symbols", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  --mono: "Archivo Label", "Owncha Symbols", "Hiragino Sans", "Noto Sans JP", Arial, sans-serif;
}

/* The preview notice sits on every page while the service is a preview. Its room is kept from the
   first paint, so the page does not jump down when /api/config answers. These are the notice's own
   heights (two lines on a phone); public-shell.js replaces them with the measured value, or 0 once the
   server says the service is no longer a preview. */
:root { --preview-banner-height: 31px; }
@media (max-width: 600px) { :root { --preview-banner-height: 27px; } }
@media (max-width: 459px) { :root { --preview-banner-height: 41px; } }
body { padding-top: var(--preview-banner-height); }
.preview-banner {
  box-sizing: border-box;
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 7px 12px;
  background: #e8edcf;
  color: #293222;
  border-bottom: 1px solid #29322224;
  font: 12px/16px Arial, Helvetica, sans-serif;
  text-align: center;
  letter-spacing: 0;
}
.preview-banner[hidden] { display: none; }
.preview-banner.is-pending { visibility: hidden; }
.preview-banner--dialog { position: sticky; top: 0; font-size: 11px; }
/* Always, not only once the mode is known: the variable is 0 when there is no notice, and waiting moved the panel. */
body .preview-panel { top: var(--preview-banner-height); }
.skip-link:focus, .skip:focus { top: calc(var(--preview-banner-height) + 10px); z-index: 1001; }
footer:has(> .public-footer-links) { flex-wrap: wrap; }
.public-footer-links {
  box-sizing: border-box;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid #7c816b40;
  font: 12px/1.6 Arial, Helvetica, sans-serif;
  color: inherit;
  letter-spacing: 0;
}
.public-footer-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.public-footer-links a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
.public-footer-links nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.public-footer-links .operator-name { margin-right: auto; }
.public-footer { padding: 28px 4.4vw; color: #293222; background: #f2f0e9; }
.public-footer > .public-footer-links { padding-top: 0; border-top: 0; }
.registration-terms { font-size: 12px; line-height: 1.6; margin: 0 0 18px; color: var(--muted, #626753); }
.registration-terms a { text-decoration: underline; text-underline-offset: 3px; }
.wholesale-card { margin: 36px 0; padding: 22px 25px; border: 1px solid var(--line, #d7dacb); }
.wholesale-card a { display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 14px; line-height: 1.5; }
.wholesale-card a > span:last-child { font-size: 24px; }
@media (max-width: 600px) {
  .preview-banner { padding: 6px 8px; font-size: 11px; line-height: 14px; }
  .public-footer-links { align-items: flex-start; flex-direction: column; gap: 12px; font-size: 11px; }
  .public-footer-links nav { gap: 10px 20px; }
  .wholesale-card { margin: 26px 0; padding: 18px; }
  .wholesale-card a { font-size: 13px; gap: 16px; }
}
