/* Oshi Trip — shared styles. System fonts, mobile-first, no external assets. */
:root {
  --ink: #1f2937;
  --muted: #5b6472;
  --accent: #1d4ed8;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --line: #d9dee6;
  --maxw: 44rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
}
.site-header, .site-footer, main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.1rem;
}
.site-header { padding-top: 1.4rem; padding-bottom: 0.6rem; border-bottom: 2px dotted var(--line); }
.site-name { font-weight: 700; font-size: 1.15rem; }
.site-name a { color: var(--ink); text-decoration: none; }
.site-footer {
  padding-top: 1rem; padding-bottom: 2rem;
  color: var(--muted); font-size: 0.9rem;
  border-top: 2px dotted var(--line); margin-top: 2.5rem;
}
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0.6rem 0 1rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.2rem 0 0.7rem; padding-bottom: 0.35rem; border-bottom: 2px dotted var(--line); }
h3 { font-size: 1.15rem; line-height: 1.35; margin: 1.9rem 0 0.6rem; }
p { margin: 0.8rem 0; }
ul { margin: 0.8rem 0; padding-left: 1.3rem; }
li { margin: 0.45rem 0; }
a { color: var(--accent); }
strong { font-weight: 700; }
.lede { color: var(--muted); font-size: 1.1rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  min-width: 36rem;
}
th, td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
th { background: var(--soft); font-weight: 700; }
tbody tr:nth-child(even) td { background: #fbfcfd; }
.article-card {
  display: block;
  border: 2px dotted var(--line);
  border-radius: 0.6rem;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  text-decoration: none;
  color: var(--ink);
  background: var(--soft);
}
.article-card:hover { border-color: var(--accent); }
.article-card .card-title { font-weight: 700; font-size: 1.15rem; color: var(--accent); }
.article-card .card-desc { color: var(--muted); margin-top: 0.3rem; }
img.pin { max-width: 100%; height: auto; border-radius: 0.5rem; }
@media (max-width: 480px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.55rem; }
  table { font-size: 0.88rem; }
}
blockquote {
  margin: 1rem 0;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 0.98rem;
}

/* Pixel-art brand icons (v0 samples) — keep the pixels crisp at small display sizes. */
.icon-pixel { image-rendering: pixelated; }
.site-name .icon-pixel { width: 1.7rem; height: 1.7rem; vertical-align: -0.45rem; margin-right: 0.4rem; }
.hero-icon { width: 3.2rem; height: 3.2rem; vertical-align: -0.65rem; margin-right: 0.5rem; }
.card-icon { width: 2.8rem; height: 2.8rem; display: block; margin-bottom: 0.5rem; }
.article-icon { width: 3rem; height: 3rem; vertical-align: -0.55rem; margin-right: 0.5rem; }

/* Theme icon strip (home) */
.themes-heading { margin-top: 2.2rem; }
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem 0.6rem; margin: 1rem 0 0.5rem; }
.theme { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; font-size: 0.82rem; line-height: 1.25; }
.theme-icon { width: 52px; height: 52px; object-fit: contain; }
@media (max-width: 560px) { .themes { grid-template-columns: repeat(3, 1fr); } }

/* Layout with sidebar (added 2026-11-09) */
.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.1rem;
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 44rem);
  gap: 2.2rem;
  justify-content: center;
}
.wrap main { max-width: none; margin: 0; padding: 0; }
.sidebar { padding-top: 1.1rem; }
.sidebar nav {
  position: sticky; top: 1rem;
  border: 2px dotted var(--line); border-radius: 10px;
  padding: 0.9rem 1rem 1rem; background: var(--soft);
}
.side-h { font-size: 1rem; margin: 0.9rem 0 0.4rem; border-bottom: none; padding-bottom: 0; }
.side-h:first-child { margin-top: 0; }
.side-list { list-style: none; margin: 0.2rem 0 0.4rem; padding-left: 0; }
.side-list li { margin: 0.3rem 0; }
.side-list a { text-decoration: none; }
.side-list a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 44rem); gap: 0.8rem; }
  .sidebar { padding-top: 0.7rem; }
  .sidebar nav { position: static; }
}
