@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #fffaf1;
  --bg-2: #fdf2e2;
  --bg-3: #f8e8d3;
  --line: #e8dcca;
  --ink: #16211e;
  --ink-2: #334641;
  --muted: #5e716b;
  --teal: #08bfa5;
  --teal-dark: #048f7c;
  --teal-soft: #dffaf4;
  --coral: #ff7454;
  --coral-dark: #dd5033;
  --coral-soft: #ffe6df;
  --font-heading: 'Bricolage Grotesque', 'Trebuchet MS', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 26px rgba(9, 14, 26, 0.28);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fffaf1;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.brand span.dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--teal);
  color: #10201c;
  font-size: 13px;
  font-weight: 800;
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2px;
  margin-left: 14px;
}

.nav__links a {
  color: rgba(255, 250, 241, 0.9);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 999px;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.nav__cta {
  margin-left: auto;
  background: var(--coral);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  padding: 9px 15px;
  border-radius: 12px;
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--coral-dark);
}

@media (min-width: 900px) {
  .nav__links {
    display: flex;
  }
  .nav__inner {
    height: 68px;
    padding: 0 32px;
  }
}

main {
  padding-top: 64px;
}

@media (min-width: 900px) {
  main {
    padding-top: 68px;
  }
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 18px 0 10px;
}

.crumbs a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.crumbs a:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

.post {
  max-width: 760px;
  padding-bottom: 8px;
}

.post h1 {
  font-size: clamp(28px, 4.2vw, 40px);
  margin-bottom: 14px;
}

.post-lead {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 16px;
  border-left: 3px solid var(--teal);
  padding-left: 14px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  background: var(--bg-3);
  color: #4a3a26;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 26px;
}

.toc strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.9;
}

.toc a {
  color: var(--ink-2);
  text-decoration: none;
}

.toc a:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.post h2 {
  font-size: clamp(21px, 2.6vw, 26px);
  margin: 34px 0 12px;
  scroll-margin-top: 86px;
}

.post h3 {
  font-size: 18px;
  margin: 22px 0 8px;
}

.post p {
  margin: 0 0 15px;
  color: var(--ink-2);
}

.post strong {
  color: var(--ink);
}

.post a.inline {
  color: var(--teal-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  font-size: 15.5px;
  color: var(--ink-2);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 6px 0 20px;
  background: #fff;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 13.5px;
}

th,
td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}

th {
  background: var(--bg-2);
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

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

.callout {
  background: var(--teal-soft);
  border: 1px solid #b9ecdf;
  border-radius: 14px;
  padding: 14px 16px;
  margin: 6px 0 20px;
  font-size: 14.5px;
  color: #16443c;
}

.callout.warn {
  background: var(--coral-soft);
  border-color: #f8c4b6;
  color: #6b2f1e;
}

.faq-block {
  margin-top: 8px;
}

.faq-block details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  margin-bottom: 8px;
}

.faq-block summary {
  cursor: pointer;
  padding: 12px 15px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  list-style: none;
}

.faq-block summary::-webkit-details-marker {
  display: none;
}

.faq-block summary::after {
  content: '+';
  float: right;
  color: var(--teal-dark);
  font-weight: 800;
}

.faq-block details[open] summary::after {
  content: '–';
}

.faq-block p {
  margin: 0;
  padding: 0 15px 14px;
  font-size: 14.5px;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  background: var(--ink);
  color: #fffaf1;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 13px;
}

.back-home:hover {
  background: #0b1613;
}

.related {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.related h2 {
  font-size: 17px;
  margin: 0 0 10px;
}

.related-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.related-grid a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 13px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.related-grid a:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 20px rgba(8, 191, 165, 0.12);
}

.related-grid span {
  display: block;
  font-family: var(--font-heading);
  font-size: 11px;
  color: var(--coral-dark);
  margin-bottom: 4px;
  font-weight: 800;
}

.site-foot {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 24px 0 96px;
}

.site-foot p {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 760px;
  line-height: 1.7;
}

.site-foot a {
  color: var(--ink-2);
}

.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 55;
  display: flex;
  background: rgba(255, 250, 241, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}

.mobile-bar a i {
  font-family: 'remixicon';
  font-size: 18px;
  font-style: normal;
}

.mobile-bar a:hover,
.mobile-bar a:focus-visible {
  color: var(--teal-dark);
}

@media (min-width: 900px) {
  .site-foot {
    padding-bottom: 28px;
  }
  .mobile-bar {
    display: none;
  }
}

:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 2px;
}