/* Hack TCG — plain minimalism in the spirit of sive.rs, michieldegraaf.com.
   Readability core kept from Medium's specs: comfortable measure,
   1.58 line-height, quiet grays, hairline dividers. Theatrics removed:
   modest headings, plain section titles, list-driven everything. */

:root {
  --paper: #fdfcfa;
  --ink: rgba(0, 0, 0, 0.84);
  --muted: #757575;
  --faint: #b3b3b3;
  --hairline: #e8e6e1;
  --measure: 680px;
  --serif: "Newsreader", "Charter", "Bitstream Charter", "Sitka Text", "Cambria", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.58;
  letter-spacing: -0.002em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- frame ---- */

.site-head,
main,
.site-foot {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.site-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}

.wordmark {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.wordmark a {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a[aria-current="page"] {
  color: var(--muted);
  text-decoration: none;
}

/* ---- links ---- */

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--faint);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #000;
  text-decoration-color: var(--ink);
}

/* ---- hero ---- */

.hero {
  padding-top: 48px;
  padding-bottom: 56px;
}

h1 {
  margin: 0 0 20px;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0;
  font-size: 21px;
  line-height: 1.55;
  max-width: 36ch;
}

/* ---- page head ---- */

.page-head {
  padding-top: 48px;
  padding-bottom: 40px;
}

.page-title {
  margin: 0;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

/* ---- sections ---- */

section + section {
  border-top: 1px solid var(--hairline);
}

main > section {
  padding-top: 40px;
  padding-bottom: 48px;
}

main > section.hero,
main > section.page-head {
  padding-top: 48px;
}

.section-title {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.008em;
  line-height: 1.3;
}

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

.prose p {
  margin: 0 0 1.58em;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---- project list ---- */

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

.project {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.project:first-child {
  padding-top: 0;
}

.project:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.project h3 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.006em;
}

.project h3 a {
  text-decoration: none;
}

.project h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--ink);
}

.project p {
  margin: 0;
  font-size: 19px;
}

.more {
  margin: 24px 0 0;
  font-size: 18px;
}

/* ---- full project entries ---- */

.project-full {
  margin: 0 0 44px;
}

.project-full:last-child {
  margin-bottom: 0;
}

.project-full h2 {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.008em;
}

/* ---- simple link list ---- */

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

.link-list li {
  margin: 0 0 10px;
  font-size: 19px;
}

.link-list li:last-child {
  margin-bottom: 0;
}

/* ---- post list (sive.rs style: date, then title) ---- */

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

.post-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 19px;
}

.post-list li:first-child {
  padding-top: 0;
}

.post-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.post-date {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  margin-right: 12px;
  white-space: nowrap;
}

.post-dek {
  margin: 6px 0 0 0;
  font-size: 17px;
  font-style: italic;
  color: var(--muted);
}

/* ---- article ---- */

.post-head {
  padding-top: 48px;
  padding-bottom: 36px;
}

.post-head .post-date {
  display: block;
  margin: 0 0 12px;
}

.post-title {
  margin: 0 0 12px;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

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

.site-foot {
  border-top: 1px solid var(--hairline);
  margin-top: 16px;
  padding-top: 28px;
  padding-bottom: 48px;
}

.site-foot p {
  margin: 0;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

/* ---- small screens ---- */

@media (max-width: 560px) {
  body {
    font-size: 18px;
  }

  .hero,
  .page-head,
  .post-head {
    padding-top: 36px;
  }

  .lede {
    font-size: 19px;
  }

  .project p {
    font-size: 17px;
  }
}
