/* lakbabti.com — one stylesheet for the whole site.
   The design rule here is subtraction: no rules, no borders, no cards, no
   shadows. Type size, weight and spacing do all the work, and exactly one
   colour (--accent) ever appears, only on links inside prose. */

:root {
  --paper:   #fdfdfc;
  --ink:     #1c1c1a;
  --name:    #16181b;
  --chrome:  #52525b;
  --faint:   #8b8b92;
  --accent:  #1f56a8;

  --measure: 612px;
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --sans:  'Schibsted Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*, *::before, *::after { 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: 21px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ---- header: name left, nav right, one line ---- */

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.me { display: flex; align-items: baseline; gap: 9px; }
.me a { color: var(--name); font-weight: 600; }
.rule { color: #c4c4c9; }
.ar { font-family: var(--serif); font-size: 17px; color: var(--chrome); }

.nav { display: flex; gap: 24px; }
.nav a, .top a { color: var(--chrome); }
.nav a:hover, .top a:hover { color: var(--name); }
.nav a[aria-current="page"] { color: var(--name); }

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

a { color: var(--accent); text-decoration: none; transition: color .15s ease-in-out; }
a:hover { color: var(--name); }

.lede { margin: 100px 0 0; }
.lede p { margin: 0 0 26px; text-wrap: pretty; }
.lede p:last-child { margin-bottom: 0; }

h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.date { font-family: var(--sans); font-size: 13px; color: var(--faint); }

/* ---- lists of things: entries, not cards ---- */

.entries { margin: 56px 0 0; display: flex; flex-direction: column; gap: 30px; }
.entry { display: flex; flex-direction: column; gap: 5px; }
.entry > a { color: var(--ink); font-size: 21px; line-height: 1.4; }
.entry > a:hover { color: var(--accent); }
.entry p { margin: 0; font-size: 19px; line-height: 1.6; color: #46464a; text-wrap: pretty; }

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

.body { margin: 40px 0 0; font-size: 20px; }
.body p { margin: 0 0 26px; text-wrap: pretty; }
.body p:last-child { margin-bottom: 0; }
.body h2 { margin: 40px 0 18px; font-size: 22px; font-weight: 600; letter-spacing: -0.005em; }
.body pre {
  margin: 0 0 26px;
  padding: 0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.75;
  color: var(--chrome);
  overflow-x: auto;
}
.body code { font-family: var(--mono); font-size: 0.85em; color: var(--chrome); }

/* ---- footer: centred ---- */

.foot {
  margin: 104px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.01em;
}
.foot .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.foot a { color: var(--chrome); }
.foot a:hover { color: var(--name); }
.foot small { color: var(--faint); font-size: 13px; }

/* ---- phones ---- */

@media (max-width: 640px) {
  body { font-size: 19px; }
  .wrap { padding: 32px 22px 64px; }
  .top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav { gap: 20px; }
  .lede { margin-top: 56px; }
  .foot { margin-top: 72px; }
  h1 { font-size: 26px; }
  .body { font-size: 18px; }
  .entry > a { font-size: 19px; }
  .entry p { font-size: 17px; }
}

/* Respect a reduced-motion preference: the only motion here is link colour,
   but keep the contract explicit. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Work entries: titles are headings, not links — there are no detail pages
   behind them yet, and a link that goes nowhere is worse than plain text. */
.entry h2 { margin: 0; font-size: 21px; font-weight: 500; line-height: 1.4; letter-spacing: -0.005em; }
.entry .date { display: block; margin-top: 2px; }
@media (max-width: 640px) { .entry h2 { font-size: 19px; } }
