/* The Story of HCI
   Static site styles
*/

:root {
  --ink: #102033;
  --muted: #5b6778;
  --paper: #fbf7ef;
  --paper-strong: #f4ecdf;
  --white: #fffdf9;
  --navy: #12304a;
  --teal: #236f75;
  --gold: #b6782d;
  --line: rgba(16, 32, 51, 0.14);
  --shadow: 0 24px 70px rgba(16, 32, 51, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(182, 120, 45, 0.12), transparent 26rem),
    radial-gradient(circle at 92% 24%, rgba(35, 111, 117, 0.12), transparent 24rem),
    var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1.25rem, 4vw, 4rem);
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--teal);
}

.nav-button {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.section {
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5.5rem);
}

.hero {
  padding-top: clamp(4.5rem, 10vw, 8rem);
}

.hero-grid,
.content-section,
.cta-card,
.faq-section {
  max-width: 1180px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.eyebrow,
.section-label {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h1,
h2 {
  font-family: Literata, Georgia, serif;
}

h1 {
  font-size: clamp(3.25rem, 8vw, 6.75rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  max-width: 13ch;
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 1rem 0 0;
  color: var(--teal);
  font-family: Literata, Georgia, serif;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.18;
}

.hero-description {
  max-width: 680px;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--navy);
  color: var(--paper);
  box-shadow: 0 12px 24px rgba(18, 48, 74, 0.16);
}

.button.primary:hover {
  background: #0c253c;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.editor-line {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.hero-card,
.note-card,
.cta-card,
.simple-card {
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.card-number {
  color: var(--gold);
  font-family: Literata, Georgia, serif;
  font-size: clamp(3.25rem, 6vw, 5.25rem);
  font-weight: 700;
  line-height: 0.9;
}

.hero-card p {
  margin: 1rem 0 0;
  font-size: 1.1rem;
}

.card-rule {
  width: 100%;
  height: 1px;
  margin: 1.5rem 0;
  background: var(--line);
}

.hero-card .card-small {
  color: var(--muted);
  font-size: 0.95rem;
}

.content-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(1.5rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.content-section.alt {
  max-width: none;
  background: rgba(244, 236, 223, 0.62);
}

.content-section.alt .section-label,
.content-section.alt .section-content {
  max-width: 1180px;
}

.section-content {
  max-width: 860px;
}

.section-content h2 {
  margin-bottom: 1.5rem;
}

.section-content p {
  max-width: 790px;
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.checklist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.checklist ul {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.checklist li {
  margin: 0.45rem 0;
}

.note-card {
  padding: 1.35rem;
}

.note-card p {
  margin-bottom: 0.9rem;
  font-size: 0.98rem;
}

.cta-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  background:
    linear-gradient(135deg, rgba(18, 48, 74, 0.98), rgba(35, 111, 117, 0.95));
  color: var(--paper);
}

.cta-card h2 {
  max-width: none;
}

.cta-card p {
  color: rgba(251, 247, 239, 0.84);
}

.cta-card .eyebrow {
  color: #e5b36d;
}

.cta-action {
  text-align: center;
}

.cta-action .button.primary {
  background: var(--paper);
  color: var(--navy);
}

.cta-action p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.faq-section {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(1.5rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

details {
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.15rem;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

details p {
  margin: 0.85rem 0 0;
  color: var(--muted);
}

.final-cta {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.final-cta h2 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(2rem, 4.8vw, 4rem);
}

.final-cta p:not(.eyebrow) {
  max-width: 680px;
  margin: 1.2rem auto 1.75rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.simple-page {
  max-width: 840px;
  min-height: 68vh;
  margin: 0 auto;
}

.simple-page h1 {
  max-width: none;
  font-size: clamp(3rem, 8vw, 6rem);
}

.simple-card {
  margin: 2rem 0;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.simple-card p {
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero-grid,
  .content-section,
  .faq-section,
  .cta-card,
  .checklist {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3rem, 13vw, 5.25rem);
  }

  h2 {
    max-width: none;
  }

  .section-label {
    margin-bottom: 0.25rem;
  }

  .cta-action {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .site-nav {
    gap: 0.9rem;
    font-size: 0.9rem;
  }

  .site-nav a:not(.nav-button) {
    display: none;
  }

  .button {
    width: 100%;
  }

  .button-row {
    width: 100%;
  }
}

.related-projects {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.related-projects h3 {
  margin-bottom: 0.5rem;
}

.related-projects p {
  margin: 0;
}

.related-projects a {
  font-weight: 800;
}
