/* Homepage, blog, support and legal pages. The try editor uses shared.css + editor.css. */
@import url('tokens.css');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { font: 400 1.0625rem/1.6 var(--font); color: var(--ink); background: #fff; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--deep); text-underline-offset: .18em; }
h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: 4px; }
nav :focus-visible, footer :focus-visible, .dark :focus-visible, .mobile-menu :focus-visible { outline-color: var(--teal); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.btn { display: inline-block; background: var(--teal); color: var(--deep); border: 0; border-radius: 10px; padding: .8rem 1.4rem; font: 700 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: #45d0d1; }
.btn-line { background: none; box-shadow: inset 0 0 0 2px var(--deep); }
.btn-line:hover { background: var(--deep); color: #fff; }

/* nav */
nav.top { position: sticky; top: 0; z-index: 99; background: var(--deep); padding: .7rem 0; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 2.25rem; }
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; flex: 1; }
.nav-links a { color: #cfe3e2; text-decoration: none; font-size: .97rem; }
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; }
@media (max-width: 760px) { .nav-links { gap: 1rem; justify-content: flex-end; } .nav-links li:nth-child(-n+3) { display: none; } }

/* article, support and legal text */
.prose { max-width: 720px; margin: 0 auto; padding: 4rem 1.5rem 5rem; }
.prose h1 { font-size: clamp(2rem, 5.4vw, 3.1rem); margin-bottom: 1rem; }
.prose .byline { color: var(--muted); margin-bottom: 2rem; }
.prose .lead { font-size: 1.25rem; line-height: 1.5; margin-bottom: 1.5rem; }
.prose h2 { font-size: 1.6rem; margin: 2.6rem 0 .8rem; }
.prose h3 { font-size: 1.15rem; margin: 1.6rem 0 .4rem; letter-spacing: 0; }
.prose p, .prose li { max-width: 68ch; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin: 0 0 1.2rem 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose figure { margin: 2rem 0; }
.prose figure img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 6px; }
.prose figcaption { color: var(--muted); font-size: .92rem; margin-top: .5rem; }
.prose .note { background: var(--cream); border-radius: 10px; padding: 1.1rem 1.3rem; margin: 1.4rem 0; }
.prose .note p:last-child { margin: 0; }
.table-scroll { overflow-x: auto; margin: 1rem 0 1.6rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .65rem 1rem .65rem 0; border-bottom: 1px solid var(--line); }
.prose thead th { border-bottom: 2px solid var(--deep); }

/* blog list: newest post large, the rest as a plain list */
.blog-list { max-width: 1000px; margin: 0 auto; padding: 4rem 1.5rem 5rem; }
.blog-list h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 2.5rem; }
.blog-list article { padding: 1.8rem 0; border-top: 1px solid var(--line); }
.blog-list article h2 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); margin-bottom: .5rem; }
.blog-list article a { text-decoration: none; color: var(--ink); }
.blog-list article a:hover { text-decoration: underline; }
.blog-list article p { color: var(--muted); max-width: 64ch; }
.blog-list .first { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: center; border: 0; padding: 0 0 3rem; }
.blog-list .first img { width: 100%; height: auto; display: block; border-radius: 6px; }
.blog-list .first h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
@media (max-width: 700px) { .blog-list .first { grid-template-columns: 1fr; gap: 1.2rem; } .blog-list .first img { max-width: 240px; } }

/* questions */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-size: 1.15rem; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .25rem; top: .8rem; font-size: 1.6rem; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 1.2rem; max-width: 60ch; }

/* footer */
footer.site { background: var(--deep); color: #cfe3e2; padding: 4rem 0 2rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.foot-grid img { height: 52px; margin-bottom: 1rem; }
.foot-grid p { max-width: 300px; }
.foot-grid h2 { font-size: 1rem; letter-spacing: 0; color: #fff; margin-bottom: .9rem; }
.foot-grid ul { list-style: none; display: grid; gap: .5rem; }
footer.site a { color: #cfe3e2; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
.foot-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--deep-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .95rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
