/* DontGoGrid.com — Main Stylesheet */

/* ========== RESET ========== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ========== CUSTOM PROPERTIES ========== */
:root {
  --bg: #F5F2ED;
  --text: #1A1A18;
  --accent: #2D4A3E;
  --accent-hover: #1e352b;
  --warning: #8B4513;
  --muted: #6B6960;
  --border: #D4D0C8;
  --white: #FDFCFA;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --max-width: 680px;
}

/* ========== BASE ========== */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* ========== LAYOUT ========== */
.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ========== HEADER / NAV ========== */
.site-header {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.site-header .site-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-name {
  text-decoration: none;
  display: inline-block;
  line-height: 0;
}

.site-name img {
  height: 36px;
  width: auto;
}

.site-name:hover {
  opacity: 0.85;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.35rem;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--muted);
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ========== SHORT ANSWER BOX ========== */
.short-answer {
  border: 2px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  background: var(--white);
}

.short-answer-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.short-answer p {
  margin-bottom: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ========== MY TAKE BOX ========== */
.my-take {
  border-left: 3px solid var(--warning);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  background: var(--white);
}

.my-take-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warning);
  margin-bottom: 0.5rem;
}

.my-take p:last-child {
  margin-bottom: 0;
}

/* ========== WARNING / IMPORTANT BOX ========== */
.warning {
  border: 2px solid var(--warning);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  background: var(--white);
}

.warning-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warning);
  margin-bottom: 0.5rem;
}

/* ========== TABLES ========== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.9375rem;
}

thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-bottom: 2px solid var(--text);
  white-space: nowrap;
}

tbody td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ========== SPECS (monospace data) ========== */
.specs {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ========== CTA / AFFILIATE LINKS ========== */
.cta-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  transition: background 0.15s ease;
}

.cta-link:hover {
  background: var(--accent-hover);
  color: var(--white);
}

/* ========== FAQ ========== */
.faq {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.faq h2 {
  margin-top: 0;
}

.faq-item {
  margin-bottom: 1.75rem;
}

.faq-item h3 {
  margin-top: 0;
  font-size: 1rem;
  color: var(--text);
}

.faq-item p:last-child {
  margin-bottom: 0;
}

/* ========== NEWSLETTER ========== */
.newsletter {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.newsletter p {
  font-size: 0.9375rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
}

.newsletter-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

.newsletter-form button {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.newsletter-form button:hover {
  background: var(--accent-hover);
}

/* ========== FOOTER ========== */
.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

.site-footer .site-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--muted);
}

/* ========== SECTION LINKS (hub pages) ========== */
.section-links {
  list-style: none;
  padding-left: 0;
}

.section-links li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.section-links li:last-child {
  border-bottom: none;
}

.section-links a {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.section-links .link-desc {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ========== HOME SECTIONS ========== */
.home-section {
  margin-top: 2.5rem;
}

.home-section h2 {
  margin-top: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .site-header .site-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }

  .site-nav {
    gap: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .site-footer .site-wrapper {
    flex-direction: column;
    gap: 0.75rem;
  }

  table {
    font-size: 0.8125rem;
  }

  thead th,
  tbody td {
    padding: 0.5rem;
  }
}
