/* PeptideAAA — site stylesheet */

:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --navy: #0b1220;
  --ink: #111827;
  --ink-soft: #4b5563;
  --ink-faint: #6b7280;
  --line: #e5e7eb;
  --line-soft: #eef1f4;
  --surface: #ffffff;
  --bg: #f7f9fb;
  --bg-soft: #f0f4f6;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 44px rgba(15, 23, 42, 0.14);
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

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

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

/* ---------- Header ---------- */

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

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

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand-logo { height: 34px; width: auto; }

.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-icon { height: 28px; width: 28px; border-radius: 7px; }
.footer-brand-mark span {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--bg-soft);
  color: var(--teal-dark);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  margin: 0 -20px 48px;
  padding: 64px 20px 72px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 45%, var(--blue-dark) 100%);
  color: #fff;
  text-align: center;
}

.hero-inner { max-width: 760px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero .lede {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 30px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: #fff;
  color: var(--teal-dark);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { box-shadow: var(--shadow-lg); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Sections / headings ---------- */

main.wrap { padding-bottom: 72px; }

section + section { margin-top: 56px; }

.categories h2,
.featured h2,
.related h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--navy);
}

/* ---------- Category tiles (homepage) ---------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.tile {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
  text-decoration: none;
}

.tile-icon { font-size: 26px; display: block; margin-bottom: 10px; }

.tile h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--navy);
}

.tile p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-faint);
  line-height: 1.5;
}

.tile-count {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-dark);
  background: rgba(13, 148, 136, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Article cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  min-height: 100%;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
  text-decoration: none;
}

.card-featured {
  grid-column: span 2;
  background: linear-gradient(160deg, #f0fdfa 0%, var(--surface) 55%);
  border-color: var(--teal);
}

.card-cat {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  line-height: 1.35;
  color: var(--navy);
}

.card p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-faint);
  line-height: 1.55;
  flex-grow: 1;
}

.card-arrow {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue);
}

/* ---------- Category page hero ---------- */

.category-hero {
  text-align: center;
  padding: 40px 20px 44px;
  margin: 0 0 40px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.category-icon { font-size: 34px; display: block; margin-bottom: 10px; }

.category-hero h1 {
  margin: 0 0 10px;
  font-size: 28px;
  color: var(--navy);
}

.category-hero .lede {
  max-width: 560px;
  margin: 0 auto 14px;
  color: var(--ink-soft);
}

.category-count {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--teal-dark);
  background: rgba(13, 148, 136, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: 13.5px;
  color: var(--ink-faint);
  margin: 24px 0 18px;
}
.breadcrumb a { color: var(--ink-faint); font-weight: 600; }
.breadcrumb a:hover { color: var(--teal-dark); }

/* ---------- Article page ---------- */

.article {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px clamp(20px, 5vw, 56px) 48px;
  box-shadow: var(--shadow-sm);
}

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: rgba(13, 148, 136, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.article h1 {
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.25;
  margin: 0 0 28px;
  color: var(--navy);
  font-weight: 800;
}

.article-body h2 {
  font-size: 21px;
  margin: 36px 0 14px;
  color: var(--navy);
  font-weight: 800;
}

.article-body h3 {
  font-size: 17.5px;
  margin: 28px 0 10px;
  color: var(--navy);
}

.article-body p {
  font-size: 16.5px;
  color: #1f2937;
  margin: 0 0 18px;
  line-height: 1.75;
}

.article-body ul,
.article-body ol {
  font-size: 16.5px;
  color: #1f2937;
  line-height: 1.75;
  margin: 0 0 18px;
  padding-left: 24px;
}

.article-body li { margin-bottom: 6px; }

.article-body strong { color: var(--navy); }

.related { max-width: 760px; margin: 40px auto 0; }

/* ---------- Homepage sections wrap ---------- */

.page-home main.wrap { padding-top: 0; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  margin-top: 72px;
  padding-top: 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 320px;
  margin: 0;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  margin-bottom: 10px;
  text-decoration: none;
}
.footer-col a:hover { color: #fff; text-decoration: none; }

.site-footer .disclaimer {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
  margin: 24px 0 10px;
  max-width: 900px;
}
.site-footer .disclaimer a { color: rgba(255, 255, 255, 0.8); }

.site-footer .copyright {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
  }

  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 10px; }

  .hero { padding: 44px 16px 52px; }

  .card-featured { grid-column: span 1; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .article { padding: 28px 18px 36px; }
}
