/* SmallSpace — calm, light, minimal. Draft site, not published. */
:root {
  --bg: #f6f3ee;
  --bg-alt: #efebe4;
  --text: #2b2723;
  --muted: #5c564f;
  --border: #ddd6cc;
  --accent: #4a5a3c;
  --accent-hover: #33402a;
  --card: #fffcf8;
  --max-article: 40rem;
  --max-page: 64rem;
  --space: 1.25rem;
  --font-serif: "Newsreader", "Source Serif Pro", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
}

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

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

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

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

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max-page), calc(100% - 2.5rem));
  margin-inline: auto;
}

header.site {
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

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

nav.site-nav {
  display: flex;
  gap: 1.35rem;
}

nav.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

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

main {
  padding: 3.25rem 0 4.5rem;
}

.hero {
  width: min(var(--max-article), 100%);
  margin: 0 auto 3.5rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 36rem;
}

.guide-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  width: min(var(--max-page), 100%);
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .guide-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem 1.4rem 1.35rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color 160ms ease;
}

.guide-card:hover {
  border-color: #c9c0b3;
  color: inherit;
}

.guide-card h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  flex: 1;
}

.guide-card .more {
  margin-top: 1.15rem;
  color: var(--accent);
  font-size: 0.9rem;
}

article.guide,
article.page {
  width: min(var(--max-article), 100%);
  margin: 0 auto;
}

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

article h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 4.4vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
}

.byline {
  color: var(--muted);
  margin: 0 0 2.5rem;
  font-size: 0.98rem;
}

article .body h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 2.6rem 0 0.85rem;
}

article .body h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  margin: 1.8rem 0 0.5rem;
}

article .body p,
article .body li {
  font-size: 1.02rem;
}

article .body p {
  margin: 0 0 1.05rem;
}

article .body ul,
article .body ol {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
}

article .body li {
  margin: 0 0 0.45rem;
}

article .body li::marker {
  color: var(--muted);
}

article .body strong {
  font-weight: 600;
}

footer.site {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

footer.site a {
  color: var(--muted);
}

footer.site a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  html { font-size: 100%; }
  .wrap { width: min(var(--max-page), calc(100% - 2rem)); }
  main { padding: 2.25rem 0 3.25rem; }
  header.site { padding: 1.15rem 0 1rem; }
}
