:root {
  --paper: #f8faf7;
  --paper-strong: #edf4ef;
  --mist: #e8f4f2;
  --ink: #10233f;
  --ink-soft: #263955;
  --muted: #617085;
  --line: #d9e2e2;
  --coral: #e8654d;
  --coral-dark: #bd4733;
  --teal: #168b8f;
  --teal-dark: #0b6267;
  --yellow: #f2bd4b;
  --green: #5d8b65;
  --blue: #416fb3;
  --white: #ffffff;
  --shadow: 0 20px 55px rgba(16, 35, 63, 0.14);
  --font-sans: "Segoe UI", Arial, Helvetica, sans-serif;
  --font-display: "Segoe UI", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px 32px;
  background: rgba(248, 250, 247, 0.92);
  color: var(--ink);
  border-bottom: 1px solid rgba(217, 226, 226, 0.78);
  backdrop-filter: blur(14px);
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 8px;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: var(--paper-strong);
  outline: none;
}

.site-header.is-scrolled .main-nav a:hover,
.site-header.is-scrolled .main-nav a:focus-visible,
.site-header.is-open .main-nav a:hover,
.site-header.is-open .main-nav a:focus-visible {
  background: var(--paper-strong);
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.icon-button .icon,
.button .icon {
  width: 18px;
  height: 18px;
}

.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 84svh;
  overflow: hidden;
  color: var(--ink);
  isolation: isolate;
}

.hero-clean {
  background: var(--paper);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--paper);
}

.hero-content {
  align-self: center;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 132px 0 72px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.hero-actions,
.form-row,
.newsletter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--teal);
  color: var(--white);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--teal-dark);
}

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

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--paper-strong);
}

.button.quiet {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 20px;
  margin: 42px 0 0;
}

.hero-stats div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.hero-stats dt {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.learning-stickers {
  position: absolute;
  top: 118px;
  right: max(32px, calc((100% - 1120px) / 2));
  z-index: 1;
  display: grid;
  width: min(430px, 42vw);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sticker {
  display: grid;
  min-height: 132px;
  align-content: center;
  justify-items: start;
  gap: 12px;
  padding: 18px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 8px 8px 0 rgba(16, 35, 63, 0.12);
  color: var(--ink);
  transform: rotate(-1deg);
}

.sticker-icon {
  width: 34px;
  height: 34px;
  filter: invert(40%) sepia(80%) saturate(629%) hue-rotate(139deg) brightness(88%) contrast(88%);
}

.sticker span {
  max-width: 11ch;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
}

.sticker-large {
  grid-row: span 2;
  min-height: 280px;
  background: var(--yellow);
}

.sticker-large .sticker-icon {
  width: 56px;
  height: 56px;
  filter: invert(13%) sepia(47%) saturate(1371%) hue-rotate(182deg) brightness(87%) contrast(93%);
}

.sticker-large span {
  font-size: 25px;
}

.sticker-tilt-left {
  background: var(--mist);
  transform: rotate(-4deg);
}

.sticker-tilt-right {
  background: #eff3ff;
  transform: rotate(3deg);
}

.sticker-dark {
  background: var(--ink);
  color: var(--white);
  transform: rotate(2deg);
}

.sticker-dark .sticker-icon {
  filter: invert(78%) sepia(74%) saturate(717%) hue-rotate(342deg) brightness(99%) contrast(91%);
}

.sticker-accent {
  background: #fff1ec;
}

.sticker-accent .sticker-icon {
  filter: invert(55%) sepia(64%) saturate(889%) hue-rotate(324deg) brightness(96%) contrast(89%);
}

.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.manifesto-section,
.blog-section,
.videos-section,
.memory-section,
.conversation-section,
.about-section {
  padding: 86px 0;
}

.manifesto-section {
  background: var(--ink);
  color: var(--white);
}

.manifesto-grid,
.memory-layout,
.conversation-layout,
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.08;
}

h3 {
  margin: 0;
  line-height: 1.2;
}

.manifesto-copy {
  display: grid;
  gap: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.manifesto-copy p,
.section-heading p,
.memory-layout p,
.conversation-layout p,
.about-layout p {
  margin: 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading p {
  color: var(--muted);
}

.blog-section {
  background: var(--paper);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.post-grid,
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-card,
.video-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.post-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 24px;
}

.post-card[data-accent="teal"] {
  border-top: 5px solid var(--teal);
}

.post-card[data-accent="coral"] {
  border-top: 5px solid var(--coral);
}

.post-card[data-accent="green"] {
  border-top: 5px solid var(--green);
}

.post-card[data-accent="blue"] {
  border-top: 5px solid var(--blue);
}

.post-tag {
  width: fit-content;
  margin-bottom: 16px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--paper-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.post-card h3 {
  font-size: 22px;
}

.post-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.post-card button {
  width: fit-content;
  margin-top: auto;
}

.videos-section {
  background: #eef5f3;
}

.video-card {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ink);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(23, 19, 15, 0.86);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.video-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.video-body h3 {
  font-size: 18px;
}

.video-meta {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.video-card button {
  width: fit-content;
}

.memory-section {
  background: var(--paper-strong);
}

.memory-layout > div:first-child {
  position: sticky;
  top: 104px;
}

.memory-layout p {
  margin-top: 18px;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 16px;
}

.timeline article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.timeline article:last-child {
  border-bottom: 1px solid var(--line);
}

.timeline span {
  grid-row: span 2;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
}

.timeline p {
  margin: 0;
}

.conversation-section {
  background: var(--white);
}

.question-box {
  margin-top: 24px;
  padding: 22px;
  border-left: 5px solid var(--yellow);
  background: var(--paper);
}

.question-box p {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.18;
}

.question-box .button {
  margin-top: 18px;
}

.idea-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.idea-form label,
.newsletter-form label {
  font-weight: 800;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 144px;
  padding: 14px;
  resize: vertical;
}

input {
  min-height: 44px;
  padding: 0 12px;
}

textarea:focus,
input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(23, 111, 115, 0.16);
}

.form-status {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.saved-ideas {
  display: grid;
  gap: 8px;
}

.saved-ideas p {
  margin: 0;
  padding: 10px 12px;
  border-left: 4px solid var(--teal);
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
}

.about-section {
  background: var(--ink);
  color: var(--white);
}

.about-layout {
  grid-template-columns: 180px minmax(0, 1fr) minmax(280px, 0.7fr);
  align-items: center;
}

.about-avatar {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.12);
}

.about-layout p {
  color: rgba(255, 255, 255, 0.76);
}

.newsletter-form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.newsletter-row {
  flex-wrap: nowrap;
}

.newsletter-form input {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.newsletter-form .icon-button {
  flex: 0 0 auto;
  background: var(--yellow);
  color: var(--ink);
}

.site-footer {
  padding: 24px 0;
  background: #0a1a30;
  color: rgba(255, 255, 255, 0.72);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-layout p {
  margin: 0;
}

.footer-layout a {
  color: var(--yellow);
  font-weight: 800;
  text-decoration: none;
}

.content-modal,
.video-modal {
  width: min(820px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.video-modal {
  width: min(980px, calc(100% - 32px));
  background: var(--ink);
}

.content-modal::backdrop,
.video-modal::backdrop {
  background: rgba(23, 19, 15, 0.72);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  background: var(--white);
  color: var(--ink);
}

.modal-body {
  padding: 42px;
}

.modal-body .post-tag {
  margin-bottom: 18px;
}

.modal-body h2 {
  margin-bottom: 16px;
}

.modal-body p {
  color: var(--muted);
}

.video-frame {
  aspect-ratio: 16 / 9;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 920px) {
  .site-header {
    padding: 12px 18px;
  }

  .menu-button {
    display: inline-grid;
  }

  .main-nav {
    position: absolute;
    top: 72px;
    left: 12px;
    right: 12px;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
  }

  .hero {
    min-height: auto;
    padding-bottom: 56px;
  }

  .hero-content {
    padding: 112px 0 28px;
  }

  .hero h1 {
    max-width: 720px;
    font-size: 46px;
  }

  .learning-stickers {
    position: relative;
    top: auto;
    right: auto;
    width: min(700px, calc(100% - 48px));
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sticker,
  .sticker-large {
    min-height: 118px;
  }

  .sticker-large {
    grid-row: auto;
  }

  .sticker-large span {
    font-size: 18px;
  }

  .manifesto-grid,
  .memory-layout,
  .conversation-layout,
  .section-heading,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .memory-layout > div:first-child {
    position: static;
  }

  .post-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
  }

  .brand span {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-nav {
    top: 66px;
  }

  .hero {
    padding-bottom: 36px;
  }

  .hero-content,
  .section-inner {
    width: min(100% - 32px, 1120px);
  }

  .hero-content {
    padding: 92px 0 22px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 15px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
  }

  .hero-stats div {
    padding-top: 10px;
  }

  .hero-stats dt {
    font-size: 20px;
  }

  .hero-stats dd {
    font-size: 11px;
  }

  .learning-stickers {
    width: min(100% - 32px, 480px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .sticker,
  .sticker-large {
    min-height: 92px;
    padding: 12px;
    box-shadow: 5px 5px 0 rgba(16, 35, 63, 0.12);
  }

  .sticker:nth-child(n + 5) {
    display: none;
  }

  .sticker-icon,
  .sticker-large .sticker-icon {
    width: 26px;
    height: 26px;
  }

  .sticker span,
  .sticker-large span {
    max-width: none;
    font-size: 12px;
  }

  .manifesto-section,
  .blog-section,
  .videos-section,
  .memory-section,
  .conversation-section,
  .about-section {
    padding: 62px 0;
  }

  h2 {
    font-size: 32px;
  }

  .post-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .timeline article {
    grid-template-columns: 48px 1fr;
  }

  .timeline span {
    font-size: 30px;
  }

  .modal-body {
    padding: 34px 22px 24px;
  }
}
