/* rasterpine.com — one stylesheet, no build step. */

:root {
  --paper:      #f2f4ef;
  --paper-2:    #eaeee6;
  --ink:        #16211d;
  --ink-soft:   #4c5b55;
  --ink-faint:  #8b978f;
  --rule:       #d8ded3;
  --accent:     #16806a;
  --accent-2:   #0b4f45;
  --pixel:      #2fae79;
  --measure:    34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #0f1512;
    --paper-2:   #151c18;
    --ink:       #dfe6df;
    --ink-soft:  #9aa79f;
    --ink-faint: #667169;
    --rule:      #232d27;
    --accent:    #56c692;
    --accent-2:  #8edcae;
    --pixel:     #2fae79;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.mono, nav a, .eyebrow, .meta, .num, .tag, code, kbd, pre {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; }

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- header ---------- */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.75rem 0 1.5rem;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .95rem;
  letter-spacing: .01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; display: block; }
.brand b { font-weight: 600; }
.brand span { color: var(--ink-faint); font-weight: 400; }

nav { display: flex; gap: 1.25rem; }
nav a { font-size: .82rem; color: var(--ink-soft); letter-spacing: .02em; }
nav a[aria-current="page"] { color: var(--ink); }
nav a:hover { color: var(--accent); }

/* ---------- pixel-dissolve rule (from the mark) ---------- */

.dissolve {
  height: 6px;
  border: 0;
  margin: 3rem 0;
  background-image: repeating-linear-gradient(
    90deg, var(--pixel) 0 6px, transparent 6px 12px
  );
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.35) 45%, transparent 85%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.35) 45%, transparent 85%);
  opacity: .85;
}

/* ---------- type ---------- */

h1, h2, h3 { line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; margin: 0 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.75rem 0 1rem; }
h3 { font-size: 1.1rem; margin: 2rem 0 .5rem; }

p { margin: 0 0 1.15rem; max-width: var(--measure); }
.lede { font-size: 1.1rem; color: var(--ink-soft); }

.eyebrow {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 .9rem;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: .5rem;
  margin: 3rem 0 0;
}
.section-head h2 { margin: 0; font-size: 1.05rem; }
.section-head a { font-size: .8rem; }
.section-head a { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- hero ---------- */

.hero { padding: 1.5rem 0 .5rem; }
.hero img.mark { width: 84px; height: 84px; margin: 0 0 1.5rem; display: block; }
.hero h1 { max-width: 22ch; }

/* ---------- lists of episodes / posts ---------- */

.list { border-top: 1px solid var(--rule); margin: 0; padding: 0; list-style: none; }
.list li { border-bottom: 1px solid var(--rule); }

.row {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: .95rem .25rem;
  color: var(--ink);
}
a.row:hover { background: var(--paper-2); text-decoration: none; }
a.row:hover .title { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.num { font-size: .8rem; color: var(--ink-faint); }
.title { font-size: 1rem; }
.title small { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: .15rem; max-width: 46ch; }
.meta { font-size: .76rem; color: var(--ink-faint); white-space: nowrap; }

.row[data-state="planned"] { color: var(--ink-soft); }
.row[data-state="planned"] .title { color: var(--ink-soft); }

.tag {
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .1rem .4rem;
}

/* ---------- prose (writeups) ---------- */

.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.3rem; }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--pixel);
  color: var(--ink-soft);
}
.prose img { border: 1px solid var(--rule); border-radius: 2px; }
.figure { margin: 1.75rem 0; max-width: var(--measure); }
.figure figcaption { font-size: .8rem; color: var(--ink-faint); margin-top: .5rem; }

code {
  font-size: .86em;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: .08em .32em;
}

pre {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: .82rem;
  line-height: 1.6;
  margin: 1.5rem 0;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.post-meta { font-size: .8rem; color: var(--ink-faint); margin: 0 0 2rem; }

/* ---------- video embed ---------- */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
  margin: 1.75rem 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-faint);
  font-size: .8rem;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 3px; }

/* ---------- footer ---------- */

.site-foot {
  margin-top: 4rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  color: var(--ink-faint);
}
.site-foot a { color: var(--ink-soft); }
.site-foot nav { gap: 1rem; }

/* ---------- small screens ---------- */

@media (max-width: 34rem) {
  body { font-size: 17px; }
  h1 { font-size: 1.7rem; }
  .row { grid-template-columns: 2.2rem 1fr; }
  .row .meta { grid-column: 2; }
  .site-head { padding-bottom: 1rem; }
}
