:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --ink: #413b47;
  --accent: #705184;
  --line: #d8cfdc;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  margin: 0;
}
.palworld {
  --paper: #f3f7ef;
  --ink: #153c36;
  --accent: #17634f;
  --line: #cbdcd2;
  color: var(--ink);
  background: var(--paper);
}
.palworld .site-header { background: #123e37; }
.palworld .game-nav { background: #e5eee3; }
.palworld .card, .palworld .callout { background: #fffef8; }
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
select {
  font: inherit;
}
button,
a.button {
  cursor: pointer;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
input,
select {
  padding: 0.7rem;
  border: 1px solid #a99ab3;
  border-radius: 4px;
  background: #fff;
  color: #302735;
  max-width: 100%;
}
label {
  display: grid;
  gap: 0.4rem;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #bf7a13;
  outline-offset: 4px;
}
.site-header {
  background: #292430;
  color: #faf5ff;
  padding: 1.2rem max(1.25rem, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-header a {
  color: inherit;
}
.brand {
  font-size: 1.1rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.site-header nav,
.game-nav {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
}
.game-nav {
  max-width: 1180px;
  margin: auto;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.game-nav a[aria-current="page"] {
  font-weight: 750;
}
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}
.eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  color: #715e7e;
}
.page h1 {
  font:
    normal clamp(2.2rem, 5vw, 3.8rem)/1.1 Georgia,
    serif;
  max-width: 900px;
  margin: 0.75rem 0 1.25rem;
}
.lede {
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 750px;
}
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 740px) 260px;
  gap: 4rem;
  align-items: start;
}
.prose {
  font-size: 1.05rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.prose h2 {
  font:
    normal 1.8rem/1.3 Georgia,
    serif;
  margin: 2.4rem 0 1rem;
  scroll-margin-top: 1rem;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.prose td,
.prose th {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem;
}
.prose th {
  background: #e9e1ed;
}
.prose p {
  margin: 1rem 0;
}
.reading-aside {
  position: sticky;
  top: 1.5rem;
  border-left: 2px solid #bda4c9;
  padding-left: 1.2rem;
  line-height: 1.7;
}
.reading-aside ol {
  padding-left: 1.2rem;
}
.reading-aside li {
  margin: 0.65rem 0;
}
.meta {
  font-size: 0.9rem;
  color: #675c6d;
  line-height: 1.6;
}
.callout {
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1.4rem;
  background: #eee6f1;
  margin: 2rem 0;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.3rem;
  margin: 2rem 0;
}
.card {
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: #fffdf9;
  border-radius: 6px;
}
.card h2,
.card h3 {
  margin-top: 0;
  font-family: Georgia, serif;
  font-weight: normal;
}
.card p {
  line-height: 1.7;
}
.osrs {
  --paper: #181e16;
  --ink: #e8ddbf;
  --accent: #ddbd71;
  --line: #605c43;
  color-scheme: dark;
}
.osrs .card {
  background: #262e22;
}
.osrs .meta,
.osrs .eyebrow {
  color: #d4c49a;
}
.eve {
  --paper: #111920;
  --ink: #d8e5ed;
  --accent: #8cc8e8;
  --line: #354854;
  color-scheme: dark;
}
.eve .card {
  background: #192630;
}
.eve .meta,
.eve .eyebrow {
  color: #9ebecd;
}
.site-footer {
  max-width: 1180px;
  margin: auto;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.7;
}
.skip {
  position: absolute;
  left: -10000px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: white;
  padding: 1rem;
  z-index: 20;
}
.tool-form {
  display: grid;
  gap: 1rem;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1rem;
}
.target-row {
  display: flex;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}
.target-row label {
  flex: 1;
}
.actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}
.secondary {
  background: transparent;
  color: var(--accent);
}
.error {
  color: #942d3f;
  background: #fff0f2;
  padding: 1rem;
  border-left: 3px solid #942d3f;
}
.result {
  border-top: 2px solid var(--accent);
  padding-top: 1.5rem;
  margin-top: 2rem;
}
.result table {
  width: 100%;
  border-collapse: collapse;
}
.result td,
.result th {
  text-align: left;
  padding: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.table-scroll {
  overflow: auto;
}
details {
  margin: 1rem 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.tool-layout {
  max-width: 900px;
}
.notice {
  padding: 1rem;
  background: #ebe5ef;
  line-height: 1.6;
}
.search-results {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.search-results button {
  background: #fff;
  color: var(--accent);
}
@media (max-width: 850px) {
  .article-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .reading-aside {
    position: static;
    grid-row: 1;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 1rem;
  }
  .reading-aside ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    list-style: none;
    padding: 0;
  }
  .page {
    padding-top: 1.7rem;
  }
  .site-header {
    align-items: flex-start;
  }
}
@media print {
  .site-header,
  .game-nav,
  .reading-aside,
  .callout,
  .site-footer {
    display: none;
  }
  .article-grid {
    display: block;
  }
  .page {
    padding: 0;
  }
  .prose {
    color: black;
  }
  a {
    color: inherit;
  }
}
