/* Paper & Prussian. Plain CSS, no preprocessor, no web fonts, no JS. */

:root {
  --bg: #f7f5f0;
  --text: #111827;
  --accent: #1e3a8a;
  --muted: #64748b;
  --hairline: #d1cfc8;

  --measure: 34rem;   /* prose column */
  --page: 46rem;      /* page column, wider than prose for listings */
  --gap: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 var(--gap);
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

/* Every top-level band shares one column so the hairlines line up. */
.site-header,
main,
.site-footer {
  max-width: var(--page);
  margin: 0 auto;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 600;
}

h1 {
  font-size: 1.75rem;
  margin: 0 0 0.4em;
}

h2 {
  font-size: 1.15rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.4rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  font-size: 0.85rem;
  line-height: 1.5;
}

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2.5rem 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- header / footer ------------------------------------------------ */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 2rem 0 1.25rem;
  border-bottom: 1px solid var(--hairline);
}

.site-title {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--accent);
}

main {
  padding: 3rem 0 4rem;
}

.site-footer {
  padding: 1.25rem 0 2.5rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

/* --- prose ----------------------------------------------------------- */

.prose {
  max-width: var(--measure);
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.1em;
}

.prose ul,
.prose ol {
  padding-left: 1.2em;
}

.prose blockquote {
  margin: 1.5em 0;
  padding-left: 1rem;
  border-left: 2px solid var(--hairline);
  color: var(--muted);
}

.lede {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text);
}

/* --- listings -------------------------------------------------------- */

.entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.entries > li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
}

.entries > li:first-child {
  border-top: 1px solid var(--hairline);
}

.entry-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.entry-title a {
  text-decoration: none;
}

.entry-title a:hover {
  text-decoration: underline;
}

.entry-desc {
  margin: 0 0 0.5rem;
  max-width: var(--measure);
  color: var(--text);
}

/* --- meta bits ------------------------------------------------------- */

.meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.stack li a,
.stack li span {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--muted);
  text-decoration: none;
}

.stack li a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Archived work has no live URL — say so instead of shipping a dead link. */
.status-archived {
  color: var(--muted);
  font-size: 0.85rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

/* --- screenshots ----------------------------------------------------- */

figure {
  margin: 2rem 0;
}

figure img {
  display: block;
  border: 1px solid var(--hairline);
  border-radius: 3px;
}

figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Stand-in until real screenshots land. */
.shot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--hairline);
  border-radius: 3px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* --- resume ---------------------------------------------------------- */

.resume-entry {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hairline);
  max-width: var(--measure);
}

.resume-entry h3 {
  margin: 0;
}

.resume-entry .meta {
  display: block;
  margin-bottom: 0.5rem;
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }

  .site-header nav,
  .site-footer {
    display: none;
  }
}
