@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(inter-400.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(inter-500.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(inter-600.woff2) format('woff2'); }
@font-face { font-family: Inter; font-style: normal; font-weight: 700; font-display: swap; src: url(inter-700.woff2) format('woff2'); }

:root {
  color-scheme: light dark;
  --pk-bg: #faf9f5;
  --pk-text: #262923;
  --pk-mute: #555c53;
  --pk-line: #cccfc5;
  --pk-foot: #f0f0ea;
  --pk-link: #214889;
  --pk-code: #eeeae2;
  --pk-font: Inter, system-ui, sans-serif;
  --mark-bg: #ffe066;
  --mark-text: #1c1c1e;
  --note-bg: #ffc9c9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pk-bg: #1a1c19;
    --pk-text: #f3f3eb;
    --pk-mute: #c0c4b9;
    --pk-line: #4f564b;
    --pk-foot: #20231f;
    --pk-link: #aed0ff;
    --pk-code: #30332e;
    --mark-bg: #6f5500;
    --mark-text: #fff;
    --note-bg: #7a2323;
  }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 400 1rem/1.55 var(--pk-font); overflow-wrap: break-word; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.1; text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a, button, summary { touch-action: manipulation; }
button, summary { cursor: pointer; }
button { font: inherit; }
button:disabled, button[aria-disabled="true"] { cursor: default; }
:where([hidden]) { display: none !important; }

:focus-visible {
  outline: 3px solid #2457d6;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px #fff;
}

.skip {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 5;
  padding: 12px 20px;
  background: #fff;
  color: #12141a;
  transform: translateY(calc(-100% - 16px));
}

.skip:focus { transform: none; }
.pk-page { background: var(--pk-bg); color: var(--pk-text); }
.pk-bound { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.pk-bar { color: var(--pk-text); background: var(--pk-bg); border-bottom: 1px solid var(--pk-line); }
.pk-mast, .pk-footrow, .archive { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pk-mast { min-height: 56px; }

.pk-word {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: -.055em;
  text-decoration: none;
}

.pocket-mark {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  background: url(pocket.svg) center / contain no-repeat;
}

.pk-mast nav, .pk-footer nav { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.pk-mast nav a, .pk-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  min-width: 48px;
  font-size: .875rem;
  line-height: 1.4;
  font-weight: 600;
  text-decoration: none;
}

.pk-mast nav a[aria-current], .pk-mast a:hover, .pk-footer a:hover, .app-back:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.pk-footer { color: var(--pk-text); background: var(--pk-foot); border-top: 1px solid var(--pk-line); }
.pk-footrow { min-height: 78px; }
.archive {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0 14px;
  border-top: 1px solid var(--pk-line);
  padding-block: 8px;
  color: var(--pk-mute);
  font-size: .83rem;
}
.archive nav { gap: 0 14px; }
.archive nav a, .archive > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
  font-weight: 500;
}

.publisher-intro {
  margin-bottom: 24px;
  padding-block: clamp(2rem, 5.1vw, 4.625rem);
  border-bottom: 2px solid var(--pk-text);
}
.publisher-intro h1 { font-size: clamp(2.8rem, 6.4vw, 5.7rem); line-height: 1.02; letter-spacing: -.08em; }
.publisher-intro p { max-width: 41ch; margin-top: 16px; color: var(--pk-mute); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.shelf { padding-bottom: clamp(2rem, 5vw, 4.25rem); }
.shelf h2 { margin-bottom: 17px; font-size: 1.05rem; letter-spacing: -.025em; }

.app-card {
  display: grid;
  grid-template-columns: minmax(140px, .75fr) minmax(0, 1.65fr);
  gap: 4%;
  padding-block: 22px;
  border-bottom: 1px solid var(--pk-line);
}
.app-card:first-child { border-top: 1px solid var(--pk-line); }
.swatch {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 146px;
  border-radius: 2px;
}
.swatch img { width: 90px; height: 90px; border-radius: 20px; box-shadow: 0 8px 18px #0004; }
.road .swatch { background: #20262f; }
.road .swatch::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 135%;
  height: 225%;
  transform: rotate(-20deg);
  border: 22px solid #313946;
  border-radius: 50%;
  outline: 2px dashed #e0ad26;
  outline-offset: -12px;
}
.due .swatch {
  background: repeating-radial-gradient(ellipse at 75% 110%, transparent 0 10px, #ffffff10 11px 12px, transparent 13px 20px), #123d2d;
}
.entry { display: flex; flex-direction: column; align-items: flex-start; padding-block: 2px; }
.app-card h3 { font-size: clamp(1.7rem, 2.6vw, 2.5rem); letter-spacing: -.026em; }
.app-card.road h3 { font-family: Overpass, var(--pk-font); font-weight: 900; }
.app-card.due h3 { font-family: Archivo Display, var(--pk-font); font-weight: 800; }
.app-card h3 a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; }
.app-card h3 a:hover { text-decoration: underline; }
.entry p { margin: 6px 0 8px; max-width: 45ch; color: var(--pk-mute); }
.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  width: 100%;
  margin-top: auto;
  padding-top: 5px;
}
.card-foot > span { color: var(--pk-mute); font-size: .8125rem; }
.explore { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-size: .91rem; font-weight: 700; text-underline-offset: 4px; }

.reading { padding-block: clamp(1.75rem, 4.6vw, 4rem); }
.app-back { display: inline-flex; min-height: 48px; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.app-back img { border-radius: 6px; }
.reader-title h1 { margin: 10px 0 28px; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.06; letter-spacing: -.065em; }
.reader-grid {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(0, 2fr);
  align-items: start;
  column-gap: 6%;
  padding-top: 24px;
  border-top: 1px solid var(--pk-line);
}
.reader-grid.no-index { grid-template-columns: minmax(0, 1fr); }
.reader-nav { position: sticky; top: 20px; }
.reader-nav details { display: none; }
.reader-nav nav { display: flex; flex-direction: column; max-width: 28ch; }
.reader-nav h2 { margin-bottom: 10px; font-size: .875rem; }
.reader-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-block: 6px;
  border-top: 1px solid var(--pk-line);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.45;
  text-decoration: none;
}
.reader-nav a:hover { text-decoration: underline; }
.reader-nav summary { min-height: 48px; padding-block: 12px; font-weight: 600; }
.prose, .doc { width: 100%; max-width: 68ch; overflow-wrap: anywhere; }
.prose p, .prose li, .doc p, .doc li { font-size: 1rem; line-height: 1.68; }
.prose p, .doc p { margin-bottom: 16px; }
.prose a, .doc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  color: var(--pk-link);
  text-underline-offset: 3px;
}
:is(.prose, .doc) :is(ul, ol) { padding-left: 1.3em; margin: 0 0 18px; }
:is(.prose, .doc) li { padding-left: 3px; margin-bottom: 7px; }
:is(.prose, .doc) h2 {
  padding-top: 22px;
  margin: 30px 0 16px;
  border-top: 1px solid var(--pk-line);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  scroll-margin-top: 16px;
}
:is(.prose, .doc) h3 { margin: 22px 0 10px; font-size: 1.16rem; line-height: 1.35; scroll-margin-top: 16px; }
.pk-support .policy-copy > p:first-child { font-size: 1.14rem; }
.pk-privacy .policy-copy > p:first-child { color: var(--pk-mute); font-weight: 600; font-size: .9rem; }
.reader-notice, .prose p.reader-notice { color: var(--pk-mute); font-size: .83rem; line-height: 1.55; }
.pk-footer .reader-notice { padding-bottom: 12px; }

code { padding: .1em .3em; border-radius: 4px; background: var(--pk-code); font: .9em ui-monospace, Consolas, monospace; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap :is(th, td) { border: 1px solid var(--pk-line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.table-wrap th { background: var(--pk-code); }
mark.placeholder, mark.note {
  padding: 0 .2em;
  border-radius: 3px;
  outline: 2px dashed currentColor;
  background: var(--mark-bg);
  color: var(--mark-text);
}
mark.note { background: var(--note-bg); }
.draft-banner { padding: .6rem 16px; background: #b3261e; color: #fff; font-size: .95rem; text-align: center; }

@media (max-width: 740px) {
  .reader-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 0; }
  .reader-nav { position: static; }
  .reader-nav details { display: block; border-bottom: 1px solid var(--pk-line); }
  .reader-nav details nav { max-width: none; padding: 0 0 12px 16px; }
  .reader-nav nav.wide-index { display: none; }
  .reader-title h1 { margin-bottom: 20px; }
}

@media (max-width: 600px) {
  .app-card { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .swatch { height: 72px; min-height: 0; border-radius: 12px; }
  .swatch img { width: 56px; height: 56px; border-radius: 11px; }
  .road .swatch::before { display: none; }
  .app-card h3 { line-height: 1.05; }
  .card-foot { gap: 0 10px; }
}

@media (max-width: 480px) {
  .pk-bound { width: calc(100% - 32px); }
  .pk-footrow { flex-wrap: wrap; justify-content: flex-start; gap: 0 16px; padding-block: 8px; }
  .pk-mast, .pk-mast nav, .pk-footer nav { gap: 0 12px; }
  .archive { column-gap: 8px; }
}
