@charset "UTF-8";

:root {
  color-scheme: dark;
  --background: #101010;
  --foreground: #eeeeea;
  --muted: #9a9a97;
  --line: #373735;
  --surface: #191919;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--sans); font-size: 1rem; -webkit-font-smoothing: antialiased; }
::selection { background: var(--foreground); color: var(--background); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--foreground); outline-offset: 5px; }
button:focus-visible { outline: 2px solid var(--foreground); outline-offset: 4px; }
.shell { width: min(1080px, calc(100% - 96px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 2; left: 1rem; top: -5rem; padding: 1rem; background: var(--foreground); color: var(--background); }
.skip-link:focus { top: 1rem; }
.site-header { min-height: 104px; padding: 28px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 12px 2rem; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--mono); font-size: 1.0625rem; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 1px solid var(--foreground); font-size: 1rem; line-height: 1; flex-shrink: 0; }
.header-note, .eyebrow, .section-meta, .status, .date, .site-footer, .article-meta, .back-link { font-family: var(--mono); font-size: .875rem; font-weight: 400; }
.header-note { margin-left: auto; color: var(--muted); text-align: right; line-height: 1.5; }
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; padding: 74px 0 69px; align-items: end; }
.eyebrow { margin: 0 0 20px; color: var(--muted); }
.intro h1 { margin: 0; font-size: clamp(4.75rem, 8vw, 7rem); letter-spacing: -.075em; line-height: .95; font-weight: 500; }
.intro-copy { padding-bottom: 2px; min-width: 0; }
.intro-copy p { margin: 0; font-size: 1.125rem; line-height: 1.7; max-width: 400px; }
.intro-copy p + p { margin-top: 16px; color: var(--muted); font-size: 1rem; }
.writing-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 24px; padding: 27px 0 23px; border-top: 1px solid var(--foreground); }
.writing-header h2 { font-weight: 400; font-size: 1.75rem; letter-spacing: -.04em; margin: 0; }
.section-meta { color: var(--muted); margin: 0; }
.search { margin: 0 0 24px; }
.search-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; margin-bottom: 10px; }
.search label { font-family: var(--mono); font-size: .875rem; color: var(--muted); }
.search input[type="search"] { width: 100%; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 0; background: var(--surface); color: var(--foreground); font-family: var(--mono); font-size: 1rem; appearance: none; }
.search input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
.search input[type="search"]:focus { outline: none; }
.search label.hide-sealed { display: inline-flex; align-items: center; gap: 10px; min-height: 28px; cursor: pointer; }
.hide-sealed input { appearance: none; display: grid; place-items: center; flex-shrink: 0; width: 1.125rem; height: 1.125rem; margin: 0; border: 1px solid #777773; border-radius: 0; background: transparent; cursor: pointer; }
.hide-sealed input::before { content: ""; width: .25rem; height: .5rem; border: solid var(--background); border-width: 0 .125rem .125rem 0; transform: translateY(-.0625rem) rotate(45deg); opacity: 0; }
.hide-sealed input:checked { background: var(--foreground); border-color: var(--foreground); }
.hide-sealed input:checked::before { opacity: 1; }
.hide-sealed input:checked + span, .hide-sealed:hover { color: var(--foreground); }
.hide-sealed:hover input { border-color: var(--foreground); }
.hide-sealed input:focus-visible { outline: 1px solid var(--foreground); outline-offset: 3px; }
.search-empty { margin: 0; padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); line-height: 1.6; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-row { display: grid; grid-template-columns: 200px minmax(0, 1fr) 120px; column-gap: 24px; align-items: baseline; text-decoration: none; padding: 28px 0; border-top: 1px solid var(--line); transition: background-color 120ms ease; }
.post-row:hover { background: #1a1a1a; }
.date { color: var(--muted); }
.post-main { min-width: 0; }
.post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; padding-left: 12px; line-height: 1.6; }
.post-kind { padding-left: 8px; border-left: 1px solid var(--line); font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.post-title { display: block; margin-bottom: 14px; font-size: 1.3125rem; font-weight: 400; letter-spacing: -.025em; line-height: 1.35; }
.hash { font-family: var(--mono); font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; word-break: break-word; }
.post-row .hash { color: var(--muted); display: block; }
.post-row.sealed .hash { color: var(--foreground); }
.status { text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; justify-self: center; height: fit-content; padding: 5px 8px; border: 1px solid var(--line); }
.status.public { border-color: #777773; background: var(--foreground); color: #151515; }
.writing-note { border-top: 1px solid var(--line); margin: 0; padding: 24px 0 0; color: var(--muted); line-height: 1.65; font-size: .875rem; max-width: none; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 90px; padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 12px 24px; font-style: normal; }
.contact-handle { color: var(--foreground); }
.article-shell { max-width: 780px; margin: 0 auto; }
.back-link { display: inline-block; margin: 34px 0 38px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--foreground); }
.article-meta { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 14px 20px; line-height: 1.6; }
.meta-label { color: var(--muted); }
.article-meta time { color: var(--foreground); }
.article-meta .hash { font-size: .875rem; }
.proof-label { align-self: center; }
.proof-link { display: inline-flex; align-items: center; justify-self: start; gap: 8px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--line); font-size: .875rem; line-height: 1.5; text-decoration: none; }
.proof-link:hover { border-color: var(--foreground); background: var(--surface); }
.article-content { font-size: 1.125rem; line-height: 1.8; padding-top: 22px; overflow-wrap: anywhere; }
.article-content h1 { font-weight: 400; font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -.045em; line-height: 1.13; margin: 25px 0 34px; }
.article-content h2 { font-weight: 400; font-size: 1.75rem; letter-spacing: -.035em; line-height: 1.25; margin: 46px 0 20px; }
.article-content h3 { font-size: 1.25rem; font-weight: 500; margin-top: 36px; }
.article-content p { margin: 0 0 24px; }
.article-content li { padding-left: 5px; margin: 7px 0; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 28px; }
.article-content blockquote { border-left: 2px solid var(--foreground); padding: 2px 0 2px 24px; margin: 32px 0; color: #c0c0bc; }
.article-content blockquote p { margin: 0; }
.article-content pre { background: var(--surface); border: 1px solid var(--line); padding: 24px; overflow-x: auto; font-size: .875rem; line-height: 1.7; }
.article-content code { font-family: var(--mono); font-size: .875em; }
.article-content :not(pre) > code { background: #262626; padding: .15em .35em; }
.article-content img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); margin: 32px 0; }
.table-scroll { overflow-x: auto; margin-bottom: 28px; }
.article-content table { width: 100%; border-collapse: collapse; font-size: 1rem; text-align: left; }
.article-content th { font-weight: 500; }
.article-content th, .article-content td { border-bottom: 1px solid var(--line); padding: 14px 16px 14px 0; min-width: 140px; }
.article-content hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.source-link { display: inline-block; margin-top: 32px; font-family: var(--mono); font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.sealed-page { padding: 90px 0 60px; min-height: 54vh; }
.sealed-page .article-meta { padding: 30px 0; }
.error-page { padding: 70px 0; }
.error-page h1 { font-weight: 400; font-size: 3rem; letter-spacing: -.05em; }
.error-page p { color: var(--muted); line-height: 1.6; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .site-header { min-height: 80px; padding: 24px 0; }
  .header-note time { display: block; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 48px 0; }
  .intro h1 { font-size: clamp(3rem, 20vw, 5.5rem); }
  .intro-copy p { max-width: 520px; }
  .post-row { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 24px 0; }
  .post-row .post-meta { grid-column: 1; grid-row: 1; }
  .post-row .status { grid-column: 2; grid-row: 1; margin-right: 16px; }
  .post-main { grid-column: 1 / -1; }
  .post-title { font-size: 1.25rem; }
  .writing-header { align-items: center; gap: 14px; }
  .section-meta { font-size: .75rem; }
  .site-footer { margin-top: 60px; }
  .article-meta { grid-template-columns: 1fr; gap: 8px; }
  .article-meta .meta-label:not(:first-child) { margin-top: 12px; }
  .article-content { font-size: 1rem; }
  .sealed-page { padding-top: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .post-row { transition: none; }
}
