/* Plain to Page. Design B: off-white ground, DM Sans, one green accent. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/site/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/site/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f8f7f3;
  --ink: #14201a;
  --text: #26332c;
  --line: #d9d6cc;
  --accent: #0f6b4a;
  --accent-dark: #0a4a33;
  --tint: #e3efe8;
  --white: #ffffff;
  --desk: #ecebe5;
  --warn-bg: #fff4d6;
  --warn-ink: #4a3500;
  --wrap: 1160px;
  --narrow: 880px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--narrow); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 21px; letter-spacing: -0.01em; }
.logo:hover { color: var(--ink); }
.menu { position: relative; }
.menu__btn { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 600; cursor: pointer; }
.menu__panel { position: absolute; top: 52px; left: 0; z-index: 20; width: 720px; max-width: calc(100vw - 48px); padding: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 36px rgba(20, 32, 26, 0.14); }
.menu__col { display: flex; flex-direction: column; }
.menu__title { font-weight: 700; margin-bottom: 4px; }
.menu__col a, .foot__col a { display: flex; align-items: center; min-height: 40px; text-decoration: none; color: var(--ink); }
.menu__col a:hover, .foot__col a:hover, .nav a:hover { color: var(--accent-dark); text-decoration: underline; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; flex-grow: 1; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a[aria-current] { color: var(--accent-dark); font-weight: 700; }

/* Page top */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; font-size: 14px; }
.intro { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 20px; text-align: center; }
.pair { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.pair__from { padding: 5px 10px; border-radius: 6px; background: var(--tint); color: var(--accent-dark); }
.pair__to { padding: 5px 10px; border-radius: 6px; background: var(--ink); color: var(--white); }
h1 { font-weight: 700; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.025em; }
.intro p { font-size: 18px; color: var(--text); }

/* Tool card */
.tool { padding-top: 28px; }
.tool__wrap { max-width: var(--narrow); margin: 0 auto; padding: 0 24px; transition: max-width 0.2s ease; }
.tool.is-work .tool__wrap { max-width: var(--wrap); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; cursor: pointer; }
.pill[aria-pressed="true"], .pill[aria-selected="true"] { background: var(--ink); color: var(--white); }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 280px; padding: 24px; background: var(--tint); border: 2px dashed var(--accent); border-radius: 14px; text-align: center; }
.drop.is-over { background: #cfe5d8; border-style: solid; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px; font-weight: 700; font-size: 18px; text-decoration: none; cursor: pointer; }
.btn--go { background: var(--accent); color: var(--white); }
.btn--go:hover { background: var(--accent-dark); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #000000; color: var(--white); }
.btn[disabled] { opacity: 0.55; cursor: default; }
.link-btn { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--accent); font-weight: 600; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--accent-dark); }

.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.bar__name { font-weight: 700; overflow-wrap: anywhere; }
.bar__actions { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.panes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; }
.pane { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pane__label { font-size: 14px; font-weight: 700; }
.editor { width: 100%; height: 560px; padding: 16px 18px; border: 1px solid var(--ink); border-radius: 14px; background: var(--bg); font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace; font-size: 14.5px; line-height: 1.7; resize: vertical; tab-size: 4; }
.preview { height: 560px; padding: 16px; border-radius: 14px; background: var(--desk); overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.preview__sheet { width: 100%; background: var(--white); box-shadow: 0 1px 3px rgba(20, 32, 26, 0.18), 0 10px 24px -14px rgba(20, 32, 26, 0.5); }
.preview__sheet canvas { display: block; width: 100%; height: 100%; }
.preview__page { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 6px; }
.preview__num { font-size: 13px; text-align: center; color: var(--text); }
.preview__msg { margin: auto; max-width: 30em; text-align: center; color: var(--text); }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn-ink); font-size: 15px; }
.options { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.options__set { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field__label { font-size: 14px; font-weight: 700; }
.field select { min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 10px; background: var(--white); }
.check { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.options__go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.status { font-size: 15px; color: var(--text); }

/* Content sections */
.section { padding-top: 64px; }
.lede { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px 40px; padding-top: 32px; }
.lede p { font-size: 17px; color: var(--text); }
.ticks { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 10px; }
.ticks svg { flex: none; margin-top: 1px; }
h2 { font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.box { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.box h3 { font-size: 18px; font-weight: 700; }
.box p { color: var(--text); }
.step__n { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: var(--white); font-weight: 700; }
.file { display: flex; flex-direction: column; gap: 2px; padding: 20px; background: var(--white); border: 1px solid var(--ink); border-radius: 14px; text-decoration: none; color: var(--ink); }
.file:hover { color: var(--ink); background: var(--tint); }
.file b { font-weight: 700; }
.file span { font-size: 15px; }
.supports { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 10px 32px; }
.supports li { display: flex; gap: 10px; }
.supports svg { flex: none; margin-top: 1px; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq .box { padding: 18px 22px; gap: 4px; }
.faq h3 { font-size: 17px; }
a.box { text-decoration: none; color: var(--ink); gap: 6px; padding: 20px; }
a.box:hover { border-color: var(--ink); color: var(--ink); }
a.box b { font-size: 18px; }
a.box span { font-size: 15px; color: var(--text); }

/* Footer */
.site-footer { margin-top: 72px; background: var(--white); border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; gap: 32px 56px; padding-top: 44px; padding-bottom: 24px; }
.foot__brand { flex: 1 1 240px; max-width: 320px; display: flex; flex-direction: column; gap: 10px; }
.foot__brand b { font-size: 20px; }
.foot__brand p { font-size: 15px; color: var(--text); }
.foot__col { display: flex; flex-direction: column; }
.foot__col b { margin-bottom: 4px; }
.foot__col a { font-size: 15px; }
.foot__end { padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--white); font-size: 15px; }

@media (max-width: 760px) {
  .editor { height: 300px; }
  .preview { height: 460px; }
  .card { padding: 14px; }
  .options__go { width: 100%; }
  .options__go .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .tool__wrap { transition: none; } }

/* Home page */
.hero { max-width: 760px; margin: 0 auto; padding: 72px 24px 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.06; text-wrap: balance; }
.hero p { font-size: 19px; color: var(--text); text-wrap: pretty; }
.tool-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.tool-card { flex: 0 1 270px; display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.tool-card:hover { border-color: var(--ink); color: var(--ink); }
.tool-card b { font-size: 18px; letter-spacing: -0.01em; }
.tool-card span.tool-card__desc { font-size: 15px; color: var(--text); }
.tool-card .pair { font-size: 12.5px; }
.tool-card .pair span { padding: 4px 8px; }
.soon { margin-top: 20px; text-align: center; color: var(--text); }
.box--row { flex-direction: row; gap: 14px; }
.box--row svg { flex: none; margin-top: 2px; }
.box__title { font-size: 18px; line-height: 1.5; letter-spacing: 0; }

/* Text pages */
.prose { margin-top: 20px; padding: clamp(24px, 5vw, 48px); background: var(--white); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; gap: 14px; line-height: 1.6; }
.prose h1 { font-size: clamp(32px, 4.6vw, 44px); }
.prose h2 { margin-top: 18px; font-size: 21px; letter-spacing: -0.01em; }
.prose p { color: var(--text); }
.prose .updated { font-size: 15px; color: var(--ink); }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--bg); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }
.pagepills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pagepills a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 600; text-decoration: none; }
.pagepills a[aria-current] { background: var(--ink); color: var(--white); }
.nav--end { flex-grow: 0; margin-left: auto; }
