/* Saltwick Guides — original text-only styles. No official game art, logos, or logo-like fonts. */
:root {
  --bg: #f6f3ec;
  --bg-elevated: #fffcf6;
  --ink: #1c1a16;
  --muted: #5b564d;
  --accent: #1f4a44;
  --accent-hover: #163632;
  --rule: #d8d2c6;
  --footer-bg: #ece7dc;
  --focus: #1f4a44;
  --link: #1f4a44;
  --link-hover: #0f2c28;
  --max: 42rem;
  --font-sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

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

html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--link-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--ink);
  color: var(--bg-elevated);
  padding: 0.4rem 0.75rem;
  border-radius: 0.25rem;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--bg-elevated);
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg-elevated);
}

.header-inner,
.footer-inner,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem 0;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}

.wordmark:hover,
.wordmark:focus-visible {
  color: var(--accent);
}

.wordmark span {
  font-weight: 500;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

main {
  flex: 1;
  padding: 2rem 0 3rem;
}

.wrap h1 {
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.25;
  margin: 2.1rem 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.6rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.25rem 0;
}

.lede,
.intro {
  font-size: 1.05rem;
}

.cite {
  font-size: 0.8em;
  font-weight: 500;
  white-space: nowrap;
}

.cite a {
  text-decoration: none;
}

.cite a:hover {
  text-decoration: underline;
}

.note,
.disclosure {
  color: var(--muted);
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
  border: 1px solid var(--rule);
  border-radius: 0.4rem;
  background: var(--bg-elevated);
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 28rem;
}

caption {
  text-align: left;
  font-weight: 650;
  font-family: var(--font-serif);
  padding: 0.85rem 0.9rem 0.4rem;
  color: var(--ink);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.9rem;
  border-top: 1px solid var(--rule);
}

thead th {
  background: #efebe2;
  font-weight: 650;
  border-top: 0;
}

tbody th {
  font-weight: 600;
  width: 36%;
}

tbody tr:nth-child(even) td,
tbody tr:nth-child(even) th {
  background: #f3efe6;
}

.sources {
  padding-left: 1.4rem;
}

.sources li {
  margin: 0.45rem 0;
  overflow-wrap: anywhere;
}

.sources a {
  overflow-wrap: anywhere;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
  padding: 1.15rem 1.2rem;
  margin: 1.25rem 0;
}

.card p:last-child {
  margin-bottom: 0;
}

.cta {
  display: inline-block;
  margin: 0.25rem 0 0.5rem;
  padding: 0.55rem 0.95rem;
  background: var(--accent);
  color: #f6f3ec;
  text-decoration: none;
  border-radius: 0.3rem;
  font-weight: 600;
}

.cta:hover,
.cta:focus-visible {
  background: var(--accent-hover);
  color: #fff;
}

.coming {
  color: var(--muted);
}

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--rule);
  padding: 1.4rem 0 1.6rem;
  margin-top: auto;
}

.site-footer p {
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 0.75rem;
}

.footer-nav a {
  color: var(--ink);
  font-size: 0.9rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 36rem) {
  html {
    font-size: 100%;
  }

  main {
    padding: 1.4rem 0 2.25rem;
  }
}

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