/*
  The account page in the site's own look (site/src/styles/site.css, "Instrument"): the same tokens, fonts and
  tone layers (page, tray, card), a dark band for the header and the footer. Only what this one page uses.
*/
@font-face {
  font-family: "Epilogue";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/epilogue-v20-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/mukta-v17-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Mukta";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/mukta-v17-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-v24-latin-regular.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-v24-latin-600.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --ng-bg: light-dark(#faf9f6, #060a17);
  --ng-tray: light-dark(#f2f1ec, #0d1326);
  --ng-card: light-dark(#faf9f6, #141c35);
  --ng-raised: light-dark(#eae8e1, #1c2542);
  --ng-ink: light-dark(#0b132b, #f5f3ee);
  --ng-soft: light-dark(#475069, #d5d8e1);
  --ng-muted: light-dark(#5a6178, #8c94ae);
  --ng-line: light-dark(#dcdad2, #1f2847);
  --ng-line-strong: light-dark(#7c8090, #6a7391);
  --ng-accent: #ff6308;
  --ng-accent-text: light-dark(#a8410a, #ff6308);
  --ng-primary: light-dark(#0b132b, #f5f3ee);
  --ng-on-primary: light-dark(#faf9f6, #0b132b);
  --ng-on-accent: #0b132b;
  --ng-del: light-dark(#b3261e, #ff9387);
  --ng-band: light-dark(#060a17, #0d1326);
  --ng-shadow-card: 0 1px 2px rgb(11 19 43 / 0.05), 0 12px 28px -18px rgb(11 19 43 / 0.3);
  --ng-font-display: "Epilogue", ui-sans-serif, system-ui, sans-serif;
  --ng-font-sans: "Mukta", ui-sans-serif, system-ui, sans-serif;
  --ng-font-mono: "JetBrains Mono", Menlo, Consolas, ui-monospace, monospace;
  --ng-radius-tray: 1.125rem;
  --ng-radius: 0.875rem;
  --ng-radius-small: 0.375rem;
  --ng-pill: 999px;
  --ng-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ng-bg);
  color: var(--ng-ink);
  font-family: var(--ng-font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.ink {
  color-scheme: dark;
  color: var(--ng-ink);
  background: var(--ng-band);
}

.wrap {
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.wordmark {
  font-family: var(--ng-font-mono);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ng-ink);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.who {
  font-family: var(--ng-font-mono);
  font-size: 0.8125rem;
  color: var(--ng-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  flex: 1;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

section + section {
  margin-top: 4rem;
}

.lead {
  padding: 3rem 0;
  max-width: 32rem;
}

h1,
h2 {
  font-family: var(--ng-font-display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.75rem 0 0;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3rem);
}

h2 {
  font-size: 1.75rem;
}

p {
  margin: 1rem 0 0;
}

.intro,
.lead p {
  color: var(--ng-soft);
  max-width: 34rem;
}

.label {
  font-family: var(--ng-font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ng-muted);
  margin: 0;
}

.fine,
.empty {
  font-size: 0.9375rem;
  color: var(--ng-muted);
}

.empty {
  margin: 0;
}

code {
  font-family: var(--ng-font-mono);
  font-size: 0.875em;
}

.tray {
  margin-top: 1.75rem;
  padding: 6px;
  background: var(--ng-tray);
  border-radius: var(--ng-radius-tray);
}

.card {
  border-radius: var(--ng-radius);
  padding: 1.5rem 1.75rem;
}

.card.raised {
  background: var(--ng-card);
  box-shadow: var(--ng-shadow-card);
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rows > li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.rows > li:first-child {
  padding-top: 0;
}

.rows > li:last-child {
  padding-bottom: 0;
}

.rows > li + li {
  border-top: 1px solid var(--ng-line);
}

.rows > li > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rows strong {
  font-weight: 500;
}

.rows .off strong {
  color: var(--ng-muted);
}

.create {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--ng-line);
}

.create label {
  display: block;
  font-size: 0.9375rem;
  color: var(--ng-soft);
}

.field {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

input[type="text"] {
  flex: 1 1 14rem;
  min-height: 3rem;
  padding: 0 1rem;
  font: inherit;
  color: var(--ng-ink);
  background: var(--ng-bg);
  border: 1px solid var(--ng-line-strong);
  border-radius: var(--ng-radius-small);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  border-radius: var(--ng-pill);
  border: 1px solid var(--ng-line-strong);
  color: var(--ng-ink);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 160ms var(--ng-ease),
    border-color 160ms var(--ng-ease),
    color 160ms var(--ng-ease);
}

.button:hover {
  background: var(--ng-raised);
}

.button-primary {
  background: var(--ng-primary);
  border-color: var(--ng-primary);
  color: var(--ng-on-primary);
}

.button-primary:hover {
  background: var(--ng-accent);
  border-color: var(--ng-accent);
  color: var(--ng-on-accent);
}

.button-small {
  min-height: 2.5rem;
  padding: 0 1.125rem;
  font-size: 0.875rem;
}

:focus-visible {
  outline: 2px solid var(--ng-accent);
  outline-offset: 2px;
}

.notice {
  margin: 0 0 6px;
  padding: 1.25rem 1.75rem;
  border-radius: var(--ng-radius);
}

.notice > p:first-child {
  margin-top: 0;
}

.notice-key {
  color-scheme: dark;
  background: var(--ng-band);
  color: var(--ng-ink);
}

.notice-key .fine {
  color: var(--ng-muted);
}

.notice-problem {
  margin-bottom: 2.5rem;
  background: var(--ng-tray);
  border-left: 3px solid var(--ng-del);
}

.key {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.key code {
  flex: 1 1 16rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background: rgb(255 255 255 / 0.06);
  border-radius: var(--ng-radius-small);
  overflow-wrap: anywhere;
  user-select: all;
}

.site-footer {
  padding: 1.5rem 0;
}
