:root {
  color-scheme: light;
  --background: #fcfaf7;
  --ink: #28201b;
  --muted: #66584f;
  --accent: #a63c09;
  --border: #e9ded4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  line-height: 1.65;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
}

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

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

.header,
.footer {
  background: white;
}

.header {
  border-bottom: 1px solid var(--border);
}

.header__inner,
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 12px;
}

.brand,
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-size: 1.125rem;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  border: 1px solid var(--border);
  border-radius: 12px;
}

.nav a {
  padding: 10px 4px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.nav a:hover,
.footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding-block: clamp(44px, 8vw, 104px);
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  max-width: 36ch;
  margin-block: 24px;
  color: var(--muted);
  font-size: 1.0625rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 11px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  background: #843008;
}

.hero__visual {
  padding: 12px 12px 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 28px rgb(88 54 31 / 8%);
}

.hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.hero__visual figcaption {
  padding: 9px 4px;
  color: var(--muted);
  font-size: 0.875rem;
}

.services,
.about {
  border-top: 1px solid var(--border);
  padding-block: clamp(28px, 5vw, 56px);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
}

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

.service {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
}

.service h3 {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1.125rem;
}

.service p,
.about p {
  color: var(--muted);
}

.about p {
  max-width: 52ch;
}

.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer__inner {
  justify-content: flex-start;
  padding-block: 20px;
}

@media (max-width: 700px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero,
  .services__grid {
    grid-template-columns: 1fr;
  }
}
