/* Dinoctor Blog: a clean white reading layout. */
:root {
  --ink: #242424;
  --soft: #6b6b6b;
  --line: #e9e9e9;
  --bg: #ffffff;
  --tint: #f7f7f7;
  --accent: #1a8917;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Charter", "Bitstream Charter", Georgia, Cambria, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); }
a { color: inherit; }
img { max-width: 100%; }

.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1192px; margin: 0 auto; height: 57px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand b { font-size: 21px; letter-spacing: -.3px; }
.brand span { color: var(--soft); font-size: 15px; }
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-size: 14px; padding: 9px 16px; border-radius: 99px; }
.btn:hover { background: #000; }

main { max-width: 728px; margin: 0 auto; padding: 0 24px 80px; }
h1 { font-size: 42px; line-height: 1.2; letter-spacing: -.016em; margin: 48px 0 12px; font-weight: 700; }
.sub { font-size: 22px; line-height: 1.4; color: var(--soft); margin: 0 0 28px; }
.byline { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #f1e3b0; display: grid; place-items: center; font-weight: 700; color: #6b5300; flex: none; }
.who { font-size: 15px; line-height: 1.45; }
.who .meta { color: var(--soft); }

article { font-family: var(--serif); font-size: 20px; line-height: 1.6; letter-spacing: -.003em; }
article p { margin: 0 0 30px; }
article h2 { font-family: var(--sans); font-size: 26px; line-height: 1.25; margin: 48px 0 10px; letter-spacing: -.01em; }
article h3 { font-family: var(--sans); font-size: 21px; line-height: 1.3; margin: 36px 0 8px; }
article ul, article ol { margin: 0 0 30px; padding-left: 28px; }
article li { margin-bottom: 12px; padding-left: 4px; }
article a { text-decoration: underline; text-underline-offset: 2px; }
article code { font-size: .85em; background: var(--tint); padding: 2px 5px; border-radius: 4px; }
figure { margin: 40px 0; }
figure img, figure iframe { width: 100%; display: block; border-radius: 4px; border: 0; }
figure iframe { aspect-ratio: 16 / 9; height: auto; }
figcaption { font-family: var(--sans); font-size: 14px; color: var(--soft); text-align: center; margin-top: 10px; }
blockquote { margin: 0 0 30px; padding-left: 22px; border-left: 3px solid var(--ink); font-style: italic; }
blockquote p { margin: 0; }
.tip { font-family: var(--sans); background: var(--tint); border-radius: 8px; padding: 18px 20px; font-size: 16px; line-height: 1.55; margin: 0 0 30px; }
.tip p { margin: 0; }
.scroll { overflow-x: auto; margin: 0 0 30px; }
table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 15px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; }

.cta { font-family: var(--sans); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; gap: 18px; align-items: center; margin: 48px 0; }
.cta img { width: 56px; height: 56px; border-radius: 12px; flex: none; }
.cta h3 { margin: 0 0 4px; font-size: 18px; }
.cta p { margin: 0 0 12px; color: var(--soft); font-size: 15px; line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0 0; }
.tags span { background: #f2f2f2; border-radius: 99px; padding: 8px 16px; font-size: 14px; }

/* Home: the list of articles */
.intro { padding: 48px 0 24px; border-bottom: 1px solid var(--line); }
.intro h1 { margin: 0 0 8px; font-size: 40px; }
.intro p { margin: 0; color: var(--soft); font-size: 19px; line-height: 1.45; }
.post { display: flex; gap: 28px; align-items: center; padding: 32px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.post div { flex: 1; min-width: 0; }
.post h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.3; }
.post p { margin: 0 0 10px; color: var(--soft); font-family: var(--serif); font-size: 16px; line-height: 1.5; }
.post small { color: var(--soft); font-size: 13px; }
.post img { width: 160px; height: 107px; object-fit: cover; border-radius: 4px; flex: none; }

footer { border-top: 1px solid var(--line); color: var(--soft); font-size: 13px; text-align: center; padding: 28px 24px 40px; }

@media (max-width: 600px) {
  .top-in { padding: 0 16px; }
  .brand span { display: none; }
  main { padding: 0 16px 60px; }
  h1 { font-size: 30px; margin-top: 28px; }
  .intro h1 { font-size: 30px; }
  .sub { font-size: 19px; }
  article { font-size: 18px; line-height: 1.58; }
  article h2 { font-size: 22px; margin-top: 38px; }
  figure { margin: 30px -16px; }
  figure img, figure iframe { border-radius: 0; }
  figcaption { padding: 0 16px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .post { gap: 16px; }
  .post img { width: 96px; height: 96px; }
  .post h2 { font-size: 18px; }
}
