/* joshargaw.net — man josh(1), paper theme */

@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/courier-prime-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #F3EFE6;
  --ink: #161513;
  --muted: #5C574F;
  --accent: #B3261E;
  --accent-hover: #7A1912;
  --code-bg: #161513;
  --code-ink: #F3EFE6;
  --code-muted: #A8A196;
  --font: "Courier Prime", "Courier New", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--bg); padding: 10px 16px; }
.skip:focus { left: 16px; top: 16px; }

.page { max-width: 1180px; margin: 0 auto; padding: 32px 24px 64px; display: flex; flex-direction: column; gap: 48px; }

.runhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 15px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; }
.runfoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 15px; border-top: 1px solid var(--ink); padding-top: 12px; }

.hero { display: flex; flex-direction: column; gap: 16px; }
.prompt { font-size: 16px; color: var(--muted); margin: 0; }
.caret { display: inline-block; width: .6em; height: 1.05em; background: var(--ink); vertical-align: -.15em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
h1 { margin: 0; font-size: clamp(64px, 12vw, 176px); line-height: .9; font-weight: 700; letter-spacing: -.04em; }
h1 .sec-no { color: var(--accent); }
.tagline { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: clamp(18px, 2vw, 22px); margin: 0; padding: 0; list-style: none; }
.tagline li:not(:last-child)::after { content: "·"; color: var(--muted); margin-left: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; text-decoration: none; border: 1.5px solid var(--ink); }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); }
.btn--line { color: var(--ink); }
.btn--line:hover { color: var(--accent-hover); border-color: var(--accent-hover); }

.layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.rail { flex: 1 1 180px; max-width: 220px; font-size: 15px; border-top: 1px solid var(--ink); padding-top: 8px; }
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail a { color: var(--ink); text-decoration: none; padding: 6px 0; display: block; }
.rail a:hover { color: var(--accent); }
main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }

section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px; }
h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.body { padding-left: clamp(0px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.body p { margin: 0; }
.flag { color: var(--accent); font-weight: 700; white-space: nowrap; }

dl { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.def { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 2px 24px; }
.def dt { font-weight: 700; }
.def dd { margin: 0; }
.def--muted dt { font-weight: 400; color: var(--muted); }
.history { gap: 28px; }
.history dd { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 720px) {
  .def { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }               /* a phone just scrolls the page */
  .runhead span:nth-child(2) { display: none; }
}

.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.certs li { border: 1.5px solid var(--ink); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.certs li.todo { border-style: dashed; }
.certs .title { font-size: 15px; }
.certs .meta { font-size: 13px; color: var(--muted); }

pre { margin: 0; background: var(--code-bg); color: var(--code-ink); padding: 20px 24px; font-family: var(--font); font-size: 15px; line-height: 1.9; overflow-x: auto; }
pre a { color: var(--code-ink); }
pre a:hover { color: #FFFFFF; }
pre .c { color: var(--code-muted); }

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

/* 404 */
.notfound { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.notfound h1 { font-size: clamp(40px, 7vw, 88px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
}

@media print {
  body { background: #FFFFFF; font-size: 11pt; }
  .skip, .rail, .actions, .caret { display: none; }
  .page { padding: 0; gap: 24px; }
  h1 { font-size: 48pt; }
  pre { background: #FFFFFF; color: #000000; border: 1px solid #000000; }
  pre a, pre .c { color: #000000; }
  a { color: #000000; }
  section { break-inside: avoid; }
}
