:root {
  --ink: #16201c;
  --muted: #5c6963;
  --line: #d8dfd7;
  --surface: #ffffff;
  --soft: #f4f7f1;
  --accent: #166858;
  --accent-dark: #0d4339;
  --amber: #f2b84b;
  --rose: #c45757;
  --sky: #4d7fa3;
  --shadow: 0 20px 50px rgba(22, 32, 28, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rose);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: #fff;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(244, 247, 241, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.9rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-weight: 700;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
}

.hero,
.tool-section,
.content-band,
.blog-preview,
.faq,
.blog-shell,
.article-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  min-height: 74vh;
  padding: clamp(3rem, 8vw, 6.5rem) 0 4rem;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.75rem, 7vw, 5.8rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0;
}

.hero-text {
  max-width: 620px;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(22, 104, 88, 0.22);
}

.button.primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.button.text-button {
  background: transparent;
  color: var(--muted);
}

.hero-visual {
  display: grid;
  place-items: center;
  min-height: 320px;
}

.hero-visual img {
  width: min(420px, 100%);
  filter: drop-shadow(0 28px 36px rgba(22, 32, 28, 0.18));
}

.tool-section,
.content-band,
.blog-preview,
.faq,
.blog-shell,
.article-shell {
  padding: 4rem 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.section-heading p:last-child {
  margin-top: 0.8rem;
  color: var(--muted);
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1rem;
  align-items: stretch;
}

.calculator-card,
.result-card,
.post-card,
.blog-index-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.calculator-card {
  padding: clamp(1rem, 3vw, 1.5rem);
}

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

label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink);
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bcc8c0;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(242, 184, 75, 0.8);
  outline-offset: 2px;
}

small {
  color: var(--muted);
  font-weight: 500;
}

.result-card {
  padding: 1.4rem;
  background: #fdfcf8;
}

.result-card h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
}

.result-sign {
  display: grid;
  gap: 0.6rem;
}

.sign-symbol {
  font-size: 4rem;
  line-height: 1;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.result-meta span {
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: #edf3ed;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
}

.notice {
  margin-top: 1rem;
  padding: 0.8rem;
  border-left: 4px solid var(--amber);
  background: #fff8e8;
  color: #604415;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
}

.two-column p {
  color: var(--muted);
}

.info-list {
  display: grid;
  gap: 1rem;
}

.info-list article {
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
}

.post-grid,
.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.post-card,
.blog-index-card {
  padding: 1.25rem;
}

.post-card h3,
.blog-index-card h2 {
  font-size: 1.15rem;
}

.post-card p,
.blog-index-card p {
  margin-top: 0.65rem;
  color: var(--muted);
}

.center-link {
  margin-top: 1.25rem;
  text-align: center;
  font-weight: 800;
}

.faq {
  max-width: 820px;
}

details {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

summary {
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

details p {
  margin-top: 0.65rem;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: flex;
  gap: 1rem;
}

.blog-hero,
.article-header {
  max-width: 820px;
  padding: 3.5rem 0 2rem;
}

.blog-hero p,
.article-header p,
.article-content p,
.article-content li {
  color: var(--muted);
}

.article-shell {
  max-width: 840px;
}

.breadcrumb {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.article-content {
  display: grid;
  gap: 1.35rem;
  padding-bottom: 3rem;
}

.article-content h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.tool-callout {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

@media (max-width: 820px) {
  .hero,
  .calculator-layout,
  .two-column {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 220px;
  }

  .post-grid,
  .blog-index-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand span {
    white-space: normal;
  }

  h1 {
    font-size: 2.7rem;
  }

  .button {
    width: 100%;
  }
}
