:root {
  color-scheme: light;
  --paper: #f8f8f2;
  --card: #fdfdfa;
  --ink: #182d35;
  --muted: #546963;
  --line: #dce4dd;
  --jade: #126054;
  --jade-dark: #0e5047;
  font-family: Aptos, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid #408f80; outline-offset: 3px; }
.masthead {
  display: flex;
  width: min(72rem, calc(100% - 6rem));
  min-height: 5.35rem;
  margin-inline: auto;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #142f32;
  font-size: 1.3rem;
  font-weight: 850;
  letter-spacing: .085em;
  white-space: nowrap;
}
.brand-tail { color: var(--jade); }
.brand-mark {
  display: grid;
  width: 2.125rem;
  height: 2.125rem;
  padding: .5rem;
  grid-template-columns: repeat(2, 1fr);
  gap: .25rem;
  border-radius: .44rem;
  background: var(--jade-dark);
}
.brand-mark i { border: solid #b0e9d6; border-width: 1.5px 0 0 1.5px; border-radius: 2px 0 0 0; }
.brand-mark i:nth-child(2) { rotate: 90deg; }
.brand-mark i:nth-child(3) { rotate: -90deg; }
.brand-mark i:nth-child(4) { rotate: 180deg; }

.entry {
  display: grid;
  width: min(64rem, calc(100% - 6rem));
  min-height: min(36rem, calc(100svh - 5.35rem));
  margin-inline: auto;
  padding-block: clamp(2rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 1fr);
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
}
.intro { align-self: center; padding-block: 1rem; }
.intro h1 {
  margin: 0;
  font-size: clamp(2.65rem, 4.5vw, 4.25rem);
  line-height: 1.13;
  letter-spacing: -.065em;
  font-weight: 800;
}
.intro h1 span { color: var(--jade-dark); }
.intro p {
  max-width: 25rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.6;
}
.access {
  padding: clamp(1.3rem, 3.3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 1rem 2.2rem #142a320e;
}
.access h2 { margin: 0 0 1.05rem; font-size: 1.45rem; font-weight: 800; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .18rem; margin-bottom: 1.35rem; }
.tab {
  min-height: 2.75rem;
  padding: .52rem .3rem;
  border: 0;
  border-bottom: 2px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
}
.tab[aria-selected="true"] { border-color: var(--jade); color: var(--jade-dark); }
.tab:hover:not(:disabled) { background: #f0f6f1; color: var(--jade-dark); }
.tab:disabled { cursor: wait; }
.access form { display: grid; align-items: start; }
.access label { margin: 0 0 .38rem; font-size: .94rem; font-weight: 750; }
.access input {
  width: 100%;
  min-height: 2.9rem;
  margin-bottom: .95rem;
  padding: .56rem .7rem;
  border: 1px solid #b9cec4;
  border-radius: .42rem;
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
}
.field-hint {
  margin: -.58rem 0 .95rem;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.45;
}
.submit {
  min-height: 2.95rem;
  margin-top: .3rem;
  padding: .56rem .7rem;
  border: 1px solid var(--jade);
  border-radius: .46rem;
  background: var(--jade);
  color: #fff;
  font-weight: 780;
  cursor: pointer;
}
.submit:hover:not(:disabled) { background: var(--jade-dark); }
.submit:disabled { opacity: .76; cursor: wait; }
.form-status {
  margin: .7rem 0 0;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
}
.form-status[data-error="true"] { color: #922d24; }

@media (max-width: 740px) {
  .masthead, .entry { width: calc(100% - 2.25rem); }
  .masthead { min-height: 4.25rem; }
  .entry {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1.55rem;
  }
  .intro { padding: 0; }
  .intro h1 { font-size: clamp(2.12rem, 7vw, 3rem); }
  .intro p { margin-top: .78rem; font-size: .94rem; }
}
