/* TidyHow shared styles — system fonts only, no external dependencies */
:root {
  --text: #1d2321;
  --muted: #5b6662;
  --bg: #ffffff;
  --soft: #f4f7f6;
  --line: #dde4e1;
  --accent: #1f6f5c;
  --accent-dark: #16513f;
  --maxw: 72rem;
  --readw: 44rem;
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, .btn:focus-visible { outline: 3px solid #f2b84b; outline-offset: 2px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }

/* Header & footer */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .9rem; padding-bottom: .9rem; }
.brand { font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.site-footer { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); }

/* Typography */
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: .4rem 0 .8rem; }
h2 { font-size: 1.45rem; margin: 2.4rem 0 .6rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .4rem; }
p, ul, ol { margin: 0 0 1.1rem; }
li { margin-bottom: .35rem; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--soft); padding: .1em .35em; border-radius: 4px; }
kbd { display: inline-block; padding: .05em .4em; border: 1px solid #c9d2ce; border-bottom-width: 2px; border-radius: 4px; background: #fff; white-space: nowrap; }
.kicker { margin: 0; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent); }
.meta { color: var(--muted); font-size: .92rem; }
.lede { font-size: 1.17rem; color: #323b38; }

/* Home */
.hero { padding: 3.5rem 0 2rem; max-width: var(--readw); }
.hero p { font-size: 1.15rem; color: #323b38; }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: .65rem 1.2rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.cards { list-style: none; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; background: #fff; display: flex; flex-direction: column; margin: 0; }
.card h3 { margin: .4rem 0 .5rem; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p { color: var(--muted); font-size: .98rem; flex: 1; }
.card .more { font-weight: 600; text-decoration: none; }
.principles { margin-top: 3rem; }
.grid3 { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid3 p { color: var(--muted); }

/* Articles */
.crumbs { font-size: .9rem; color: var(--muted); margin-top: 1.5rem; }
.crumbs a { color: var(--muted); }
.article { max-width: var(--readw); margin-top: 1.25rem; }
.article-head { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.note, .tip { background: var(--soft); border-left: 4px solid var(--accent); padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: .97rem; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1rem; height: 1.1rem; border: 2px solid var(--accent); border-radius: 4px; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.related { margin-top: 3rem; padding: 1.25rem 1.4rem; background: var(--soft); border-radius: var(--radius); }
.related h2 { margin-top: 0; font-size: 1.2rem; }
.related ul { margin: 0; }
.contact-box { font-size: 1.2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero { padding-top: 2rem; }
  .header-inner { justify-content: center; }
  .site-nav { justify-content: center; gap: 1rem; }
}
@media print {
  .site-header, .site-footer, .crumbs, .related, .skip { display: none; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; }
}
