:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --ink: #252134;
  --muted: #5c5668;
  --purple: #4932a6;
  --purple-dark: #35217f;
  --line: #e1ddd5;
  --white: #fffdfa;
  --radius: 17px;
  --sans: Geist, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
[id] { scroll-margin-top: 22px; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 5px; }

.wrap { width: min(100% - 72px, 1200px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 10px; left: 10px; padding: .5rem 1rem; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -.07em;
  line-height: 1;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin-right: 8px;
  border-radius: 9px;
  background: var(--purple);
  color: #fff;
  font: 700 23px/1 "Segoe UI Symbol", sans-serif;
  letter-spacing: 0;
}
.wordmark-dot { color: var(--purple); }
.primary-nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 4vw, 44px); }
.primary-nav a { font-size: .9rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--purple); }
.primary-nav a[aria-current="page"] { font-weight: 700; }

.button { display: inline-flex; width: fit-content; min-height: 48px; align-items: center; justify-content: center; gap: .85rem;
  padding: .66rem 1.1rem; border: 1px solid transparent; border-radius: 8px;
  font-size: .92rem; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .18s, color .18s, border-color .18s; }
.button span { font-size: 1.15em; }
.button-outline { border-color: #a79ac7; color: var(--purple); }
.button-outline:hover { border-color: var(--purple); background: #ece6ff; }
.button-primary { background: var(--purple); color: #fff; }
.button-primary:hover { background: var(--purple-dark); }
.text-link { color: var(--purple); font-size: .9rem; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: .22em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-block: clamp(3.1rem, 7.4vw, 6.6rem) clamp(3rem, 6vw, 5.6rem);
}
.eyebrow { color: var(--purple); font-size: .86rem; font-weight: 800; letter-spacing: .1em; }
.hero h1 { margin-top: .54em; font-size: clamp(3rem, 6.1vw, 5.45rem); letter-spacing: -.065em; line-height: 1.08; font-weight: 800; }
.hero h1 em { color: var(--purple); font-style: normal; }
.hero-description { max-width: 25em; margin: 1.35rem 0 1.75rem; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.125rem); line-height: 1.8; }
.hero-visual { position: relative; aspect-ratio: 1.13; min-width: 0; overflow: hidden; border-radius: 22px; background: #36382a; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.photo-mark {
  position: absolute; right: clamp(14px, 2.5vw, 30px); bottom: clamp(14px, 2.5vw, 30px);
  display: grid; place-items: center; width: clamp(48px, 7vw, 90px); aspect-ratio: 1; border-radius: 50%;
  background: #e3d5ff; color: var(--purple-dark); font: 700 clamp(31px, 5.2vw, 66px)/1 "Segoe UI Symbol", sans-serif;
}

.paths { border-block: 1px solid var(--line); background: var(--white); padding-block: clamp(2.5rem, 5vw, 4.4rem); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-heading h2, .about h2 { font-size: clamp(1.64rem, 3vw, 2.48rem); letter-spacing: -.05em; }
.path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.8rem, 2.4vw, 1.5rem); }
.path-card {
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; text-decoration: none; transition: transform .18s, border-color .18s;
}
.path-card:hover { transform: translateY(-3px); border-color: #a79ac7; }
.card-visual { display: grid; min-height: clamp(89px, 10.5vw, 138px); place-items: center; overflow: hidden; }
.card-visual > span { font-size: clamp(2.35rem, 4.5vw, 3.9rem); line-height: 1; }
.card-code { color: #5033a6; background: #e9e1fa; font: 700 1rem var(--mono); }
.card-web { color: #a23b27; background: #f9e3d9; font: 700 1rem Georgia, serif; }
.card-study { color: #375e47; background: #e0ebdd; font: 700 1rem "Segoe UI Symbol", sans-serif; }
.card-copy { display: flex; flex: 1; flex-direction: column; padding: clamp(1rem, 2.2vw, 1.55rem); }
.card-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .75rem; color: var(--purple); font-size: .77rem; font-weight: 700; }
.card-meta > span { color: var(--muted); font-weight: 400; }
.card-copy h3 { margin: .62rem 0 .58rem; font-size: clamp(1.12rem, 1.62vw, 1.45rem); letter-spacing: -.025em; }
.card-copy > p:not(.card-meta) { margin-bottom: 1rem; color: var(--muted); font-size: .92rem; }
.card-action { margin-top: auto; color: var(--purple); font-size: .86rem; font-weight: 700; }
.card-action > span { margin-left: .2rem; }

.about { display: grid; grid-template-columns: 1fr 1.65fr; gap: 1rem 2rem; align-items: start; padding-block: clamp(3rem, 6vw, 5rem); }
.about p { max-width: 36em; color: var(--muted); line-height: 1.8; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 94px; }
.footer-inner .wordmark { font-size: 1.4rem; }
.footer-inner .brand-mark { width: 28px; height: 28px; flex-basis: 28px; font-size: 20px; }
.credit { color: var(--muted); font-size: .75rem; text-decoration-color: #aa9fb4; text-underline-offset: .25em; }

.guide-layout {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 750px);
  justify-content: space-between;
  gap: 2rem clamp(1.5rem, 6vw, 5rem);
  padding-block: clamp(2rem, 6vw, 4.8rem);
}
.guide-sidebar { align-self: stretch; }
.guide-content { min-width: 0; }
.guide-nav { position: sticky; top: 24px; display: grid; gap: .65rem; border-left: 2px solid #d8ccee; padding-left: .95rem; }
.guide-nav a { width: fit-content; color: var(--muted); font-size: .9rem; text-decoration: none; }
.guide-nav a:hover { color: var(--purple); text-decoration: underline; }
.guide-intro { margin-bottom: 2.2rem; }
.guide-intro h1 { margin-bottom: .65rem; font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.06em; }
.guide-intro p { color: var(--muted); }
.guide { margin-bottom: 1.5rem; padding: clamp(1.2rem, 4vw, 2.75rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.guide h2 { margin: .6rem 0 1.05rem; font-size: clamp(1.42rem, 3.4vw, 2.25rem); letter-spacing: -.04em; }
.guide h3 { margin: 1.3rem 0 .45rem; font-size: 1.13rem; }
.guide p:not(.card-meta), .guide ol { color: var(--muted); line-height: 1.8; }
.guide li + li { margin-top: .45rem; }
.guide p code { padding: .12em .3em; border-radius: 4px; background: #eee7fa; color: var(--purple-dark); font-family: var(--mono); font-size: .9em; }
.guide pre {
  margin: .9rem 0 0; padding: 1rem; overflow-x: auto; border-radius: 9px;
  background: #27223d; color: #f5efff; font: .86rem/1.65 var(--mono); tab-size: 4;
}
.guide-check { margin-top: 1.3rem; padding: .75rem .95rem; border-left: 3px solid var(--purple); border-radius: 0 8px 8px 0; background: #efe9fa; }
.guide-check strong { color: var(--purple); }

@media (max-width: 800px) {
  .wrap { width: min(100% - 40px, 1200px); }
  .hero { gap: 1.6rem; }
  .hero h1 { font-size: clamp(2.8rem, 7.4vw, 4.15rem); }
}
@media (max-width: 625px) {
  .header-inner { min-height: 65px; gap: .65rem; }
  .header-action { display: none; }
  .primary-nav { gap: .75rem; }
  .primary-nav a { font-size: .83rem; }
  .hero { grid-template-columns: 1fr; padding-top: 2.45rem; gap: 1.7rem; }
  .hero-visual { aspect-ratio: 1.38; border-radius: 15px; }
  .hero-description { margin-block: 1rem 1.3rem; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card { display: grid; grid-template-columns: clamp(76px, 25%, 125px) minmax(0, 1fr); }
  .section-heading { flex-wrap: wrap; }
  .about, .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .guide-layout { gap: 1.25rem; }
  .guide-sidebar { grid-row: 1; }
  .guide-nav { position: static; }
  .footer-inner { flex-wrap: wrap; padding-block: 1.3rem; }
  .footer-inner .credit { flex-basis: 100%; order: 1; }
}
@media (max-width: 340px) {
  .wrap { width: calc(100% - 28px); }
  .wordmark { font-size: 1.35rem; }
  .brand-mark { width: 27px; height: 27px; flex-basis: 27px; font-size: 19px; }
  .primary-nav { gap: .55rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
