@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Sora:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --ink: #1b2420;
  --ink-soft: #4d564f;
  --paper: #f4f5f1;
  --surface: #ffffff;
  --line: #d8dbd3;

  --seal: #2b6e55;
  --seal-soft: #e4efe9;
  --seal-deep: #1e4d3c;

  --caution: #9c5b12;
  --caution-soft: #f5ebda;

  --alert: #7a2e2e;
  --alert-soft: #f5e7e5;

  --font-display: "Fraunces", serif;
  --font-body: "Sora", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--seal);
  outline-offset: 2px;
}

nav.topnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  position: relative;
}
nav.topnav .brand { font-family: var(--font-display); font-weight: 500; font-size: 17px; text-decoration: none; }
nav.topnav .links a { margin-left: 22px; text-decoration: none; color: var(--ink-soft); }
nav.topnav .links a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  nav.topnav .links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 12px 32px 18px;
    box-shadow: 0 6px 16px rgba(27,36,32,0.08);
    z-index: 40;
  }
  nav.topnav .links.is-open { display: flex; }
  nav.topnav .links a { margin-left: 0; padding: 8px 0; width: 100%; }
}

.wrap { max-width: 560px; margin: 0 auto; padding: 60px 20px; }
.wrap-wide { max-width: 800px; margin: 0 auto; padding: 60px 20px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

h1 { font-family: var(--font-display); font-weight: 500; font-size: 40px; margin: 14px 0 14px; letter-spacing: -0.01em; }
h2 { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin: 0 0 10px; }
p.lead { color: var(--ink-soft); font-size: 15.5px; max-width: 420px; }

.btn-primary, .btn-secondary, button.btn-primary, button.btn-secondary {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(27,36,32,0.18); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: rgba(27,36,32,0.04); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }

.registry { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 1px 2px rgba(27,36,32,0.04); }
.registry-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.registry-name { font-family: var(--font-display); font-size: 26px; font-weight: 500; margin: 2px 0 4px; }
.registry-handle { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }

.seal { width: 74px; height: 74px; flex-shrink: 0; }

.status-line {
  font-size: 14.5px; color: var(--seal-deep); font-weight: 500;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 14px 0; margin-bottom: 22px; display: flex; justify-content: space-between;
}
.status-line.is-caution { color: var(--caution); }
.status-line.is-alert { color: var(--alert); }
.status-line .date { font-family: var(--font-mono); color: var(--ink-soft); font-weight: 400; font-size: 13px; }

.manifest-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 10px; }
.manifest-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.manifest-row .num { font-family: var(--font-mono); color: var(--line); font-size: 13px; width: 18px; }
.manifest-row .platform { font-weight: 500; width: 100px; }
.manifest-row .handle { flex: 1; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }

.chip { font-size: 12px; padding: 4px 10px; border-radius: 20px; font-weight: 500; white-space: nowrap; }
.chip-verified { background: var(--seal-soft); color: var(--seal-deep); }
.chip-pending { background: var(--caution-soft); color: var(--caution); }
.chip-revoked { background: var(--alert-soft); color: var(--alert); }

.registry-footnote { font-size: 13px; color: var(--ink-soft); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }

input, select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 14px; font-family: var(--font-body); background: var(--surface); color: var(--ink);
}
label.field-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.05em; color: var(--ink-soft); text-transform: uppercase; display:block; margin-bottom:6px; }
.field-row { display: flex; gap: 10px; margin-bottom: 10px; }
.field-row select { flex: 0 0 130px; }

.gate-overlay { position: fixed; inset: 0; background: rgba(27,36,32,0.5); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.gate-card { background: var(--surface); border-radius: 16px; padding: 34px; width: 320px; }

.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--seal-soft); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 500; font-size: 20px; color: var(--seal-deep); overflow:hidden; }
.avatar img, .avatar-lg img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
.footnote { font-size: 13px; color: var(--ink-soft); }
.divider { border-top: 1px solid var(--line); margin: 26px 0; padding-top: 22px; }
table.rows { width: 100%; font-size: 13.5px; border-collapse: collapse; }
table.rows td, table.rows th { padding: 10px 0; text-align: left; }
table.rows th { color: var(--ink-soft); font-weight: 400; font-size: 12.5px; border-top: none; }
table.rows tr { border-top: 1px solid var(--line); }

.registry-cover {
  height: 128px; margin: -32px -32px 0; border-radius: 16px 16px 0 0;
  background-color: var(--seal-soft); background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.registry-cover.is-fallback {
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.registry-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244,245,241,0) 40%, var(--surface) 100%); }
.registry-photo-row { display: flex; align-items: flex-end; justify-content: space-between; margin: -34px 0 20px; position: relative; z-index: 1; }
.avatar-lg { width: 84px; height: 84px; border-radius: 50%; background: var(--seal-soft); border: 4px solid var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 500; font-size: 30px; color: var(--seal-deep); overflow:hidden; }

.link-btn {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 14px; text-decoration: none; color: var(--ink); margin-top: 10px;
  transition: border-color 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease; background: var(--surface);
}
.link-btn:hover { border-color: var(--seal); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(27,36,32,0.08); }
.link-btn .icon-circle { width: 38px; height: 38px; border-radius: 50%; background: var(--seal-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.link-btn .icon-circle svg { width: 19px; height: 19px; stroke: var(--seal-deep); fill: none; }
.link-btn .link-text { flex: 1; min-width: 0; }
.link-btn .link-platform { font-weight: 500; font-size: 14.5px; }
.link-btn .link-handle { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); }

footer.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 44px 32px 28px; background: var(--surface); }
.footer-grid { max-width: 800px; margin: 0 auto; display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-col { min-width: 140px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 12px; font-weight: 500; }
.footer-col ul { list-style:none; margin:0; padding:0; }
.footer-col a { display: block; font-size: 13.5px; color: var(--ink); text-decoration: none; margin-bottom: 9px; }
.footer-col a:hover { color: var(--seal-deep); }
.footer-bottom { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--ink-soft); }

.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; }
.blog-card { text-decoration: none; color: var(--ink); display: block; }
.blog-thumb { height: 140px; border-radius: 12px; margin-bottom: 12px; border: 1px solid var(--line); position: relative; overflow: hidden; background-size:cover; background-position:center; }
.blog-thumb svg { width: 100%; height: 100%; }
.blog-card h3 { font-family: var(--font-display); font-size: 17px; font-weight: 500; margin: 0 0 6px; }
@media (max-width: 540px) { .blog-grid { grid-template-columns: 1fr; } }

.notice { padding: 12px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 18px; }
.notice-success { background: var(--seal-soft); color: var(--seal-deep); }
.notice-error { background: var(--alert-soft); color: var(--alert); }
