@font-face {
  font-family: Roboto;
  src: url('/_astro/Roboto.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
:root {
  /* Same palette, type, and controls as the public Astro site. */
  --ink: #161b2e;
  --blue: #293ec1;
  --yellow: #fce46f;
  --paper: #f8f7f2;
  --muted: #505563;
  --rule: #cecec4;
  --danger: #a12b28;
  --pad: clamp(16px, 5.8vw, 76px);
  font-family: Roboto, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--blue);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.5; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 760; letter-spacing: -.035em; line-height: 1.1; }
h1 { font-size: clamp(36px, 5vw, 64px); }
h2 { font-size: clamp(24px, 3.2vw, 42px); }
h3 { font-size: 1.12rem; line-height: 1.35; }
a { color: var(--blue); text-underline-offset: .2em; }
button, input, textarea { font: inherit; color: inherit; }
button, summary { cursor: pointer; }
button {
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: white;
  padding: 8px 14px;
  min-height: 44px;
  font-weight: 620;
}
button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
button:disabled { opacity: .6; cursor: default; }
.primary { background: var(--yellow); color: var(--ink); border-color: transparent; }
.primary:hover:not(:disabled) { color: var(--ink); border-color: transparent; background: #fff1a7; }
.danger, .error { color: var(--danger); }
.danger:hover:not(:disabled) { color: var(--danger); border-color: var(--danger); }
:focus-visible { outline: 3px solid #b24e00; outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--ink); }
.shell { width: min(100%, 1120px); padding-inline: var(--pad); margin-inline: auto; }
.skip { position: absolute; z-index: 2; top: 8px; left: 8px; padding: 8px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header, .site-footer { background: white; }
.site-header { border-bottom: 1px solid var(--rule); }
.header-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-size: 31px; font-weight: 820; letter-spacing: -.04em; line-height: 1; color: inherit; text-decoration: none; }
.wordmark img { object-fit: contain; }
nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
nav a { color: inherit; text-decoration: none; }
nav a:hover { text-decoration: underline; }
.login-button { border: 1px solid var(--ink); border-radius: 30px; padding-inline: 20px; }
.login-button:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: white; }
.nav-link, .text-button { border: 0; background: transparent; text-align: left; color: var(--blue); }
.nav-link[aria-current] { background: var(--paper); color: var(--ink); }
.text-button { padding-inline: 0; text-decoration: underline; text-underline-offset: .23em; }
.main { flex: 1; padding-block: clamp(28px, 5vw, 64px); overflow-wrap: anywhere; }
.lead { margin-top: 12px; color: var(--muted); }
.notice { margin-bottom: 20px; padding: 12px 16px; border: 1px solid #c5ccea; border-radius: 7px; color: #232f79; background: #eef0fb; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 20px; margin-bottom: 18px; }
.balance { font-weight: 650; color: var(--blue); font-variant-numeric: tabular-nums; }
.sections, .tabs { border-bottom: 1px solid var(--rule); column-gap: clamp(14px, 3vw, 28px); }
.sections button, .tabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; padding-inline: 0; color: var(--muted); margin-bottom: -1px; }
.sections button:hover:not(:disabled), .tabs button:hover:not(:disabled) { border-color: var(--rule); }
.sections button[aria-pressed='true'], .tabs button[aria-selected='true'] { border-color: var(--blue); color: var(--blue); }
.muted { color: var(--muted); }
#list-status, #payment-status { margin-block: 20px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--rule); }
.rows li:only-child:has(> button:not(.material-row)) { border: 0; }
.material-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 20px;
  width: 100%;
  text-align: left;
  padding: 17px 0;
  border: 0;
  background: none;
}
.material-row span { font-weight: 450; font-size: .9rem; }
.trash-row, .payment-row { padding-block: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; }
.trash-row small { display: block; }
#note-view { padding-top: 10px; }
#note-meta:not(:empty) { margin: 6px 0; font-size: .9rem; }
.note-tools { margin-block: 16px; }
#note-status { margin-block: 10px; }
.tabs { display: flex; flex-wrap: wrap; margin-top: 24px; }
.reader { padding: 20px 0 0; max-width: 72ch; }
.prose { white-space: pre-wrap; line-height: 1.65; }
.study-item { padding-block: 14px; border-bottom: 1px solid var(--rule); }
.study-item :is(p, details) { margin-top: 8px; }
.study-item summary, #old-share summary { font-weight: 620; }
#old-share { margin-top: 32px; color: var(--muted); }
#old-share p { margin: 8px 0; }
.account-payments { margin-top: 32px; }
#account > .actions { margin-top: 16px; }
.form-panel, dialog { background: white; border: 1px solid var(--rule); border-radius: 12px; padding: clamp(16px, 4vw, 28px); max-width: 36rem; }
.form-panel { margin-bottom: 20px; }
.form-panel h2 { font-size: clamp(22px, 3vw, 30px); }
.form-panel h2 + p { margin-top: 8px; }
.form-panel code { display: block; margin-block: 12px; }
.form-panel form button { margin-top: 8px; }
.form-panel form + form, #email-code-cancel { margin-top: 12px; }
label { display: block; }
input:not([type='checkbox']), textarea { display: block; width: 100%; min-height: 44px; border: 1px solid #8f93a0; border-radius: 7px; padding: 8px 12px; background: white; caret-color: var(--blue); }
textarea { margin-block: 12px; resize: vertical; }
small { font-size: .86rem; }
dialog {
  color: var(--ink);
  width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  overflow: auto;
  overflow-wrap: anywhere;
}
dialog::backdrop { background: rgb(22 27 46 / .58); }
dialog h2 { font-size: clamp(22px, 4.5vw, 30px); }
dialog .actions, dialog p:not(:empty), dialog form, .form-panel form { margin-top: 14px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dialog-head form { margin: 0; }
#auth-form, .consents { display: grid; gap: 12px; }
#auth-form .primary { justify-self: start; }
.consents label { display: flex; align-items: flex-start; gap: 10px; }
.consents input { margin: .32em 0 0; width: 17px; height: 17px; flex: none; }
.auth-links { gap: 0 16px; }
.auth-links button { font-weight: 500; }
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); }
.site-footer nav { padding-block: 20px; gap: 8px 20px; font-size: .92rem; }
@media (max-width: 550px) {
  .header-inner { padding-block: 10px; }
  .header-inner nav { gap: 4px 8px; }
  .wordmark { font-size: 27px; }
  .wordmark img { width: 40px; height: 40px; }
  .nav-link { padding-inline: 8px; }
  .login-button { padding-inline: 14px; }
  .note-tools { gap: 6px; }
  .note-tools button { padding-inline: 10px; }
  .reader { font-size: 1rem; }
}
