:root {
  --mist: #F6F7F4;
  --sand: #E7E2D8;
  --ink: #17233A;
  --slate: #44536B;
  --green: #2FBF71;
  --orange: #FF6B2C;
  --fog-green: #D8EFE1;
  --orange-haze: #FFE1D3;
  --line: #C7CCD3;
  --night: #0D1626;
  --white: #FFFFFF;
  --font-display: "HarmonyOS Sans SC", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Serif SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max-width: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 88px;
  --space-9: 112px;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 17px;
  --text-md: 20px;
  --text-lg: 28px;
  --text-xl: 40px;
  --text-2xl: 64px;
  --text-3xl: 112px;
  --cut-sm: 12px;
  --cut-md: 16px;
  --cut-lg: 22px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
.heading {
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 7rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: var(--text-md);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange);
  transform: rotate(-8deg);
}

.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 1000;
  padding: 12px 16px;
  background: var(--green);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246, 247, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-pinstripe {
  height: 5px;
  background-color: var(--night);
  background-image: repeating-linear-gradient(
    -8deg,
    transparent 0 34px,
    rgba(47, 191, 113, 0.9) 34px 42px,
    transparent 42px 78px
  );
}

.header-shell {
  width: min(var(--max-width), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  min-height: 86px;
}

.brand {
  grid-column: 2;
  display: inline-flex;
  align-items: baseline;
  justify-self: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  padding: 6px 8px;
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-line {
  padding-left: 10px;
  border-left: 1px solid var(--line);
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.header-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: var(--space-3);
}

.account-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 44px;
  padding: 7px 14px;
  background: var(--green);
  color: var(--ink);
  text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 180ms ease, background-color 180ms ease;
}

.account-link:hover {
  background: #38d17f;
  transform: translateY(-1px);
}

.account-kicker {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.1;
  opacity: 0.72;
}

.account-label {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
}

.nav-toggle-box {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-box span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-nav {
  display: block;
  border-top: 1px solid var(--line);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 14px 4px 12px;
  border-bottom: 2px solid transparent;
  color: var(--slate);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav-list a:hover {
  color: var(--ink);
  border-bottom-color: var(--line);
}

.nav-list a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--green);
}

.site-footer {
  padding: clamp(40px, 6vw, 64px) 0 var(--space-4);
  background: var(--night);
  color: var(--mist);
  border-top: 4px solid var(--orange);
}

.footer-shell {
  width: min(var(--max-width), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(246, 247, 244, 0.16);
}

.footer-brand-link {
  color: var(--mist);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.footer-brand-link:hover {
  color: var(--green);
}

.footer-brand-line {
  color: var(--fog-green);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer-brand-meta {
  margin-left: auto;
  color: rgba(246, 247, 244, 0.5);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.9fr 1.4fr;
  gap: var(--space-5);
  align-items: start;
}

.footer-col {
  min-width: 0;
}

.footer-col-title {
  margin: 0 0 14px;
  color: var(--mist);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.footer-col--highlight {
  padding: 20px 18px;
  background: rgba(255, 107, 44, 0.12);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.footer-col--highlight .footer-col-title {
  color: var(--orange);
  font-size: var(--text-md);
}

.footer-col-text {
  margin-bottom: var(--space-2);
  color: rgba(246, 247, 244, 0.78);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.footer-highlight-email {
  display: block;
  margin: var(--space-2) 0 var(--space-3);
  color: var(--orange-haze);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  word-break: break-all;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform 160ms ease, background-color 160ms ease;
}

.footer-cta:hover {
  background: #ff7b44;
  transform: translateY(-1px);
}

.footer-contact-list {
  list-style: none;
  color: rgba(246, 247, 244, 0.72);
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.footer-contact-list a {
  color: rgba(246, 247, 244, 0.82);
  text-decoration: none;
}

.footer-contact-list a:hover {
  color: var(--green);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(246, 247, 244, 0.14);
  color: rgba(246, 247, 244, 0.45);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.btn--primary {
  background: var(--green);
  color: var(--ink);
}

.btn--primary:hover {
  background: #38d17f;
}

.btn--accent {
  background: var(--orange);
  color: var(--ink);
}

.btn--accent:hover {
  background: #ff7b44;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

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

.breadcrumb {
  margin: 0 0 var(--space-4);
  color: var(--slate);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--line);
}

.breadcrumb a {
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumb a:hover {
  color: var(--ink);
  border-bottom-color: var(--green);
}

.prose {
  max-width: 68ch;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.8;
}

.prose > * + * {
  margin-top: 1.2em;
}

.prose h2,
.prose h3 {
  margin-top: 2.2em;
  margin-bottom: 0.6em;
}

.prose h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.prose h3 {
  font-size: var(--text-md);
}

.prose a {
  color: var(--ink);
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--orange);
  background: var(--orange-haze);
  color: var(--ink);
  font-size: var(--text-md);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--split {
  grid-template-columns: 5fr 7fr;
  align-items: start;
}

.grid--third {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--rail {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: var(--space-8);
}

.cut-panel {
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line);
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 8px 10px;
  background: rgba(23, 35, 58, 0.82);
  color: var(--mist);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.media-frame--wide {
  aspect-ratio: 16 / 10;
}

.media-frame--portrait {
  aspect-ratio: 4 / 5;
}

.media-frame--square {
  aspect-ratio: 1;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.tabs {
  margin-top: var(--space-6);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border-bottom: 1px solid var(--line);
}

.tab {
  appearance: none;
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--green);
}

.tab-panel {
  padding: var(--space-4) 0;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-col--highlight {
    order: -1;
  }

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

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

@media (max-width: 860px) {
  .header-top {
    grid-template-columns: 1fr auto;
    min-height: 68px;
    gap: var(--space-2);
  }

  .brand {
    grid-column: 1;
    justify-self: start;
    gap: var(--space-2);
  }

  .brand-mark {
    padding: 5px 7px;
    font-size: var(--text-sm);
  }

  .brand-name {
    font-size: var(--text-md);
  }

  .brand-line {
    display: none;
  }

  .header-actions {
    grid-column: 2;
    gap: var(--space-2);
  }

  .account-kicker {
    display: none;
  }

  .account-link {
    padding: 8px 10px;
  }

  .account-label {
    font-size: var(--text-xs);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
  }

  .site-header[data-open] .site-nav {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    padding: var(--space-2) 0 var(--space-3);
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-list li:last-child {
    border-bottom: 0;
  }

  .nav-list a {
    padding: 14px 0;
    font-size: var(--text-base);
    border-bottom: 0;
  }

  .nav-list a[aria-current="page"] {
    padding-left: 12px;
    color: var(--ink);
    box-shadow: inset 4px 0 var(--green);
  }

  .grid--rail {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: var(--space-3);
  }
}

@media (max-width: 620px) {
  .footer-brand {
    align-items: flex-start;
  }

  .footer-brand-meta {
    width: 100%;
    margin-left: 0;
  }

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

  .footer-col--highlight {
    order: 0;
  }

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

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

  .breadcrumb {
    font-size: 11px;
  }

  .tab {
    flex: 1 1 auto;
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
