:root {
  color-scheme: light;
  --bg: #f5f2ea;
  --bg-soft: #efebe0;
  --surface: #fcfaf5;
  --surface-raised: #fffdf8;
  --text: #1c1b18;
  --text-soft: #464239;
  --muted: #797266;
  --line: rgba(28, 27, 24, 0.12);
  --line-strong: rgba(28, 27, 24, 0.22);
  --accent: #b44a23;
  --accent-hover: #913817;
  --accent-soft: #ead6c6;
  --green: #3f6b45;
  --green-soft: #e0ead9;
  --shadow: 0 30px 70px -36px rgba(58, 44, 25, 0.38);
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "Noto Serif CJK SC",
    "STSong", Georgia, serif;
  --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #171613;
    --bg-soft: #1d1b17;
    --surface: #201e19;
    --surface-raised: #26231d;
    --text: #f2eee4;
    --text-soft: #cbc4b6;
    --muted: #9b9385;
    --line: rgba(242, 238, 228, 0.12);
    --line-strong: rgba(242, 238, 228, 0.22);
    --accent: #e38a5c;
    --accent-hover: #f0a176;
    --accent-soft: #49291d;
    --green: #8fbd92;
    --green-soft: #26352a;
    --shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.75);
  }
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 78% -5%, rgba(180, 74, 35, 0.1), transparent 65%),
    radial-gradient(ellipse 45% 30% at 5% 30%, rgba(63, 107, 69, 0.055), transparent 70%);
}

::selection {
  background: var(--accent);
  color: #fffaf3;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1;
}

.brand-name {
  font-size: 17px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text-soft);
  font-size: 14px;
}

.nav a {
  position: relative;
  padding: 4px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav a.nav-auth {
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  line-height: 1.3;
}

.nav a.nav-auth::after {
  display: none;
}

.nav a.nav-auth:hover {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent);
}

.hero {
  padding: 104px 0 76px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 940px;
  margin-bottom: 26px;
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 7.2vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.06;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.lede {
  max-width: 650px;
  margin-bottom: 32px;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 620;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.button-primary {
  background: var(--accent);
  color: #fffaf3;
}

.button-primary:hover {
  background: var(--accent-hover);
}

.button-ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.button-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.services {
  padding: 34px 0 88px;
}

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 10px 48px;
  margin-bottom: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line-strong);
}

.section-head .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section-head h2,
.about-copy h2 {
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.section-head > p:last-child {
  max-width: 410px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
  transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease,
    box-shadow 0.22s ease;
}

.service-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card.is-planned:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}

.icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon svg {
  width: 23px;
  height: 23px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.badge-live {
  border-color: color-mix(in srgb, var(--green) 26%, transparent);
  background: var(--green-soft);
  color: var(--green);
}

.service-card h3 {
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.service-card p {
  max-width: 420px;
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 14px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
}

.service-card:hover .card-link {
  color: var(--accent);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 48px;
  padding: 64px 0 104px;
  border-top: 1px solid var(--line-strong);
}

.about-copy p:not(.section-kicker) {
  max-width: 620px;
  margin-bottom: 16px;
  color: var(--text-soft);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-card {
  align-self: start;
  padding: 8px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.about-card dl {
  margin: 0;
}

.about-card dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.about-card dl > div:last-child {
  border-bottom: 0;
}

.about-card dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.about-card dd {
  margin: 0;
  color: var(--text);
  font-size: 13.5px;
  text-align: right;
}

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover {
  color: var(--accent);
}

.not-found {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 72px 0;
}

.not-found-inner {
  max-width: 560px;
}

.not-found h1 {
  margin-bottom: 14px;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.not-found p {
  margin-bottom: 26px;
  color: var(--text-soft);
}

@media (max-width: 760px) {
  .shell {
    width: min(1120px, calc(100% - 32px));
  }

  .header-inner {
    min-height: 64px;
  }

  .nav {
    gap: 16px;
    font-size: 13px;
  }

  .hero {
    padding: 70px 0 52px;
  }

  .hero h1 {
    letter-spacing: -0.045em;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-head > p:last-child {
    margin-bottom: 0;
  }

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

  .service-card {
    min-height: 0;
    padding: 22px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 50px 0 76px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
  }
}

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

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