/* Kitchen Table Sheets — direction A (notebook / spec card) */
@import url("https://fonts.googleapis.com/css2?family=Jost:wght@400;500;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap");

:root {
  --paper: #F3EEE4;
  --card: #FBF8F2;
  --ink: #1E1C19;
  --kraft: #C9AE84;
  --kraft-soft: #EFE6D3;
  --rule: #D8CDB8;
  --muted: #5A554C;
  --link: #2F5D8A;
  --sage: #B9C4A7;
  --sky: #A9BDD0;
  --clay: #D6B3A0;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--link); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; margin: 0;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* top strip + header */
.strip {
  background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  text-transform: uppercase; text-align: center; padding: 10px 16px;
}
.site-head { border-bottom: 2px solid var(--ink); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px 24px; padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand b { font-weight: 800; font-size: 25px; letter-spacing: .04em; text-transform: uppercase; }
.brand span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  border: 1.5px solid var(--ink); padding: 2px 6px; white-space: nowrap;
}
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.nav a {
  text-decoration: none; font-weight: 500; font-size: 15px;
  text-transform: uppercase; letter-spacing: .05em; padding: 6px 0;
}
.nav a[aria-current="page"] { border-bottom: 2px solid var(--ink); }

/* buttons */
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .06em;
  padding: 15px 24px; border: 2px solid var(--ink); background: var(--ink); color: var(--paper);
}
.btn:hover { background: #3a362f; color: var(--paper); }
.btn.alt { background: var(--card); color: var(--ink); }
.btn.alt:hover { background: var(--kraft-soft); color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 60px 0 56px; }
.hero > div { flex: 1 1 440px; min-width: 0; }
.hero h1 {
  margin: 16px 0 20px; font-weight: 800; font-size: clamp(40px, 6vw, 64px);
  line-height: .98; text-transform: uppercase; letter-spacing: .01em;
}
.hero p.lead { font-size: 20px; max-width: 34rem; margin: 0 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* spec card (kraft) */
.spec { background: var(--kraft); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.spec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.spec-head b { font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: .04em; }
.spec-head span { font-family: var(--mono); font-size: 12px; }
.spec p { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.6; }

/* sheet-like tables */
.sheet { background: var(--card); border: 1.5px solid var(--ink); overflow-x: auto; }
.sheet table { border-collapse: collapse; width: 100%; font-family: var(--mono); font-size: 13px; }
.sheet th { background: var(--ink); color: var(--card); font-weight: 500; padding: 8px 10px; text-align: right; white-space: nowrap; }
.sheet th:first-child, .sheet td:first-child { text-align: left; }
.sheet td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.sheet tr.hit td { background: var(--kraft-soft); font-weight: 600; }
.sheet caption {
  caption-side: top; text-align: left; padding: 9px 12px; border-bottom: 1.5px solid var(--ink);
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
}

/* sections */
.band { border-top: 2px solid var(--ink); }
.band .wrap { padding-top: 48px; padding-bottom: 56px; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 26px; }
h2 { font-weight: 800; font-size: 32px; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; margin: 0; }
h3 { font-weight: 700; font-size: 21px; line-height: 1.25; margin: 0; }

/* cards grid */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1.5px solid var(--ink); display: flex; flex-direction: column; text-decoration: none; }
a.card:hover { color: var(--ink); background: #fffdf8; }
.card .thumb { border-bottom: 1.5px solid var(--ink); padding: 14px; background: var(--kraft); }
.card .thumb i {
  display: block; height: 92px; border: 1px solid var(--ink);
  background:
    linear-gradient(var(--ink), var(--ink)) top / 100% 18px no-repeat,
    repeating-linear-gradient(180deg, transparent 0 18px, var(--rule) 18px 19px),
    repeating-linear-gradient(90deg, transparent 0 24.5%, var(--rule) 24.5% 25%),
    var(--card);
}
.card .body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .body p { margin: 0; font-size: 16px; line-height: 1.45; }
.card .meta { font-family: var(--mono); font-size: 12px; line-height: 1.6; border-top: 1px dashed var(--ink); padding-top: 10px; margin-top: auto; }
.card.soon { border-style: dashed; background: transparent; }
.card.soon .thumb { background: transparent; border-bottom-style: dashed; }

/* dark band */
.dark { background: var(--ink); color: var(--paper); }
.dark .wrap { padding-top: 52px; padding-bottom: 52px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.dark .eyebrow { color: var(--kraft); }
.dark h2 { font-size: 34px; margin: 10px 0 12px; }
.dark p { margin: 0; max-width: 38rem; }

/* three points */
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.points > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.points h3 { text-transform: uppercase; margin: 8px 0; }
.points p { margin: 0; font-size: 17px; }

/* template page */
.crumbs { font-family: var(--mono); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 26px; }
.tpl-top { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-bottom: 40px; }
.tpl-top > .intro { flex: 999 1 560px; min-width: 0; }
.tpl-top h1 { font-weight: 800; font-size: clamp(36px, 5vw, 54px); line-height: 1; text-transform: uppercase; margin: 14px 0 18px; }
.tpl-top .intro p { font-size: 20px; margin: 0; max-width: 40rem; }
.get { flex: 1 1 320px; min-width: 0; background: var(--kraft); border: 2px solid var(--ink); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.get p { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.6; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 2px solid var(--ink); background: var(--card); margin: 28px 0 48px; }
.facts > div { padding: 15px 18px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.facts dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 4px 0 0; font-size: 17px; }
.cols { display: flex; flex-wrap: wrap; gap: 48px; padding-bottom: 64px; }
.cols > article { flex: 999 1 560px; min-width: 0; }
.cols > aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
article h2 { font-size: 28px; margin: 44px 0 14px; }
article h2:first-child { margin-top: 0; }
article p, article li { font-size: 18px; }
article p { margin: 0 0 14px; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: s; }
.steps li { display: flex; gap: 16px; align-items: baseline; counter-increment: s; }
.steps li::before {
  content: counter(s); font-family: var(--mono); font-weight: 600; font-size: 15px;
  border: 1.5px solid var(--ink); padding: 1px 8px; flex: none;
}
.compare { margin: 8px 0 18px; }
.note { font-family: var(--mono); font-size: 13px; color: var(--muted); }
aside h2 { font-size: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin: 0; }
.mini { text-decoration: none; border: 1.5px solid var(--ink); background: var(--card); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.mini.soon { border-style: dashed; background: transparent; }
.mini span { font-family: var(--mono); font-size: 12px; }
.mini b { font-size: 18px; }
/* reserved space for ads from 2027 – empty and hidden until used */
.ad-slot:empty { display: none; }

/* plain text pages */
.prose { max-width: 46rem; padding: 40px 0 72px; }
.prose h1 { font-weight: 800; font-size: clamp(36px, 5vw, 52px); line-height: 1; text-transform: uppercase; margin: 0 0 24px; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose p, .prose li { font-size: 18px; }

/* footer */
.site-foot { border-top: 2px solid var(--ink); }
.site-foot .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px;
  padding-top: 26px; padding-bottom: 30px; font-family: var(--mono); font-size: 13px;
}
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding: 40px 0; gap: 32px; }
  .spec { padding: 18px; }
  h2 { font-size: 27px; }
  .btn { width: 100%; }
  .brand b { font-size: 21px; }
  .strip { font-size: 11px; }
}
