/* Garage Bay Journal — shared styles
   Publisher: JMR Transport LLC
   Self-contained, no external font or CSS dependencies. */

:root {
  --paper: #f3efe4;
  --paper-raised: #faf7f0;
  --paper-inset: #e8e2d3;
  --ink: #1c1914;
  --ink-soft: #3a352c;
  --muted: #6a6358;
  --rule: #d3cbb8;
  --rule-strong: #b9b09a;
  --accent: #b54a1e;
  --accent-dark: #8a3514;
  --accent-soft: #f0d8cc;
  --steel: #243040;
  --steel-deep: #171e28;
  --steel-mid: #334155;
  --amber: #e0b35a;
  --ok: #3d5a3c;
  --focus: #1d4e89;
  --shadow: 0 10px 28px rgba(28, 25, 20, 0.08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Palatino LT STD", "URW Palladio L", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --measure: 40.5rem;
  --page: 68rem;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(28, 25, 20, 0.03), transparent 120px),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      rgba(28, 25, 20, 0.015) 47px,
      rgba(28, 25, 20, 0.015) 48px
    ),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: -0.011em;
}

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

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

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

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  padding: 0.5rem 0.85rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

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

/* Header */

.site-header {
  background: var(--steel-deep);
  color: var(--paper);
  border-bottom: 4px solid var(--accent);
}

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

.site-header a:hover {
  color: var(--amber);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0.95rem 1.25rem 1.05rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.wordmark svg {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1;
}

.wordmark-kicker {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.wordmark-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav a[aria-current="page"] {
  color: var(--amber);
  box-shadow: inset 0 -2px 0 var(--amber);
}

/* Layout */

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}

.article-wrap {
  max-width: calc(var(--measure) + 2.5rem);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.75rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(14rem, 0.7fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(2.05rem, 4.4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.55;
}

.hero-mark {
  justify-self: end;
  width: min(100%, 240px);
}

.kicker {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.15rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

/* Guide grid */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.guide-card {
  display: flex;
  gap: 1rem;
  height: 100%;
  padding: 1.15rem 1.15rem 1.2rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--steel);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.guide-card:hover {
  border-left-color: var(--accent);
  transform: translateY(-1px);
  color: inherit;
}

.guide-card .icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
}

.guide-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.guide-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Article typography */

.article-header {
  margin-bottom: 1.4rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--rule);
}

.article-header h1 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

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

.disclosure-note,
.placeholder-note {
  margin: 0 0 1.4rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.placeholder-note {
  border-left-color: var(--steel-mid);
  background: var(--paper-inset);
}

.article-body h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.article-body h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.article-body p,
.article-body li {
  color: var(--ink-soft);
}

.article-body p {
  margin: 0 0 1rem;
}

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

.article-body li + li {
  margin-top: 0.35rem;
}

.article-body figure {
  margin: 1.5rem 0;
  padding: 1.1rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  text-align: center;
}

.article-body figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.callout {
  margin: 1.4rem 0;
  padding: 1rem 1.1rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--amber);
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--serif);
  font-size: 1.05rem;
}

/* Legal / about pages */

.prose h1 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.prose h2 {
  margin: 1.8rem 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.prose ul {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  background: var(--steel-deep);
  color: #d7d0c3;
  border-top: 4px solid var(--accent);
}

.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.6rem 1.25rem 1.8rem;
}

.footer-brand {
  margin: 0 0 0.35rem;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.footer-inner p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.92rem;
}

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

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

/* Utilities */

.updated {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive */

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-mark {
    justify-self: start;
    width: 160px;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 1.02rem;
  }

  .header-inner,
  .wrap,
  .article-wrap,
  .footer-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .wordmark-name {
    font-size: 1.25rem;
  }

  .guide-card {
    padding: 1rem;
  }
}

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

  .guide-card {
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .skip-link {
    background: none;
    color: #000;
    border: 0;
  }

  .site-header a,
  .site-footer a {
    color: #000;
  }

  .guide-card,
  .disclosure-note,
  .placeholder-note,
  .callout {
    box-shadow: none;
    break-inside: avoid;
  }
}
