/* Kami 的纸色、暖灰、墨蓝及单一衬线字体体系。 */
@font-face {
  font-family: "TsangerJinKai02";
  src: url("../assets/fonts/tsanger-jinkai-02-w04.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TsangerJinKai02";
  src: url("../assets/fonts/tsanger-jinkai-02-w05.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --parchment: #f5f4ed;
  --ivory: #faf9f5;
  --warm-sand: #e8e6dc;
  --brand: #1b365d;
  --brand-light: #2d5a8a;
  --near-black: #141413;
  --dark-warm: #3d3d3a;
  --olive: #504e49;
  --stone: #6b6a64;
  --border-soft: #e5e3d8;
  --border: #e8e6dc;
  --serif: "TsangerJinKai02", "Source Han Serif SC",
    "Source Han Serif CN", "Noto Serif CJK SC", "Noto Serif SC",
    "Songti SC", "STSong", "SimSun", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--parchment);
  color: var(--near-black);
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1.55;
  letter-spacing: 0.4px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--stone);
  text-decoration: none;
  transition: color 0.15s;
}

a:hover {
  color: var(--brand-light);
}

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 6px;
}

.page {
  max-width: 1120px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 88px 64px 32px;
  display: flex;
  flex-direction: column;
}

main {
  padding-bottom: 80px;
}

.hero {
  margin-bottom: 64px;
}

.eyebrow {
  color: var(--stone);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin: 0 0 28px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 5.5rem;
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 18px;
}

.tagline {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--olive);
  max-width: 820px;
  margin: 0;
}

.applications {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, min(100%, 318px)));
  justify-content: center;
  gap: 18px;
}

.applications>li {
  min-width: 0;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 248px;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--ivory);
  overflow: hidden;
}

.app-link {
  transition: color 0.15s, transform 180ms ease, box-shadow 180ms ease;
}

.app-link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -12px rgba(20, 20, 19, 0.22);
}

@media (hover: hover) and (pointer: fine) {
  .app-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -12px rgba(20, 20, 19, 0.22);
  }
}

.app-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--warm-sand);
}

.app-art {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  color: var(--stone);
}

.art-accent {
  color: var(--brand);
  stroke: currentColor;
}

.art-years {
  font-family: var(--serif);
  font-size: 12px;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.4px;
}

.app-icon {
  flex: 0 0 auto;
}

.app-copy {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
  padding: 20px 24px 24px;
}

.app-text {
  flex: 1;
  min-width: 0;
}

.app-card h2 {
  color: var(--near-black);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.3;
  margin: 0;
}

.app-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.app-card p {
  color: var(--olive);
  font-size: 0.75rem;
  line-height: 1.4;
  margin: 6px 0 0;
}

.app-arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.banner {
  position: relative;
  margin: 0 0 50px;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--parchment), transparent 12%, transparent 88%, var(--parchment)),
    linear-gradient(to bottom, var(--parchment), transparent 10%, transparent 90%, var(--parchment));
}

.banner picture,
.banner img {
  display: block;
}

.banner img {
  width: 100%;
  height: auto;
}

footer.foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8125rem;
  font-variant-numeric: lining-nums tabular-nums;
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  justify-content: flex-end;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
}

@media (max-width: 880px) {
  .page {
    padding: 64px 32px 24px;
  }

  main {
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero {
    margin-bottom: 40px;
  }

  .tagline {
    font-size: 1.0625rem;
  }

}

@media (max-width: 480px) {
  .page {
    padding: 48px 16px 16px;
  }

  main {
    padding-bottom: 48px;
  }

  .eyebrow {
    margin-bottom: 28px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .banner {
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {

  a,
  .app-link {
    transition: none;
  }

  .app-link:hover,
  .app-link:focus-visible {
    transform: none;
  }
}
