:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #ffffff;
  --ink: #1e2528;
  --muted: #5d686d;
  --line: #d9d6ca;
  --accent: #0f6b63;
  --accent-2: #a5482d;
}

* {
  box-sizing: border-box;
}

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

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 239, 0.92);
  position: sticky;
  top: 0;
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

.hero {
  padding: clamp(48px, 9vw, 108px) clamp(20px, 5vw, 72px) clamp(36px, 7vw, 80px);
  max-width: 1120px;
}

.eyebrow,
.tag {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 940px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 24px;
}

.lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 22px);
}

.section {
  padding: 48px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 26px;
}

.section-heading h2,
.article h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.guide-card h3 {
  font-size: 22px;
  line-height: 1.18;
}

.guide-card p:last-child {
  color: var(--muted);
  margin-bottom: 0;
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.topic-list li {
  padding: 14px 16px;
  background: var(--surface);
  border-left: 4px solid var(--accent);
}

.topic-list a,
.backlink a {
  color: var(--accent);
  font-weight: 800;
}

.article {
  max-width: 840px;
  padding: 56px clamp(20px, 5vw, 72px) 80px;
}

.article h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.article section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.article h3 {
  font-size: 21px;
  margin-bottom: 8px;
}

.ranked-list {
  display: grid;
  gap: 14px;
}

.ranked-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.backlink {
  margin-top: 34px;
}

footer {
  padding: 30px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-grid,
  .topic-list {
    grid-template-columns: 1fr;
  }
}
