/* ============================================================
   essay.css — the reading layout for tentanote.com/writing. One
   column at a reading measure, the brand's surface, no room behind
   it: the coming-soon pages are a picture, these are something to
   read. Every value comes from tokens.css; nothing is picked here.
   ============================================================ */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text-default);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.column {
  max-width: 38rem;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

/* The way back: the mark at text size and the name, the way a header
   carries a logo beside a wordmark. */
.masthead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.masthead a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-default);
  border-bottom: 0;
  padding: 0;
}

.masthead img { width: 28px; height: 28px; border-radius: 22.37%; }

.masthead .section {
  font-weight: 400;
  color: var(--text-faint);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 2.75rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.dek {
  margin: 16px 0 0;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.byline {
  margin: 20px 0 0;
  font-size: 0.875rem;
  color: var(--text-faint);
}

article { margin-top: 48px; }

article h2 {
  margin: 48px 0 0;
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}

article p,
article ul,
article ol { margin: 18px 0 0; text-wrap: pretty; }

article ul,
article ol { padding-left: 1.25em; }

article li + li { margin-top: 10px; }

article strong { font-weight: 600; }

article blockquote {
  margin: 24px 0 0;
  padding: 2px 0 2px 20px;
  border-left: 2px solid var(--primary-border);
  font-size: 1.125rem;
  color: var(--text-default);
}

article blockquote p { margin: 0; }

/* The foot of an essay: what the thing is, and the waitlist. */
.coda {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border-emphasis);
}

.coda p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.coda .waitlist { margin: 20px 0 0; max-width: 28rem; }

/* The list of essays. */
.essays { margin: 40px 0 0; padding: 0; list-style: none; }
.essays li + li { margin-top: 32px; }
.essays h2 { margin: 0; font-size: 1.375rem; line-height: 1.25; font-weight: 600; }
.essays p { margin: 8px 0 0; color: var(--text-muted); text-wrap: pretty; }
.essays time { display: block; margin-top: 8px; font-size: 0.875rem; color: var(--text-faint); }

footer {
  margin-top: 56px;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

footer .sep {
  width: 3px;
  height: 3px;
  border-radius: var(--radius-full);
  background: currentColor;
  opacity: 0.55;
}

a {
  color: var(--primary-text);
  text-decoration: none;
  border-bottom: 1px solid var(--primary-border);
  padding-bottom: 1px;
  transition: color 120ms ease, border-color 120ms ease;
}

a:hover { border-bottom-color: currentColor; }

footer a { color: var(--text-muted); border-bottom-color: var(--border-emphasis); }
.essays h2 a { color: var(--text-default); border-bottom: 0; }
.essays h2 a:hover { color: var(--primary-text); }

a:focus-visible {
  outline: none;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--focus-ring) 40%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}
