/* Grind & Pull — warm espresso aesthetic, mobile-first, no frameworks */
:root {
  --espresso: #2b1d14;
  --espresso-soft: #3e2a1c;
  --crema: #c98a3d;
  --crema-light: #e8b96a;
  --cream: #f7f1e6;
  --cream-deep: #efe4cf;
  --ink: #2e241b;
  --ink-soft: #5c4d3d;
  --line: #e2d5bd;
  --white: #fffdf8;
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 1.0625rem;
}
.container { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { background: var(--espresso); color: var(--cream); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: .9rem; padding-bottom: .9rem; }
.brand { color: var(--cream); text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.brand-mark { color: var(--crema-light); margin-right: .35rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--crema); color: var(--cream); border-radius: 6px; padding: .35rem .6rem; font-size: 1.1rem; cursor: pointer; }
.site-nav a { color: var(--cream); text-decoration: none; margin-left: 1.4rem; font-weight: 600; font-size: .95rem; opacity: .9; }
.site-nav a:hover { opacity: 1; color: var(--crema-light); }

/* Hero */
.hero { text-align: center; padding: 3.5rem 0 2.5rem; }
.hero h1 { font-size: 2.4rem; line-height: 1.15; letter-spacing: -.02em; color: var(--espresso); }
.tagline { color: var(--ink-soft); font-size: 1.15rem; max-width: 34rem; margin: 1rem auto 1.6rem; }
.btn { display: inline-block; background: var(--espresso); color: var(--cream); text-decoration: none; font-weight: 700; padding: .8rem 1.6rem; border-radius: var(--radius); }
.btn:hover { background: var(--espresso-soft); }
.btn-secondary { background: var(--crema); color: var(--espresso); }
.btn-secondary:hover { background: var(--crema-light); }

/* Start here */
.start-here { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; margin: 1rem 0 3rem; }
.start-here h2 { font-size: 1.4rem; color: var(--espresso); margin-bottom: 1rem; }
.start-here-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.start-here-card h3 a { color: var(--espresso); text-decoration: none; }
.start-here-card h3 a:hover { color: var(--crema); text-decoration: underline; }
.start-here-card p { color: var(--ink-soft); margin-bottom: 1.2rem; }
.start-here-next { margin-top: 1.2rem; font-size: .95rem; color: var(--ink-soft); }

/* Guide grid */
.guides h2 { font-size: 1.6rem; color: var(--espresso); margin-bottom: 1.2rem; }
.card-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-bottom: 3rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card-category { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--crema); margin-bottom: .4rem; }
.card h3 { font-size: 1.15rem; line-height: 1.35; margin-bottom: .5rem; }
.card h3 a { color: var(--espresso); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { font-size: .95rem; color: var(--ink-soft); margin-bottom: .8rem; }
.card-link { font-weight: 700; color: var(--crema); text-decoration: none; font-size: .95rem; }
.card-link:hover { text-decoration: underline; }

/* Newsletter */
.newsletter { background: var(--espresso); color: var(--cream); border-radius: var(--radius); padding: 2rem 1.8rem; margin-bottom: 3rem; text-align: center; }
.newsletter h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.newsletter p { opacity: .85; margin-bottom: 1.2rem; }
.newsletter-form { display: flex; gap: .6rem; max-width: 26rem; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: .75rem 1rem; border: none; border-radius: 8px; font-size: 1rem; }
.newsletter-form button { background: var(--crema); color: var(--espresso); border: none; border-radius: 8px; padding: .75rem 1.3rem; font-weight: 700; font-size: 1rem; cursor: pointer; }
.newsletter-form button:hover { background: var(--crema-light); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Article */
.breadcrumb { font-size: .85rem; color: var(--ink-soft); margin: 1.5rem 0 .5rem; }
.breadcrumb a { color: var(--crema); text-decoration: none; }
.post-header { margin-bottom: 1.5rem; }
.post-category { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--crema); margin-bottom: .4rem; }
.post h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -.015em; color: var(--espresso); }
.post h2 { font-size: 1.45rem; color: var(--espresso); margin: 2.2rem 0 .8rem; padding-top: .5rem; border-top: 2px solid var(--line); }
.post h3 { font-size: 1.15rem; color: var(--espresso-soft); margin: 1.6rem 0 .6rem; }
.post p { margin-bottom: 1.1rem; }
.post ul, .post ol { margin: 0 0 1.2rem 1.4rem; }
.post li { margin-bottom: .45rem; }
.post table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: .92rem; display: block; overflow-x: auto; }
.post th, .post td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.post th { background: var(--cream-deep); color: var(--espresso); }
.post tr:nth-child(even) td { background: var(--white); }
.post a { color: #8a5a1d; }
.disclosure-box { background: var(--cream-deep); border-left: 4px solid var(--crema); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin-bottom: 1.8rem; font-size: .92rem; }
.affiliate-link { display: inline-block; background: var(--crema); color: var(--espresso) !important; font-weight: 700; text-decoration: none; padding: .45rem 1rem; border-radius: 8px; margin: .3rem .15rem; font-size: .95rem; }
.affiliate-link:hover { background: var(--crema-light); }

/* Related */
.related { margin: 3rem 0 2rem; padding-top: 1.5rem; border-top: 2px solid var(--line); }
.related h2 { font-size: 1.3rem; border: none; margin: 0 0 .8rem; padding: 0; }
.related ul { list-style: none; margin: 0; display: grid; gap: .6rem; }
.related a { color: var(--espresso); font-weight: 600; text-decoration: none; }
.related a:hover { color: var(--crema); text-decoration: underline; }

/* Footer */
.site-footer { background: var(--espresso); color: var(--cream); margin-top: 2rem; padding: 2.2rem 0; }
.footer-inner p { margin-bottom: .7rem; font-size: .92rem; opacity: .9; }
.footer-disclosure { font-size: .82rem; opacity: .75; }
.footer-disclosure a, .site-footer a { color: var(--crema-light); }
.footer-copy { font-size: .8rem; opacity: .6; }

@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 3rem; }
  .post h1 { font-size: 2.4rem; }
}
@media (max-width: 560px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--espresso); flex-direction: column; padding: 0 1.25rem 1rem; }
  .site-nav.open { display: flex; }
  .site-nav a { margin: .5rem 0 0; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  .newsletter-form { flex-direction: column; }
}
