:root {
  --bg: #f7faf8;
  --surface: #ffffff;
  --surface-soft: #edf5f2;
  --ink: #1f2a2e;
  --muted: #65757a;
  --line: #dce6e2;
  --accent: #1f8a70;
  --accent-strong: #126b57;
  --blue: #3778c2;
  --gold: #c48a1b;
  --shadow: 0 18px 45px rgba(36, 62, 68, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 250, 248, 0.9);
  border-bottom: 1px solid rgba(220, 230, 226, 0.85);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  background: var(--accent);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--accent-strong);
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: end;
  padding: clamp(32px, 7vw, 96px);
  overflow: hidden;
}

.home-hero {
  min-height: min(760px, calc(100svh - 72px));
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 250, 248, 0.95) 0%, rgba(247, 250, 248, 0.78) 42%, rgba(247, 250, 248, 0.12) 100%),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=82") center / cover;
  transform: scale(1.02);
  animation: imageSettle 900ms ease-out both;
}

.hero-content {
  position: relative;
  max-width: 760px;
  padding-bottom: clamp(20px, 5vw, 52px);
  animation: riseIn 700ms ease-out both;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(4rem, 9vw, 8.5rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 28px;
  color: #334348;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.search-panel {
  display: flex;
  width: min(100%, 620px);
  min-height: 58px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-panel input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0 18px;
  background: transparent;
  color: var(--ink);
  outline: none;
}

.search-panel button {
  min-width: 118px;
  border: 0;
  padding: 0 20px;
  color: white;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.search-panel button:hover {
  background: var(--accent-strong);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions a,
.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
}

.hero-actions a:first-child {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) 0;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  margin-top: -28px;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.intro-strip div {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 22px;
  background: var(--surface);
}

.intro-strip strong {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1;
}

.intro-strip span {
  color: var(--muted);
}

.home-stats {
  margin-top: -18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.editorial-note h2,
.policy-grid h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-tile {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.category-tile:hover,
.category-tile.active {
  border-color: var(--accent);
  background: #f1fbf7;
  transform: translateY(-2px);
}

.tile-mark {
  width: 16px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--accent);
}

.tile-mark.design {
  background: var(--blue);
}

.tile-mark.productivity {
  background: #6a7f52;
}

.tile-mark.student {
  background: #8c5fbf;
}

.tile-mark.business {
  background: var(--gold);
}

.tile-mark.creator {
  background: #d65f5f;
}

.resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 38px;
  align-items: start;
}

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

.resource-card {
  min-height: 230px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 138, 112, 0.45);
  box-shadow: 0 16px 34px rgba(36, 62, 68, 0.09);
}

.resource-card p {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.resource-card h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  line-height: 1.02;
}

.resource-card span {
  color: var(--muted);
}

.resource-card a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.editorial-note {
  padding: 24px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.editorial-note h2 {
  font-size: 1.6rem;
}

.editorial-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.ad-slot {
  display: grid;
  place-items: center;
  gap: 5px;
  color: #7f8e92;
  background:
    linear-gradient(135deg, rgba(31, 138, 112, 0.06), rgba(55, 120, 194, 0.06)),
    #ffffff;
  border: 1px dashed #aebfba;
  text-align: center;
}

.ad-slot span {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ad-slot strong {
  color: #425055;
}

.ad-slot-wide {
  width: min(1160px, calc(100% - 40px));
  min-height: 112px;
  margin: 26px auto 0;
}

.ad-slot-box {
  min-height: 280px;
}

.guide-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
}

.guide-list li {
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 22px;
  background: var(--surface);
  font-weight: 750;
}

.guide-list li::before {
  content: counter(list-item, decimal-leading-zero);
  margin-right: 18px;
  color: var(--accent);
  font-weight: 900;
}

.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}

.policy-grid p,
.policy-grid li {
  color: var(--muted);
}

.policy-grid ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-grid li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
  padding: 42px clamp(20px, 5vw, 72px);
  color: #d9e5e1;
  background: #1f2a2e;
}

.site-footer p {
  margin: 8px 0 0;
  color: #aebfba;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer a {
  color: #d9e5e1;
  text-decoration: none;
}

.legal-page {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 110px) 0;
}

.legal-page h1 {
  max-width: none;
  margin-bottom: 26px;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.legal-page h2 {
  margin-top: 36px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.legal-page p {
  color: var(--muted);
  font-size: 1.08rem;
}

.legal-page a {
  color: var(--accent-strong);
  font-weight: 800;
}

.article-index,
.article-page {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.article-index-hero {
  max-width: 820px;
  padding: clamp(54px, 8vw, 110px) 0 clamp(28px, 4vw, 48px);
}

.article-index-hero h1 {
  max-width: none;
  margin: 0 0 22px;
  font-size: clamp(3.6rem, 8vw, 7.6rem);
}

.article-index-hero p {
  color: var(--muted);
  font-size: 1.14rem;
}

.article-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: clamp(54px, 8vw, 110px);
}

.article-card,
.tool-card {
  min-height: 240px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.article-card:hover,
.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 138, 112, 0.45);
  box-shadow: 0 16px 34px rgba(36, 62, 68, 0.09);
}

.article-card p,
.tool-card p {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.article-card h2,
.tool-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  line-height: 1.04;
}

.article-card a,
.tool-card a {
  color: inherit;
  text-decoration: none;
}

.article-card span,
.tool-card span {
  color: var(--muted);
}

.tool-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: clamp(54px, 8vw, 110px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 30px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) 260px;
  gap: 42px;
  align-items: start;
}

.article-shell {
  width: 100%;
  padding: clamp(36px, 6vw, 76px) 0 clamp(54px, 8vw, 110px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.article-meta span {
  padding: 7px 10px;
  color: var(--accent-strong);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.article-shell h1 {
  max-width: none;
  margin: 0 0 28px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.95;
}

.article-shell h2 {
  margin: 42px 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
}

.article-shell h3 {
  margin: 28px 0 10px;
  font-size: 1.25rem;
}

.article-shell p,
.article-shell li {
  color: #4c5f64;
  font-size: 1.07rem;
}

.article-shell p {
  margin: 0 0 18px;
}

.article-shell ul {
  display: grid;
  gap: 9px;
  margin: 0 0 22px;
  padding-left: 22px;
}

.article-shell a {
  color: var(--accent-strong);
  font-weight: 800;
}

.article-ad {
  width: 100%;
  margin: 42px 0;
}

.article-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.article-links a {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
}

.section-action {
  margin-top: 28px;
}

.article-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  margin-top: clamp(36px, 6vw, 76px);
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.article-toc strong {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-toc a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.article-toc a.h3 {
  padding-left: 12px;
}

.related-articles {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.related-articles h2 {
  margin-top: 0;
}

.related-articles div {
  display: grid;
  gap: 10px;
}

.related-articles a,
.site-search-item {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
}

.site-search-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.site-search-item span,
.site-search-item small {
  color: var(--muted);
}

.site-search-item strong {
  color: var(--ink);
  font-size: 1.1rem;
}

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

.homepage-feature {
  min-height: 220px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.homepage-feature:hover,
.homepage-tool-grid a:hover,
.homepage-category-grid a:hover,
.homepage-guide-list a:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 138, 112, 0.45);
  box-shadow: 0 16px 34px rgba(36, 62, 68, 0.09);
}

.homepage-feature h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.homepage-feature span {
  color: var(--muted);
}

.homepage-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.homepage-tool-grid a,
.homepage-guide-list a {
  min-height: 148px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.homepage-tool-grid span,
.homepage-guide-list span {
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.homepage-tool-grid strong,
.homepage-guide-list strong {
  font-size: 1.3rem;
  line-height: 1.05;
}

.homepage-tool-grid small {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.homepage-category-grid a {
  min-height: 86px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.homepage-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.homepage-guide-list a {
  min-height: 116px;
}

.compliance-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 38px;
  align-items: start;
}

.compliance-band h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.compliance-band p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.tool-detail {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.tool-hero {
  max-width: 840px;
  padding: clamp(48px, 7vw, 92px) 0 28px;
}

.tool-hero h1 {
  max-width: none;
  margin: 0 0 22px;
  font-size: clamp(4rem, 8vw, 7.8rem);
}

.tool-hero p {
  color: var(--muted);
  font-size: 1.16rem;
}

.tool-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 20px;
  background: var(--line);
  border: 1px solid var(--line);
}

.tool-facts div {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: var(--surface);
}

.tool-facts strong {
  color: var(--accent-strong);
}

.tool-facts span {
  color: var(--muted);
}

.tool-copy {
  max-width: 820px;
}

.category-section {
  padding-bottom: 42px;
}

.category-section h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.empty-state {
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
}

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

@keyframes imageSettle {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

@media (max-width: 900px) {
  .top-nav {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 46px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(247, 250, 248, 0.96) 0%, rgba(247, 250, 248, 0.88) 56%, rgba(247, 250, 248, 0.2) 100%),
      url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1200&q=82") center / cover;
  }

  .intro-strip,
  .category-grid,
  .resource-layout,
  .resource-list,
  .guide-list,
  .policy-grid,
  .article-card-grid,
  .tool-card-grid,
  .article-layout,
  .site-search-list,
  .tool-facts,
  .homepage-feature-grid,
  .compliance-band {
    grid-template-columns: 1fr;
  }

  .homepage-tool-grid,
  .homepage-category-grid,
  .homepage-guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar,
  .article-toc {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-header {
    align-items: start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px;
  }

  .top-nav {
    gap: 16px;
    font-size: 0.9rem;
  }

  .home-hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.4rem);
  }

  .hero-copy {
    margin: 18px 0 20px;
  }

  .search-panel {
    display: grid;
  }

  .search-panel input,
  .search-panel button {
    min-height: 54px;
  }

  .category-tile {
    min-height: 76px;
  }

  .section {
    width: min(100% - 28px, 1160px);
    padding: 34px 0;
  }

  .ad-slot-wide {
    width: min(100% - 28px, 1160px);
    min-height: 92px;
  }

  .intro-strip div,
  .homepage-feature,
  .homepage-tool-grid a,
  .homepage-guide-list a {
    min-height: auto;
  }

  .homepage-tool-grid,
  .homepage-category-grid,
  .homepage-guide-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
