/* Absolutely Nothing. One profile window on a tape field, drawn to art/ref/carrd-profile.jpg.
   Every number here comes from the teardown in NOTE.md: window 76.7% of the frame, bar 3.6 x the
   mono size, columns 42 / 52 with a 2.7% gutter, type ratio 2.3 between the wordmark and the rows. */

@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martian-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/fonts/martian-mono-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Chillax";
  src: url("/fonts/chillax-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Chillax";
  src: url("/fonts/chillax-medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* palette, sampled off his file */
  --field: #05080600;
  --black: #050806;
  --window: #080c08;
  --sunk: #040605;
  --ink: #cfdfcf;
  --ink-dim: #9fb3a0;
  --line: #748a75;
  --line-soft: #46563f;
  --sage: #8fa88f;
  --sage-deep: #566e56;
  --sage-dark: #44563f;
  --paper: #ccd2ca;
  --paper-dim: #9aa39a;

  /* one type scale, nothing off it */
  --t-xs: 14px;
  --t-body: 16px;
  --t-s: 15px;
  --t-m: 17px;
  --t-l: 20px;
  --t-xl: 26px;
  --t-2xl: 34px;

  /* one spacing scale */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s7: 28px; --s8: 32px; --s9: 40px; --s10: 56px; --s11: 72px;

  --page: 1100px;
  --bar: 56px;
  --radius: 10px;

  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --display: "Chillax", "Martian Mono", sans-serif;
}

* { box-sizing: border-box; }

/* a display rule on a class beats [hidden]: say it once, loudly (LESSONS 14.3) */
[hidden] { display: none !important; }

html { overflow-x: clip; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--t-s);
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

/* ---------- the field: more of the world, blurred, on its own clock ---------- */
.field {
  position: fixed; inset: -6%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, #0c130c 0%, #060a06 46%, #020403 100%);
  overflow: hidden;
}
.field-plate {
  position: absolute; inset: -4%;
  background-image: url("/img/field-01.webp");
  background-size: cover;
  background-position: center;
  filter: blur(7px) saturate(0.9) brightness(1.25);
  opacity: 0.8;
  animation: drift 96s linear infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(-1.4%, -1%, 0) scale(1.06); }
  to   { transform: translate3d(1.4%, 1.2%, 0) scale(1.1); }
}
.scan {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.30) 0 1px, rgba(0, 0, 0, 0) 1px 4px);
  mix-blend-mode: multiply;
}

/* ---------- the page column ---------- */
.page {
  position: relative;
  z-index: 2;
  width: min(var(--page), 100% - 64px);
  margin: 0 auto;
  padding: var(--s10) 0 var(--s9);
}

/* ---------- the window ---------- */
.window {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 150px);
  border: 1px solid var(--line-soft);
  background: var(--window);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 24px 60px rgba(0, 0, 0, 0.72);
}
.window::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background-image: url("/img/field-01.webp");
  background-size: cover;
  background-position: 30% 40%;
  opacity: 0.5;
  pointer-events: none;
}
.pane { display: flex; flex-direction: column; flex: 1 1 auto; }
.table-box-tall { margin-top: var(--s5); min-height: 320px; flex: 1 1 auto; }

.bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  min-height: var(--bar);
  padding: 0 var(--s5) 0 var(--s3);
  background: var(--sage);
}
.tabs { display: flex; align-items: flex-end; gap: 6px; }
.tab {
  display: block;
  margin-top: var(--s3);
  padding: 11px var(--s5) 10px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--sage-dark);
  color: #0b0f0b;
  font-size: var(--t-s);
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}
.tab .tab-ink { color: #e3ead7; }
.tab:hover { background: #38472f; }
.tab[aria-current="page"] { background: var(--window); }
.tab[aria-current="page"] .tab-ink { color: var(--ink); }
.tab:focus-visible { outline: 2px solid #0b0f0b; outline-offset: -4px; }

.clock {
  margin: 0;
  padding: 0 var(--s1) var(--s3);
  color: #0d120d;
  font-size: var(--t-s);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.clock-label { opacity: 0.78; }
.clock-value { font-weight: 600; font-variant-numeric: tabular-nums; }

.body { flex: 1 1 auto; display: flex; flex-direction: column; padding: var(--s8); }

/* ---------- identity ---------- */
.ident {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  gap: var(--s7);
  align-items: start;
}
.ident-slim { grid-template-columns: minmax(0, 1fr) 300px; }

.plate {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sunk);
  overflow: hidden;
  aspect-ratio: 1.39;
}
.plate img { display: block; width: 100%; height: 100%; object-fit: cover; }

.wordmark {
  margin: 0 0 var(--s4);
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--t-2xl);
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.rows { margin: 0; }
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 10px var(--s7) 9px;
  border-bottom: 1px solid var(--line-soft);
}
.rows-tight .row { padding: 8px var(--s7) 7px; }
.row dt {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink-dim);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
}
.row dt::after { content: ":"; }
.row dd {
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: var(--t-m);
  overflow-wrap: anywhere;
}
.figure { font-weight: 600; font-variant-numeric: tabular-nums; }
.row-lead { padding-top: 14px; padding-bottom: 13px; }
.row-lead dd { font-size: var(--t-xl); line-height: 1.2; }

/* ---------- links box ---------- */
.links-head {
  margin: 0 0 var(--s3);
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--t-xl);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.links-list {
  margin: 0; padding: 0;
  list-style: none;
  border: 1px solid var(--line);
}
.link-row { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.link-row:last-child { border-bottom: 0; }
.link-row .n {
  display: flex; align-items: center; justify-content: center;
  width: 44px;
  flex: 0 0 44px;
  border-right: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: var(--t-xs);
}
.link {
  display: flex; align-items: center; gap: var(--s3);
  flex: 1 1 auto;
  min-height: 48px;
  padding: 12px var(--s4);
  color: var(--ink);
  font-size: var(--t-s);
  text-decoration: none;
}
.link img { display: block; width: 20px; height: 20px; object-fit: contain; }
.link:hover .link-name { text-decoration: underline; text-underline-offset: 3px; }
.link:focus-visible { outline: 2px solid var(--line); outline-offset: -3px; }
.link-row.off { opacity: 0.74; }
.link-row.off .link { pointer-events: none; }
.link-row.off .link-name::after { content: " not yet"; color: var(--ink-dim); }

/* ---------- the mint band ---------- */
.mint {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s5);
  padding: var(--s3) var(--s5);
  border: 1px solid var(--line);
  background: var(--sunk);
}
.mint-label {
  margin: 0;
  color: var(--ink-dim);
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
}
.mint-value {
  margin: 0;
  min-width: 0;
  font-size: var(--t-m);
  overflow-wrap: anywhere;
  user-select: all;
}
.mint-note {
  margin: 0;
  min-width: 210px;
  text-align: right;
  min-height: 22px;
  color: var(--ink-dim);
  font-size: var(--t-xs);
  line-height: 22px;
}

/* ---------- keys ---------- */
.key {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 12px var(--s6);
  border: 1px solid #7e867d;
  border-radius: var(--radius);
  background: var(--paper);
  color: #0a0d0a;
  font-family: var(--mono);
  font-size: var(--t-s);
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 #0a0d0a;
}
.key:hover { background: #dde2db; }
.key:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a0d0a; }
.key:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.key[disabled], .key.off { opacity: 0.74; pointer-events: none; }
.key-primary { background: var(--sage); }
.keys { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }

.acts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  margin-top: var(--s6);
}
.wide {
  display: flex; align-items: center; justify-content: center;
  min-height: 56px;
  padding: 14px var(--s6);
  border-radius: var(--radius);
  background: var(--sage);
  color: #0a0d0a;
  font-size: var(--t-m);
  letter-spacing: 0.06em;
  text-decoration: none;
  box-shadow: 0 3px 0 #0a0d0a;
}
.wide:hover { background: #a1b9a1; }
.wide:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a0d0a; }
.wide:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- the two columns ---------- */
.cols {
  display: grid;
  grid-template-columns: 42.1fr 51.6fr;
  gap: 2.7%;
  margin-top: var(--s6);
  align-items: stretch;
}
.col-left, .col-right { display: flex; flex-direction: column; min-width: 0; }
/* the reserved area for the archive: a blank surface with one label until the first draw lands,
   never a hole and never a row of dashes */
.table-box {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 170px;
  margin-top: var(--s5);
  padding: var(--s4) 0 var(--s4);
  border: 1px solid var(--line);
  background: var(--sunk);
}
.table-box .table { margin-top: 0; }
.table-box .empty { margin: auto 0; padding: var(--s4); }

.memo-box {
  margin-top: var(--s5);
  padding: var(--s4) var(--s5);
  border: 1px solid var(--line);
  background: var(--sunk);
}
.memo-label { margin: 0 0 var(--s2); color: var(--ink-dim); font-size: var(--t-xs); letter-spacing: 0.06em; }
.memo-line { margin: 0; color: var(--ink); font-size: var(--t-m); overflow-wrap: anywhere; }
.cols-even { grid-template-columns: 1fr 1fr; }
.cols-tight { margin-top: var(--s5); }
.cols-tight .panel { display: flex; flex-direction: column; flex: 1 1 auto; }
.cols-tight .panel-body { flex: 1 1 auto; }

.grid-box {
  padding: var(--s4);
  border: 1px solid var(--line);
  background: var(--sunk);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0; padding: 0;
  list-style: none;
}
.cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  aspect-ratio: 1.22;
  padding: 10px;
  border: 10px solid transparent;
  border-image: url("/img/cell-01.webp") 24 fill / 10px / 0 stretch;
  text-align: center;
  filter: saturate(0.9) brightness(0.9);
}
.cell.lit { filter: none; }
.cell .c-i { color: var(--ink-dim); font-size: var(--t-xs); }
.cell .c-v { color: var(--ink); font-size: var(--t-s); font-weight: 600; font-variant-numeric: tabular-nums; }
.grid-note { margin: var(--s3) 0 0; color: var(--ink-dim); font-size: var(--t-xs); }

/* ---------- tables ---------- */
.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-soft) transparent;
}
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-track { background: transparent; }
.table-scroll::-webkit-scrollbar-thumb { background: var(--line-soft); }
.table-scroll::-webkit-scrollbar-button { display: none; }
.table {
  width: 100%;
  min-width: 300px;
  margin-top: var(--s6);
  border-collapse: collapse;
  text-align: left;
}
.table-caption {
  padding: 0 18px var(--s3);
  color: var(--ink);
  font-size: var(--t-s);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: left;
}
.table th {
  padding: var(--s2) 18px 10px;
  border-bottom: 2px solid var(--line);
  color: var(--ink-dim);
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
}
.table td {
  padding: 10px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-s);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.c-n { width: 68px; white-space: nowrap; }
.c-u, .c-time { width: 104px; white-space: nowrap; }
.c-sol { width: 92px; text-align: right; }
.c-sig { width: 112px; }
.table td.c-sol { text-align: right; font-variant-numeric: tabular-nums; }
.table-wide { margin-top: 0; min-width: 452px; }
.empty { margin: var(--s4) 0 0; color: var(--ink-dim); font-size: var(--t-xs); }

/* ---------- panels ---------- */
.panel { margin: 0 0 var(--s5); }
.panel:last-child { margin-bottom: 0; }
.panel-head {
  display: flex; align-items: center; gap: var(--s3);
  margin: 0;
  min-height: 42px;
  padding: var(--s2) var(--s5);
  border: 1px solid var(--line);
  border-bottom: 0;
  background: var(--paper-dim);
  color: #0a0d0a;
  font-family: var(--mono);
  font-size: var(--t-s);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.panel-head .dot { opacity: 0.6; }
.panel-head span:last-child { margin-left: auto; font-weight: 400; }
.panel-body {
  padding: var(--s5);
  border: 1px solid var(--line);
  background: var(--sunk);
}
.panel-body { font-size: var(--t-body); }
.panel-body p { margin: 0 0 var(--s3); }
.panel-body .rows { margin-top: var(--s4); }
.panel-body .rows + p { margin-top: var(--s4); }
.panel-last { margin-top: var(--s5); margin-bottom: 0; }
.panel-body p:last-child { margin-bottom: 0; }
.mono-break { overflow-wrap: anywhere; color: var(--ink); }
.big-addr { font-size: var(--t-m); user-select: all; }
.quote { color: var(--ink); }
.quote-block { margin: 0 0 var(--s4); padding: 10px var(--s5) 10px 18px; border-left: 2px solid var(--line); }
.quote-block p { margin: 0 0 var(--s2); }
.quote-answer { font-size: var(--t-l); color: var(--ink); }
.inline-link { color: var(--ink); text-underline-offset: 3px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { font-size: var(--t-body); display: flex; gap: var(--s4); padding: var(--s3) 18px; border-bottom: 1px solid var(--line-soft); }
.steps li:last-child { border-bottom: 0; }
.step-n { flex: 0 0 28px; color: var(--ink-dim); font-size: var(--t-m); }
.step-t { min-width: 0; overflow-wrap: anywhere; }

/* ---------- the form ---------- */
.form { margin-top: var(--s4); }
.f-label { display: block; margin-bottom: var(--s2); color: var(--ink-dim); font-size: var(--t-xs); letter-spacing: 0.08em; }
.f-text {
  display: block;
  width: 100%;
  padding: var(--s4);
  border: 1px solid var(--line);
  background: #0b120b;
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--t-s);
  line-height: 1.55;
  resize: vertical;
}
.f-text::placeholder { color: #8fa391; opacity: 1; }
.f-text:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.f-count { margin: var(--s2) 0 0; color: var(--ink-dim); font-size: var(--t-xs); text-align: right; font-variant-numeric: tabular-nums; }
.f-status { margin: var(--s4) 0 0; min-height: 42px; color: var(--ink-dim); font-size: var(--t-xs); }

/* ---------- the pill outside the window ---------- */
.pill {
  display: inline-block;
  margin: var(--s5) 0 0;
  padding: 10px var(--s5);
  border-radius: 999px;
  background: #2c3a2c;
  color: var(--ink);
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
}

/* ---------- widths ---------- */
@media (max-width: 1180px) {
  .ident { grid-template-columns: 260px minmax(0, 1fr); }
  .links { grid-column: 1 / -1; }
  .links-list { max-width: 420px; }
  .ident-slim { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .page { width: min(var(--page), 100% - 32px); padding-top: var(--s7); }
  .body { padding: var(--s7); }
  .ident { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .plate { max-width: 360px; }
  .cols, .cols-even { grid-template-columns: minmax(0, 1fr); gap: var(--s6); }
  .acts { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .bar { flex-wrap: wrap; align-items: stretch; padding: 0 var(--s4) var(--s3) var(--s4); gap: var(--s2); }
  .tabs { flex-wrap: wrap; width: 100%; gap: 4px; }
  .tab { margin-top: var(--s2); padding: 10px var(--s4) 9px; }
  .wordmark { font-size: var(--t-l); }
  .links-head { font-size: var(--t-l); }
  .clock { padding: 0 0 var(--s1); }
  .mint { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .mint-note { min-width: 0; text-align: left; }
  .row, .rows-tight .row { padding-left: var(--s5); padding-right: var(--s5); }
  .row-lead dd { font-size: var(--t-l); }
  .key, .wide { width: 100%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* a phone is its own composition: the wide tables stop being tables and become rows */
  .table-wide, .table-wide tbody, .table-wide tr, .table-wide td { display: block; width: auto; min-width: 0; }
  .table-wide thead { display: none; }
  .table-wide tr { padding: 10px 0 12px; border-bottom: 1px solid var(--line-soft); }
  .table-wide tr:last-child { border-bottom: 0; }
  .table-wide td { border: 0; padding: 2px 18px; text-align: left; }
  .table-wide td.c-sol { text-align: left; }
  .table-wide td.c-sol::after { content: " SOL"; color: var(--ink-dim); }
  .table-wide td.c-n { color: var(--ink-dim); }
  .table-scroll { overflow-x: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .field-plate { animation: none; }
  * { transition: none !important; }
}
