@layer base, parts;

@layer base {
  :root {
    color-scheme: light;
    --surface: #f5f7fc;
    --paper: #fff;
    --ink: #152842;
    --muted: #495d76;
    --line: #c7d4e5;
    --blue: #3459d2;
    --tint: #e4edff;
    --danger: #9c2b35;
    font-family: "Instrument Sans", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--surface);
  }
  * { box-sizing: border-box; }
  body { margin: 0; min-height: 100vh; }
  input, button { font: inherit; }
  [hidden] { display: none !important; }
  :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
}

@layer parts {
  .site-header { max-width: 72rem; margin-inline: auto; padding: 1.4rem clamp(1rem, 5vw, 4rem); }
  .wordmark { display: inline-flex; align-items: center; gap: .55rem; font-size: 1rem; font-weight: 750; letter-spacing: .12em; }
  .wordmark-symbol { display: grid; place-items: center; width: 2rem; height: 2rem; color: #fff; background: var(--ink); border-radius: .35rem; letter-spacing: normal; }
  .account {
    display: grid;
    grid-template-columns: .5rem minmax(0, 1fr);
    width: min(37rem, calc(100% - 2rem));
    margin: clamp(.5rem, 8vh, 6rem) auto 2rem;
    border: 1px solid var(--line);
    border-radius: 1.05rem;
    background: var(--paper);
    box-shadow: 0 1.2rem 3rem rgb(21 40 66 / 8%);
    overflow: clip;
  }
  .account-rail { background: linear-gradient(to bottom, var(--blue) 0 24%, #7393eb 24% 43%, var(--tint) 43%); }
  .account-content { padding: clamp(1.25rem, 7vw, 3.5rem); }
  h1 { margin: 0; font: 750 clamp(1.95rem, 5.9vw, 3.3rem)/1.08 "Instrument Sans", "Segoe UI", Arial, sans-serif; letter-spacing: -.055em; }
  p { margin: .75rem 0 0; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
  form, .confirm-actions { display: grid; gap: .45rem; margin-top: 1.7rem; }
  label { margin-top: .45rem; font-size: .88rem; font-weight: 700; }
  input, button { min-height: 2.85rem; border-radius: .5rem; }
  input { width: 100%; min-width: 0; padding: .55rem .75rem; border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
  button { cursor: pointer; border: 1px solid transparent; background: var(--blue); color: #fff; font-weight: 700; padding: .55rem .85rem; }
  button:hover { background: #254ac3; }
  button:disabled { cursor: wait; opacity: .65; }
  form > button { margin-top: .75rem; }
  .secondary { background: var(--paper); color: var(--ink); border-color: var(--line); }
  .secondary:hover { background: var(--tint); }
  .message:not(:empty), .error:not(:empty) { padding: .65rem .8rem; border-radius: .45rem; }
  .message:not(:empty) { background: var(--tint); color: var(--ink); }
  .error:not(:empty) { background: #fff0f0; color: var(--danger); }
  .message:empty, .error:empty { margin: 0; }
}
