@import url('/assets/fonts.css');

:root {
  --blue: #0066ff;
  --blue-dark: #0052cc;
  --ink: #1a202c;
  --muted: #6b7280;
  --line: #e5e7eb;
  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #f0f4f8;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #3385ff; outline-offset: 3px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 12px 20px; border-radius: 8px; background: white; }
.skip-link:focus { top: 12px; }
.site-header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: inline-flex; flex: 0 1 auto; }
.brand img { display: block; max-width: 100%; width: 284px; height: auto; }
.home-link { font-size: 13px; font-weight: 600; white-space: nowrap; }
.access-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 72px; padding-block: 80px; }
.access-story { padding-top: 24px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { color: #111827; line-height: 1.2; }
h1 { margin: 0 0 24px; font-size: clamp(30px, 3.5vw, 44px); letter-spacing: -.025em; }
.access-story > p:not(.eyebrow) { max-width: 430px; color: var(--muted); }
.access-card { padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 10px 25px rgba(0,0,0,.05); }
.access-card h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: -.02em; }
.access-intro { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.access-card label { display: block; margin: 18px 0 7px; font-size: 13px; font-weight: 600; }
.access-card input { display: block; width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 14px; }
.access-card input:focus { border-color: var(--blue); }
.password-control { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; }
.password-control:focus-within { border-color: var(--blue); }
.password-control input { min-width: 0; border: 0; }
.password-control button { flex: 0 0 auto; margin-right: 8px; padding: 7px 8px; border: 0; border-radius: 4px; background: #ebf3ff; color: var(--blue-dark); font-size: 12px; font-weight: 600; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px; border: 0; border-radius: 8px; background: var(--blue); color: white; font-size: 14px; font-weight: 600; }
.button:hover { background: var(--blue-dark); text-decoration: none; }
.access-submit { width: 100%; margin-top: 24px; }
.access-feedback { margin: 14px 0 0; font-size: 13px; }
.access-feedback[data-error='true'] { color: #c53030; }
.access-feedback[data-error='false'] { color: #009960; }
.access-recovery { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.access-recovery summary { color: var(--blue); cursor: pointer; font-weight: 600; }
.access-recovery p, .staff-note, .access-bottom { color: var(--muted); font-size: 13px; }
.recovery-submit { width: 100%; margin-top: 16px; }
.staff-note { margin-top: 24px; }
.access-bottom { margin: 24px 0 0; }
.site-footer { padding-block: 26px; border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.legal-links a { color: #4b5563; }
.policy { width: min(800px, 100% - 40px); margin: 56px auto; padding: 42px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.policy h1 { margin-bottom: 20px; font-size: clamp(28px, 4vw, 36px); }
.policy h2 { margin: 32px 0 10px; font-size: 19px; }
.policy p, .policy li { color: #4b5563; font-size: 14px; }
.policy ul { padding-left: 20px; }
.draft-note { margin: 0 0 28px; padding: 16px 20px; border-left: 3px solid #f5a623; border-radius: 0 8px 8px 0; background: #fef8ec; }
.draft-note strong { color: #92400e; }
.policy-meta { padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 800px) {
  .access-layout { grid-template-columns: 1fr; gap: 28px; width: min(520px, 100% - 40px); padding-block: 36px; }
  .access-story { padding-top: 0; }
  .access-story h1 { margin-bottom: 12px; font-size: 30px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { gap: 14px; min-height: 72px; }
  .brand img { width: 230px; }
  .home-link { font-size: 11px; }
  .access-card { padding: 24px; }
  .policy { width: calc(100% - 28px); margin-block: 28px; padding: 24px; }
}
