@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Noto+Serif:wght@500;700&display=swap");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f5f1e6;
  color: #1b1a17;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: #1b1a17;
}

h1,
h2,
h3 {
  font-family: "Noto Serif", Georgia, serif;
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 6.5vw, 78px);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 13ch;
}

h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 32px;
}

h3 {
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 6px;
}

p {
  margin: 0 0 12px;
  max-width: 66ch;
}

section[id] {
  scroll-margin-top: 110px;
}

.nav {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Noto Serif", Georgia, serif;
  font-weight: 700;
  font-size: 21px;
  color: #1b1a17;
  white-space: nowrap;
}

.seal {
  width: 14px;
  height: 14px;
  background: #c23b22;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  color: #4a463f;
  font-size: 15px;
}

.nav-links a:hover {
  color: #1b1a17;
}

.hero {
  position: relative;
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 90px 0 110px;
  overflow: hidden;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.brush-line {
  width: 220px;
  height: 14px;
  margin: 22px 0 26px;
}

.hero-sub {
  font-size: clamp(19px, 2.4vw, 25px);
  color: #4a463f;
  margin: 0 0 4px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 2px;
}

.btn-ink {
  background: #1b1a17;
  color: #f5f1e6;
}

.btn-line {
  border: 1.5px solid #1b1a17;
  color: #1b1a17;
}

.wave {
  position: absolute;
  right: -80px;
  top: -10px;
  width: 400px;
  height: 520px;
  z-index: 0;
  pointer-events: none;
}

.wash {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding: 36px 40px;
  background: rgba(27, 26, 23, 0.05);
  border-top: 1px solid rgba(27, 26, 23, 0.16);
  border-bottom: 1px solid rgba(27, 26, 23, 0.16);
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #4a463f;
}

.spec-num {
  font-family: ui-monospace, Consolas, monospace;
  color: #1b1a17;
  font-size: 20px;
  font-weight: 600;
}

.section {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 110px 0 0;
}

.section:last-of-type {
  padding-bottom: 110px;
}

.section-lead {
  color: #4a463f;
  font-size: 18px;
}

.lineup {
  border-top: 1px solid rgba(27, 26, 23, 0.25);
}

.flag-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(27, 26, 23, 0.25);
}

.flag-row p {
  color: #4a463f;
  margin: 0 0 6px;
}

.flag-row .flag-spec {
  color: #6b6560;
  font-size: 14px;
  margin: 10px 0 0;
}

.flag-tag {
  flex-shrink: 0;
  color: #4a463f;
  font-size: 13px;
  border: 1px solid rgba(27, 26, 23, 0.35);
  border-radius: 999px;
  padding: 6px 13px;
  white-space: nowrap;
  max-width: 260px;
  white-space: normal;
  text-align: center;
}

.method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.method-num {
  font-family: ui-monospace, Consolas, monospace;
  color: #c23b22;
  font-size: 15px;
}

.method-step p {
  color: #4a463f;
}

.about {
  margin-top: 36px;
  color: #6b6560;
}

.footer {
  width: min(1080px, calc(100% - 48px));
  margin: 0 auto;
  padding: 44px 0 64px;
  border-top: 1px solid rgba(27, 26, 23, 0.25);
  color: #6b6560;
  font-size: 14px;
}

.footer-note {
  font-size: 13px;
}

@media (max-width: 768px) {
  .brand {
    font-size: 18px;
  }

  .nav-links {
    gap: 14px;
  }

  .hero {
    padding: 50px 0 80px;
    overflow: hidden;
  }

  .wave {
    right: -230px;
    top: 0;
    opacity: 0.8;
  }

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

  .flag-row {
    flex-direction: column;
    gap: 14px;
  }

  .wash {
    padding: 28px 24px;
    gap: 28px;
  }
}

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