/* QualityX — Hang Ten inspired design system */

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #f1f5f9;
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #64748b;
  --sky: #0ea5e9;        /* primary sky-blue accent */
  --sky-deep: #0284c7;   /* hover / deeper accent */
  --sky-tint: #e0f2fe;   /* soft tint background */
  --line: #e2e8f0;
  --maxw: 760px;
  --font-serif: "Cinzel", "Playfair Display", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.home-layout {
  display: flex;
  flex-direction: column;
}

a {
  color: var(--sky-deep);
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}
a:hover {
  color: var(--sky);
  text-decoration: underline;
}

/* Container */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header & Navigation */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-size: 24px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo span.badge {
  font-size: 11px;
  font-family: var(--font-sans);
  background: var(--sky-tint);
  color: var(--sky-deep);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.nav a {
  color: var(--ink);
  margin-left: 28px;
  font-size: 16px;
  font-weight: 500;
}
.nav a:hover,
.nav a.active {
  color: var(--sky-deep);
  text-decoration: none;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 0 40px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.15;
  margin: 0 0 20px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: var(--sky-deep);
  margin: 0 0 16px;
  display: inline-block;
}

.tagline {
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.5;
  max-width: 680px;
  margin: 0 auto 36px;
  color: var(--ink-soft);
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin: 32px 0 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: 1.5px solid var(--sky);
  transition: all 0.2s ease;
}
.btn--primary {
  background: var(--sky);
  color: #ffffff;
}
.btn--primary:hover {
  background: var(--sky-deep);
  border-color: var(--sky-deep);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--sky-deep);
}
.btn--ghost:hover {
  background: var(--sky-tint);
  text-decoration: none;
}

/* Manifesto Content Body */
.manifesto-body {
  margin: 40px auto 60px;
  max-width: 680px;
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink);
}
.manifesto-body p {
  margin-bottom: 24px;
}

.signature-block {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.signature-block .name {
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.signature-block .role {
  color: var(--ink-muted);
  font-size: 15px;
}

/* Blog List */
.page-head {
  padding-top: 60px;
  padding-bottom: 24px;
}
h1.page-title {
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 12px;
  line-height: 1.2;
}
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 80px;
}
.blog-card {
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
  border-color: var(--sky);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.1);
}
.blog-card .meta {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.blog-card h2 {
  font-size: 22px;
  margin: 0 0 12px;
  line-height: 1.35;
}
.blog-card h2 a {
  color: var(--ink);
}
.blog-card h2 a:hover {
  color: var(--sky-deep);
}
.blog-card p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 16px;
  line-height: 1.6;
}

/* Single Blog Post Formatting */
.article-content {
  margin-top: 32px;
  margin-bottom: 60px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.article-content p {
  margin-bottom: 24px;
}
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.3;
}
.article-content h2 {
  font-size: 26px;
  margin: 44px 0 18px;
}
.article-content h3 {
  font-size: 21px;
  margin: 36px 0 14px;
}
.article-content ul,
.article-content ol {
  margin: 20px 0 28px;
  padding-left: 28px;
}
.article-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}
.article-content blockquote {
  border-left: 4px solid var(--sky);
  background: var(--sky-tint);
  margin: 32px 0;
  padding: 20px 24px;
  border-radius: 0 10px 10px 0;
  font-size: 19px;
  color: var(--ink);
}
.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 36px auto 12px auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}
.article-content em,
.article-content figcaption {
  font-style: italic;
}
.article-content p > em:only-child {
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: -4px;
  margin-bottom: 32px;
}

/* Wave motion graphic */
.waves {
  position: relative;
  width: 100%;
  height: 140px;
  margin-top: auto;
  overflow: hidden;
  line-height: 0;
}
.waves svg {
  width: 100%;
  height: 100%;
  display: block;
}
.waves .wave-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  animation: waveShift linear infinite;
  will-change: transform;
}
.waves .w1 {
  animation-duration: 14s;
  opacity: 0.35;
}
.waves .w2 {
  animation-duration: 20s;
  opacity: 0.22;
  animation-direction: reverse;
}
.waves .w3 {
  animation-duration: 28s;
  opacity: 0.15;
}

@keyframes waveShift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 14px;
  flex-shrink: 0;
}
.site-footer--home {
  margin-top: 0;
  border-top: none;
}
.site-footer .wrap {
  padding-top: 28px;
  padding-bottom: 40px;
  text-align: center;
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }
  .nav a {
    margin-left: 16px;
    font-size: 15px;
  }
  .hero {
    padding-top: 48px;
  }
  .blog-card {
    padding: 20px;
  }
}
