:root {
  --ink: #07060c;
  --radius: 40px;
  --line: rgba(255, 255, 255, .16);
  --soft: rgba(255, 255, 255, .72);
  --dim: rgba(255, 255, 255, .52);
  /* Titles in a bold Clarendon, the face of the THIEL wordmark; reading text in Charter. */
  --display: Superclarendon, Clarendon, "Clarendon BT", "Clarendon LT Std", Besley, Rockwell, "Roboto Slab", Georgia, serif;
  --serif: Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--ink); }

body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
}

/* The sky the landing flight ends in, held still behind the page. */
.sky {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  background:
    linear-gradient(rgba(7, 6, 12, .38), rgba(7, 6, 12, .66)),
    var(--ink) url(/frames/720/f0640.webp) center / cover no-repeat;
}

.glass {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02) 38%), rgba(13, 15, 28, .46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 1px 0 0 rgba(255, 255, 255, .12),
    inset 0 -1px 0 rgba(255, 255, 255, .12),
    inset 0 0 0 1px rgba(255, 255, 255, .03),
    inset 0 18px 28px -18px rgba(255, 255, 255, .16),
    0 8px 20px rgba(0, 0, 0, .22),
    0 34px 80px rgba(0, 0, 0, .40);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
}

.mast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: max(26px, env(safe-area-inset-top)) 20px 0;
}

.home {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--soft);
  transition: color .2s ease;
}

.home:hover { color: #fff; }

.tabs {
  display: flex;
  gap: 2px;
  min-width: 0;
  padding: 5px;
  overflow-x: auto;
  border-radius: 999px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tabs a {
  flex: none;
  padding: 10px 11px 9px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--soft);
  transition: color .2s ease, background .2s ease;
}

.tabs a:hover { color: #fff; }

.tabs a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3);
}

.wrap {
  width: min(820px, 100% - 32px);
  margin: 0 auto;
  padding: 44px 0 96px;
}

/* A section opens on its painting, with the name and the question beneath it. */
.head {
  overflow: hidden;
  padding: 8px;
}

.head__art {
  display: block;
  width: 100%;
  height: clamp(220px, 44vw, 380px);
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
}

.head__text { padding: 34px 36px 36px; }

.kicker {
  font-size: 15px;
  color: var(--dim);
}

.head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 7.4vw, 66px);
  font-weight: 700;
  letter-spacing: .008em;
  line-height: 1;
  text-transform: uppercase;
}

.head__lede {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(18px, 2.6vw, 23px);
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, .86);
}

.head__credit {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--dim);
}

.list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.row {
  display: block;
  padding: 30px 44px 32px;
  color: #fff;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease;
}

a.row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .34);
}

.row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 15px;
  color: var(--dim);
}

.row h2 {
  margin: 12px 0 8px;
  font-family: var(--display);
  font-size: clamp(23px, 3.2vw, 29px);
  font-weight: 700;
  line-height: 1.14;
}

.row p {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--soft);
}

.empty {
  padding: 34px 44px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--soft);
}

/* The personal log: dated entries shown in full, newest first. */
.log .row { padding-bottom: 30px; }

.log .row__meta { font-size: 15px; }

.log .row__meta a {
  color: inherit;
  text-decoration: none;
}

.log .row__meta a:hover { color: #fff; }

.log .row h2 { font-size: 22px; }

.log .prose {
  font-size: 18px;
  line-height: 1.55;
}

.post { padding: 46px 44px 50px; }

.post h1 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.08;
}

/* A thesis opens with the belief it argues against. */
.claim {
  display: grid;
  gap: 1px;
  margin: 34px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.claim div {
  padding: 18px 22px 20px;
  background: rgba(10, 11, 22, .62);
}

.claim dt {
  font-size: 14px;
  color: var(--dim);
}

.claim dd {
  margin: 7px 0 0;
  font-size: 19px;
  line-height: 1.4;
}

.claim div:first-child dd { color: var(--soft); }

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.specs li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  color: var(--soft);
}

.specs b {
  margin-right: 7px;
  font-weight: 400;
  color: var(--dim);
}

.prose {
  margin-top: 34px;
  font-size: 19.5px;
  line-height: 1.62;
  color: rgba(255, 255, 255, .92);
}

.log .prose { margin-top: 12px; }

.prose > :first-child { margin-top: 0; }

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

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

.prose h2,
.prose h3 {
  margin: 1.8em 0 .5em;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
}

.prose h2 { font-size: 24px; }

.prose h3 { font-size: 19px; }

.prose a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, .45);
  text-underline-offset: 3px;
}

.prose blockquote {
  margin: 1.4em 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid rgba(255, 255, 255, .4);
  color: var(--soft);
}

.prose ul,
.prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.3em;
}

.prose li { margin-bottom: .35em; }

.prose code {
  padding: .1em .35em;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  font-family: var(--mono);
  font-size: .84em;
}

.prose pre {
  overflow-x: auto;
  margin: 1.4em 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(6, 7, 14, .6);
}

.prose pre code {
  padding: 0;
  background: none;
  font-size: 14px;
  line-height: 1.5;
}

.prose hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose img {
  max-width: 100%;
  border-radius: 18px;
}

.back {
  display: inline-block;
  margin-top: 22px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
  color: var(--soft);
}

.back:hover { color: #fff; }

.draft {
  display: inline-block;
  margin-left: 10px;
  font-size: 13px;
  font-style: normal;
  padding: 2px 9px;
  border: 1px solid rgba(255, 196, 92, .7);
  border-radius: 999px;
  color: rgb(255, 208, 128);
}

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  :root { --radius: 30px; }

  .wrap { padding-top: 30px; }

  .head { padding: 6px; }

  .head__art { border-radius: calc(var(--radius) - 6px); }

  .head__text { padding: 24px 22px 26px; }

  .row { padding: 24px 26px 26px; }

  .empty { padding: 28px 26px; }

  .post { padding: 32px 24px 36px; }

  .mast {
    justify-content: flex-start;
    padding-left: 16px;
    padding-right: 16px;
  }

  .prose { font-size: 18.5px; }
}
