:root {
  --paper: #f7f1e3;
  --paper-deep: #efe5cf;
  --white: #fffdf6;
  --ink: #263b4a;
  --ink-soft: #526a79;
  --blue: #315e7c;
  --blue-deep: #244a63;
  --blue-soft: #a9cfdd;
  --sky: #e3f1f2;
  --yellow: #f3c64f;
  --yellow-soft: #f8e3a6;
  --coral: #e89a7a;
  --border: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 24px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(38, 59, 74, .07) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
blockquote,
figcaption {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--yellow);
  border: var(--border);
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 227, .94);
  border-bottom: var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
}

.brand svg {
  width: 40px;
  height: 40px;
  transition: transform .25s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color .18s ease, box-shadow .18s ease;
}

.site-nav a.is-active {
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--yellow);
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.nav-toggle-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 22px;
}

.nav-toggle-box span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  transition: transform .22s ease, opacity .22s ease;
}

.nav-open .nav-toggle-box span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-box span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 100px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: var(--yellow);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .06em;
  transform: rotate(-1.2deg);
}

.eyebrow svg {
  width: 30px;
  height: 12px;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.9rem, 6.4vw, 5.2rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.035em;
}

.hero h1 .highlight {
  display: inline-block;
  margin-top: .06em;
  padding: .01em .14em .07em;
  background: var(--yellow);
  border: var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.hero-lead {
  max-width: 35em;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-size: .95rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn-primary {
  background: var(--yellow);
}

.btn-ghost {
  background: var(--white);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.hero-note {
  margin-top: 26px;
  padding-left: 14px;
  border-left: 3px dashed var(--blue-soft);
  color: var(--ink-soft);
  font-size: .88rem;
}

.hero-art {
  position: relative;
  justify-self: end;
  width: min(100%, 480px);
}

.art-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: var(--border);
  border-radius: 28px;
  box-shadow: 9px 9px 0 var(--ink);
  transform: rotate(-1.3deg);
}

.scene {
  width: 100%;
  height: auto;
}

.art-caption {
  padding: 11px 18px;
  border-top: var(--border);
  background: var(--yellow-soft);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-align: center;
}

.tape {
  position: absolute;
  z-index: 2;
  width: 86px;
  height: 24px;
  background: rgba(243, 198, 79, .9);
  border: 2px solid var(--ink);
}

.tape-tl {
  top: -13px;
  left: 26px;
  transform: rotate(-8deg);
}

.tape-br {
  right: -18px;
  bottom: 56px;
  transform: rotate(9deg);
}

.sticker {
  position: absolute;
  z-index: 3;
  padding: 6px 13px;
  border: var(--border);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.sticker-a {
  top: 9%;
  left: -20px;
  background: var(--yellow);
  transform: rotate(-7deg);
}

.sticker-b {
  bottom: 19%;
  left: -16px;
  background: var(--blue-soft);
  transform: rotate(5deg);
}

.sticker-c {
  top: 35%;
  right: -16px;
  background: var(--white);
  transform: rotate(6deg);
}

.ticker {
  overflow: hidden;
  padding: 11px 0;
  background: var(--yellow);
  border-top: var(--border);
  border-bottom: var(--border);
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.ticker-group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-size: .9rem;
  font-weight: 900;
  letter-spacing: .12em;
  white-space: nowrap;
}

.ticker-dot {
  width: 9px;
  height: 9px;
  background: var(--ink);
  transform: rotate(45deg);
}

.section {
  padding: clamp(64px, 9vw, 104px) 0;
}

.section-alt {
  background-color: #e7f1f0;
  background-image:
    linear-gradient(rgba(49, 94, 124, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(49, 94, 124, .05) 1px, transparent 1px);
  background-size: 36px 36px;
  border-top: var(--border);
  border-bottom: var(--border);
}

.section-heading {
  margin-bottom: clamp(32px, 5vw, 52px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--white);
  border: var(--border);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  transform: rotate(-1deg);
}

.section-heading h2 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.25;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.mark {
  padding: 0 .08em;
  background: linear-gradient(transparent 60%, var(--yellow) 60%);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.about-copy p {
  color: var(--ink-soft);
  line-height: 1.95;
}

.about-copy p + p {
  margin-top: 15px;
}

.about-copy .about-lead {
  color: var(--ink);
  font-size: clamp(1.08rem, 1.8vw, 1.22rem);
  font-weight: 800;
  line-height: 1.8;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag-list li {
  padding: 5px 12px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: .8rem;
  font-weight: 700;
}

.tag-list li:nth-child(3n+1) {
  background: var(--yellow-soft);
}

.tag-list li:nth-child(3n+2) {
  background: var(--sky);
}

.note {
  position: sticky;
  top: 108px;
  align-self: start;
  padding: 30px 26px 24px;
  background: var(--white);
  border: var(--border);
  border-radius: 26px;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(1.4deg);
}

.note-tape {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 96px;
  height: 26px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  transform: translateX(-50%) rotate(-3deg);
}

.note-title {
  padding-bottom: 12px;
  border-bottom: 3px dashed var(--blue-soft);
  font-size: 1.25rem;
  letter-spacing: .06em;
}

.note-list > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 2px dotted rgba(38, 59, 74, .18);
}

.note-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.note-list dt {
  flex: 0 0 auto;
  padding: 1px 7px;
  background: var(--yellow-soft);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 800;
}

.note-list dd {
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 600;
}

.doing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.doing-card {
  position: relative;
  display: flex;
  flex: 1 1 270px;
  flex-direction: column;
  gap: 12px;
  padding: 30px 24px 24px;
  background: var(--white);
  border: var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.doing-num {
  position: absolute;
  top: 20px;
  right: 22px;
  color: #a9c6d4;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: .05em;
}

.doing-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  background: var(--yellow);
  border: var(--border);
  border-radius: 18px;
  box-shadow: 3px 3px 0 var(--ink);
}

.doing-icon svg {
  width: 30px;
  height: 30px;
}

.doing-card:nth-child(2) .doing-icon {
  background: var(--blue-soft);
}

.doing-card:nth-child(3) .doing-icon {
  background: var(--yellow-soft);
}

.doing-card h3 {
  font-size: 1.35rem;
  letter-spacing: .02em;
}

.doing-card p {
  color: var(--ink-soft);
  font-size: .94rem;
  line-height: 1.85;
}

.doing-card .doing-status {
  align-self: flex-start;
  margin-top: auto;
  padding: 4px 11px;
  background: var(--sky);
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 800;
}

.quote-card {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 78px) clamp(24px, 6vw, 76px);
  background: var(--blue);
  border: var(--border);
  border-radius: 30px;
  box-shadow: 9px 9px 0 var(--ink);
  color: var(--white);
  text-align: center;
}

.quote-card::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 2px dashed rgba(255, 255, 255, .22);
  border-radius: 20px;
  pointer-events: none;
}

.quote-card::after {
  content: "”";
  position: absolute;
  right: 4%;
  bottom: -26%;
  color: var(--yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(10rem, 24vw, 18rem);
  line-height: 1;
  opacity: .13;
  pointer-events: none;
}

.quote-fish {
  position: relative;
  z-index: 1;
  width: 112px;
  margin: 0 auto 16px;
  color: var(--yellow);
}

.quote-card .kicker {
  position: relative;
  z-index: 1;
  background: var(--yellow);
  color: var(--ink);
}

.quote-card blockquote {
  position: relative;
  z-index: 1;
  max-width: 20em;
  margin: 24px auto 22px;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .01em;
  text-wrap: balance;
}

.quote-card figcaption {
  position: relative;
  z-index: 1;
  color: #cfe5ea;
  font-size: .88rem;
}

.site-footer {
  padding: 36px 0;
  background: var(--blue-deep);
  border-top: var(--border);
  color: var(--white);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand svg {
  width: 44px;
  height: 44px;
}

.footer-name {
  font-weight: 900;
  letter-spacing: .06em;
}

.footer-line {
  color: var(--blue-soft);
  font-size: .85rem;
}

.footer-copy {
  color: #c3dce6;
  font-size: .8rem;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: var(--yellow);
  border: var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top svg {
  width: 20px;
  height: 20px;
}

.js .reveal {
  opacity: 0;
  translate: 0 22px;
  transition: opacity .7s ease, translate .7s cubic-bezier(.22, 1, .36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  translate: 0 0;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes fish-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes bubbles-float {
  0%,
  100% {
    transform: translateY(0);
    opacity: .8;
  }
  50% {
    transform: translateY(-12px);
    opacity: .5;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ticker-track {
    animation: ticker-scroll 30s linear infinite;
  }

  .fish {
    animation: fish-bob 6.5s ease-in-out infinite;
  }

  .bubbles {
    animation: bubbles-float 7s ease-in-out infinite;
  }
}

@media (hover: hover) {
  .brand:hover svg {
    transform: rotate(-12deg);
  }

  .site-nav a:not(.is-active):hover {
    background: var(--yellow-soft);
  }

  .btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
  }

  .doing-card:hover {
    transform: translate(-3px, -3px) rotate(-.4deg);
    box-shadow: 10px 10px 0 var(--ink);
  }

  .to-top:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
  }

  .ticker:hover .ticker-track {
    animation-play-state: paused;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-art {
    justify-self: center;
    width: min(100%, 460px);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .note {
    position: static;
    max-width: 520px;
    transform: rotate(1deg);
  }
}

@media (max-width: 980px) and (min-width: 641px) {
  .doing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doing-card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon title"
      "icon text"
      "icon status";
    column-gap: 24px;
    row-gap: 8px;
    align-items: start;
  }

  .doing-card:last-child .doing-icon {
    grid-area: icon;
  }

  .doing-card:last-child h3 {
    grid-area: title;
  }

  .doing-card:last-child p:not(.doing-status) {
    grid-area: text;
    max-width: 46em;
  }

  .doing-card:last-child .doing-status {
    grid-area: status;
    justify-self: start;
    margin-top: 0;
  }
}

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

  .site-nav {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    right: 0;
    display: grid;
    gap: 8px;
    padding: 14px;
    background: var(--paper);
    border: var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    padding: 11px 14px;
    background: var(--white);
    border: 2px solid var(--ink);
    border-radius: 12px;
    box-shadow: 2px 2px 0 var(--ink);
  }

  .site-nav a.is-active {
    background: var(--yellow);
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .doing-card {
    flex-basis: 100%;
  }

  .hero {
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
  }

  .hero h1 .highlight {
    border-radius: 16px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .hero-art {
    width: 100%;
  }

  .art-frame {
    box-shadow: 7px 7px 0 var(--ink);
  }

  .tape {
    width: 64px;
    height: 20px;
  }

  .tape-tl {
    left: 18px;
  }

  .tape-br {
    right: -10px;
  }

  .sticker {
    font-size: .72rem;
    padding: 5px 10px;
  }

  .sticker-a {
    left: -6px;
  }

  .sticker-b {
    bottom: 15%;
    left: -6px;
  }

  .sticker-c {
    right: -6px;
  }

  .ticker-group {
    gap: 18px;
    padding-right: 18px;
    font-size: .8rem;
  }

  .section-heading h2 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .doing-card {
    padding: 26px 20px 22px;
  }

  .quote-card {
    box-shadow: 7px 7px 0 var(--ink);
  }

  .quote-card::before {
    inset: 10px;
  }

  .quote-break {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 420px) {
  .sticker {
    display: none;
  }

  .tag-list li {
    font-size: .75rem;
  }

  .note {
    padding: 28px 20px 22px;
  }

  .note-list > div {
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }

  .ticker-track {
    width: 100%;
    justify-content: center;
  }

  .ticker-group {
    padding-right: 0;
  }

  .ticker-group[aria-hidden="true"] {
    display: none;
  }

  .skip-link,
  .brand svg,
  .site-nav a,
  .nav-toggle-box span,
  .btn,
  .doing-card,
  .to-top {
    transition: none;
  }
}
