:root {
  --bg: #f3eee6;
  --bg-deep: #e8e0d4;
  --ink: #1c1916;
  --ink-soft: #4a433c;
  --muted: #6f675e;
  --burgundy: #7a1f2b;
  --burgundy-deep: #5c1520;
  --cream: #faf6f0;
  --line: rgba(28, 25, 22, 0.12);
  --shadow: 0 18px 40px rgba(28, 25, 22, 0.08);
  --radius: 4px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 1120px;
  --content: 720px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(122, 31, 43, 0.08), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(28, 25, 22, 0.06), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--cream) 40%, var(--bg-deep) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--burgundy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--burgundy-deep);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.content-wrap {
  width: min(100% - 2rem, var(--content));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(243, 238, 230, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--burgundy);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 500;
}

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

.site-nav a:hover {
  color: var(--burgundy);
}

/* Hero — home */
.home-hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(28, 25, 22, 0.25) 0%, rgba(28, 25, 22, 0.72) 55%, rgba(28, 25, 22, 0.92) 100%),
    url("../svg/hero-tie.svg?v=20260802") center / cover no-repeat,
    #2a2220;
}

.home-hero-inner {
  padding: 5.5rem 0 3.5rem;
  animation: rise 0.9s ease both;
}

.brand-mark {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark a {
  color: inherit;
  text-decoration: none;
}

.home-hero h1 {
  margin: 0 0 0.85rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.hero-support {
  margin: 0 0 1.6rem;
  max-width: 36ch;
  font-size: 1.1rem;
  color: rgba(250, 246, 240, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--cream);
  color: var(--ink);
}

.btn-primary:hover {
  color: var(--burgundy-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250, 246, 240, 0.35);
}

.btn-ghost:hover {
  background: rgba(250, 246, 240, 0.08);
  color: var(--cream);
}

.btn-accent {
  background: var(--burgundy);
  color: var(--cream);
}

.btn-accent:hover {
  background: var(--burgundy-deep);
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border-color: rgba(122, 31, 43, 0.35);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-lead {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  max-width: 54ch;
}

.toc {
  display: grid;
  gap: 0.55rem;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}

.toc a:hover {
  color: var(--burgundy);
}

.site-ad {
  margin: 1.5rem auto;
  width: min(100% - 2rem, var(--content));
  min-height: 90px;
}

/* Comparison table */
.cmp-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.5);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 640px;
}

.cmp-table th,
.cmp-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cmp-table th {
  font-family: var(--font-display);
  font-weight: 600;
  background: rgba(28, 25, 22, 0.04);
}

.cmp-table tr:last-child td {
  border-bottom: 0;
}

.cmp-table a {
  font-weight: 600;
  text-decoration: none;
}

/* Steps */
.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
  display: grid;
  gap: 1rem;
}

.step-list > li {
  counter-increment: steps;
  position: relative;
  padding: 1.15rem 1.15rem 1.15rem 4rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  animation: rise 0.55s ease both;
}

.step-list > li::before {
  content: counter(steps);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--cream);
  font-weight: 700;
  font-size: 0.9rem;
}

.step-list h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.step-list p {
  margin: 0;
  color: var(--ink-soft);
}

/* Knot cards on home */
.knot-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .knot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.knot-card {
  display: block;
  padding: 1.35rem 1.4rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.knot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(122, 31, 43, 0.28);
  color: inherit;
}

.knot-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.knot-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.knot-card .meta {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* Tips / FAQ */
.tip-list,
.faq-list {
  display: grid;
  gap: 1rem;
}

.tip-item,
.faq-item {
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.45);
  border-left: 3px solid var(--burgundy);
}

.tip-item h3,
.faq-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.tip-item p,
.faq-item p {
  margin: 0;
  color: var(--ink-soft);
}

/* Knot page */
.knot-hero {
  position: relative;
  padding: 3.5rem 0 2rem;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.knot-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(28, 25, 22, 0.88), rgba(92, 21, 32, 0.82)),
    url("../svg/hero-tie.svg?v=20260802") center / cover no-repeat;
}

.knot-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-lead {
  margin: 0;
  max-width: 48ch;
  color: rgba(250, 246, 240, 0.88);
  font-size: 1.05rem;
}

.page-article .page-lead,
.page-article .page-header h1 {
  color: var(--ink);
}

.page-article .page-header {
  padding: 2.5rem 0 1rem;
}

.page-article .page-header h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.page-article .page-lead {
  color: var(--ink-soft);
}

.knot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.knot-chips li {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(250, 246, 240, 0.28);
  border-radius: var(--radius);
  font-size: 0.82rem;
  background: rgba(250, 246, 240, 0.06);
}

.knot-chips span {
  display: block;
  opacity: 0.7;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.1rem;
}

.knot-body {
  padding: 2rem 0 3rem;
}

.knot-body h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.knot-body p {
  color: var(--ink-soft);
}

.knot-diagram {
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.knot-diagram img {
  margin-inline: auto;
  width: 100%;
  height: auto;
  background: #faf6f0;
}

.knot-diagram figcaption,
.video-embed figcaption {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.video-heading {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.video-embed {
  margin: 0 0 1.75rem;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #1c1916;
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-note {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.knot-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.knot-nav h2 {
  margin-top: 0;
}

.knot-nav ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.knot-nav li {
  margin-bottom: 0.45rem;
}

/* Soft CTA */
.soft-cta {
  padding: 2.5rem 0 3.5rem;
}

.soft-cta-inner {
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(122, 31, 43, 0.95), rgba(28, 25, 22, 0.92)),
    var(--burgundy-deep);
  color: var(--cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.soft-cta h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.soft-cta p {
  margin: 0 0 1.1rem;
  max-width: 46ch;
  color: rgba(250, 246, 240, 0.88);
}

/* Choose page helpers */
.chooser-grid {
  display: grid;
  gap: 1rem;
}

.chooser-block {
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chooser-block h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
}

.chooser-block p {
  margin: 0;
  color: var(--ink-soft);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(28, 25, 22, 0.04);
  padding: 2.5rem 0;
}

.footer-inner {
  display: grid;
  gap: 1.5rem;
}

.footer-brand .logo {
  margin: 0 0 0.4rem;
}

.footer-brand p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 40ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}

.footer-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}

.footer-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-list > li:nth-child(2) { animation-delay: 0.05s; }
.step-list > li:nth-child(3) { animation-delay: 0.1s; }
.step-list > li:nth-child(4) { animation-delay: 0.15s; }
.step-list > li:nth-child(5) { animation-delay: 0.2s; }
.step-list > li:nth-child(6) { animation-delay: 0.25s; }
.step-list > li:nth-child(7) { animation-delay: 0.3s; }
.step-list > li:nth-child(8) { animation-delay: 0.35s; }
.step-list > li:nth-child(9) { animation-delay: 0.4s; }

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
}
