:root {
  --ink: #232018;
  --muted: #655d4d;
  --soft: #f8f2e7;
  --paper: #fffaf0;
  --line: #dfd1b8;
  --accent: #986f3f;
  --accent-dark: #6c4a29;
  --sage: #7b8864;
  --shadow: 0 24px 70px rgba(71, 52, 26, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  line-height: 1.7;
  background:
    radial-gradient(circle at 12% 10%, rgba(152, 111, 63, 0.18), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(123, 136, 100, 0.18), transparent 24rem),
    linear-gradient(135deg, #fbf3e3 0%, #efe1c6 48%, #f9f5ea 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(108, 74, 41, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 74, 41, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(108, 74, 41, 0.2);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.78);
  box-shadow: 0 12px 38px rgba(71, 52, 26, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent-dark);
  border-radius: 50% 50% 50% 12%;
  transform: rotate(-18deg);
  background: var(--sage);
}

.nav {
  gap: 4px;
}

.nav a,
.button {
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:focus-visible,
.button:focus-visible {
  outline: 3px solid rgba(35, 32, 24, 0.28);
  outline-offset: 3px;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 30px;
  align-items: stretch;
  min-height: 620px;
  padding: 76px 0 54px;
}

.hero-copy,
.hero-card,
.panel,
.notice,
.work-card {
  border: 1px solid rgba(108, 74, 41, 0.18);
  background: rgba(255, 250, 240, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 72px);
  border-radius: 36px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11em;
  margin-bottom: 24px;
  font-size: clamp(2.55rem, 7vw, 5.8rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.hero-text {
  max-width: 58ch;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 14px 28px rgba(35, 32, 24, 0.18);
}

.secondary {
  border: 1px solid rgba(108, 74, 41, 0.28);
  color: var(--accent-dark);
  background: rgba(255, 250, 240, 0.6);
}

.hero-card {
  align-self: center;
  padding: 34px;
  border-radius: 30px;
  transform: rotate(1.5deg);
}

.card-line {
  width: 100%;
  height: 180px;
  margin-bottom: 28px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(123, 136, 100, 0.2), transparent),
    repeating-linear-gradient(-18deg, rgba(108, 74, 41, 0.18) 0 2px, transparent 2px 13px),
    #efe4cf;
}

.card-title,
.work-index {
  margin-bottom: 4px;
  color: var(--accent-dark);
  font-weight: 700;
}

.hero-card p:not(.card-title) {
  margin-bottom: 18px;
  color: var(--muted);
}

.panel,
.notice {
  margin-bottom: 28px;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 30px;
}

.panel p:last-child,
.notice p:last-child,
.work-card p:last-child,
.site-footer p {
  margin-bottom: 0;
}

.panel p,
.notice li,
.work-card p {
  color: var(--muted);
}

.work-section {
  padding: 46px 0 22px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  min-height: 250px;
  padding: 24px;
  border-radius: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 76px rgba(71, 52, 26, 0.2);
}

.work-index {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 0.82rem;
}

.notice {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  background: rgba(35, 32, 24, 0.9);
  color: var(--paper);
}

.notice .section-kicker,
.notice li {
  color: rgba(255, 250, 240, 0.78);
}

.notice ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.25rem;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 46px;
  color: var(--muted);
  font-size: 0.92rem;
}

.muted {
  color: rgba(101, 93, 77, 0.76);
}

@media (max-width: 880px) {
  .site-header,
  .hero,
  .notice {
    display: block;
  }

  .site-header {
    border-radius: 26px;
  }

  .nav {
    flex-wrap: wrap;
    margin-top: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-card {
    margin-top: 18px;
    transform: none;
  }

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

  .notice ul {
    margin-top: 18px;
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .nav a {
    padding: 0 10px;
  }

  .hero-copy,
  .hero-card,
  .panel,
  .notice {
    border-radius: 24px;
  }

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

  .work-card {
    min-height: auto;
  }
}

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