:root {
  --pok-ridge: #d5cec2;
  --pok-field: #f5f1e8;
  --pok-print: #1a1713;
  --pok-aside: #5c5348;
  --pok-stroke: #c9bfb0;
  --pok-seal: #8a4628;
  --pok-tint: #ebe4d8;
  --pok-mist: rgba(245, 241, 232, 0.72);
  --pok-brand: "Spectral", "Times New Roman", serif;
  --pok-reading: "Jost", "Segoe UI", sans-serif;
  --pok-fs: 1.05rem;
  --pok-leading: 1.55;
  --pok-measure: 44rem;
  --pok-shell: 68rem;
}

@keyframes pok-rise {
  from { opacity: 0; transform: translateY(0.55rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pok-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes pok-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

html.pok {
  overflow-x: clip;
  background-color: var(--pok-ridge);
  background-image:
    radial-gradient(ellipse 90% 55% at 12% -10%, rgba(245, 241, 232, 0.55), transparent 58%),
    radial-gradient(ellipse 70% 45% at 92% 8%, rgba(138, 70, 40, 0.08), transparent 50%),
    repeating-linear-gradient(
      118deg,
      transparent 0,
      transparent 11px,
      rgba(26, 23, 19, 0.028) 11px,
      rgba(26, 23, 19, 0.028) 12px
    );
  color-scheme: light;
}

html.pok body {
  overflow-x: clip;
  margin: 0;
  min-height: 100vh;
  color: var(--pok-print);
  font-family: var(--pok-reading);
  font-size: var(--pok-fs);
  line-height: var(--pok-leading);
  font-weight: 400;
}

html.pok *,
html.pok *::before,
html.pok *::after {
  box-sizing: border-box;
}

.pok-frame {
  width: min(100% - 1.5rem, var(--pok-shell));
  margin-inline: auto;
  padding: 1.15rem 0 2.8rem;
}

.pok-sheet {
  background: var(--pok-field);
  border: 1px solid var(--pok-stroke);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 18px 40px rgba(26, 23, 19, 0.08);
  position: relative;
  padding: 1.35rem clamp(1rem, 3vw, 2rem) 2.2rem;
}

.pok-sheet::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.35rem;
  background: linear-gradient(180deg, var(--pok-seal), #5c5348 55%, var(--pok-stroke));
  pointer-events: none;
}

h1, h2, h3 {
  font-family: var(--pok-brand);
  font-style: normal;
  overflow-wrap: anywhere;
  min-width: 0;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--pok-print);
}

h1 {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
  line-height: 1.18;
  margin: 0 0 0.7rem;
}

h2 {
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 1.8rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--pok-stroke);
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3.2rem;
  height: 2px;
  background: var(--pok-seal);
  transform-origin: left;
  animation: pok-draw 0.7s ease 0.15s both;
}

h3 {
  font-size: 1.08rem;
  margin: 1.1rem 0 0.4rem;
}

p, li, small, td, th {
  overflow-wrap: anywhere;
}

a {
  color: var(--pok-seal);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--pok-print);
}

.pok-pass {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.pok-pass:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  z-index: 8;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.5rem 0.75rem;
  background: var(--pok-field);
  border: 2px solid var(--pok-seal);
  color: var(--pok-print);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--pok-seal);
  outline-offset: 3px;
}

.pok-chap {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--pok-stroke);
  animation: pok-rise 0.55s ease both;
}

.pok-brandblock {
  display: grid;
  gap: 0.35rem;
  max-width: 36rem;
}

.pok-place {
  margin: 0;
  font-family: var(--pok-brand);
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.pok-place a {
  color: var(--pok-print);
  text-decoration: none;
}

.pok-place a:hover {
  color: var(--pok-seal);
}

.pok-deck {
  margin: 0;
  color: var(--pok-aside);
  font-size: 0.98rem;
  max-width: 34rem;
  line-height: 1.45;
}

.pok-way,
.pok-subway {
  margin: 0;
}

.pok-way ul,
.pok-subway ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
}

.pok-way a,
.pok-subway a {
  display: inline-block;
  padding: 0.45rem 0.55rem;
  text-decoration: none;
  color: var(--pok-print);
  border-bottom: 2px solid transparent;
}

.pok-way a:hover,
.pok-subway a:hover {
  color: var(--pok-seal);
}

.pok-way a[aria-current="page"],
.pok-subway a[aria-current="page"] {
  border-bottom-color: var(--pok-seal);
  color: var(--pok-seal);
  font-weight: 600;
}

.pok-way {
  font-weight: 500;
}

.pok-subway {
  font-size: 0.92rem;
  color: var(--pok-aside);
  padding-top: 0.15rem;
  border-top: 1px dashed var(--pok-stroke);
}

.pok-folio {
  animation: pok-fade 0.65s ease 0.08s both;
  min-width: 0;
}

.pok-lead {
  margin: 0 0 1.35rem;
  max-width: 40rem;
  color: var(--pok-aside);
  font-size: 1.05rem;
}

.pok-spotlight {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem 1.35rem;
  margin: 0 0 1.75rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--pok-stroke);
  border-bottom: 1px solid var(--pok-stroke);
}

.pok-spot {
  min-width: 0;
}

.pok-spot-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pok-aside);
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.pok-spot h2 {
  margin-top: 0;
  border: 0;
  padding: 0;
  font-size: 1.35rem;
}

.pok-spot h2::after {
  display: none;
}

.pok-spot p {
  margin: 0.35rem 0;
  color: var(--pok-aside);
}

.pok-spot .pok-more {
  margin-top: 0.65rem;
  display: inline-block;
  font-weight: 600;
}

.pok-ledger {
  width: 100%;
  border-collapse: collapse;
  margin: 0.4rem 0 1rem;
}

.pok-ledger th,
.pok-ledger td {
  text-align: start;
  padding: 0.7rem 0.45rem;
  border-bottom: 1px solid var(--pok-stroke);
  vertical-align: top;
  font-weight: 400;
}

.pok-ledger th {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pok-aside);
  font-weight: 600;
  border-bottom-color: var(--pok-print);
}

.pok-ledger a {
  font-weight: 600;
  color: var(--pok-print);
  text-decoration: none;
}

.pok-ledger a:hover {
  color: var(--pok-seal);
  text-decoration: underline;
}

.pok-ledger .pok-meta {
  color: var(--pok-aside);
  font-size: 0.95rem;
  white-space: nowrap;
}

.pok-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
  margin: 0.5rem 0 1.2rem;
}

.pok-hub-cell {
  min-width: 0;
  padding: 0.85rem 0.9rem;
  border-left: 3px solid var(--pok-seal);
  background: linear-gradient(90deg, rgba(138, 70, 40, 0.06), transparent 70%);
}

.pok-hub-cell a {
  font-family: var(--pok-brand);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--pok-print);
  text-decoration: none;
}

.pok-hub-cell a:hover {
  color: var(--pok-seal);
}

.pok-hub-cell p {
  margin: 0.35rem 0 0;
  color: var(--pok-aside);
  font-size: 0.95rem;
}

.pok-stack {
  display: grid;
  gap: 0.85rem;
  margin: 0.5rem 0 1.2rem;
}

.pok-leg {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--pok-stroke);
}

.pok-leg:last-child {
  border-bottom: 0;
}

.pok-leg p {
  margin: 0.2rem 0;
}

.pok-leg > p:first-child a {
  font-weight: 600;
  color: var(--pok-print);
  text-decoration: none;
}

.pok-leg > p:first-child a:hover {
  color: var(--pok-seal);
  text-decoration: underline;
}

.pok-para {
  max-width: 38rem;
}

.pok-para p,
.pok-para li {
  margin: 0.65rem 0;
}

.pok-para h2,
.pok-para h3 {
  max-width: 38rem;
}

.pok-essay header {
  max-width: 40rem;
  margin-bottom: 0.4rem;
}

.pok-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--pok-seal);
}

.pok-dateline {
  margin: 0 0 0.9rem;
  color: var(--pok-aside);
  font-size: 0.95rem;
}

.pok-byline {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  margin: 0.9rem 0 1.25rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--pok-stroke);
  border-bottom: 1px solid var(--pok-stroke);
  max-width: 40rem;
}

.pok-byline p {
  margin: 0.18rem 0;
}

.pok-byline-lead {
  border: 0;
  padding: 0;
  margin: 0 0 1.35rem;
  max-width: none;
}

.pok-avatar {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border: 1px solid var(--pok-stroke);
  background: var(--pok-tint);
  flex-shrink: 0;
  filter: sepia(0.12) contrast(1.02);
}

.pok-avatar-lg {
  width: 7.5rem;
  height: 7.5rem;
}

.pok-empty {
  color: var(--pok-aside);
  font-style: italic;
}

.pok-masthead {
  font-style: normal;
  margin: 0.8rem 0 1.2rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--pok-seal);
  background: rgba(138, 70, 40, 0.05);
  max-width: 28rem;
}

.pok-masthead p {
  margin: 0.15rem 0;
}

.pok-check {
  list-style: none;
  margin: 1rem 0 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  max-width: 40rem;
  counter-reset: pok-stop;
}

.pok-check li {
  counter-increment: pok-stop;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.85rem;
  align-items: start;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--pok-stroke);
  background: rgba(255, 255, 255, 0.35);
}

.pok-check input {
  margin-top: 0.35rem;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--pok-seal);
}

.pok-check label {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  cursor: pointer;
}

.pok-check label::before {
  content: counter(pok-stop, decimal-leading-zero);
  font-family: var(--pok-brand);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pok-seal);
  letter-spacing: 0.04em;
}

.pok-check h2 {
  margin: 0;
  border: 0;
  padding: 0;
  font-size: 1.15rem;
}

.pok-check h2::after {
  display: none;
}

.pok-check p {
  margin: 0;
  color: var(--pok-aside);
}

.pok-check li.is-done {
  opacity: 0.62;
}

.pok-check li.is-done h2 {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.pok-trust {
  color: var(--pok-aside);
  font-size: 0.95rem;
  max-width: 40rem;
}

.pok-footlinks {
  line-height: 1.75;
}

.pok-footlinks a {
  color: var(--pok-aside);
}

.pok-close {
  margin-top: 2.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--pok-stroke);
  color: var(--pok-aside);
  font-size: 0.92rem;
  animation: pok-rise 0.55s ease 0.12s both;
}

.pok-close p {
  margin: 0.35rem 0;
}

.pok-back {
  margin-top: 1.5rem;
}

input, textarea, button {
  font: inherit;
  color: inherit;
}

textarea,
input[type="text"] {
  width: 100%;
  max-width: 100%;
  background: var(--pok-field);
  border: 1px solid var(--pok-stroke);
  padding: 0.45rem;
}

button,
.pok-printbtn {
  background: transparent;
  border: 1px solid var(--pok-seal);
  color: var(--pok-seal);
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

button:hover,
.pok-printbtn:hover {
  background: rgba(138, 70, 40, 0.08);
}

fieldset {
  border: 1px solid var(--pok-stroke);
  min-width: 0;
  margin: 0 0 0.75rem;
}

label {
  display: block;
  margin: 0.35rem 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--pok-stroke);
}

ul.pok-stops,
ol.pok-stops {
  padding-inline-start: 1.2rem;
  margin: 0.5rem 0 1rem;
}

ul.pok-stops li,
ol.pok-stops li {
  margin: 0.4rem 0;
}

.pok-days2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.7rem;
}

@media (max-width: 48rem) {
  .pok-spotlight {
    grid-template-columns: 1fr;
  }

  .pok-hub {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  .pok-frame {
    width: min(100% - 0.9rem, var(--pok-shell));
    padding-top: 0.85rem;
  }

  .pok-sheet {
    padding: 1rem 0.85rem 1.6rem;
  }

  .pok-sheet::before {
    width: 0.28rem;
  }

  .pok-ledger thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .pok-ledger,
  .pok-ledger tbody,
  .pok-ledger tr,
  .pok-ledger td {
    display: block;
    width: auto;
  }

  .pok-ledger tr {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--pok-stroke);
  }

  .pok-ledger td {
    padding: 0.15rem 0;
    border: 0;
  }

  .pok-ledger .pok-meta {
    white-space: normal;
  }

  .pok-byline {
    gap: 0.75rem;
  }

  .pok-avatar {
    width: 3.75rem;
    height: 3.75rem;
  }

  .pok-avatar-lg {
    width: 5.5rem;
    height: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .pok-way,
  .pok-subway,
  .pok-pass,
  .pok-printbtn {
    display: none !important;
  }

  html.pok {
    background: #fff;
  }

  .pok-frame {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .pok-sheet {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .pok-sheet::before {
    display: none;
  }
}
