* { box-sizing: border-box; }

.access-page {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.access-page header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.access-page .brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--green);
  font-size: 18px;
  font-weight: 700;
}

.access-page .brand-mark {
  width: 29px;
  height: 29px;
  display: block;
  flex: 0 0 auto;
  fill: currentColor;
}

.access-page .status {
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-2);
  font-size: 13px;
  font-weight: 600;
}

.access-page main {
  width: min(1180px, 90vw);
  margin: auto;
  padding: 56px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .8fr);
  gap: clamp(42px, 8vw, 100px);
  align-items: center;
}

.access-page .eyebrow {
  margin: 0 0 19px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.access-page h1,
.access-page h2 {
  font-family: "Cormorant Garamond", serif;
  color: var(--heading);
  font-weight: 600;
}

.access-page h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(42px, 4vw, 64px);
  line-height: .98;
  letter-spacing: -.035em;
}

.access-page .lead {
  max-width: 610px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.access-page .card {
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(28, 46, 40, .08);
}

.access-page .card h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.05;
}

.access-page .card > p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.access-page label {
  display: block;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.access-page input {
  width: 100%;
  height: 52px;
  margin: 0 0 18px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.access-page input:focus {
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(47, 107, 89, .18);
}

.access-page button {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--primary-bg);
  border-radius: 8px;
  background: var(--primary-bg);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(32, 79, 67, .18);
}

.access-page button:hover { background: var(--primary-hover); }

.access-page button:focus-visible,
.access-page input:focus-visible {
  outline: 3px solid rgba(47, 107, 89, .25);
  outline-offset: 2px;
}

.access-page .alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, #b95f4d 45%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, #b95f4d 10%, var(--paper));
  color: color-mix(in srgb, #b95f4d 78%, var(--ink));
  font-size: 14px;
  line-height: 1.45;
}

.access-page .access-request {
  margin: 18px 0 0 !important;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: 13px !important;
}

.access-page .access-request a {
  color: var(--green-2);
  font-weight: 700;
  text-underline-offset: 3px;
}

.access-page .access-request a:hover {
  color: var(--green);
}

.access-page footer {
  min-height: 92px;
  padding: 20px 5vw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 800px) {
  .access-page header { padding: 0 20px; }
  .access-page .status { display: none; }
  .access-page main { grid-template-columns: 1fr; padding: 38px 0 48px; gap: 38px; }
  .access-page h1 { font-size: 44px; }
  .access-page .card { border-radius: 16px; }
}
