/* WorkQuiet.com — Calm personal site redesign */
/* Lora headlines · System sans body · Teal #0d9488 accent only for links & CTAs */

:root {
  --bg:         #fafafa;
  --ink:        #111111;
  --ink-mid:    #333333;
  --ink-light:  #555555;
  --ink-faint:  #999999;
  --teal:       #0d9488;
  --teal-dark:  #0f766e;
  --rule:       #e8e4de;
  --rule-light: #f0ece7;
  --max-w:      1080px;
  --prose-w:    700px;
  --font-head:  'Lora', Georgia, 'Times New Roman', serif;
  --font-body:  -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

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

/* ── TYPOGRAPHY ── */
h1 { font-family: var(--font-head); font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-family: var(--font-head); font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 700; line-height: 1.25; }
h3 { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
h4 { font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
p { margin-bottom: 1.2em; }
a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(13,148,136,0.35); }
a:hover { color: var(--teal-dark); text-decoration-color: var(--teal-dark); }
strong { font-weight: 600; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.prose-container { max-width: var(--prose-w); margin: 0 auto; padding: 0 2rem; }

/* ── NAV ── */
.site-nav {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--ink-light);
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  transition: color 0.12s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.3rem;
  padding: 0.25rem;
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 2rem 1.25rem;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.55rem 0; font-size: 0.9rem; width: 100%; }
}

/* ── HERO ── */
.page-hero {
  padding: 7rem 0 5rem;
}
.page-hero h1 { margin-bottom: 1.5rem; max-width: 18ch; }
.page-hero .hero-lead {
  font-size: 1.1rem;
  color: var(--ink-light);
  line-height: 1.8;
  max-width: 52ch;
  margin-bottom: 2rem;
}
.hero-cta {
  font-size: 1rem;
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-cta:hover { color: var(--teal-dark); }

/* ── CONTENT SECTIONS ── */
.content-section {
  padding: 5rem 0;
  border-top: 1px solid var(--rule);
}
.content-section:first-of-type { border-top: none; }
.content-section h2 { margin-bottom: 2.5rem; }

/* ── ARTICLE LIST ── */
.article-list { list-style: none; padding: 0; }
.article-list li {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.article-list li:first-child { border-top: 1px solid var(--rule); }
.article-list li:last-child { border-bottom: none; }
.article-entry-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 0.5rem;
}
.article-entry-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}
.article-entry-title a {
  color: var(--ink);
  text-decoration: none;
}
.article-entry-title a:hover { color: var(--teal); }
.article-entry-dek {
  font-size: 0.92rem;
  color: var(--ink-light);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.article-entry-meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
  display: flex;
  gap: 0.75rem;
}

/* ── TEMPLATE LIST ── */
.template-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.template-table thead th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.5rem 1rem 0.5rem 0;
  border-bottom: 1.5px solid var(--ink);
  text-align: left;
}
.template-table tbody td {
  padding: 1.25rem 1rem 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.template-table tbody tr:last-child td { border-bottom: none; }
.template-name { font-family: var(--font-head); font-size: 1rem; font-weight: 700; display: block; margin-bottom: 0.3rem; }
.template-desc { font-size: 0.85rem; color: var(--ink-light); line-height: 1.5; }
.template-price { font-weight: 700; white-space: nowrap; }
.template-price.free { color: var(--teal); }

/* ── NEWSLETTER PAGE ── */
.newsletter-hero {
  padding: 8rem 0 6rem;
  max-width: 560px;
}
.newsletter-hero h1 { margin-bottom: 2rem; }
.newsletter-why {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}
.newsletter-why li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
  color: var(--ink-mid);
  display: flex;
  gap: 0.75rem;
}
.newsletter-why li::before {
  content: '—';
  color: var(--ink-faint);
  flex-shrink: 0;
}
.newsletter-why li:first-child { border-top: 1px solid var(--rule); }
.newsletter-form-inline {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--ink);
}
.newsletter-form-inline input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: #fff;
  font-size: 0.92rem;
  font-family: var(--font-body);
  color: var(--ink);
}
.newsletter-form-inline input:focus { outline: none; }
.newsletter-form-inline button {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.newsletter-form-inline button:hover { background: var(--teal-dark); }
.newsletter-note { font-size: 0.75rem; color: var(--ink-faint); margin-top: 0.75rem; }

/* ── ARTICLE / ESSAY ── */
.article-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}
.article-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 1rem;
}
.article-header h1 { max-width: 22ch; margin-bottom: 1.25rem; }
.article-meta {
  font-size: 0.8rem;
  color: var(--ink-faint);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-body {
  padding: 4rem 0 6rem;
}
.article-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-mid);
  margin-bottom: 1.5em;
}
.article-body h2 {
  margin-top: 3.5rem;
  margin-bottom: 1rem;
}
.article-body h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5em;
}
.article-body li {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-mid);
  margin-bottom: 0.5em;
}
.article-body a { color: var(--teal); }
.article-body strong { color: var(--ink); }

/* Pull quote */
.pull-quote {
  border-left: 3px solid var(--teal);
  margin: 3rem 0;
  padding: 0.75rem 0 0.75rem 1.75rem;
}
.pull-quote p {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0;
  line-height: 1.55;
}

/* Verdict box */
.verdict-box {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 2rem;
  margin: 2.5rem 0;
}
.verdict-box h3 { margin-bottom: 0.75rem; }
.verdict-box p { font-size: 0.95rem; color: var(--ink-mid); }
.verdict-box a { color: var(--teal); }
.affiliate-note { font-size: 0.75rem; color: var(--ink-faint); font-style: italic; }

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin: 2.5rem 0;
}
.comparison-table thead th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1.5px solid var(--ink);
  text-align: left;
}
.comparison-table td {
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-mid);
  vertical-align: top;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .check { color: var(--teal); font-weight: 600; }
.comparison-table .cross { color: #b91c1c; }
.table-wrap { overflow-x: auto; }

/* Section break */
.section-break {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3.5rem 0;
}

/* ── NEWSLETTER CALLOUT (inline) ── */
.newsletter-callout {
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
  margin-top: 4rem;
}
.newsletter-callout h3 { margin-bottom: 0.5rem; }
.newsletter-callout p { font-size: 0.92rem; color: var(--ink-light); margin-bottom: 1.25rem; }

/* ── CTA LINK ── */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}
.cta-link:hover { color: var(--teal-dark); }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--rule);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand .nav-logo { display: inline-block; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.82rem; color: var(--ink-light); line-height: 1.65; max-width: 26ch; }
.footer-col h4 { margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.45rem; }
.footer-col ul a { font-size: 0.82rem; color: var(--ink-light); text-decoration: none; }
.footer-col ul a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-faint);
}
.footer-bottom a { color: var(--ink-faint); text-decoration: none; }
.footer-bottom a:hover { color: var(--teal); }
.footer-disclaimer { font-size: 0.72rem; color: var(--ink-faint); margin-top: 0.75rem; line-height: 1.65; }

/* ── UTILITIES ── */
.text-teal { color: var(--teal); }
.text-faint { color: var(--ink-faint); }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--ink-faint);
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--ink-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }

/* ── MOBILE ── */
@media (max-width: 600px) {
  .page-hero { padding: 4rem 0 3rem; }
  .newsletter-hero { padding: 4rem 0 3rem; }
  .article-header { padding: 3rem 0 2rem; }
  .article-body { padding: 2.5rem 0 4rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.6rem; }
  .container, .prose-container { padding: 0 1.25rem; }
  .newsletter-form-inline { flex-direction: column; }
  .newsletter-form-inline input { border-bottom: 1px solid var(--rule); }
  .template-table thead { display: none; }
  .template-table td { display: block; padding: 0.5rem 0; border: none; }
  .template-table tr { display: block; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
}
