/* CardPress palette, sampled from the supplied 512px logo. */
:root {
  --blue: #0973b3;
  --blue-mid: #065b96;
  --blue-dark: #03457a;
  --black: #000000;
  --white: #ffffff;
  --paper: #ffffff;
  --ink: #20262b;
  --muted: #596873;
  --line: #dce3e8;
  --soft: #f3f7fa;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.6 var(--sans); }
a { color: var(--blue-mid); text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
button, a, input, textarea { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.18; letter-spacing: -1px; font-weight: 650; color: var(--blue-dark); margin-bottom: 20px; }
h2 { font-size: 25px; font-weight: 600; line-height: 1.3; letter-spacing: -.4px; margin-bottom: 12px; }
h3 { font-size: 18px; line-height: 1.4; margin-bottom: 8px; }
.site-header, main, footer { width: 100%; max-width: 1160px; padding-inline: 36px; margin-inline: auto; }
.site-header { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 24px; font-weight: 650; letter-spacing: -.65px; color: var(--blue-dark); text-decoration: none; white-space: nowrap; }
.brand-icon { display: block; object-fit: contain; flex-shrink: 0; }
nav { display: flex; gap: 26px; align-items: center; }
nav a { font-size: 14px; text-decoration: none; color: #424c54; padding: 10px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
nav a:hover, nav a[aria-current] { color: var(--blue-mid); border-bottom-color: var(--blue); }
nav .github { margin-left: 8px; }
.hero { display: grid; grid-template-columns: 1fr 200px; gap: 70px; align-items: center; padding: 52px 22px 54px 0; }
.hero-logo { width: 200px; height: 200px; object-fit: contain; }
.eyebrow { color: var(--blue-mid); font-size: 11px; font-weight: 650; letter-spacing: .8px; margin-bottom: 14px; }
.hero-copy { font-size: 16px; color: var(--muted); margin-bottom: 22px; }
.text-link { display: inline-block; font-size: 13px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.studio { border-top: 1px solid var(--line); padding-top: 27px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.section-caption { color: var(--muted); font-size: 12px; }
.studio-grid { display: grid; grid-template-columns: 335px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.controls { padding: 26px; border-right: 1px solid var(--line); }
fieldset { margin: 0 0 24px; padding: 0; border: 0; }
legend { font-size: 14px; font-weight: 650; margin-bottom: 14px; padding: 0; color: var(--blue-dark); }
label { font-size: 12px; }
.username-input { display: flex; align-items: center; border: 1px solid #bac7d1; border-radius: 4px; background: white; margin-top: 7px; }
.username-input > span { padding-left: 12px; color: var(--muted); }
.username-input input { width: 100%; min-width: 0; border: 0; background: none; padding: 10px; font-size: 14px; color: var(--ink); }
.hint { color: var(--muted); font-size: 11px; line-height: 1.6; margin: 9px 0 0; }
.color-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.color-control { display: flex; gap: 8px; align-items: center; cursor: pointer; font-size: 11px; line-height: 1.4; }
.color-control input { appearance: none; border: 1px solid #c6d0d8; border-radius: 4px; width: 30px; height: 30px; background: white; padding: 3px; flex-shrink: 0; cursor: pointer; }
.color-control input::-webkit-color-swatch-wrapper { padding: 0; }
.color-control input::-webkit-color-swatch { border: 0; border-radius: 1px; }
.color-control input::-moz-color-swatch { border: 0; }
.color-control small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.toggle { display: flex; align-items: center; justify-content: space-between; position: relative; margin-bottom: 12px; cursor: pointer; }
.toggle input { position: absolute; right: 0; width: 32px; height: 22px; margin: 0; opacity: 0; }
.toggle-track { display: block; width: 30px; height: 18px; background: #aab6bf; border-radius: 20px; pointer-events: none; }
.toggle-track:before { content: ''; display: block; width: 12px; height: 12px; margin: 3px; background: white; border-radius: 50%; transition: transform .12s; }
.toggle input:checked + .toggle-track { background: var(--blue-mid); }
.toggle input:checked + .toggle-track:before { transform: translateX(12px); }
.toggle input:focus-visible + .toggle-track { outline: 3px solid var(--blue); outline-offset: 4px; }
.refresh-option { display: flex; align-items: center; gap: 7px; font-size: 11px; margin-bottom: 14px; }
.refresh-option input { accent-color: var(--blue-mid); }
.primary { display: flex; align-items: center; justify-content: space-between; width: 100%; background: var(--blue-mid); border: 1px solid var(--blue-mid); border-radius: 4px; color: white; font-size: 13px; font-weight: 600; padding: 11px 14px; }
.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.primary > span { font-size: 18px; line-height: 1; }
.preview-panel { display: flex; flex-direction: column; min-width: 0; padding: 26px; background: #fbfcfd; }
.preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.preview-heading .eyebrow { margin: 0; color: var(--muted); font-size: 11px; letter-spacing: .4px; }
.live-label { font-size: 9px; letter-spacing: .3px; color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 3px 6px; white-space: nowrap; }
.card-stage { display: flex; align-items: center; justify-content: center; min-height: 300px; padding: 22px; margin-top: 17px; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); }
.card-stage img#card-preview { display: block; max-width: 100%; height: auto; }
.empty-preview { text-align: center; }
.preview-logo { opacity: .8; margin-bottom: 14px; }
.empty-preview h3 { color: var(--blue-dark); font-size: 18px; font-weight: 500; }
.empty-preview p { font-size: 12px; color: var(--muted); margin-bottom: 0; }
.status { color: var(--muted); font-size: 12px; min-height: 20px; margin: 12px 0 22px; }
.status.error { color: #a02c21; }
.share { margin-bottom: 24px; }
.share-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; }
.share-heading h3 { font-size: 18px; margin-bottom: 0; }
.share-heading a { font-size: 12px; cursor: pointer; }
.tabs { display: flex; gap: 25px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 12px; padding: 8px 0; }
.tabs button[aria-selected=true] { color: var(--blue-mid); border-bottom-color: var(--blue); }
textarea { width: 100%; background: white; color: #344b5c; border: 1px solid #c6d1da; border-radius: 4px; margin-top: 14px; padding: 12px; font: 11px/1.7 ui-monospace, monospace; resize: vertical; overflow-wrap: anywhere; }
.copy-button, .secondary { border: 1px solid #b5c4d0; border-radius: 4px; background: white; color: var(--blue-mid); font-size: 12px; padding: 7px 12px; }
.copy-button { margin-top: 5px; }
.copy-button:hover, .secondary:hover { background: var(--soft); }
.preview-footnote { margin-top: auto; border-top: 1px solid var(--line); padding-top: 18px; }
.preview-footnote p { font-size: 11px; color: var(--muted); margin: 0; }
.social-section { border-top: 1px solid var(--line); padding-block: 32px; margin-top: 38px; }
.social-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.social-heading h2 { font-size: 22px; margin-bottom: 6px; }
.social-heading p { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.social-heading p span { color: var(--blue-mid); }
.social-placeholder { display: flex; align-items: center; gap: 17px; padding: 22px; margin-top: 23px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); }
.social-placeholder p { font-size: 13px; margin: 0; }
.social-placeholder img { flex-shrink: 0; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 20px; }
.post-grid blockquote { margin: 0; min-width: 0; }
.post-fallback { padding: 20px; border: 1px solid var(--line); border-radius: 5px; background: white; font-size: 13px; }
.post-fallback p { margin-bottom: 18px; overflow-wrap: anywhere; }
.post-author { color: var(--muted); font-size: 12px; }
.post-fallback > a { font-size: 12px; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-block: 25px 32px; }
footer .wordmark { font-size: 19px; gap: 9px; }
footer p { font-size: 12px; color: var(--muted); margin: 0; }
footer > a:last-child { font-size: 12px; }
.page-intro { padding-block: 44px 30px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.page-intro h1 { font-size: 38px; margin-bottom: 10px; }
.page-intro p { color: var(--muted); margin-bottom: 0; }
.prose { max-width: 820px; margin-bottom: 50px; }
.prose h2 { font-size: 23px; margin-top: 32px; margin-bottom: 13px; }
.prose p, .prose li { color: #485963; }
.prose li { margin-bottom: 8px; }
.prose pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 18px; font-size: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; }
.prose code { font-size: .9em; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--blue-dark); font-size: 12px; }
.contributors-section { padding-bottom: 28px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.contributors-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.contributor-card { display: flex; align-items: center; gap: 18px; padding: 23px; border: 1px solid var(--line); border-radius: 5px; }
.contributor-card > img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.contributor-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 3px; overflow-wrap: anywhere; }
.contributor-card p { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.contributor-card a, .contributor-card span { font-size: 12px; }
.contributor-initial { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; background: var(--soft); border-radius: 50%; }
.source-note { margin: 13px 0 0; color: var(--muted); font-size: 11px; }
.community-section { margin-bottom: 45px; }
#users-status { color: var(--muted); font-size: 13px; }
.users-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.user-card { padding: 20px; border: 1px solid var(--line); border-radius: 5px; }
.user-card h2 { font-size: 19px; margin-bottom: 7px; }
.user-card p { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.user-card a { font-size: 12px; margin-right: 15px; }
.pagination { display: flex; gap: 15px; margin-top: 24px; }
.changelog { max-width: 920px; margin-bottom: 50px; }
.release { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 25px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.release-meta h2 { font-size: 23px; color: var(--blue-dark); margin-bottom: 6px; }
.release-meta time, .release-meta p { font-size: 12px; color: var(--muted); }
.release ul { padding-left: 18px; margin: 0; font-size: 14px; }
.release li { padding-left: 3px; margin-bottom: 8px; }
.release li:last-child { margin-bottom: 0; }
.current-release { padding: 23px; background: var(--soft); border: 1px solid #c6d9e7; border-left: 3px solid var(--blue); border-radius: 4px; }
.release-badge { display: block; width: fit-content; font-size: 10px; font-weight: 500; letter-spacing: 0; color: var(--blue-mid); border: 1px solid #b3cada; border-radius: 3px; padding: 2px 6px; margin-top: 8px; }
.changelog-source { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 30px 0 0; }
.changelog-source p { font-size: 12px; color: var(--muted); margin: 0; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; left: 15px; top: 15px; z-index: 10; padding: 15px; background: white; }
@media (max-width: 960px) {
  .site-header, main, footer { padding-inline: 25px; }
  nav { gap: 20px; }
  nav a { font-size: 13px; }
  .hero { gap: 35px; grid-template-columns: 1fr 170px; }
  .hero-logo { width: 170px; height: 170px; }
  .studio-grid { grid-template-columns: 300px minmax(0,1fr); }
  .controls, .preview-panel { padding: 22px; }
  .card-stage { min-height: 270px; padding: 15px; }
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-header, main, footer { padding-inline: 20px; }
  .site-header { flex-wrap: wrap; gap: 10px; padding-top: 17px; padding-bottom: 8px; }
  .wordmark { font-size: 23px; }
  nav { width: 100%; justify-content: space-between; gap: 10px; }
  nav a { font-size: 12px; padding-block: 10px; }
  nav .github { margin-left: 0; }
  .hero { padding: 32px 0; gap: 24px; grid-template-columns: 1fr 110px; }
  .hero-logo { width: 110px; height: 110px; }
  h1 { font-size: 32px; letter-spacing: -.6px; }
  .hero-copy { font-size: 14px; }
  .hero-copy br { display: none; }
  .section-heading h2 { font-size: 23px; }
  .section-caption { display: none; }
  .studio-grid { grid-template-columns: minmax(0,1fr); }
  .controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .color-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .visibility { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
  .visibility legend { grid-column: 1 / -1; }
  .card-stage { min-height: 240px; }
  .social-heading { align-items: start; }
  .social-heading > .text-link { flex-shrink: 0; }
  .post-grid { grid-template-columns: minmax(0,1fr); }
  .contributors-grid { grid-template-columns: minmax(0,1fr); }
  .users-grid { grid-template-columns: 1fr 1fr; }
  footer { flex-wrap: wrap; }
  footer p { order: 3; width: 100%; }
  .release { grid-template-columns: 150px minmax(0,1fr); gap: 18px; }
}
@media (max-width: 480px) {
  .hero { grid-template-columns: minmax(0,1fr) 76px; gap: 13px; }
  .hero-logo { width: 76px; height: 76px; align-self: start; margin-top: 32px; }
  h1 { font-size: 29px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .3px; }
  .hero-copy { font-size: 13px; }
  .color-grid { grid-template-columns: 1fr 1fr; }
  .visibility { display: block; }
  .preview-panel, .controls { padding: 21px 18px; }
  .card-stage { min-height: 210px; padding: 10px; }
  .preview-heading { gap: 8px; }
  .live-label { font-size: 8px; }
  .social-heading { display: block; }
  .social-heading > a { margin-top: 12px; }
  .social-placeholder { padding: 16px; gap: 12px; }
  .social-placeholder p { font-size: 12px; }
  .social-placeholder img { width: 40px; height: 40px; }
  .page-intro h1 { font-size: 30px; }
  .section-heading { align-items: start; }
  .section-heading > a { font-size: 11px; flex-shrink: 0; }
  .section-heading p { font-size: 12px; }
  .contributor-card { padding: 18px; gap: 14px; }
  .contributor-card h3 { font-size: 16px; }
  .contributor-card img { width: 60px; height: 60px; }
  .users-grid { grid-template-columns: minmax(0,1fr); }
  .release { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .release-meta h2 { font-size: 22px; }
  .release-badge { display: inline-block; margin: 0 0 0 9px; vertical-align: middle; }
  .release-meta p { margin-bottom: 0; }
  .release ul { font-size: 13px; }
  .changelog-source { align-items: start; }
  .changelog-source > a { flex-shrink: 0; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *:before { animation: none !important; transition: none !important; } }
