/* Parent guides at /learn. Self-hosted fonts only (no Google Fonts). Inter for reading,
   IBM Plex Mono for practice lines and tables. The header logo is the site lockup. */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1c2130;
  --ink-soft: #59637a;
  --cream: #faf5e9;
  --cream-deep: #f3ead3;
  --paper: #ffffff;
  --line: #e6ddc4;
  --green: #1a8a3c;
  --amber: #ffb000;
  --amber-deep: #b87f00;
  --blue: #2e63d8;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber-deep); outline-offset: 2px; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
  z-index: 5;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(250, 245, 233, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; }
.brand img { display: block; height: 28px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a {
  color: var(--ink-soft);
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
}
.site-header nav a:hover { color: var(--ink); background: rgba(28, 33, 48, 0.06); }
.site-header nav a.button,
a.button {
  display: inline-block;
  background: var(--amber);
  color: #241a02;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 0 var(--amber-deep);
}
.site-header nav a.button:hover,
a.button:hover { color: #241a02; background: #ffc233; }

.crumbs {
  width: min(760px, calc(100% - 32px));
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.crumbs a { color: var(--ink-soft); }
.crumbs [aria-hidden] { margin: 0 4px; }

main {
  width: min(760px, calc(100% - 32px));
  margin: 8px auto 48px;
}
h1 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0.2em 0 0.3em;
}
h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 1.6em 0 0.45em;
}
h3 { font-size: 1.12rem; margin: 1.3em 0 0.35em; }
p { margin: 0.7em 0; }
.lede { font-size: 1.15rem; color: var(--ink-soft); }
.meta {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 0;
}
ul, ol { padding-left: 1.3em; }
li { margin: 0.3em 0; }
li > ul, li > ol { margin: 0.2em 0; }
strong { font-weight: 750; }
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--cream-deep);
  padding: 0.05em 0.3em;
  border-radius: 4px;
}

.table-wrap { overflow-x: auto; margin: 1em 0; -webkit-overflow-scrolling: touch; }
table {
  border-collapse: collapse;
  width: 100%;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  background: var(--paper);
}
th, td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
th { background: var(--cream-deep); font-weight: 600; }

.practice {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.55;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  margin: 1em 0;
}
.practice code { background: none; padding: 0; font-size: inherit; }

.cta {
  margin: 2.2em 0 0.4em;
  padding: 22px 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(28, 33, 48, 0.05);
}
.cta p { margin-top: 0; }
.cta .button { margin-top: 6px; }

.related ul, .sources ul, .guide-list { list-style: none; padding: 0; }
.related a, .guide-list a { font-weight: 700; }
.guide-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 10px 0;
}
.guide-list p { margin: 0.35em 0 0; color: var(--ink-soft); font-size: 0.98rem; }
.sources { margin-top: 2em; font-size: 0.95rem; }
.sources .checked { color: var(--ink-soft); font-family: var(--mono); font-size: 0.8rem; }
.not-found-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 22px 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}
.site-footer a { font-weight: 650; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .links { margin-bottom: 8px; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .site-header { flex-wrap: wrap; padding: 12px 14px; }
  .brand img { height: 22px; }
  .site-header nav { width: 100%; }
  .crumbs, main { width: min(760px, calc(100% - 28px)); }
  .cta { padding: 18px 16px; }
}

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

@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header { position: static; background: #fff; border: 0; }
  .site-header nav, .crumbs, .cta, .related, .skip, .site-footer .links { display: none !important; }
  .site-footer { border: 0; padding: 0; }
  a { color: #000; text-decoration: none; }
  .practice { font-size: 14pt; border-color: #000; background: #fff; }
  pre, table, .practice { break-inside: avoid; }
  article h1::after {
    content: " (homerowmojo.com" attr(data-path) ")";
    font-weight: 400;
    font-size: 11pt;
  }
}
