/* Megalith Japan — shared styles */
:root {
  --bg: #f3eee4;
  --paper: #faf7f0;
  --ink: #1b1714;
  --muted: #5d564c;
  --line: #d8cfc0;
  --accent: #7a3418;
  --accent-soft: #f0e3d2;
  --claim-bg: #efe4d2;
  --header-bg: #1b1714;
  --header-ink: #f4efe6;
  --focus: #7a3418;
}

* { box-sizing: border-box; }

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--accent);
  text-underline-offset: 0.12em;
}

a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--header-bg);
  color: var(--header-ink);
  padding: 0.4rem 0.7rem;
  z-index: 10;
}

.skip-link:focus { top: 0.75rem; }

.site-header {
  background: var(--header-bg);
  color: var(--header-ink);
  padding: 0.9rem 1.25rem;
}

.site-header-inner {
  max-width: 44rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-title {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}

.site-title:hover { text-decoration: underline; color: inherit; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--header-ink);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

h1, h2, h3, .lede {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  font-size: 2rem;
  margin: 0 0 0.6rem;
}

h2 {
  font-size: 1.35rem;
  margin: 2.1rem 0 0.7rem;
  padding-top: 0.3rem;
  border-top: 1px solid var(--line);
}

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

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.45rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 1.4rem;
}

.meta, .note, .muted, figcaption, tfoot {
  color: var(--muted);
  font-size: 0.92rem;
}

.page-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0 1.2rem;
  background: var(--paper);
  font-size: 0.95rem;
}

caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
  background: var(--accent-soft);
  width: auto;
}

.facts th { width: 9.5rem; }

ul, ol { padding-left: 1.25rem; }
li { margin: 0.28rem 0; }

.card-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}

.card-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  margin: 0 0 0.8rem;
  padding: 0.9rem 1rem;
}

.card-list h3 { margin: 0 0 0.3rem; border: 0; padding: 0; }
.card-list p { margin: 0; }

.coming-soon li {
  background: transparent;
  border: 1px dashed var(--line);
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.1rem 0.4rem;
  margin-left: 0.35rem;
  color: var(--muted);
  vertical-align: middle;
}

.claim {
  background: var(--claim-bg);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.1rem 0.3rem;
  margin: 1.2rem 0 1.6rem;
}

.claim > h2 {
  border: 0;
  margin: 0 0 0.7rem;
  padding: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer-inner {
  max-width: 44rem;
  margin: 0 auto;
}

.newsletter {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
  color: var(--ink);
}

.newsletter h2 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  border: 0;
  padding: 0;
}

@media (max-width: 640px) {
  html { font-size: 100%; }
  h1 { font-size: 1.7rem; }
  .facts th, .facts td { display: block; width: auto; }
  .facts th { border-bottom: 0; padding-bottom: 0.15rem; }
  .facts tr { border-bottom: 1px solid var(--line); }
  .facts td { border-bottom: 0; }
}
