:root {
  --ink: #16181d;
  --ink2: #23262e;
  --paper: #faf8f5;
  --orange: #f26a1b;
  --orange-d: #c8520f;
  --muted: #6b7280;
  --line: #e5e1d8;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.7; font-size: 17px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; line-height: 1.15; letter-spacing: 0.01em; }
h1 { font-size: 2.6rem; margin-bottom: 0.6em; }
h2 { font-size: 1.9rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.45rem; margin: 1.3em 0 0.4em; }
p { margin-bottom: 1.1em; }
a { color: var(--orange-d); }
img { max-width: 100%; height: auto; }

/* header */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 3px; }
.brand span { font-family: 'Barlow Condensed'; font-weight: 700; font-size: 1.3rem; color: #fff; letter-spacing: 0.04em; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: #d7d3c8; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--orange); }

/* hero */
.hero { background: linear-gradient(135deg, var(--ink) 0%, var(--ink2) 70%); color: #fff; padding: 64px 0 56px; }
.hero h1 { font-size: 3.2rem; text-transform: uppercase; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p { color: #c9c4b8; font-size: 1.15rem; max-width: 640px; }
.hero-search { margin-top: 22px; display: flex; gap: 0; max-width: 520px; }
.hero-search input { flex: 1; padding: 14px 16px; border: none; border-radius: 8px 0 0 8px; font-size: 1rem; }
.hero-search button { background: var(--orange); color: #fff; border: none; padding: 0 26px; border-radius: 0 8px 8px 0; font-weight: 700; cursor: pointer; font-size: 1rem; }

/* sections */
.section { padding: 52px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { margin: 0; text-transform: uppercase; font-size: 2rem; }
.section-head a { font-weight: 600; }

/* engine cards */
.engine-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.engine-card { background: var(--ink); color: #fff; border-radius: 12px; padding: 26px 22px; text-decoration: none; position: relative; overflow: hidden; }
.engine-card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--orange); }
.engine-card h3 { color: #fff; margin: 0 0 6px; font-size: 1.7rem; text-transform: uppercase; }
.engine-card p { color: #a8a294; font-size: 0.92rem; margin: 0; }
.engine-card:hover { transform: translateY(-2px); }

/* post cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.post-card .pc-body { padding: 18px; }
.post-card h3 { margin: 0 0 8px; font-size: 1.4rem; color: var(--ink); }
.post-card p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.post-card .pc-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange-d); margin-bottom: 8px; }

/* article */
.article-head { background: var(--ink); color: #fff; padding: 48px 0 40px; }
.article-head h1 { font-size: 2.8rem; }
.article-head .meta { color: #a8a294; font-size: 0.92rem; margin-top: 12px; }
.author-box { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 28px 0; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.author-initials { width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--orange); font-family: 'Barlow Condensed'; font-weight: 700; font-size: 1.6rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.author-box strong { display: block; }
.author-box p { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
.prose { max-width: 760px; }
.prose ul, .prose ol { margin: 0 0 1.1em 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--ink); color: #fff; font-family: 'Barlow Condensed'; font-size: 1.05rem; }
.toc { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin: 24px 0; }
.toc strong { font-family: 'Barlow Condensed'; font-size: 1.2rem; text-transform: uppercase; }
.toc ul { margin: 10px 0 0 1.2em; }
.callout { background: #fff7ed; border-left: 5px solid var(--orange); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 1.4em 0; }
.quick-answer { background: var(--ink); color: #fff; border-radius: 12px; padding: 20px 24px; margin: 0 0 24px; }
.quick-answer strong { font-family: 'Barlow Condensed'; font-size: 1.25rem; text-transform: uppercase; color: var(--orange); display: block; margin-bottom: 8px; }
.quick-answer p { margin: 0; color: #e8e4da; }
.tldr-box { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 0 12px 12px 0; padding: 18px 22px; margin: 0 0 28px; }
.tldr-box strong { font-family: 'Barlow Condensed'; font-size: 1.25rem; text-transform: uppercase; }
.tldr-box ul { margin: 10px 0 0 1.2em; }
.tldr-box li { margin-bottom: 6px; }

/* tools */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-decoration: none; color: inherit; }
.tool-card h3 { margin: 0 0 6px; color: var(--ink); }
.tool-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.tool-form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; max-width: 640px; margin: 24px 0; }
.tool-form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.tool-form input, .tool-form select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.tool-form button { background: var(--orange); color: #fff; border: none; padding: 13px 30px; border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; margin-top: 18px; }
.tool-result { background: var(--ink); color: #fff; border-radius: 12px; padding: 22px; margin-top: 20px; font-size: 1.05rem; }
.tool-result strong { color: var(--orange); }

/* footer */
.site-footer { background: var(--ink); color: #a8a294; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding: 44px 20px 20px; }
.footer-grid strong { color: #fff; display: block; margin-bottom: 10px; font-family: 'Barlow Condensed'; font-size: 1.15rem; text-transform: uppercase; }
.footer-grid a { display: block; color: #a8a294; text-decoration: none; margin-bottom: 7px; font-size: 0.93rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-base { border-top: 1px solid #2c2f38; padding: 18px 20px; font-size: 0.85rem; text-align: center; }

@media (max-width: 640px) {
  .hero h1 { font-size: 2.2rem; }
  .article-head h1 { font-size: 2rem; }
  .main-nav { display: none; }
}
