/* MindNotes Daily — Editorial wellness design system */

:root {
  --primary: #0F4C5C;
  --primary-dark: #0B3D4A;
  --primary-light: #5F8B95;
  --accent: #E36414;
  --accent-dark: #C9560F;
  --background: #FAFBFC;
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --border-soft: #F3F4F6;
  --text: #1B1B1F;
  --text-soft: #374151;
  --muted: #6B7280;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.05);
  --radius: 8px;
  --radius-lg: 12px;
  --container-max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

a { color: var(--primary); }

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

/* layout */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Site Header */
.site-header {
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
}

.logo {
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 6px;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

.logo em {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--primary); }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
}

/* Hero */
.hero {
  padding: 88px 0 64px;
  text-align: center;
  background: linear-gradient(180deg, #EEF6F8 0%, var(--background) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(15,76,92,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  margin-bottom: 20px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.hero p.subhead {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.55;
  position: relative;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  position: relative;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--primary-dark);
}

/* Section */
section { padding: 72px 0; }

.section-eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  text-align: center;
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 36px);
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 56px;
  font-size: 17px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #D1D5DB;
}

.card-image {
  width: 100%;
  height: 180px;
  position: relative;
  overflow: hidden;
}

.card-image.var-teal {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15), transparent 50%),
    linear-gradient(135deg, #0F4C5C 0%, #5F8B95 100%);
}

.card-image.var-orange {
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.15), transparent 50%),
    linear-gradient(135deg, #E36414 0%, #F4A261 100%);
}

.card-image.var-green {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.15), transparent 50%),
    linear-gradient(135deg, #2D6A4F 0%, #74C69D 100%);
}

.card-image-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
}

.card-content {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

.card h3 {
  font-size: 21px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.card-excerpt {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
  flex: 1;
  line-height: 1.55;
}

.card-link {
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* About strip */
.about-strip {
  padding: 80px 0;
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

.about-text h2 {
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 18px;
}

.about-text p {
  font-size: 17px;
  color: var(--text-soft);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.stat {
  padding: 22px;
  background: var(--background);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-num {
  font-family: 'Crimson Pro', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
}

.about-visual {
  background: linear-gradient(135deg, #EEF6F8 0%, #D7E8EC 100%);
  border-radius: var(--radius-lg);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-visual::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(15,76,92,0.2);
  border-radius: var(--radius);
}

.about-visual svg {
  width: 60%;
  height: 60%;
  color: var(--primary);
  opacity: 0.4;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, #1a6577 100%);
  color: white;
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(227,100,20,0.15) 0%, transparent 60%);
}

.newsletter h2 {
  color: white;
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 14px;
  position: relative;
}

.newsletter p {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 32px;
  position: relative;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 8px;
  position: relative;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  outline: 2px solid transparent;
  transition: outline-color 0.2s;
}

.newsletter-form input[type="email"]:focus {
  outline-color: var(--accent);
}

.newsletter-form button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
  transition: background 0.2s;
}

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

.form-note {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 16px;
  position: relative;
}

.form-success {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.12);
  border-radius: 100px;
  font-size: 14px;
  color: white;
  position: relative;
}

@media (max-width: 540px) {
  .newsletter-form { flex-direction: column; }
}

/* Footer */
.site-footer {
  background: #0F1419;
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h5 {
  color: white;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  font-family: 'Inter', sans-serif;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* Article */
.article {
  background: var(--surface);
  padding: 72px 0 96px;
}

.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  align-items: center;
}

.article-meta .dot { width: 4px; height: 4px; background: var(--muted); border-radius: 100px; }
.article-meta .tag { color: var(--accent); font-weight: 600; }

.article h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 18px;
}

.article-lead {
  font-size: 20px;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 40px;
}

.article-body p {
  font-size: 17px;
  margin-bottom: 22px;
  line-height: 1.75;
  color: var(--text-soft);
}

.article-body h2 {
  font-size: 28px;
  margin: 44px 0 18px;
}

.article-body h3 {
  font-size: 22px;
  margin: 32px 0 12px;
}

.article-body ul, .article-body ol {
  margin: 16px 0 22px 24px;
}

.article-body li {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-soft);
}

.callout {
  background: #EEF6F8;
  border-left: 3px solid var(--primary);
  padding: 22px 26px;
  border-radius: 4px;
  margin: 30px 0;
  font-size: 16px;
}

.callout-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.article-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

/* Page header (for legal, about, contact) */
.page-header {
  padding: 72px 0 36px;
  text-align: center;
  background: linear-gradient(180deg, #EEF6F8 0%, var(--background) 100%);
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--muted);
  font-size: 17px;
}

.page-content {
  background: var(--surface);
  padding: 56px 0 80px;
}

.page-content-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-content h2 {
  font-size: 26px;
  margin: 36px 0 14px;
}

.page-content h2:first-child { margin-top: 0; }

.page-content h3 {
  font-size: 20px;
  margin: 26px 0 10px;
}

.page-content p {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
}

.page-content ul, .page-content ol {
  margin: 12px 0 18px 24px;
}

.page-content li {
  margin-bottom: 8px;
  color: var(--text-soft);
}

.last-updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
  padding: 10px 16px;
  background: var(--background);
  border-radius: 6px;
  border-left: 3px solid var(--border);
  font-style: italic;
}

/* Contact specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 28px;
}

@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

.contact-block {
  padding: 28px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.contact-block h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--primary);
}

.contact-block p { font-size: 15px; margin-bottom: 6px; }
.contact-block a { color: var(--primary); text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--surface);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Article navigation (related/back) */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover { color: var(--primary); }
