/*
Theme Name: LLM Engineers
Theme URI: https://llmengineers.io
Author: LLM Engineers
Description: A lightweight Beehiiv-style WordPress theme for an AI newsletter publication.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: llmengineers
*/

:root {
  --llm-bg: #ffffff;
  --llm-text: #0f172a;
  --llm-muted: #64748b;
  --llm-soft: #f8fafc;
  --llm-border: #e2e8f0;
  --llm-blue: #2563eb;
  --llm-blue-dark: #1d4ed8;
  --llm-radius: 22px;
  --llm-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--llm-text);
  background: var(--llm-bg);
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.llm-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.llm-site-header {
  border-bottom: 1px solid var(--llm-border);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.llm-header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.llm-logo {
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.llm-logo span {
  color: var(--llm-blue);
}

.llm-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
}

.llm-nav a {
  text-decoration: none;
  color: #334155;
}

.llm-nav a:hover { color: var(--llm-blue); }

.llm-nav .llm-button-link {
  background: var(--llm-text);
  color: #fff;
  padding: 10px 15px;
  border-radius: 999px;
}

.llm-hero {
  padding: 96px 0 74px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(37,99,235,.10), transparent 34%),
    linear-gradient(#fff, #fff);
}

.llm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 8px 13px;
  border: 1px solid var(--llm-border);
  border-radius: 999px;
  color: var(--llm-blue);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.llm-hero h1 {
  max-width: 890px;
  margin: 0 auto 20px;
  font-size: clamp(48px, 8vw, 104px);
  line-height: .92;
  letter-spacing: -0.075em;
  font-weight: 950;
}

.llm-hero h1 .accent { color: var(--llm-blue); }

.llm-hero p {
  max-width: 700px;
  margin: 0 auto 32px;
  color: var(--llm-muted);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.45;
}

.llm-subscribe-box {
  max-width: 610px;
  margin: 0 auto;
  padding: 12px;
  display: flex;
  gap: 10px;
  border: 1px solid var(--llm-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--llm-shadow);
}

.llm-subscribe-box input[type="email"] {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 15px 16px;
  font-size: 16px;
  outline: none;
}

.llm-subscribe-box button,
.llm-button {
  border: 0;
  border-radius: 13px;
  padding: 15px 20px;
  background: var(--llm-blue);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.llm-subscribe-box button:hover,
.llm-button:hover { background: var(--llm-blue-dark); }

.llm-microcopy {
  margin-top: 14px !important;
  font-size: 14px !important;
  color: #94a3b8 !important;
}

.llm-section {
  padding: 72px 0;
}

.llm-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.llm-section-header h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.llm-section-header p {
  max-width: 480px;
  margin: 0;
  color: var(--llm-muted);
}

.llm-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.llm-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--llm-border);
  border-radius: var(--llm-radius);
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease;
}

.llm-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--llm-shadow);
}

.llm-card-meta {
  font-size: 13px;
  color: var(--llm-blue);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.llm-card h3 {
  margin: 12px 0 12px;
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.llm-card h3 a { text-decoration: none; }
.llm-card p { color: var(--llm-muted); margin: 0 0 20px; }
.llm-read-link { font-weight: 900; text-decoration: none; color: var(--llm-text); }
.llm-read-link:hover { color: var(--llm-blue); }

.llm-feature-band {
  margin: 18px 0 0;
  padding: 42px;
  border-radius: 30px;
  background: var(--llm-text);
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 36px;
  align-items: center;
}

.llm-feature-band h2 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: .98;
  letter-spacing: -0.06em;
}

.llm-feature-band p { color: #cbd5e1; margin: 0; }

.llm-post-wrap {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 90px;
}

.llm-post-header {
  text-align: center;
  margin-bottom: 44px;
}

.llm-post-header h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
  letter-spacing: -0.065em;
}

.llm-post-meta {
  color: var(--llm-muted);
  font-size: 15px;
  font-weight: 700;
}

.llm-content :where(h2,h3,h4) {
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-top: 1.6em;
  margin-bottom: .5em;
}

.llm-content h2 { font-size: 38px; }
.llm-content h3 { font-size: 28px; }
.llm-content p { margin: 0 0 1.2em; }
.llm-content a { color: var(--llm-blue); font-weight: 750; }
.llm-content blockquote {
  margin: 32px 0;
  padding: 22px 26px;
  border-left: 4px solid var(--llm-blue);
  background: var(--llm-soft);
  border-radius: 0 18px 18px 0;
  color: #334155;
}
.llm-content code {
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
}
.llm-content pre {
  overflow-x: auto;
  padding: 20px;
  border-radius: 18px;
  background: #020617;
  color: #e2e8f0;
}

.llm-post-cta {
  margin-top: 54px;
  padding: 30px;
  border: 1px solid var(--llm-border);
  border-radius: 24px;
  background: var(--llm-soft);
  text-align: center;
}

.llm-archive-header {
  padding: 70px 0 24px;
  text-align: center;
}
.llm-archive-header h1 {
  margin: 0 0 10px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  letter-spacing: -0.065em;
}
.llm-archive-header p { color: var(--llm-muted); margin: 0; }

.llm-site-footer {
  border-top: 1px solid var(--llm-border);
  padding: 34px 0;
  color: var(--llm-muted);
  font-size: 14px;
}
.llm-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 860px) {
  .llm-header-inner { height: auto; padding: 18px 0; flex-direction: column; }
  .llm-nav { flex-wrap: wrap; justify-content: center; }
  .llm-hero { padding: 70px 0 54px; }
  .llm-subscribe-box { flex-direction: column; }
  .llm-subscribe-box button { width: 100%; }
  .llm-card-grid { grid-template-columns: 1fr; }
  .llm-section-header { align-items: flex-start; flex-direction: column; }
  .llm-feature-band { grid-template-columns: 1fr; padding: 30px; }
  .llm-footer-inner { flex-direction: column; }
}


/* CF7 newsletter support */
.llm-subscribe-box .llm-subscribe-row{display:flex;gap:12px;}
.llm-subscribe-box .wpcf7-form-control-wrap{flex:1;}
.llm-subscribe-box .wpcf7 p{margin:0;}
.llm-subscribe-box input[type="submit"]{white-space:nowrap;}


/* CF7 Hero Form Fix */
.llm-subscribe-box .wpcf7,
.llm-subscribe-box .wpcf7 form{
  width:100%;
}
.llm-subscribe-box .wpcf7-form p{
  margin:0;
  display:flex;
  gap:10px;
  align-items:center;
}
.llm-subscribe-box .wpcf7-form-control-wrap{
  flex:1;
}
.llm-subscribe-box input[type="email"]{
  width:100%;
}
.llm-subscribe-box input[type="submit"]{
  border:0;
  border-radius:13px;
  padding:15px 20px;
  background: var(--llm-blue);
  color:#fff;
  font-weight:900;
  font-size:15px;
  cursor:pointer;
}
@media (max-width:768px){
 .llm-subscribe-box .wpcf7-form p{
   flex-direction:column;
 }
 .llm-subscribe-box input[type="submit"]{width:100%;}
}
