/* Blog pages: the home page's laptop-desktop look (ink, cream, teal screen) with a readable article column. */
:root {
  color-scheme: light;
  --ink: #1f2a4d;
  --ink-2: #4b5575;
  --cream: #fff6df;
  --butter: #f6d77a;
  --screen: #3fb7b0;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif;
  font-size: 19px; line-height: 1.65;
  color: var(--ink);
  background-color: var(--screen);
  background-image: radial-gradient(#39aaa3 1px, transparent 1.5px);
  background-size: 6px 6px;
}
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--butter); outline-offset: 4px; }

/* Same menubar as the laptop screen on the home page */
.menubar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  padding: 7px 20px;
  background: var(--cream); color: var(--ink);
  border-bottom: 3px solid var(--ink);
  font-family: "Pixelify Sans", monospace; font-size: 17px;
}
.menubar a { color: inherit; text-decoration: none; white-space: nowrap; }
.menubar .mark { font-weight: 700; margin-right: auto; }
.menubar [aria-current] { opacity: .55; }

.page { padding: 56px 24px 80px; }
.window {
  max-width: 780px; margin: 0 auto;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(31, 42, 77, .35);
}
.titlebar {
  position: relative; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 3px solid var(--ink);
}
.titlebar::before {
  content: ""; position: absolute; inset: 10px 10px;
  background: repeating-linear-gradient(var(--ink) 0 2px, transparent 2px 4px);
}
.titlebar span {
  position: relative; padding: 0 14px; background: var(--cream);
  font-family: "Pixelify Sans", monospace; font-weight: 700; font-size: 18px;
}

/* Blog index */
.posts { list-style: none; margin: 0; padding: 6px 0; }
.posts li { padding: 22px 28px; }
.posts li + li { border-top: 2px dotted rgba(31, 42, 77, .28); }
.posts li:hover, .posts li:focus-within { background: var(--butter); }
.posts h2 { font-family: "Atkinson Hyperlegible", system-ui, sans-serif; font-weight: 700; font-size: 25px; line-height: 1.2; margin: 0 0 4px; }
.posts h2 a { text-decoration: none; }
.posts h2 a::after { content: " →"; }
.posts p { margin: 0; line-height: 1.45; }
.posts .meta { font-size: 15px; color: var(--ink-2); margin-bottom: 6px; }
.status {
  border-top: 3px solid var(--ink); padding: 7px 16px;
  font-family: "Pixelify Sans", monospace; font-size: 14px;
}

/* Post */
article { padding: 40px 48px 48px; }
article header { margin-bottom: 36px; }
.kicker { font-size: 15px; color: var(--ink-2); margin: 0 0 8px; }
article h1 {
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif; font-weight: 700;
  font-size: clamp(32px, 5vw, 44px); line-height: 1.15; letter-spacing: -.01em; margin: 0;
}
.dek { font-size: 22px; line-height: 1.45; margin: 16px 0 0; }
article h2 {
  font-family: "Atkinson Hyperlegible", system-ui, sans-serif; font-weight: 700;
  font-size: 27px; line-height: 1.2; margin: 44px 0 0;
}
article p { margin: 16px 0 0; }
.figures {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  margin: 36px 0 8px; padding: 0;
}
figure { margin: 0; }
.phone {
  aspect-ratio: 1320 / 2868; border-radius: 26px; padding: 6px;
  background: var(--ink); box-shadow: 4px 4px 0 rgba(31, 42, 77, .35);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 21px; }
figcaption { font-size: 15px; line-height: 1.4; color: var(--ink-2); margin-top: 10px; }
.outro {
  margin-top: 44px; padding: 20px 24px;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); background: #fff;
}
.outro p { margin: 0; }
.button {
  display: inline-block; margin-top: 14px;
  font-family: "Pixelify Sans", monospace; font-weight: 500; font-size: 16px;
  text-decoration: none; padding: 6px 16px; background: var(--cream);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
}
.button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.back { display: block; max-width: 780px; margin: 28px auto 0; font-family: "Pixelify Sans", monospace; font-size: 17px; }
.back a { background: var(--cream); padding: 2px 8px; text-decoration: none; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .menubar { padding: 7px 14px; gap: 16px; font-size: 16px; }
  .page { padding: 28px 16px 56px; }
  .window { box-shadow: 5px 5px 0 rgba(31, 42, 77, .35); }
  article { padding: 28px 20px 32px; }
  .dek { font-size: 19px; }
  article h2 { font-size: 23px; margin-top: 36px; }
  .posts li { padding: 18px 20px; }
  .figures { gap: 10px; }
  .phone { border-radius: 16px; padding: 4px; }
  .phone img { border-radius: 13px; }
  figcaption { font-size: 13px; }
}
