:root {
  color-scheme: light;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  --ink: #17212f;
  --muted: #526173;
  --rule: #dce2e8;
  --accent: #185c9e;
  --soft: #f5f7f9;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.5;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  color: var(--ink);
}
button,
input,
textarea {
  font: inherit;
}
button,
nav a,
summary {
  min-height: 44px;
}
summary {
  cursor: pointer;
  padding-block: 10px;
}
button {
  padding: 10px 16px;
  color: var(--ink);
  background: white;
  border: 1px solid #b1bdca;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background: var(--soft);
}
button.primary {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
button.primary:hover {
  background: #293b51;
}
:is(a, button, input, textarea, summary, [tabindex="-1"]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
input,
textarea {
  width: 100%;
  padding: 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #a6b3c1;
  border-radius: 4px;
  min-width: 0;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-weight: 600;
  margin: 16px 0;
}
label input,
label textarea {
  display: block;
  margin-top: 6px;
  font-weight: 400;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 400;
}
.check input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin: 2px 0 0;
  accent-color: var(--accent);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  padding-block: 16px;
  gap: 24px;
}
.wordmark {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
  color: var(--ink);
  text-decoration: none;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
nav a {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
h1,
h2,
h3 {
  font-family: inherit;
  line-height: 1.2;
}
h1 {
  font-size: clamp(28px, 3vw, 32px);
  letter-spacing: -0.025em;
  margin: 10px 0 16px;
}
h2 {
  font-size: 20px;
  margin-top: 0;
}
h3 {
  font-size: 18px;
}
p {
  margin: 10px 0;
}
main {
  padding-block: 20px 48px;
}
.page-intro {
  margin: 18px 0 24px;
  max-width: 760px;
}
.page-intro > p:last-child,
.summary {
  font-size: 16px;
}
.tag {
  font-size: 14px;
  color: var(--muted);
}
.muted {
  font-size: 14px;
  color: var(--muted);
}
.notice {
  padding: 14px 18px;
  border: 1px solid var(--rule);
  background: var(--soft);
  border-radius: 4px;
  font-size: 14px;
}
.notice p {
  max-width: 100ch;
}
.error {
  border: 2px solid #9d2924;
}
#status:empty {
  display: none;
}
#identity {
  padding-bottom: 24px;
}
.workspace {
  display: grid;
  gap: 24px;
  align-items: start;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  margin-top: 24px;
}
.panel {
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
  min-width: 0;
}
.source-card {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--rule);
  background: var(--soft);
  border-radius: 4px;
}
.source-card #source-host {
  font-weight: bold;
}
.url {
  overflow-wrap: anywhere;
  font-size: 14px;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-block: 18px;
}
.actions a {
  padding-block: 10px;
}
.empty {
  padding-block: 18px;
  color: var(--muted);
}
.summary {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
/* Quiet profile: compact identity, fine dividers, one restrained accent. */
.profile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin: 28px 0 8px;
}
.profile-head > :first-child {
  min-width: 0;
}
.profile-id {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
}
.profile-text {
  min-width: 0;
}
/* Focus moves here on load for screen readers; a ring on static text is noise. */
.profile-id h1:focus {
  outline: none;
}
.profile-id h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.profile-id .summary {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--muted);
}
.profile-actions {
  display: flex;
  flex: none;
  gap: 8px;
}
.profile-actions button {
  padding: 6px 14px;
  font-size: 14px;
}
.profile-work {
  max-width: 760px;
}
.profile-work h2 {
  margin: 28px 0 0;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.work-entries {
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.work-entries > li {
  border-bottom: 1px solid var(--rule);
}
.work-entry {
  padding: 20px 0;
  overflow-wrap: anywhere;
}
.work-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
.work-link {
  display: inline-block;
  padding-block: 8px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.4;
}
.work-link:hover {
  color: var(--ink);
}
.work-entry p {
  margin: 6px 0 0;
  max-width: 68ch;
}
.work-entry .work-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: 13px;
}
/* Keep the sharer's own line breaks in every view, editor previews included. */
.public-text {
  white-space: pre-wrap;
}
.work-claim {
  font-size: 16px;
}
.work-entry .actions {
  margin-block: 14px 0;
}
.self-reported {
  display: inline-block;
  padding: 0 7px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  vertical-align: 1px;
}
.work-note {
  color: var(--muted);
  font-size: 14px;
}
.work-note-label {
  margin-right: 8px;
  font-weight: 600;
}
.about-record {
  max-width: 760px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
#share-panel {
  margin-top: 30px;
}
#share-url {
  font-size: 14px;
  overflow-wrap: anywhere;
}
footer {
  padding-block: 24px 40px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px;
  background: var(--ink);
  color: white;
  z-index: 1;
}
.skip:focus {
  top: 10px;
  color: white;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 16px;
  }
  nav {
    gap: 20px;
  }
  .panel,
  .notice {
    padding: 18px;
  }
  .actions button {
    flex-grow: 1;
  }
  .profile-head {
    flex-direction: column;
    gap: 16px;
    margin-block: 20px 4px;
  }
  .profile-id h1 {
    font-size: 26px;
  }
  .avatar {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }
}
