:root {
  color-scheme: light;
  --ink: #20312d;
  --muted: #5c706a;
  --green: #1d5c50;
  --green-dark: #16473f;
  --green-soft: #e6efea;
  --cream: #f8f7f2;
  --paper: #fffefa;
  --line: #d8e0d9;
  --orange: #e87854;
  --gold: #f5c26b;
  --shadow: 0 18px 50px rgba(24, 56, 47, .11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--cream); color: var(--ink); line-height: 1.65; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #e87854; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -60px; left: 18px; z-index: 100; background: var(--ink); color: white; padding: 10px 15px; border-radius: 0 0 9px 9px; }
.skip-link:focus { top: 0; color: white; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(216, 224, 217, .85); background: rgba(248, 247, 242, .96); }
.header-inner { max-width: 1220px; min-height: 76px; margin: 0 auto; padding: 10px 28px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; text-decoration: none; }
.brand img { display: block; width: 168px; height: 38px; }
.primary-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.primary-nav a { color: #425b53; font-size: 14px; font-weight: 600; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: var(--green-dark); }
.primary-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.header-action { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 999px; color: white; background: var(--green); font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.header-action:hover, .button:hover { background: var(--green-dark); color: #fff; }
.menu-toggle { display: none; }
main { display: block; }
.hero-section { max-width: 1220px; min-height: 525px; margin: 0 auto; padding: 76px 28px 78px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, .92fr); gap: clamp(42px, 7vw, 100px); align-items: center; }
.hero-copy { max-width: 600px; }
.eyebrow { display: inline-block; margin: 0 0 13px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .15em; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; }
h1 { margin-bottom: 19px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5.7vw, 72px); font-weight: 500; letter-spacing: -.045em; }
h2 { margin-bottom: 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(27px, 3.1vw, 40px); font-weight: 500; letter-spacing: -.025em; }
h3 { margin-bottom: 9px; font-size: 17px; }
.hero-lede, .page-lede { max-width: 660px; color: #526760; font-size: clamp(17px, 2vw, 20px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; margin: 27px 0 0; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 19px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: #fff; font-weight: 750; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-outline { border-color: #b7c7bd; background: transparent; color: var(--green-dark); }
.button-outline:hover { background: var(--green-soft); color: var(--green-dark); }
.button-small { min-height: 38px; padding: 0 13px; font-size: 12px; }
.text-link { color: var(--green-dark); font-size: 14px; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.privacy-callout, .local-note { display: flex; align-items: center; gap: 9px; margin: 28px 0 0; color: #587067; font-size: 13px; }
.privacy-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #4f9d7d; box-shadow: 0 0 0 4px #dcece1; }
.hero-tool-nav { padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.hero-tool-nav-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.hero-tool-nav-heading .eyebrow { margin-bottom: 6px; }
.hero-tool-nav-heading h2 { margin: 0; font-size: clamp(22px, 2.5vw, 29px); }
.tool-count { flex: 0 0 auto; padding: 5px 9px; border-radius: 99px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; }
.hero-tool-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.hero-tool-links a { min-height: 68px; display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid #e1e7df; border-radius: 10px; color: var(--ink); text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.hero-tool-links a:hover { transform: translateY(-2px); border-color: #a6bca9; background: #f7f9f4; color: var(--ink); }
.hero-tool-index { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--green-soft); color: var(--green); font-size: 9px; font-weight: 850; }
.hero-tool-label { min-width: 0; display: block; }
.hero-tool-label strong, .hero-tool-label small { display: block; }
.hero-tool-label strong { font-size: 11px; line-height: 1.3; }
.hero-tool-label small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.hero-tool-arrow { margin-left: auto; color: var(--green); font-size: 13px; }
.hero-tool-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.section { padding: 78px max(28px, calc((100vw - 1164px) / 2)); }
.section-tight { padding-top: 48px; padding-bottom: 48px; }
.section-soft { background: #eff2eb; }
.section-accent { background: #e8efea; }
.section-heading { max-width: 1164px; margin: 0 auto 27px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 430px; margin-bottom: 3px; color: var(--muted); font-size: 14px; }
.tool-grid, .guide-grid { max-width: 1164px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.tool-card, .guide-card { min-height: 215px; display: flex; flex-direction: column; align-items: flex-start; padding: 23px 23px 21px; border: 1px solid var(--line); border-radius: 13px; background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tool-card:hover, .guide-card:hover { transform: translateY(-3px); border-color: #9bb9a7; box-shadow: 0 12px 30px rgba(32, 62, 50, .08); color: var(--ink); }
.tool-card h2, .guide-card h2 { margin: 12px 0 8px; font-family: inherit; font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.tool-card p, .guide-card p { margin: 0 0 19px; color: var(--muted); font-size: 13px; line-height: 1.58; }
.tool-index, .route-number { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; }
.card-link { display: flex; gap: 6px; align-items: center; margin-top: auto; color: var(--green); font-size: 12px; font-weight: 800; }
.guide-card > span:first-child { color: #9a6247; font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.guide-card h2 { margin-top: 13px; }
.guide-card .card-link { margin-top: auto; }
.section-more { max-width: 1164px; margin: 27px auto 0; }
.split-section { max-width: 1164px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 8vw, 100px); align-items: center; }
.split-section > div:first-child { max-width: 480px; }
.split-section p:not(.eyebrow) { color: var(--muted); }
.workflow-list { display: grid; gap: 17px; margin: 0; padding: 0; list-style: none; }
.workflow-list li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.workflow-list li > span { color: var(--orange); font-family: Georgia, serif; font-size: 17px; }
.workflow-list strong { font-size: 14px; }
.workflow-list p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.faq-panel { max-width: 820px; margin: 0 auto; padding: 32px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.faq-panel h2 { margin-bottom: 23px; }
details { border-top: 1px solid #e4e9e3; }
summary { padding: 15px 28px 15px 0; color: var(--ink); font-size: 14px; font-weight: 750; cursor: pointer; }
details p { margin: -2px 0 16px; color: var(--muted); font-size: 13px; }
.page-hero { padding: 54px 28px 44px; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, #f5f6ef 0%, #edf3ed 62%, #f8f7f2 100%); }
.page-hero-inner { max-width: 1164px; margin: 0 auto; }
.page-hero h1 { max-width: 900px; font-size: clamp(38px, 5.2vw, 61px); }
.page-hero .page-lede { margin-bottom: 0; font-size: 17px; }
.updated-date { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 21px; color: #73837d; font-size: 12px; }
.breadcrumbs a { color: var(--green); text-decoration: none; }
.breadcrumbs [aria-current="page"] { color: #64746e; }
.tool-page-hero .local-note { margin-top: 18px; }
.tool-column { max-width: 1164px; margin: 0 auto; }
.tool-workspace { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 8px 26px rgba(27, 61, 48, .05); }
.upload-row { display: grid; grid-template-columns: minmax(250px, .75fr) 1fr; gap: 18px; align-items: center; margin-bottom: 18px; }
.upload-box { min-height: 80px; display: flex; align-items: center; gap: 13px; padding: 13px 17px; border: 1px dashed #8eaa98; border-radius: 11px; background: #f6f8f2; cursor: pointer; }
.upload-box:hover { border-color: var(--green); background: #edf4ee; }
.upload-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--green); color: white; font-size: 22px; line-height: 1; }
.upload-box strong, .upload-box small { display: block; }
.upload-box strong { color: var(--ink); font-size: 13px; }
.upload-box small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.upload-box input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-box:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.file-facts { margin: 0; color: var(--muted); font-size: 12px; }
.workspace-grid { display: grid; grid-template-columns: minmax(270px, 350px) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.control-panel, .preview-panel { min-width: 0; padding: 20px; border: 1px solid #e0e6df; border-radius: 12px; background: #fbfcf8; }
.control-panel h2, .preview-heading h2 { margin: 0; font-family: inherit; font-size: 16px; font-weight: 800; letter-spacing: 0; }
.tool-controls { display: grid; gap: 14px; margin: 18px 0; }
.field-label { display: grid; gap: 6px; color: #314740; font-size: 12px; font-weight: 700; }
.field-label input:not([type="range"]):not([type="color"]), .field-label select { width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid #cbd7ce; border-radius: 7px; background: white; color: var(--ink); }
.field-label input[type="number"] { font-variant-numeric: tabular-nums; }
.field-label input[type="color"] { width: 100%; height: 39px; padding: 3px; border: 1px solid #cbd7ce; border-radius: 7px; background: white; }
.field-label input[type="range"] { width: 100%; accent-color: var(--green); }
.field-label output { color: var(--green); font-variant-numeric: tabular-nums; }
.field-help { color: var(--muted); font-size: 10px; font-weight: 450; line-height: 1.4; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
.check-label { display: flex; align-items: center; gap: 8px; color: #314740; font-size: 12px; font-weight: 650; }
.check-label input { width: 16px; height: 16px; accent-color: var(--green); }
.control-panel > .button { width: 100%; margin-top: 8px; }
.control-panel > .button + .button { margin-top: 8px; }
.preview-panel { display: flex; flex-direction: column; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.preview-heading span { color: var(--muted); font-size: 10px; }
.canvas-shell { position: relative; min-height: 300px; flex: 1; display: grid; place-items: center; overflow: hidden; border: 1px solid #e2e7df; border-radius: 9px; background-color: #f3f4ef; background-image: linear-gradient(45deg, #e6e9e1 25%, transparent 25%), linear-gradient(-45deg, #e6e9e1 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e6e9e1 75%), linear-gradient(-45deg, transparent 75%, #e6e9e1 75%); background-size: 24px 24px; background-position: 0 0, 0 12px, 12px -12px, -12px 0; }
.canvas-holder { min-width: 0; max-width: 100%; max-height: 520px; display: grid; place-items: center; }
.canvas-shell canvas { display: block; max-width: 100%; max-height: 520px; width: auto; height: auto; object-fit: contain; touch-action: none; }
.empty-preview { margin: 0; padding: 26px; color: #75847e; font-size: 12px; text-align: center; }
.crop-overlay { position: absolute; z-index: 2; border: 2px solid white; box-shadow: 0 0 0 9999px rgba(18, 39, 33, .35); pointer-events: none; }
.tool-status { min-height: 22px; margin: 16px 0 8px; color: var(--muted); font-size: 12px; }
.tool-status.is-error { color: #9a3d2e; font-weight: 700; }
.download-button { margin-top: 6px; }
.palette-results { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.palette-results h3 { margin-bottom: 5px; }
.palette-results > p { color: var(--muted); font-size: 12px; }
.swatch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.swatch-button { min-width: 0; display: grid; grid-template-columns: 39px 1fr; gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.swatch-button:hover { border-color: var(--green); }
.swatch-chip { width: 38px; height: 38px; border: 1px solid rgba(0, 0, 0, .12); border-radius: 6px; background: var(--swatch-color); }
.swatch-button code { overflow: hidden; font-size: 11px; text-overflow: ellipsis; }
.palette-downloads { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.tool-note { margin: 0; color: var(--muted); font-size: 12px; }
.article-layout { max-width: 1164px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .7fr); gap: 45px; align-items: start; }
.article-body { color: #41554e; }
.article-body h2 { margin: 0 0 10px; font-family: inherit; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.article-body section + section { margin-top: 30px; }
.article-body p, .article-body li { font-size: 14px; line-height: 1.75; }
.article-body ul, .article-body ol { padding-left: 21px; }
.article-aside { padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.article-aside h2 { margin: 0 0 10px; font-size: 17px; }
.article-aside ul { padding-left: 19px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.article-aside .text-link { display: inline-block; margin-top: 6px; }
.source-list { margin-top: 35px; padding-top: 20px; border-top: 1px solid var(--line); }
.source-list h2 { font-size: 18px; }
.source-list ul { padding-left: 19px; }
.source-list p { color: var(--muted); font-size: 12px; }
.article-cta { margin-top: 25px; }
.guide-faq { margin-top: 32px; }
.route-grid { max-width: 1164px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.route-card { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.route-card h2 { margin: 14px 0 7px; font-family: inherit; font-size: 19px; font-weight: 800; }
.route-card p { color: var(--muted); font-size: 13px; }
.route-card a { display: inline-block; margin: 5px 15px 0 0; font-size: 12px; font-weight: 750; text-decoration: none; }
.callout, .info-band { max-width: 1164px; margin: 25px auto 0; padding: 18px 20px; border-left: 4px solid var(--gold); border-radius: 6px; background: #fff9e8; color: #5c584b; font-size: 13px; }
.info-band p { margin: 5px 0 0; }
.not-found { max-width: 760px; min-height: 55vh; margin: 0 auto; padding: 100px 25px; }
.not-found h1 { font-size: clamp(40px, 5vw, 62px); }
.not-found p:not(.eyebrow) { color: var(--muted); }
.site-footer { padding: 44px max(28px, calc((100vw - 1164px) / 2)) 19px; border-top: 1px solid var(--line); background: #f0f1e9; }
.footer-inner { max-width: 1164px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr .9fr .8fr; gap: 35px; }
.footer-brand p { max-width: 290px; margin: 13px 0 7px; color: #51655d; font-size: 12px; }
.footer-brand .footer-note { font-size: 10px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.footer-links strong { margin-bottom: 4px; color: var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.footer-links a { color: #53665f; font-size: 11px; text-decoration: none; }
.footer-links a:hover { color: var(--green-dark); text-decoration: underline; }
.footer-bottom { max-width: 1164px; margin: 33px auto 0; padding-top: 14px; border-top: 1px solid #d8ded5; display: flex; justify-content: space-between; gap: 18px; color: #6d7b75; font-size: 10px; }
@media (max-width: 900px) {
  .header-inner { gap: 17px; }
  .primary-nav { gap: 15px; }
  .hero-section { grid-template-columns: 1fr minmax(300px, .85fr); gap: 28px; }
  .workspace-grid { grid-template-columns: minmax(230px, 310px) minmax(0, 1fr); }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-links:last-child { grid-column: 2; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 68px; padding: 9px 18px; flex-wrap: wrap; }
  .brand img { width: 150px; height: 34px; }
  .menu-toggle { display: inline-flex; margin-left: auto; min-height: 38px; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 700; }
  .header-action { display: none; }
  .primary-nav { display: none; width: 100%; order: 3; margin: 0; padding: 7px 0 12px; flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 10px 3px; border-top: 1px solid #e2e6df; }
  .primary-nav a[aria-current="page"] { text-underline-offset: 4px; }
  .hero-section { min-height: 0; padding: 52px 20px 55px; grid-template-columns: 1fr; gap: 24px; }
  h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-tool-nav { max-width: 540px; margin: 0 auto; padding: 19px; }
  .section { padding: 55px 20px; }
  .section-tight { padding-top: 35px; padding-bottom: 35px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .tool-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .tool-card, .guide-card { min-height: 205px; padding: 17px; }
  .split-section, .article-layout { grid-template-columns: 1fr; gap: 30px; }
  .page-hero { padding: 42px 20px 34px; }
  .page-hero h1 { font-size: clamp(36px, 10vw, 52px); }
  .upload-row, .workspace-grid { grid-template-columns: 1fr; }
  .canvas-shell { min-height: 260px; }
  .canvas-shell canvas { max-height: 420px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-links:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 5px; }
}
@media (max-width: 390px) {
  .hero-tool-links { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .tool-grid, .guide-grid, .route-grid { grid-template-columns: 1fr; }
  .tool-card, .guide-card { min-height: 0; }
  .faq-panel { padding: 22px 18px; }
  .tool-workspace { padding: 12px; }
  .control-panel, .preview-panel { padding: 15px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid.two { grid-template-columns: 1fr 1fr; }
  .demo-toolbar, .demo-footer { padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
