:root {
  --ink: #19231c;
  --muted: #667169;
  --paper: #f6f4ec;
  --card: #fffef9;
  --line: #d9d9ce;
  --green: #1e4f3a;
  --lime: #c8f169;
  --peach: #f3a67b;
  --blue: #8db9e8;
  --shadow: 0 18px 60px rgba(25, 35, 28, .1);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.55 "Outfit", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
  height: 78px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 560px) 1fr;
  align-items: center;
  gap: 26px;
  padding: 0 4vw;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 236, .94);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: white; font: 700 20px/1 "Newsreader", serif; }
.main-nav { display: flex; align-items: center; justify-content: flex-end; gap: 24px; font-size: 14px; font-weight: 600; }
.main-nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-random { padding: 10px 14px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.nav-random:hover { background: var(--ink); color: white; }
.nav-random span { margin-left: 5px; }

.search-wrap { position: relative; }
.search-box { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: white; transition: .2s ease; }
.search-box:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(30, 79, 58, .1); }
.search-box svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box kbd { padding: 2px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: #f5f4ef; font-size: 12px; }
.search-results { position: absolute; top: 52px; left: 0; right: 0; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.search-hit { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 9px; }
.search-hit:hover, .search-hit.active { background: #efeee7; }
.search-hit-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; font-size: 20px; }
.search-hit strong { display: block; font-size: 14px; }
.search-hit small { color: var(--muted); }
.no-results { margin: 14px; color: var(--muted); text-align: center; }

main { min-height: calc(100vh - 220px); }
.page-shell { width: min(1180px, 92vw); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Newsreader", serif; line-height: 1.02; letter-spacing: -.035em; }
h1 { margin: 0; font-size: clamp(52px, 8vw, 112px); }
h2 { margin: 0; font-size: clamp(34px, 4vw, 54px); }
h3 { font-size: 23px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 50px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; transition: .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(25, 35, 28, .14); }
.button.primary { background: var(--ink); color: white; }
.button.light { border-color: rgba(255,255,255,.7); color: white; }
.button.small { min-height: 40px; padding: 0 15px; font-size: 14px; }

.hero { padding: 80px 0 54px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.hero-copy h1 em { color: var(--green); font-style: normal; }
.hero-copy > p:not(.eyebrow) { max-width: 620px; margin: 24px 0 32px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-art { height: 490px; position: relative; }
.art-card { position: absolute; display: grid; place-items: center; border: 1px solid rgba(25,35,28,.18); box-shadow: 0 18px 45px rgba(25,35,28,.12); font-size: 80px; }
.art-card.one { inset: 0 8% 14% 10%; border-radius: 46% 54% 48% 52%; background: var(--blue); transform: rotate(4deg); }
.art-card.two { width: 45%; height: 43%; right: -1%; bottom: 0; border-radius: 50%; background: var(--lime); transform: rotate(-8deg); font-size: 58px; }
.art-card.three { width: 38%; height: 36%; left: -3%; bottom: 2%; border-radius: 28px; background: var(--peach); transform: rotate(-12deg); font-size: 54px; }
.art-label { position: absolute; right: 0; top: 8%; padding: 12px 16px; border-radius: 999px; background: white; box-shadow: var(--shadow); font-weight: 600; transform: rotate(7deg); }

.today-section { padding: 36px 0 84px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.text-link { font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.today-card { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 400px; border-radius: 30px; overflow: hidden; background: var(--green); color: white; }
.today-visual { display: grid; place-items: center; background: var(--card-accent); font-size: 140px; position: relative; overflow: hidden; }
.today-visual::after { content: ""; position: absolute; width: 320px; height: 320px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; }
.today-copy { padding: clamp(34px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.today-copy h3 { margin: 0 0 14px; font-size: clamp(42px, 5vw, 68px); }
.today-copy > p { max-width: 620px; margin: 0 0 24px; color: rgba(255,255,255,.78); font-size: 18px; }
.facts-inline { display: flex; gap: 30px; margin: 0 0 30px; padding: 0; list-style: none; }
.facts-inline span { display: block; color: rgba(255,255,255,.55); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }

.category-strip { padding: 78px 0; background: #e9eadf; border-block: 1px solid var(--line); }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.category-card { min-height: 180px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: flex; flex-direction: column; justify-content: space-between; transition: .2s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card span { font-size: 30px; }
.category-card strong { display: block; font: 600 25px/1.1 "Newsreader", serif; }
.category-card small { color: var(--muted); }

.popular-section { padding: 84px 0 100px; }
.hobby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.hobby-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); transition: .2s ease; }
.hobby-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.hobby-card-visual { height: 210px; display: grid; place-items: center; background: var(--accent); font-size: 76px; }
.hobby-card-body { padding: 20px; }
.hobby-card-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hobby-card h3 { margin: 12px 0 7px; }
.hobby-card p { margin: 0 0 18px; color: var(--muted); }
.card-link { font-size: 14px; font-weight: 700; }

.browse-page { padding: 64px 0 100px; }
.browse-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 42px; }
.browse-head h1 { font-size: clamp(48px, 7vw, 86px); }
.browse-head p { max-width: 430px; color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.browse-count { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.load-more-wrap { display: flex; justify-content: center; padding: 42px 0 10px; }
.filter-btn { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; color: var(--muted); }
.filter-btn.active, .filter-btn:hover { background: var(--ink); border-color: var(--ink); color: white; }

.article-hero { padding: 58px 0 34px; }
.breadcrumbs { margin-bottom: 30px; color: var(--muted); font-size: 14px; }
.breadcrumbs a:hover { text-decoration: underline; }
.article-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.article-hero h1 { font-size: clamp(58px, 8vw, 104px); }
.article-dek { max-width: 690px; margin: 22px 0 28px; color: var(--muted); font-size: 20px; }
.article-actions { display: flex; gap: 10px; }
.article-visual { min-height: 440px; display: grid; place-items: center; border-radius: 36px; background: var(--accent); font-size: 150px; position: relative; overflow: hidden; }
.article-visual::before, .article-visual::after { content: ""; position: absolute; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; }
.article-visual::after { width: 220px; height: 220px; }
.article-visual span { position: relative; z-index: 1; }
.article-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 32px 0 0; border-block: 1px solid var(--line); }
.stat { padding: 20px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border: 0; }
.stat small { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.stat strong { font-size: 17px; }

.article-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 70px; padding: 54px 0 90px; }
.article-toc { position: sticky; top: 110px; align-self: start; }
.article-toc strong { display: block; margin-bottom: 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.article-toc a { display: block; padding: 5px 0; color: var(--muted); font-size: 14px; }
.article-toc a:hover { color: var(--ink); }
.article-content section { scroll-margin-top: 110px; margin-bottom: 56px; }
.article-content h2 { margin-bottom: 18px; font-size: 40px; }
.article-content p { color: #49544d; font-size: 17px; }
.article-content h3 { margin: 0 0 7px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.benefit-card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.benefit-card > span { display: block; margin-bottom: 26px; color: var(--green); font-size: 22px; }
.benefit-card h3 { font-size: 20px; }
.benefit-card p { margin: 0; font-size: 14px; }
.starter-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; padding: 0; list-style: none; }
.starter-list li { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.starter-list b { display: block; margin-bottom: 3px; }
.starter-list span { color: var(--muted); font-size: 14px; }
.week-list { padding: 0; list-style: none; counter-reset: week; }
.week-list li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.week-list li::before { counter-increment: week; content: counter(week); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); font-weight: 700; }
.week-list b { display: block; }
.week-list span { color: var(--muted); }
.skill-list { margin-top: 24px; border-top: 1px solid var(--line); }
.skill-row { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.skill-row > span { color: var(--green); font-weight: 700; }
.skill-row h3 { font-size: 22px; }
.skill-row p { margin: 0; }
.progress-path { margin-top: 28px; padding-left: 18px; border-left: 2px solid var(--line); }
.progress-step { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 0 0 28px; position: relative; }
.progress-step > span { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -36px; border-radius: 50%; background: var(--green); color: white; font-weight: 700; }
.progress-step p { margin: 0; }
.cost-table { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.cost-row { display: grid; grid-template-columns: 110px 100px 1fr; gap: 15px; align-items: center; padding: 18px; border-bottom: 1px solid var(--line); }
.cost-row:last-child { border: 0; }
.cost-row b { color: var(--green); }
.cost-row span { color: var(--muted); }
.community-box { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.community-box > div { padding: 24px; border-radius: 18px; background: #e9eadf; }
.community-box > div:last-child { background: #f3ded1; }
.box-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 26px; border: 1px solid currentColor; border-radius: 50%; }
.community-box p { margin: 0; font-size: 15px; }
.mistake-heading { margin-top: 34px !important; }
.mistake-list { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: mistakes; }
.mistake-list li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mistake-list li::before { counter-increment: mistakes; content: counter(mistakes); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--peach); font-weight: 700; }
.tip-box { padding: 25px; border-radius: 18px; background: #e5ecd9; }
.tip-box strong { display: block; margin-bottom: 8px; }
.tip-box p { margin: 0; }
.faq-list { margin-top: 22px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 0; cursor: pointer; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list summary span { transition: transform .2s ease; }
.faq-list details p { margin: 0; padding: 0 40px 20px 0; }
.software-deep-dive { padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: #eef0e7; }
.software-deep-dive > h2 { max-width: 650px; }
.section-lead { max-width: 680px; font-size: 18px !important; }
.software-subsection { margin-top: 54px; }
.software-subsection > h3, .workflow-panel h3, .official-resources h3 { font-size: 30px; }
.sub-kicker { margin: 0 0 5px !important; color: var(--green) !important; font-size: 11px !important; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.option-card { padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.option-card h4 { min-height: 48px; margin: 0 0 10px; font-size: 17px; line-height: 1.25; }
.option-card > p { margin: 0 0 18px; font-size: 14px; }
.option-card > div { padding-top: 14px; border-top: 1px solid var(--line); }
.option-card b, .option-card span { display: block; font-size: 12px; }
.option-card b { margin-bottom: 4px; color: var(--green); text-transform: uppercase; letter-spacing: .05em; }
.option-card span { color: var(--muted); }
.tool-table { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.tool-row { display: grid; grid-template-columns: 1fr .8fr 1.5fr; gap: 14px; align-items: start; padding: 15px; border-bottom: 1px solid var(--line); }
.tool-row:last-child { border-bottom: 0; }
.tool-row > span, .tool-row > p { margin: 0; color: var(--muted); font-size: 14px; }
.tool-head { background: var(--green); color: white; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tool-head span { color: white; }
.tech-roadmap { margin-top: 20px; }
.tech-roadmap article { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 0 0 27px; }
.roadmap-number { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: white; font-weight: 700; }
.tech-roadmap article span { color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tech-roadmap article h4 { margin: 4px 0 8px; font-size: 16px; }
.tech-roadmap article p { margin: 0; font-size: 14px; }
.workflow-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; padding: 26px; border-radius: 18px; background: var(--green); color: white; }
.workflow-panel p { color: rgba(255,255,255,.72); font-size: 14px; }
.workflow-panel .sub-kicker { color: var(--lime) !important; }
.workflow-panel ol { margin: 0; padding: 0; list-style: none; counter-reset: flow; }
.workflow-panel li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: 14px; }
.workflow-panel li::before { counter-increment: flow; content: counter(flow); color: var(--lime); font-weight: 700; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.project-grid article { padding: 19px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.project-grid span { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--lime); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.project-grid h4 { margin: 18px 0 7px; }
.project-grid p { margin: 0; font-size: 14px; }
.pro-panel { padding: 26px; border: 1px solid var(--green); border-radius: 18px; background: var(--card); }
.pro-panel ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 22px; margin: 20px 0 0; padding: 0; list-style: none; }
.pro-panel li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 14px; }
.pro-panel li span { color: var(--green); font-weight: 700; }
.glossary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.glossary-grid > div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.6); }
.glossary-grid dt { margin-bottom: 4px; font-weight: 700; }
.glossary-grid dd { margin: 0; color: var(--muted); font-size: 13px; }
.official-resources { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.official-resources > div > p { font-size: 14px; }
.official-resources a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 700; }
.official-resources a:hover { color: var(--green); }
.related-section { padding: 70px 0 90px; background: #e9eadf; }

.about-note { margin-top: 70px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #e9eadf; }
.about-note h3 { margin: 0 0 8px; }
.about-note p { margin: 0; max-width: 760px; color: var(--muted); }
.about-note a { text-decoration: underline; }
.empty-state { padding: 100px 0; text-align: center; }
.empty-state p { color: var(--muted); }

.site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 20px; padding: 38px 4vw; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-brand { color: var(--ink); }
.site-footer p:nth-child(2) { text-align: center; }
.footer-note { text-align: right; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 40; transform: translate(-50%, 20px); padding: 11px 18px; border-radius: 999px; background: var(--ink); color: white; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto 1fr; height: auto; padding-block: 14px; }
  .search-wrap { grid-column: 1 / -1; grid-row: 2; }
  .main-nav a { display: none; }
  .hero-grid, .article-hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .hero-art { height: 380px; }
  .today-card { grid-template-columns: 1fr; }
  .today-visual { min-height: 280px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hobby-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { display: none; }
  .article-visual { min-height: 330px; }
}

@media (max-width: 580px) {
  .site-header { padding-inline: 18px; }
  .brand > span:last-child { display: none; }
  .hero-grid { gap: 34px; }
  .hero-art { height: 300px; }
  .art-card { font-size: 60px; }
  .category-grid, .hobby-grid, .starter-list, .benefit-grid, .community-box, .option-grid, .project-grid, .pro-panel ul, .glossary-grid, .official-resources { grid-template-columns: 1fr; }
  .browse-head { align-items: start; flex-direction: column; }
  .facts-inline { gap: 15px; flex-wrap: wrap; }
  .article-stats { grid-template-columns: 1fr; }
  .stat, .stat:first-child { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .cost-row { grid-template-columns: 1fr; gap: 3px; }
  .software-deep-dive { padding: 22px 16px; margin-inline: -4vw; border-radius: 18px; }
  .tool-head { display: none; }
  .tool-row { grid-template-columns: 1fr; gap: 4px; }
  .workflow-panel { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; text-align: left; }
  .site-footer p:nth-child(2), .footer-note { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
