/* ==========================================================================
   Tenant Coffee (demo) — Site Stylesheet
   Adapted from the Affiliate Agent Kit site-template/style.css.
   Plain modern, mobile-first, system font stack, zero external dependencies.
   ========================================================================== */

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #1f2328;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
hr { border: 0; border-top: 1px solid #e6e8eb; margin: 2rem 0; }

/* ---- Layout ------------------------------------------------------------- */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
site-header, site-footer { display: block; }

.site-header {
  border-bottom: 1px solid #e6e8eb;
  background: #ffffff;
  padding: 18px 0;
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.site-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2328;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-title:hover { text-decoration: underline; }
.site-tagline {
  font-size: 0.85rem;
  color: #57606a;
  margin-left: 8px;
  font-weight: 400;
}
.site-nav a {
  color: #1f2328;
  text-decoration: none;
  margin-left: 16px;
  font-size: 0.95rem;
}
.site-nav a:first-child { margin-left: 0; }
.site-nav a:hover, .site-nav a:focus { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; }

main { padding: 32px 0 48px; }

.site-footer {
  border-top: 1px solid #e6e8eb;
  padding: 24px 0 40px;
  font-size: 0.9rem;
  color: #57606a;
  background: #fafbfc;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.site-footer a { color: #57606a; }
.site-footer a:hover { color: #1f2328; }

/* ---- Typography --------------------------------------------------------- */
h1, h2, h3, h4 { line-height: 1.25; color: #1f2328; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: 2rem; font-weight: 700; margin-top: 0.2em; }
h2 { font-size: 1.45rem; font-weight: 700; margin-top: 1.6em; }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.4em; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

a { color: #0a5cad; }
a:hover { color: #084077; }

blockquote {
  margin: 1.2em 0;
  padding: 0.4em 1em;
  border-left: 4px solid #d0d7de;
  color: #424a53;
  background: #f6f8fa;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}
code { background: #f6f8fa; padding: 0.1em 0.35em; border-radius: 4px; }
pre {
  background: #f6f8fa;
  padding: 12px 14px;
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.45;
}

/* ---- Marker styling (visible placeholders) ----------------------------- */
.marker {
  display: inline-block;
  background: #fff8c5;
  color: #4a3700;
  border: 1px dashed #d4a72c;
  border-radius: 4px;
  padding: 1px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  font-weight: 600;
  white-space: nowrap;
}

/* ---- Disclosure blocks -------------------------------------------------- */
.disclosure {
  background: #fff8c5;
  border: 1px solid #d4a72c;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 1.4em 0;
  font-size: 0.95rem;
  color: #3a2a00;
}
.disclosure strong { color: #2a1f00; }
.disclosure--inline {
  border-left: 4px solid #d4a72c;
}
.disclosure--page {
  background: #f6f8fa;
  border-color: #d0d7de;
  color: #1f2328;
}

/* ---- Recommendation cards (in articles) --------------------------------- */
.recommendation {
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 1.4em 0;
  background: #ffffff;
}
.recommendation h3 { margin-top: 0; }
.recommendation .tag {
  display: inline-block;
  background: #eaf2fb;
  color: #0a5cad;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 6px;
}
.recommendation .why { color: #424a53; font-size: 0.95rem; }
.recommendation .price { color: #1f2328; font-weight: 600; }
.affiliate-link {
  display: inline-block;
  margin-top: 8px;
  background: #0a5cad;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.affiliate-link:hover { background: #084077; color: #ffffff; }

/* ---- Homepage hero + cards --------------------------------------------- */
.hero { padding: 24px 0 12px; }
.hero p.lede { font-size: 1.15rem; color: #424a53; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 1.4em 0 0.5em;
  padding: 0;
  list-style: none;
}
.card {
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 16px 18px;
  background: #fafbfc;
}
.card h3 { margin-top: 0; font-size: 1.05rem; }
.card p { margin-bottom: 0; color: #424a53; font-size: 0.95rem; }
.card a { text-decoration: none; }
.card a:hover h3 { text-decoration: underline; }

/* ---- Contact / About specifics ----------------------------------------- */
.contact-block {
  border: 1px solid #d0d7de;
  border-radius: 8px;
  padding: 18px 20px;
  background: #fafbfc;
  margin: 1.4em 0;
}
.contact-block dl { margin: 0; }
.contact-block dt { font-weight: 600; margin-top: 8px; }
.contact-block dt:first-child { margin-top: 0; }
.contact-block dd { margin: 2px 0 0 0; color: #424a53; }

/* ---- Tables (policy pages) --------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.4em;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #e6e8eb;
  vertical-align: top;
}
th { background: #f6f8fa; font-weight: 600; }

/* ---- Demo notice (every page) ------------------------------------------ */
/* Per the demo-label rule, every page carries a small visible notice.        */
/* It is unobtrusive, placed at the top of the main content, and repeats in   */
/* the footer. It does not use the same color as the affiliate disclosure so  */
/* the two are not confusable. */
.demo-notice {
  background: #eef2f7;
  border: 1px solid #c8d2dd;
  border-left: 4px solid #4a6c8c;
  color: #1f2328;
  border-radius: 5px;
  padding: 10px 14px;
  font-size: 0.9rem;
  margin: 0 0 1.4em 0;
}
.demo-notice strong { color: #1f2328; }

/* ---- Small-screen tweaks ----------------------------------------------- */
@media (min-width: 600px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16.5px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .site-header .container { flex-direction: column; align-items: flex-start; gap: 8px; }
  .site-nav a { margin-left: 0; margin-right: 14px; }
  .site-footer .container { flex-direction: column; }
}

/* ---- Print (so a buyer can read offline) ------------------------------- */
@media print {
  .site-header, .site-footer, .site-nav, .demo-notice { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .disclosure, .recommendation { border-color: #999; background: #fff; }
}
