/* YangKe LLC — public site. Self-hosted fonts only. No third-party assets. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #f4f0e8;
  --paper-raised: #fbf8f3;
  --ink: #162033;
  --ink-soft: #3a4556;
  --muted: #4e5966;
  --line: #d4cbbe;
  --navy: #122033;
  --bronze: #6a5036;
  --paper-dim: #e4dccf;
  --content: 1080px;
  --serif: "Source Serif 4", "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga", "calt";
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

img,
svg {
  display: block;
}

p,
ul,
ol,
dl,
address {
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(2.15rem, 4.5vw, 3.45rem);
}

h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
}

h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

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

::selection {
  background: var(--navy);
  color: var(--paper);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-150%);
  z-index: 30;
  background: var(--navy);
  color: var(--paper);
  text-decoration: none;
  padding: 0.6rem 0.85rem;
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(var(--content), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 240, 232, 0.94);
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
}

.brand:hover {
  color: var(--navy);
}

.brand-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  line-height: 1;
}

.mark {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--navy);
}

.mark rect,
.mark path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.mark rect {
  stroke-width: 1.25;
}

.mark path {
  stroke-width: 2;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-list a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--bronze);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rule {
  width: 3rem;
  height: 1px;
  margin: 0 0 1.2rem;
  border: 0;
  background: var(--bronze);
}

.h1-main,
.h1-place {
  display: block;
}

.h1-place {
  margin-top: 0.55rem;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 400;
  font-size: 0.58em;
  letter-spacing: 0;
  line-height: 1.3;
}

.lede,
.deck {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.075rem;
}

.hero {
  padding: 3.25rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.6rem;
  margin: 1.4rem 0 1rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

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

.arrow {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.disclaimer {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.dossier {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 1.3rem 1.3rem 0.35rem;
}

.glance {
  margin: 0;
}

.glance div,
.profile div {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.glance dt,
.profile dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glance dd,
.profile dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--ink);
}

.section {
  padding: 3.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.pillars {
  display: grid;
  gap: 2.25rem;
  margin-top: 2rem;
}

.pillar {
  border-top: 1px solid var(--ink);
  padding-top: 1rem;
}

.pillar-index {
  margin: 0 0 0.45rem;
  color: var(--bronze);
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
}

.limits {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.limits li {
  position: relative;
  margin: 0.45rem 0;
  padding-left: 1rem;
  color: var(--ink-soft);
}

.limits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.32rem;
  height: 0.32rem;
  background: var(--bronze);
}

.statement {
  max-width: 40rem;
  margin: 1.35rem 0 1.35rem;
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 2px solid var(--bronze);
  font-family: var(--serif);
  font-size: 1.32rem;
  line-height: 1.4;
  color: var(--ink);
}

.profile {
  margin: 0.4rem 0 1.75rem;
  border-top: 1px solid var(--ink);
}

.subhead {
  margin-top: 1.6rem;
}

.band {
  background: var(--navy);
  color: var(--paper);
  padding: 4rem 0 3.5rem;
}

.band h2,
.band h3,
.band .email-display,
.band .text-link {
  color: var(--paper);
}

.band .lede,
.band .guide p,
.band .quiet {
  color: var(--paper-dim);
}

.band a {
  color: var(--paper);
}

.band :focus-visible {
  outline-color: var(--paper);
}

.email-display {
  display: inline-block;
  max-width: 100%;
  margin: 0.4rem 0 1.15rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.7vw, 2.05rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.button:hover,
.band .button:hover {
  background: var(--paper);
  color: var(--navy);
}

.guide {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.guide article {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(244, 240, 232, 0.35);
  padding-top: 1rem;
}

.guide article > p:last-child {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 0.85rem;
}

.guide h3 {
  font-size: 1.28rem;
  color: var(--paper);
}

.guide a {
  font-weight: 600;
}

.quiet {
  margin: 2rem 0 0;
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 2.8rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-name {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.footer-links a {
  color: var(--ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-base {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-base p {
  margin: 0 0 0.35rem;
}

.doc {
  max-width: 40rem;
  padding: 3.25rem 0 4.5rem;
}

.doc-meta {
  margin-top: -0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.doc h2 {
  margin-top: 2.3rem;
  font-size: 1.42rem;
}

.callout {
  max-width: 40rem;
  margin: 1.4rem 0;
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 2px solid var(--bronze);
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.4;
}

.caps {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

address.postal {
  font-style: normal;
}

.doc ul {
  padding-left: 1.15rem;
}

.doc li {
  margin: 0.35rem 0;
}

.not-found h1 {
  max-width: 12em;
}

section[id] {
  scroll-margin-top: 1.25rem;
}

@media (min-width: 720px) {
  .glance div,
  .profile div {
    grid-template-columns: 9.6rem 1fr;
    gap: 1rem;
    align-items: baseline;
  }

  .profile div {
    grid-template-columns: 15rem 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 0.7fr;
    align-items: start;
  }

  .footer-links {
    align-items: flex-end;
  }
}

@media (min-width: 860px) {
  .pillars {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

@media (min-width: 900px) {
  .hero {
    padding: 4.75rem 0 5.25rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.96fr);
    gap: 3.5rem;
  }

  .section {
    padding: 5.25rem 0;
  }

  .guide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  section[id] {
    scroll-margin-top: 5.75rem;
  }
}

@media (max-width: 880px) {
  .site-header {
    position: static;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 0;
    gap: 0.15rem 1.5rem;
    padding: 0.85rem 0 0.4rem;
  }

  .nav-list {
    justify-content: flex-start;
    gap: 0.1rem 1.15rem;
  }

  .nav-list a {
    min-height: 40px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header {
    position: static;
  }

  .skip-link {
    display: none;
  }

  .band,
  .band h2,
  .band h3,
  .band p,
  .band a,
  .band li {
    background: #fff !important;
    color: #000 !important;
  }

  .band {
    border-top: 1px solid #000;
  }

  a {
    text-decoration: underline;
  }
}
