:root {
  --ink: #10272d;
  --paper: #fffdf8;
  --mist: #eef2f2;
  --line: #c9d2d0;
  --yellow: #ca8c1a;
  --yellow-soft: #f4d372;
  --blue: #416f9e;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

section[id] {
  scroll-margin-top: calc(var(--header-height) + 1.4rem);
}

.article-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 0 3vw;
  border-bottom: 1px solid rgba(16, 39, 45, 0.12);
  background: rgba(255, 253, 248, 0.95);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__mountain {
  position: relative;
  display: grid;
  width: 54px;
  height: 42px;
  place-items: end center;
  overflow: hidden;
  font-size: 1.1rem;
  font-weight: 900;
}

.brand__mountain::before,
.brand__mountain::after {
  position: absolute;
  bottom: -12px;
  width: 48px;
  height: 48px;
  border: 4px solid var(--ink);
  content: "";
  transform: rotate(45deg);
}

.brand__mountain::before { left: -18px; }
.brand__mountain::after { right: -18px; }
.brand__mountain i { position: relative; z-index: 1; font-style: normal; }
.brand__copy { display: grid; gap: 0.08rem; }
.brand__copy small { font-size: 0.53rem; font-weight: 700; }
.brand__copy strong { font: 700 1rem/1.2 "Heebo", "Noto Sans SC", sans-serif; }

.article-nav {
  display: flex;
  gap: 2.4rem;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 900;
}

.article-nav a {
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}

.article-nav a:hover,
.article-nav a:focus-visible {
  border-color: var(--yellow);
}

.article-menu-toggle {
  display: none;
  width: 56px;
  height: 56px;
  align-content: center;
  gap: 6px;
  justify-items: center;
  border: 0;
  border-radius: 50%;
  background: #e2e7e6;
}

.article-menu-toggle span {
  width: 26px;
  height: 3px;
  background: var(--ink);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.article-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.article-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.article-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.article-menu {
  position: fixed;
  z-index: 19;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 0;
  padding: 6rem 1.5rem 2rem;
  background: var(--yellow-soft);
  clip-path: circle(0 at calc(100% - 38px) 38px);
  visibility: hidden;
  transition: clip-path 0.55s ease, visibility 0s 0.55s;
}

.article-menu.is-open {
  visibility: visible;
  clip-path: circle(150% at calc(100% - 38px) 38px);
  transition: clip-path 0.55s ease, visibility 0s;
}

.article-menu p {
  position: absolute;
  top: 7rem;
  left: 1.5rem;
  margin: 0;
  font: 900 0.8rem/1 "Heebo", sans-serif;
}

.article-menu a {
  border-bottom: 2px solid rgba(16, 39, 45, 0.23);
  padding: 0.45rem 0;
  font-size: clamp(2rem, 10vw, 3.2rem);
  font-weight: 900;
}

.paper-article {
  padding-top: var(--header-height);
}

.paper-hero {
  position: relative;
  overflow: hidden;
  padding: 6.5rem max(7vw, calc((100vw - 1180px) / 2)) 4.8rem;
  background: var(--paper);
}

.paper-hero::before {
  position: absolute;
  top: 6rem;
  right: -1%;
  color: #edf0ed;
  content: "TRUST";
  font: 700 clamp(7rem, 17vw, 15rem)/0.7 "Caveat", cursive;
  transform: rotate(-8deg);
}

.here-article .paper-hero::before {
  color: #e7edf1;
  content: "HERE";
}

.team-article .paper-hero::before {
  color: #e7edf1;
  content: "CONTEXT";
}

.skill-article .paper-hero::before {
  color: #e7edf1;
  content: "SKILL";
}

.code-block {
  overflow-x: auto;
  margin: 2.3rem 0;
  border-left: 6px solid var(--blue);
  padding: 1.2rem 1.4rem;
  background: #10272d;
  color: #f8f4e9;
  font: 700 0.79rem/1.85 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.article-body code {
  border-radius: 2px;
  padding: 0.12rem 0.3rem;
  background: #e8eeee;
  color: #263d43;
  font: 700 0.83em/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.code-block code {
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.breadcrumb,
.paper-kicker,
.section-label,
.article-index > p,
.paper-sources > p:first-child {
  position: relative;
  z-index: 1;
  color: var(--yellow);
  font: 900 0.67rem/1.4 "Heebo", "Noto Sans SC", sans-serif;
}

.breadcrumb {
  display: inline-block;
  margin-bottom: 4.5rem;
  color: #637274;
}

.breadcrumb:hover,
.breadcrumb:focus-visible {
  color: var(--yellow);
}

.paper-kicker {
  margin: 0 0 1.1rem;
}

.paper-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 1070px;
  margin: 0;
  font-size: clamp(3rem, 6.1vw, 6.2rem);
  font-weight: 900;
  line-height: 1.02;
}

.paper-lead {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 2rem 0 0;
  font-size: 1rem;
  line-height: 2;
}

.paper-meta {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 1050px;
  grid-template-columns: 1.8fr 1fr 0.55fr;
  gap: 1.6rem;
  margin: 3.3rem 0 2.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}

.paper-meta div {
  display: grid;
  gap: 0.35rem;
}

.paper-meta dt {
  color: #697679;
  font: 700 0.57rem/1 "Heebo", sans-serif;
}

.paper-meta dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.55;
}

.hero-figure {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hero-figure img {
  width: 100%;
  max-height: 730px;
  object-fit: cover;
  border: 1px solid #d9d1c0;
}

.hero-figure figcaption,
.article-figure figcaption {
  margin-top: 0.8rem;
  color: #687477;
  font-size: 0.68rem;
  line-height: 1.6;
}

.article-layout {
  display: grid;
  max-width: 1180px;
  grid-template-columns: 170px minmax(0, 760px);
  gap: clamp(3rem, 8vw, 9rem);
  margin: 0 auto;
  padding: 6rem 3vw 8rem;
}

.article-index {
  position: sticky;
  top: calc(var(--header-height) + 1.7rem);
  align-self: start;
  display: grid;
  gap: 0.8rem;
}

.article-index > p {
  margin: 0 0 0.8rem;
}

.article-index a {
  color: #5b686a;
  font-size: 0.68rem;
  line-height: 1.4;
}

.article-index a:hover,
.article-index a:focus-visible {
  color: var(--yellow);
}

.article-body section + section {
  margin-top: 7rem;
}

.section-label {
  margin: 0 0 1rem;
}

.article-body h2 {
  margin: 0 0 2rem;
  font-size: clamp(2.1rem, 4.2vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
}

.article-body p {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  line-height: 2.1;
}

.article-body blockquote {
  margin: 2.4rem 0;
  border-left: 7px solid var(--yellow);
  padding: 1.1rem 1.4rem;
  background: var(--mist);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.8;
}

.mapping-table {
  margin: 2.5rem 0 3rem;
  border-top: 2px solid var(--ink);
}

.mapping-table div {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  border-bottom: 1px solid var(--line);
}

.mapping-table dt,
.mapping-table dd {
  margin: 0;
  padding: 1rem 1.1rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.mapping-table dt {
  background: var(--mist);
  font-weight: 900;
}

.mapping-table dd {
  font-weight: 700;
}

.article-figure {
  margin: 3.4rem 0;
}

.article-figure img {
  width: 100%;
  border: 1px solid #d5dcdc;
}

.figure--wide {
  width: min(100%, 960px);
}

.figure--dark img {
  background: #080808;
}

.method-steps {
  display: grid;
  gap: 0;
  margin: 2.6rem 0;
  padding: 0;
  list-style: none;
  counter-reset: method;
}

.method-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.9rem;
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
  counter-increment: method;
}

.method-steps li::before {
  color: var(--yellow);
  content: "0" counter(method);
  font: 900 0.85rem/1.4 "Heebo", sans-serif;
}

.method-steps b,
.method-steps span {
  grid-column: 2;
}

.method-steps b {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.method-steps span {
  color: #506064;
  font-size: 0.8rem;
  line-height: 1.8;
}

.takeaway {
  margin-top: 3rem;
  border-top: 5px solid var(--yellow);
  padding: 2.2rem 0 0;
}

.takeaway > p:first-child {
  margin: 0 0 0.8rem;
  color: var(--yellow);
  font: 900 0.66rem/1 "Heebo", sans-serif;
}

.takeaway h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.25;
}

.paper-sources {
  margin: 0 max(7vw, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line);
  padding: 2rem 0 5rem;
}

.paper-sources > p:nth-child(2) {
  max-width: 790px;
  font-size: 0.78rem;
  line-height: 1.9;
}

.paper-sources a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-bottom: 3px solid var(--yellow);
  font: 900 0.72rem/1 "Heebo", "Noto Sans SC", sans-serif;
}

.site-footer {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem max(7vw, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: var(--paper);
}

.site-footer > p {
  margin: 0;
  color: var(--yellow-soft);
  font: 900 0.65rem/1 "Heebo", sans-serif;
}

.site-footer > a:not(.page-top) {
  border-bottom: 2px solid var(--yellow-soft);
  padding-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 900;
}

.site-footer span {
  margin-left: 0.4rem;
  color: var(--yellow-soft);
  font: 700 0.55rem/1 "Heebo", sans-serif;
}

.page-top {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: var(--ink);
  font-size: 1.2rem;
}

@media (max-width: 760px) {
  :root { --header-height: 70px; }
  .article-header { padding: 0 1rem; }
  .article-nav { display: none; }
  .article-menu-toggle { display: grid; }
  .brand__copy small { display: none; }
  .brand__copy strong { font-size: 0.92rem; }

  .paper-hero {
    padding: 5.2rem 1.4rem 3.5rem;
  }

  .paper-hero::before {
    top: 8rem;
    right: -6%;
    font-size: 7.5rem;
  }

  .breadcrumb { margin-bottom: 3.4rem; }
  .paper-hero h1 { font-size: clamp(2.6rem, 11vw, 4.1rem); }
  .here-article .paper-hero h1 { font-size: clamp(2rem, 8.25vw, 3.5rem); }
  .team-article .paper-hero h1 { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .skill-article .paper-hero h1 { font-size: clamp(2.2rem, 8.8vw, 3.5rem); }
  .paper-lead { font-size: 0.9rem; }
  .paper-meta { grid-template-columns: 1fr; gap: 0.9rem; margin-top: 2.4rem; }
  .hero-figure img { min-height: 250px; object-fit: cover; object-position: 38% center; }

  .article-layout {
    display: block;
    padding: 4.5rem 1.4rem 5rem;
  }

  .article-index {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 1.1rem;
    margin-bottom: 4rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
  }

  .article-index > p { display: none; }
  .article-index a { flex: 0 0 auto; }
  .article-body section + section { margin-top: 5.5rem; }
  .article-body h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .article-body p { font-size: 0.9rem; }
  .article-body blockquote { margin: 2rem 0; padding: 1rem 1.1rem; font-size: 0.95rem; }
  .code-block { margin: 1.9rem 0; padding: 1rem 1.1rem; font-size: 0.72rem; }
  .mapping-table div { grid-template-columns: 1fr; }
  .mapping-table dt, .mapping-table dd { padding: 0.8rem 0.9rem; }
  .mapping-table dd { padding-top: 0; }
  .article-figure { margin: 2.4rem 0; }
  .method-steps li { grid-template-columns: 38px 1fr; }

  .paper-sources { margin: 0 1.4rem; padding-bottom: 3.5rem; }
  .site-footer { min-height: 210px; flex-wrap: wrap; padding: 2rem 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
