@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,650&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --ink: #0e1a24;
  --muted: #5a6b78;
  --line: #d5dde4;
  --paper: #f3f6f8;
  --card: #ffffff;
  --lake: #1a6b7a;
  --lake-deep: #0d4a56;
  --sun: #c9a227;
  --accent: #1a6b7a;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(14, 26, 36, 0.08);
  --max: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(26, 107, 122, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(201, 162, 39, 0.12), transparent 50%),
    linear-gradient(180deg, #e8eef2 0%, var(--paper) 28%, #eef2f5 100%);
  min-height: 100vh;
}

a {
  color: var(--lake-deep);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(243, 246, 248, 0.88);
  border-bottom: 1px solid rgba(213, 221, 228, 0.9);
}

.site-header .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: grid;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}

.brand-name {
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.88rem;
}

.header-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.header-links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.header-links a.method {
  border-color: var(--line);
  background: var(--card);
}

.header-links a.method:hover {
  border-color: var(--lake);
}

.tabs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tab-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1rem 0.95rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn[aria-selected="true"] {
  color: var(--lake-deep);
  border-bottom-color: var(--sun);
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.panel {
  display: none;
  animation: rise 0.35s ease;
}

.panel.active {
  display: block;
}

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

.hero {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1.75rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background:
    linear-gradient(135deg, rgba(13, 74, 86, 0.94), rgba(26, 107, 122, 0.88)),
    linear-gradient(180deg, #0d4a56, #1a6b7a);
  color: #f7fafb;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 180%;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.28), transparent 60%);
  pointer-events: none;
}

.hero h1,
.hero p {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hero h1 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 18ch;
}

.hero p {
  max-width: 52ch;
  color: rgba(247, 250, 251, 0.88);
  font-size: 1.05rem;
}

.grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.card h2,
.card h3,
section h2,
section h3 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}

.card h2,
section h2 {
  font-size: 1.35rem;
}

.card h3,
section h3 {
  font-size: 1.12rem;
  margin-top: 1.4rem;
}

.card p,
section p {
  margin: 0 0 0.85rem;
  color: #24323c;
}

.muted {
  color: var(--muted);
}

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

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: Fraunces, Georgia, serif;
  font-weight: 650;
  color: var(--lake);
  font-size: 1.1rem;
  line-height: 1.2;
  min-width: 2.2rem;
}

.steps strong {
  display: block;
  margin-bottom: 0.2rem;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(26, 107, 122, 0.1);
  color: var(--lake-deep);
  font-size: 0.88rem;
  font-weight: 600;
}

.chip.arrow {
  background: transparent;
  color: var(--muted);
  padding: 0 0.1rem;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--card);
}

table.data th,
table.data td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

table.data th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #f8fafb;
  position: sticky;
  top: 0;
}

table.data td.name,
table.data th.name {
  text-align: left;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.map-frame {
  width: 100%;
  height: min(70vh, 680px);
  border: 0;
  border-radius: var(--radius);
  background: #dce5ea;
  box-shadow: var(--shadow);
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid var(--ink);
}

.btn:hover {
  color: #fff;
  opacity: 0.9;
}

.btn.secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}

.btn.secondary:hover {
  border-color: var(--lake);
  color: var(--lake-deep);
}

.callout {
  border-left: 4px solid var(--sun);
  background: rgba(201, 162, 39, 0.1);
  padding: 0.9rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
}

.callout p {
  margin: 0;
}

.checklist {
  margin: 0;
  padding-left: 1.15rem;
}

.checklist li {
  margin: 0.35rem 0;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.method-page .hero h1 {
  max-width: 22ch;
}

.method-body {
  display: grid;
  gap: 1rem;
}

.method-body section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem;
}

pre.flow-ascii {
  background: #0e1a24;
  color: #d7e6ea;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .brand-name {
    font-size: 1.3rem;
  }

  .hero {
    padding: 1.35rem 1.15rem;
  }

  .tab-btn {
    padding: 0.75rem 0.7rem 0.85rem;
    font-size: 0.88rem;
  }
}
