:root {
  --bg: #f5f0ea;
  --surface: #fdfaf7;
  --border: #ddd5c8;
  --accent: #2e2a26;
  --accent-light: #e8e4df;
  --text: #1e1a14;
  --subtext: #6b5d52;
  --muted: #a09080;
  --mono: 'Courier New', Courier, monospace;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
/* Adjustments for blog post template font size/line height overrides */
body.post-layout {
  font-size: 17px; line-height: 1.75;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 60px;
  background: rgba(245,240,234,0.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--mono); font-size: 14px; letter-spacing: 1px;
  color: var(--text); font-weight: 700; text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: 13px; color: var(--subtext); text-decoration: none;
  letter-spacing: 0.3px;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links .cta {
  background: var(--accent); color: #fff;
  padding: 0.45rem 1.1rem; border-radius: 4px; font-size: 13px;
  font-weight: 600;
}
.nav-links .cta:hover { background: var(--text); text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 2.5rem; }

/* Subpage Main Content (Privacy, Blog List, Post) */
main { padding: 9rem 2.5rem 5rem; max-width: 800px; margin: 0 auto; flex: 1; width: 100%; }
main h1 { font-size: 2.5rem; margin-bottom: 2rem; letter-spacing: -0.5px; line-height: 1.2; }
main h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
main p { margin-bottom: 1rem; color: var(--subtext); }

/* Hero (index.html) */
.hero {
  padding: 9rem 2.5rem 5rem; max-width: 1100px; margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 1.25rem;
  color: var(--text);
}
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: 1.15rem; color: var(--subtext); max-width: 680px;
  line-height: 1.7; margin-bottom: 2rem;
}
.hero-cta {
  display: flex; gap: 1rem; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.6rem; font-size: 14px; font-weight: 600;
  border-radius: 4px; text-decoration: none; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--text); text-decoration: none; }
.btn-secondary {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Credentials strip */
.cred-strip {
  background: var(--surface); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: 1.25rem 0;
}
.cred-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2.5rem;
  display: flex; gap: 2.5rem; flex-wrap: wrap; align-items: center;
}
.cred-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); margin-right: 0.5rem;
}
.cred-item {
  font-size: 13px; color: var(--subtext); font-weight: 500;
}

/* Services */
section { padding: 5rem 0; }
.section-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.75rem;
}
section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700;
  letter-spacing: -0.3px; margin-bottom: 0.75rem;
}
.section-sub {
  font-size: 1.05rem; color: var(--subtext); max-width: 640px;
  margin-bottom: 3rem;
}
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 2rem 1.75rem;
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(46,42,38,0.08);
}
.service-icon {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.75rem;
}
.service-title {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem;
}
.service-desc { font-size: 0.9rem; color: var(--subtext); line-height: 1.6; }
.service-tags {
  margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.5px;
  padding: 3px 8px; border-radius: 3px;
  background: var(--accent-light); color: var(--accent);
}

/* About strip */
.about-strip {
  background: var(--surface); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-inner {
  max-width: 1100px; margin: 0 auto; padding: 5rem 2.5rem;
  display: grid; grid-template-columns: 200px 1fr; gap: 3rem;
  align-items: start;
}
.about-photo {
  width: 200px; height: 200px; object-fit: cover;
  object-position: center top; border-radius: 6px;
  border: 1px solid var(--border);
}
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--subtext); margin-bottom: 0.75rem; font-size: 0.95rem; }
.about-links { display: flex; gap: 1.25rem; margin-top: 1rem; font-size: 13px; }

/* Contact */
.contact-section { background: var(--accent); color: #fff; padding: 5rem 0; }
.contact-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 2rem;
}
.contact-inner h2 { font-size: 2rem; color: #fff; margin-bottom: 0.5rem; }
.contact-inner p { color: rgba(255,255,255,0.8); font-size: 1rem; }
.btn-white {
  background: #fff; color: var(--accent);
  padding: 0.85rem 2rem; font-size: 14px; font-weight: 700;
  border-radius: 4px; text-decoration: none; white-space: nowrap;
}
.btn-white:hover { background: #f0f4ff; text-decoration: none; }

/* Blog Elements */
.post-list { display: flex; flex-direction: column; gap: 2rem; }
.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 2rem;
  transition: border-color .2s, box-shadow .2s;
  display: block;
}
.post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(46,42,38,0.08);
  text-decoration: none;
}
.post-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.5rem;
}
.post-title {
  font-size: 1.4rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.5rem; line-height: 1.3;
}
.post-excerpt {
  color: var(--subtext); font-size: 1rem;
}
.post-header { margin-bottom: 3rem; }
.post-header .post-meta { font-size: 12px; margin-bottom: 1rem; }
.post-header h1 { font-size: 2.8rem; margin-bottom: 1.5rem; }

.post-content h2 { font-size: 1.8rem; margin: 3rem 0 1rem; }
.post-content h3 { font-size: 1.4rem; margin: 2rem 0 1rem; }
.post-content p { margin-bottom: 1.5rem; color: var(--text); }
.post-content ul, .post-content ol { margin-bottom: 1.5rem; padding-left: 2rem; color: var(--text); }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote {
  border-left: 4px solid var(--accent); padding-left: 1.5rem;
  margin: 2rem 0; font-style: italic; color: var(--subtext);
}
.post-content code {
  font-family: var(--mono); font-size: 0.9em; background: var(--accent-light);
  padding: 0.2em 0.4em; border-radius: 3px;
}
.post-content pre {
  background: var(--surface); border: 1px solid var(--border);
  padding: 1.5rem; border-radius: 6px; overflow-x: auto;
  margin-bottom: 1.5rem;
}
.post-content pre code { background: transparent; padding: 0; }

footer {
  padding: 2rem 2.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--subtext); text-decoration: none; }

@media (max-width: 640px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { width: 140px; height: 140px; }
  nav { padding: 0 1.25rem; }
  nav .nav-links { gap: 0.75rem; }
  nav .nav-links a:not(.cta) { display: none; }
  nav .nav-links .cta { font-size: 12px; padding: 0.4rem 0.85rem; }
  .contact-inner { flex-direction: column; }
  main h1, .post-header h1 { font-size: 2.2rem; }
}
