@font-face {
  font-family: "Wanted Sans";
  src: url("/wanted-sans.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #222b35;
  --muted: #52606e;
  --line: #e0e5ea;
  --paper: #fafbfc;
  --accent: #0250a0;
  --accent-dark: #003a75;
  --surface: #ffffff;
  --teal: #11746b;
  font-family: "Wanted Sans", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.6; }
strong { font-weight: 600; }
a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button:disabled { opacity: .55; cursor: wait; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); font-weight: 550; letter-spacing: -.035em; line-height: 1.22; }
h2 { font-size: 1.3rem; font-weight: 570; letter-spacing: -.02em; line-height: 1.4; }
h3 { font-size: 1.04rem; font-weight: 580; line-height: 1.45; }
input, select { width: 100%; min-height: 2.65rem; border: 1px solid #adbacb; border-radius: 5px; padding: .55rem .68rem; color: var(--ink); background: var(--surface); }
label { display: grid; gap: .4rem; font-size: .83rem; font-weight: 560; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; padding: .7rem clamp(1.1rem, 4vw, 3.5rem); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 1rem; }
.brand img, .access-mark img { display: block; max-width: 100%; height: auto; }
.brand-label { color: var(--muted); font-size: .83rem; }
.quiet { background: transparent; border: 0; padding: .65rem .8rem; border-radius: 4px; color: var(--ink); font-weight: 560; }
.quiet:hover, .quiet.active { background: #e8f1fa; color: var(--accent-dark); }
.primary { padding: .75rem 1.1rem; border: 1px solid var(--accent); border-radius: 5px; background: var(--accent); color: white; font-weight: 560; min-height: 2.8rem; }
.primary:hover { background: var(--accent-dark); }
.login-page { min-height: 100svh; }
.access { min-height: 100svh; display: grid; place-items: center; padding: 1.5rem; }
.access-panel {
  width: min(100%, 27rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(1.4rem, 6vw, 2.65rem);
  background: var(--surface);
}
.access-mark { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-bottom: 1.85rem; }
.access-mark img { max-width: 55%; }
.access h1 { font-size: 2rem; }
.locale-switch { flex: none; width: auto; min-height: 2.15rem; padding: .23rem .45rem; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--accent-dark); font-size: .75rem; font-weight: 550; }
.locale-switch:hover { background: var(--paper); }
.access form { display: grid; gap: .9rem; margin-top: 1.8rem; }
.access input, .access .primary { min-height: 2.85rem; border-radius: 5px; }
.access input[name=code] { font-variant-numeric: tabular-nums; letter-spacing: .36em; }
.access-note { padding-top: 1rem; margin-top: 1.3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; line-height: 1.55; }
.access-note h2 { margin-bottom: .38rem; color: var(--ink); font-size: 1rem; }
.access-contact { display: grid; gap: .1rem; margin-top: .8rem; }
.access-contact strong { color: var(--ink); }
.access-contact a { justify-self: start; color: var(--accent-dark); text-underline-offset: .2em; overflow-wrap: anywhere; }
.code-actions { display: flex; justify-content: space-between; margin: -.3rem -.6rem 0; }
.code-actions button { font-size: .79rem; }
.message { color: var(--accent-dark); font-size: .84rem; margin-top: .9rem; line-height: 1.5; }
.message:empty { display: none; }
.security-note { border-top: 1px solid var(--line); color: var(--muted); padding-top: .8rem; font-size: .78rem; line-height: 1.6; }
.security-note strong { color: var(--accent-dark); }
.security-note p { margin-top: .16rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
