:root {
  color-scheme: light;
  --paper: #f4f2e9;
  --ink: #203c32;
  --muted: #59675c;
  --line: #c8cebf;
  --accent: #b7cf7a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; }
::selection { background: var(--accent); color: var(--ink); }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
header, footer { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
header { margin: 0 6vw; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 1.8rem; letter-spacing: -.04em; font-weight: 650; text-decoration: none; }
.wordmark span { color: #647e36; }
.domain { color: var(--muted); font-size: .875rem; }
main { width: min(100% - 12vw, 76rem); margin: auto; padding: clamp(3rem, 7vh, 7rem) 0; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 8vw, 6rem); font-weight: 400; line-height: 1.02; letter-spacing: -.04em; margin: 0; }
h1 em { font-weight: 400; }
.intro { margin: 2rem 0 3rem; }
.intro p { color: var(--muted); line-height: 1.7; margin: .6rem 0 0; }
.intro .announcement { color: var(--ink); font-weight: 600; font-size: 1.2rem; }
.connection { max-width: 42rem; display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
h2 { font-size: 1rem; font-weight: 600; margin: 0; }
.connection p { font-size: .875rem; color: var(--muted); line-height: 1.6; margin: .4rem 0 0; }
button { background: var(--ink); color: var(--paper); font: inherit; font-size: .875rem; font-weight: 500; border: 1px solid var(--ink); border-radius: 2px; padding: .9rem 1.15rem; min-height: 44px; cursor: pointer; }
button span { margin-left: 1rem; }
button:hover { background: #365445; }
button:disabled { cursor: wait; opacity: .7; }
#connection-result { grid-column: 1 / -1; margin-top: 1rem; min-height: 2.8em; font-variant-numeric: tabular-nums; }
#connection-result[data-state="success"] { color: #2c5c39; }
#connection-result[data-state="error"] { color: #9a3528; }
footer { margin: 0 6vw; padding: 1.5rem 0; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
@media (max-width: 520px) {
  header { padding: 1.4rem 0; }
  .domain { font-size: .75rem; }
  .connection { grid-template-columns: 1fr; gap: 1rem; }
  button { justify-self: start; }
  #connection-result { margin-top: 0; }
  footer { align-items: start; flex-direction: column; gap: .7rem; }
}
