/* cfo.org */

:root {
  --bg: #0f0e14;
  --text: #d4d1e0;
  --text-2: #b8b5c4;
  --muted: #8a8598;
  --tert: #6a6578;
  --border: #2a2738;
  --accent: #a89cd9;
  --deep: #4a4560;

  --serif: "Source Serif 4", "Source Serif Pro", "Iowan Old Style", "Apple Garamond", Baskerville, "Times New Roman", Georgia, serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Source Serif 4"), local("Source Serif Pro");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local("Source Serif 4 Italic"), local("Source Serif Pro Italic");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("JetBrains Mono"), local("IBM Plex Mono");
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
}

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px;
}

.wide {
  max-width: 720px;
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 0.5px dotted transparent;
  transition: border-color 120ms linear;
}
a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

p {
  margin: 0 0 1.4em;
}

em, i { font-style: italic; }

hr {
  border: 0;
  text-align: center;
  color: var(--tert);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  margin: 48px 0;
}
hr::before { content: "· · · · ·"; }

/* page frame */

.frame {
  border: 0.5px solid var(--border);
  margin: 24px auto;
  max-width: 760px;
}

.bar {
  padding: 10px 24px;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tert);
  letter-spacing: 0.1em;
}

.bar.footer {
  border-bottom: 0;
  border-top: 0.5px solid var(--border);
  color: var(--deep);
  font-size: 10px;
}

.section {
  padding: 48px 56px;
  border-top: 0.5px solid var(--border);
}
.section:first-of-type { border-top: 0; }

@media (max-width: 600px) {
  .section { padding: 32px 24px; }
  .bar { padding: 10px 16px; }
}

.label {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tert);
  letter-spacing: 0.2em;
  text-align: center;
  margin: 0 0 24px;
}

.label-wrap::before { content: "— "; }
.label-wrap::after { content: " —"; }

.dots {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tert);
  letter-spacing: 0.3em;
  text-align: center;
  margin: 0 0 28px;
}
.dots::before { content: "· · · · ·"; }

/* sigil */

.sigil {
  width: 48px;
  height: 48px;
  margin: 0 auto 32px;
  border: 0.5px solid var(--deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* hero */

.hero {
  text-align: center;
  padding: 72px 56px 48px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.3;
  font-style: italic;
  color: var(--text);
  max-width: 520px;
  margin: 0 auto 20px;
}

.hero .lede {
  font-size: 15px;
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.8;
  font-style: italic;
}

.address {
  text-align: center;
  padding: 0 56px 56px;
}

.address .plate {
  display: inline-block;
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
  padding: 20px 40px;
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0.05em;
}

.address .dot { color: var(--tert); }

.address .fifth {
  color: var(--accent);
  border-bottom: 0.5px dotted var(--tert);
  padding-bottom: 2px;
  animation: fifth-pulse 4s ease-in-out infinite alternate;
  display: inline-block;
}

@keyframes fifth-pulse {
  from { opacity: 0.7; }
  to   { opacity: 1.0; }
}

/* record grid on homepage */

.record-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  font-size: 14px;
  line-height: 1.8;
}
@media (max-width: 600px) {
  .record-grid { grid-template-columns: 1fr; gap: 24px; }
}

.record-grid .date {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tert);
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}

.record-grid .body {
  color: var(--text-2);
  font-style: italic;
}

/* pull quote */

.pullquote {
  text-align: center;
}
.pullquote .q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text);
  max-width: 480px;
  margin: 0 auto 16px;
}
.pullquote .attr {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tert);
  letter-spacing: 0.2em;
}

/* archive list */

.archive-list {
  max-width: 420px;
  margin: 0 auto;
}

.archive-list .entry {
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 13px;
}

.archive-list .entry:last-child { border-bottom: 0; }

.archive-list .name { color: var(--text-2); }
.archive-list .status { color: var(--deep); white-space: nowrap; }
.archive-list .status.partial { color: var(--accent); }

.archive-list .entry.muted {
  font-size: 12px;
}
.archive-list .entry.muted .name,
.archive-list .entry.muted .status {
  color: var(--tert);
}

.archive-list a {
  color: inherit;
}
.archive-list a:hover {
  color: var(--accent);
}

/* subscribe form */

.corr {
  text-align: center;
}
.corr p {
  font-size: 14px;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 24px;
  line-height: 1.8;
  font-style: italic;
}
.corr form {
  display: flex;
  gap: 8px;
  max-width: 360px;
  margin: 0 auto;
}
.corr input[type="text"] {
  flex: 1;
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 13px;
  border-radius: 2px;
  outline: none;
}
.corr input[type="text"]:focus {
  border-color: var(--deep);
}
.corr button {
  background: transparent;
  color: var(--accent);
  border: 0.5px solid var(--deep);
  padding: 0 18px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  cursor: pointer;
}
.corr button:hover {
  border-color: var(--accent);
}

/* record (blog) */

article.record {
  font-size: 16px;
  line-height: 1.85;
}

article.record h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 30px;
  color: var(--text);
  margin: 0 0 12px;
  text-align: center;
}

article.record .meta {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--tert);
  margin-bottom: 40px;
}

article.record p {
  color: var(--text-2);
}

article.record .sign {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--tert);
  letter-spacing: 0.05em;
  font-style: normal;
  line-height: 2;
}

/* members */

.roster {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px;
}

.roster-head {
  text-align: center;
  margin-bottom: 48px;
}
.roster-head .sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  grid-auto-flow: dense;
}

.card {
  border: 0.5px solid var(--border);
  padding: 18px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.card.tall { grid-row: span 2; }

.card .port {
  font-family: var(--mono);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.05em;
  display: inline-block;
  border-bottom: 0.5px dotted transparent;
  cursor: help;
  position: relative;
}

.card .port[data-tt]:hover::after {
  content: attr(data-tt);
  position: absolute;
  top: -26px;
  left: 0;
  background: var(--bg);
  border: 0.5px solid var(--border);
  padding: 3px 8px;
  font-size: 10px;
  color: var(--text-2);
  white-space: nowrap;
  z-index: 2;
}

.card .img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #16141f;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.card .img img, .card .img svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card .withheld {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tert);
  letter-spacing: 0.15em;
  padding: 32px 8px;
  text-align: center;
  line-height: 1.6;
}

.card .online {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  padding: 40px 8px;
  text-align: center;
}

.card .k {
  color: var(--tert);
  display: inline-block;
  width: 60px;
}
.card .v {
  color: var(--text-2);
}

.card .note {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
}

/* contact */

.contact-page {
  text-align: center;
  padding: 96px 24px;
}
.contact-page .addr {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 48px;
}
.contact-page .addr .unknown { color: var(--accent); }

.contact-page form {
  display: inline-flex;
  gap: 8px;
}
.contact-page input {
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 13px;
  border-radius: 2px;
  outline: none;
  width: 120px;
  text-align: center;
}

.contact-page .out {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  min-height: 1.4em;
}
.contact-page input:focus { border-color: var(--deep); }
.contact-page button {
  background: transparent;
  color: var(--accent);
  border: 0.5px solid var(--deep);
  padding: 0 18px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  cursor: pointer;
}

/* manifesto */

.manifesto {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 24px;
  text-align: center;
}
.manifesto p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--text);
  max-width: 480px;
  margin: 0;
  line-height: 1.6;
}

/* vault */

.vault {
  text-align: center;
  padding: 48px 24px;
}
.vault .scan {
  display: inline-block;
  border: 0.5px solid var(--border);
  padding: 8px;
  background: #1a1722;
  max-width: 640px;
}
.vault svg {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(0.9);
}
.vault .caption {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tert);
  letter-spacing: 0.15em;
  margin-top: 16px;
}

/* 1997 log */

.log {
  max-width: 640px;
  margin: 48px auto;
  padding: 0 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-2);
}
.log .head {
  text-align: center;
  margin-bottom: 32px;
  color: var(--tert);
  letter-spacing: 0.15em;
  font-size: 10px;
}
.log .line { white-space: pre-wrap; }
.log .ts { color: var(--tert); }
.log .nick { color: var(--deep); }
.log .redact { color: var(--deep); }

/* 404 */

.notfound {
  text-align: center;
  padding: 96px 24px;
}
.notfound h1 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  color: var(--text);
  margin: 0 0 32px;
}
.notfound p {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-2);
  max-width: 440px;
  margin: 0 auto 16px;
  line-height: 1.8;
}
.notfound .code {
  margin-top: 48px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--tert);
}

/* archive page */

.archive-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 64px 24px;
}
.archive-page h1 {
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--tert);
  letter-spacing: 0.2em;
  font-weight: 400;
  margin-bottom: 40px;
}

/* login */

.login-page {
  text-align: center;
  padding: 96px 24px;
}
.login-page form {
  display: inline-flex;
  gap: 8px;
}
.login-page input {
  background: transparent;
  border: 0.5px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 13px;
  border-radius: 2px;
  outline: none;
  width: 320px;
  text-align: center;
}
