:root {
  --page: #fbfaf7;
  --paper: #ffffff;
  --text: #242321;
  --muted: #66625d;
  --line: #ddd8d0;
  --accent: #245fc5;
  --code: #f1eee8;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-color: #aaa49b;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

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

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

.header-inner,
.footer-inner {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.home-link {
  font-weight: 600;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.text-column {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  padding: 82px 0 60px;
}

.project-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.project-label img {
  border-radius: 7px;
}

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

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

h2 {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

p {
  max-width: 690px;
  color: var(--muted);
}

.lead {
  max-width: 700px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  line-height: 1.42;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
  font-size: 15px;
}

.primary-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.primary-link:hover {
  background: #194eab;
}

.product-shot {
  width: min(1080px, calc(100% - 48px));
  margin: 62px auto 0;
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #cec8bf;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 18px 55px rgba(55, 46, 34, 0.12);
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.page-section {
  padding: 50px 0;
  border-top: 1px solid var(--line);
}

.plain-list {
  max-width: 700px;
  margin: 0;
  padding-left: 21px;
  color: var(--muted);
}

.plain-list li + li {
  margin-top: 14px;
}

.plain-list strong {
  color: var(--text);
}

code,
pre {
  font-family: var(--font-mono);
}

code {
  font-size: 0.92em;
}

pre {
  margin: 24px 0 18px;
  padding: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--code);
  font-size: 13px;
  line-height: 1.65;
}

.after-code {
  font-size: 14px;
}

footer {
  margin-top: 30px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 600px) {
  .header-inner,
  .footer-inner,
  .text-column,
  .product-shot {
    width: min(100% - 32px, 760px);
  }

  .hero {
    padding: 58px 0 42px;
  }

  .hero-links,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-links {
    gap: 14px;
  }

  .product-shot {
    margin-top: 44px;
  }

  .page-section {
    padding: 42px 0;
  }

  .footer-inner {
    gap: 6px;
  }
}

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