:root {
  --text: #333;
  --strong: #222;
  --muted: #5d6877;
  --bg: #fff;
  --primary: #2e5c9a;
  --primary-dark: #22487b;
  --accent: #c47a50;
  --accent-dark: #a5613b;
  --sand: #f5e9db;
  --soft: #f6f8fb;
  --line: #e1e6ed;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.7 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 48rem; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem;
  padding-top: .8rem; padding-bottom: .8rem;
}
.brand { display: flex; align-items: center; gap: .6rem; color: var(--primary); font-weight: 700; font-size: 1.3rem;
  text-decoration: none; }
.brand img { width: 44px; height: 44px; }
nav.menu { display: flex; flex-wrap: wrap; gap: .2rem 1.25rem; font-size: .95rem; }
nav.menu a { color: var(--text); text-decoration: none; }
nav.menu a:hover, nav.menu a[aria-current] { color: var(--primary); }
nav.menu a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px;
  text-underline-offset: 6px; }
.dropdown { position: relative; }
.dropdown summary { display: flex; align-items: center; gap: .3rem; cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: ""; width: .75em; height: .75em; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s; }
.dropdown[open] summary::after { transform: rotate(180deg); }
.dropdown summary:hover, .dropdown summary.current { color: var(--primary); }
.dropdown summary.current { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px;
  text-underline-offset: 6px; }
.dropdown ul { position: absolute; top: calc(100% + .6rem); left: -1rem; z-index: 10; min-width: 15rem; margin: 0;
  padding: .4rem 0; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 40, 70, .1); }
.dropdown ul::before { content: ""; position: absolute; left: 0; right: 0; top: -.7rem; height: .7rem; } /* hover bridge */
.dropdown li, .dropdown li + li { margin: 0; }
nav.menu .dropdown li a { display: block; padding: .5rem 1rem; white-space: nowrap; }
nav.menu .dropdown li a:hover, nav.menu .dropdown li a[aria-current] { background: var(--soft); }

.crumbs { margin: 1.5rem 0 0; font-size: .875rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 .35rem; }
h1, h2, h3 { color: var(--strong); line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 5.5vw, 2.4rem); margin: 2.5rem 0 1.25rem; }
.crumbs + article h1 { margin-top: 1rem; }
.byline { margin: -.5rem 0 1.75rem; font-size: .9rem; color: var(--muted); }
h2 { font-size: 1.5rem; margin: 2.75rem 0 .9rem; scroll-margin-top: 1rem; }
h3 { font-size: 1.2rem; margin: 2rem 0 .6rem; }
p, ul, ol { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: .45rem; }
strong { color: var(--strong); }
a strong { color: inherit; }

.callout { background: var(--sand); border-left: 4px solid var(--accent); border-radius: 6px; padding: 1.2rem 1.4rem;
  margin: 2rem 0; }
.callout > :first-child { margin-top: 0; }
.callout > :last-child { margin-bottom: 0; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.5rem; margin: 2.25rem 0; }
.features figure { margin: 0; text-align: center; }
.features img { display: block; margin: 0 auto .6rem; width: 100%; max-width: 300px; }
.features figcaption { font-size: .95rem; }
.img-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 1rem; margin: 1.5rem 0 2rem; }
.img-row img, img.screenshot { display: block; width: 15rem; border: 1px solid var(--line); border-radius: 8px; }
blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--line); background: var(--soft);
  border-radius: 6px; font-style: italic; }
blockquote > :last-child { margin-bottom: 0; }
.faq { margin: 2rem 0; }
.faq details { border: 1px solid var(--line); border-radius: 6px; padding: 0 1.1rem; }
.faq details + details { margin-top: .6rem; }
.faq summary { padding: .8rem 0; color: var(--strong); font-weight: 600; cursor: pointer; }
.faq details[open] summary { color: var(--primary); }
.faq details > :last-child { margin-bottom: 1rem; }
.guide-list { display: grid; gap: .6rem; padding: 0; list-style: none; }
.guide-list li { margin: 0; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 6px; }
.guide-list a { font-weight: 600; text-decoration: none; }
.guide-list a::after { content: " →"; color: var(--accent); }
.guide-list a:hover { text-decoration: underline; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3rem 0 0; font-size: .95rem; }
.pager a { display: block; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pager a:hover { border-color: var(--primary); }
.pager small { display: block; color: var(--muted); }
.pager .next { grid-column: 2; text-align: right; }
.cta { margin: 3rem 0 0; padding: 1.75rem 1.5rem; border-radius: 8px; background: var(--primary); color: #fff; }
.cta h2 { margin: 0 0 .6rem; font-size: 1.4rem; color: #fff; }
.cta p { margin: 0 0 1.25rem; }
.cta a { display: inline-block; padding: .7rem 1.2rem; border-radius: 6px; background: var(--accent); color: #fff;
  font-weight: 600; text-decoration: none; }
.cta a:hover { background: var(--accent-dark); color: #fff; }

footer.site { margin-top: 4rem; border-top: 1px solid var(--line); background: var(--soft); font-size: .9rem;
  color: var(--muted); }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.75rem 2.5rem;
  padding: 2.5rem 0 1.75rem; }
footer.site h2 { margin: 0 0 .6rem; font-size: .95rem; }
footer.site ul { margin: 0; padding: 0; list-style: none; }
footer.site li + li { margin-top: .35rem; }
footer.site p { margin: 0 0 .45rem; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--primary); text-decoration: underline; }
footer.site .logo { display: block; width: 48px; height: 48px; margin-bottom: .6rem; }
.contact-email { margin: 1.5rem 0 2rem; font-size: 1.3rem; font-weight: 600; }

footer.site .copy { padding: 1rem 0 1.75rem; border-top: 1px solid var(--line); }

@media (max-width: 40rem) { /* phones: thumb-sized tap areas */
  nav.menu a, .dropdown summary { padding: .45rem 0; }
  .dropdown ul { left: -.5rem; top: 100%; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .faq summary { padding: 1rem 0; }
  .features img { max-width: 200px; }
  footer.site li + li { margin-top: 0; }
  footer.site li a { display: inline-block; padding: .4rem 0; }
}
