/* Shorty tools: the Discovery palette, headline, navigation and composer. */
/* Phosphor icons from /icons.js sit on the text baseline at 1em (docs/icons.md). */
.icon { flex: none; vertical-align: -0.125em; }
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --panel: #161616;
  --panel-2: #1f1f1f;
  --border: #2a2a2a;
  --text: #f2f2f2;
  --muted: #aaa;
  --accent: #EA3325;
  --accent-ink: #fff;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-padding-top: 100px; }
body { margin: 0; min-width: 0; background: var(--bg); color: var(--text); font-family: -apple-system, "Inter", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
svg, img { display: block; flex-shrink: 0; }
p { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--muted); }
h1, h2, h3 { margin: 0; }
h2 { font-size: 1.75rem; font-weight: 650; line-height: 1.25; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.4; letter-spacing: -.02em; }
section[id] { scroll-margin-top: 100px; }

.topnav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; padding: 14px 28px; background: var(--bg); }
.logo { display: inline-flex; align-items: center; gap: 6px; font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.nav-center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.nav-pill { padding: 9px 18px; border-radius: 999px; color: #cfcfcf; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-pill:hover { background: #1d1d1d; }
.nav-pill.active { background: #2a2a2a; color: #fff; }
.nav-right { display: flex; align-items: center; gap: 20px; font-size: 14px; }
.pricing-link { color: #cfcfcf; }
.open-shorty { padding: 10px 18px; border-radius: 999px; background: var(--text); color: #111; font-weight: 750; white-space: nowrap; }
.open-shorty:hover { background: #fff; color: #111; }

main { width: min(1124px, calc(100% - 56px)); margin: auto; padding-bottom: 90px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 28px; color: #999; font-size: .875rem; line-height: 1.5; }
.crumbs > span[aria-hidden] { color: #555; }
.hero { max-width: 1000px; margin: auto; padding: 48px 0 28px; text-align: center; }
.hero h1 { max-width: 940px; margin: auto; font-size: clamp(40px, 6.15vw, 80px); font-weight: 900; line-height: .98; letter-spacing: -.04em; text-transform: uppercase; text-wrap: balance; color: var(--accent); }
.hero-subtitle { max-width: 670px; margin: 22px auto 0; font-size: clamp(1rem, 1.5vw, 1.125rem); line-height: 1.6; text-wrap: balance; }
.hero-product-line { max-width: 670px; margin: 12px auto 0; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); text-wrap: balance; }
.hero-product-line a { color: inherit; text-decoration: underline; }
.hub-hero { padding: 70px 0 64px; }
.hub-hero .hero-subtitle { max-width: 550px; }

/* The brief opens in the real editor; no simulated upload controls. */
.brief { max-width: 860px; margin: 0 auto; padding: 22px 24px 18px; background: #121314; border: 1px solid #2e3031; border-radius: 20px; }
.brief-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brief-heading h2 { font-size: .875rem; font-weight: 500; letter-spacing: 0; color: #aaa; }
.brief-heading a { font-size: .875rem; color: #aaa; }
.brief-heading a:hover { color: #fff; }
.brief blockquote { margin: 18px 0 24px; color: #dedede; font-size: 1.0625rem; line-height: 1.6; }
.brief-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.format-label { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: #a3a5a6; }
.format-label > span:first-child { display: inline-block; padding: 5px 9px; color: #e6e6e6; border: 1px solid #343638; border-radius: 6px; font: .8125rem var(--mono); }
.format-separator { color: #4f5051; padding: 0 3px; }
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 18px; min-height: 44px; background: var(--accent); color: var(--accent-ink); border-radius: 10px; font-size: .875rem; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.cta:hover { color: #fff; background: #ce2c20; }
.composer-note { max-width: 860px; margin: 13px auto 0; color: #949494; font-size: .8125rem; text-align: center; line-height: 1.6; }

.shot-list { margin-top: 64px; border-top: 1px solid var(--border); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 24px 0; }
.section-heading h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.section-heading p, .section-heading > span, .section-heading > a { font-size: .875rem; color: #999; }
.shot-list ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 28px; }
.shot-list li { padding: 0 24px 0 0; border-right: 1px solid var(--border); font-size: 1rem; line-height: 1.6; color: #bfbfbf; }
.shot-list li:last-child { border: 0; padding-right: 0; }

.reading-layout { display: grid; grid-template-columns: 200px minmax(0, 730px); gap: 64px; justify-content: space-between; padding-top: 60px; margin-top: 60px; border-top: 1px solid var(--border); }
.contents { position: sticky; top: 108px; align-self: start; }
.contents > span { font: .8125rem var(--mono); color: #999; }
.contents nav { display: grid; gap: 18px; margin-top: 24px; }
.contents a { color: #aaa; font-size: .875rem; line-height: 1.4; }
.contents a:hover { color: #fff; }
.article-content { min-width: 0; }
.article-content > section + section { margin-top: 48px; }
.article-content h2 { margin-bottom: 20px; }
.answer { font-size: 1.125rem; line-height: 1.75; color: #cecece; }
.steps > section { margin-top: 34px; }
.steps h3 { margin-bottom: 10px; }
.article-content p a, .hub-notes p a { color: #ddd; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #555; }
.article-content p a:hover, .hub-notes p a:hover { text-decoration-color: var(--accent); }
details { border-bottom: 1px solid var(--border); padding: 20px 0; }
summary { position: relative; padding-right: 32px; list-style: none; cursor: pointer; font-size: 1rem; line-height: 1.55; color: #dedede; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 0; top: calc(.775em - 8px); width: 16px; height: 16px; color: #929292; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20256%22%20fill%3D%22currentColor%22%3E%3Cpath%20d%3D%22M224%2C128a8%2C8%2C0%2C0%2C1-8%2C8H136v80a8%2C8%2C0%2C0%2C1-16%2C0V136H40a8%2C8%2C0%2C0%2C1%2C0-16h80V40a8%2C8%2C0%2C0%2C1%2C16%2C0v80h80A8%2C8%2C0%2C0%2C1%2C224%2C128Z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20256%22%20fill%3D%22currentColor%22%3E%3Cpath%20d%3D%22M224%2C128a8%2C8%2C0%2C0%2C1-8%2C8H136v80a8%2C8%2C0%2C0%2C1-16%2C0V136H40a8%2C8%2C0%2C0%2C1%2C0-16h80V40a8%2C8%2C0%2C0%2C1%2C16%2C0v80h80A8%2C8%2C0%2C0%2C1%2C224%2C128Z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; }
details[open] summary::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20256%22%20fill%3D%22currentColor%22%3E%3Cpath%20d%3D%22M224%2C128a8%2C8%2C0%2C0%2C1-8%2C8H40a8%2C8%2C0%2C0%2C1%2C0-16H216A8%2C8%2C0%2C0%2C1%2C224%2C128Z%22%2F%3E%3C%2Fsvg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20256%20256%22%20fill%3D%22currentColor%22%3E%3Cpath%20d%3D%22M224%2C128a8%2C8%2C0%2C0%2C1-8%2C8H40a8%2C8%2C0%2C0%2C1%2C0-16H216A8%2C8%2C0%2C0%2C1%2C224%2C128Z%22%2F%3E%3C%2Fsvg%3E"); }
details p { margin-top: 14px; }
.product-notes { border-top: 1px solid var(--border); padding-top: 28px; }
.product-notes h2 { font-size: 1.2rem; }
.product-notes p + p { margin-top: 16px; }
.product-notes .meta { font-size: .8125rem; color: #949494; }
.closing-cta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; padding: 28px 0; border-top: 1px solid var(--border); }
.closing-cta h2 { margin: 0; font-size: 1.5rem; }

.tools-directory, .related-tools { border-top: 1px solid var(--border); }
.tool-list { border-top: 1px solid var(--border); }
.tool-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, 1fr) 20px; align-items: center; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.tool-row h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.tool-audience { color: #999; font-size: .875rem; line-height: 1.5; }
.tool-row p { font-size: .9375rem; line-height: 1.5; color: #aaa; }
.tool-row > svg { color: #717171; }
.tool-row:hover h3, .tool-row:hover > svg { color: var(--accent); }
.related-tools { margin-top: 72px; }
.hub-notes { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; padding-top: 42px; margin-top: 60px; border-top: 1px solid var(--border); }
.hub-notes h2 { font-size: 1.75rem; }
.hub-notes p + p { margin-top: 14px; }

footer { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; width: min(1124px, calc(100% - 56px)); margin: auto; padding: 28px 0 38px; border-top: 1px solid var(--border); }
footer .logo { font-size: 18px; }
footer nav { display: flex; gap: 24px; margin-left: auto; font-size: .875rem; color: #aaa; }
footer p { width: 100%; color: #949494; font-size: .8125rem; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 30; }
.skip:focus { top: 12px; background: var(--bg); padding: 12px; }

@media (max-width: 1000px) {
  .reading-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 40px; }
  .tool-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 20px; gap: 24px; }
  .tool-audience { display: none; }
}
@media (max-width: 760px) {
  .topnav { gap: 12px; padding: 12px 16px; }
  .topnav .logo > span { display: none; }
  .nav-center { position: static; transform: none; margin-right: auto; }
  .nav-pill { padding: 9px 12px; }
  .nav-center > a:last-child, .pricing-link { display: none; }
  .open-shorty { padding: 10px 14px; font-size: .875rem; }
  main, footer { width: calc(100% - 40px); }
  .hero { padding: 38px 0 26px; }
  .hero h1 { font-size: clamp(40px, 8vw, 60px); letter-spacing: -.04em; }
  .hero-subtitle { font-size: 1rem; margin-top: 18px; }
  .crumbs { padding-top: 20px; }
  .hub-hero { padding: 44px 0; }
  .brief { padding: 20px; border-radius: 16px; }
  .brief blockquote { font-size: 1rem; margin-bottom: 22px; }
  .format-label { gap: 6px; }
  .format-separator { padding: 0; }
  .shot-list { margin-top: 44px; }
  .section-heading { flex-wrap: wrap; gap: 8px 20px; padding: 22px 0; }
  .shot-list ul { display: block; }
  .shot-list li { border: 0; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .shot-list li:first-child { padding-top: 0; }
  .shot-list li:last-child { padding-bottom: 0; }
  .reading-layout { display: block; padding-top: 28px; margin-top: 40px; }
  .contents { position: static; border-bottom: 1px solid var(--border); padding-bottom: 26px; margin-bottom: 36px; }
  .contents nav { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 16px; }
  .article-content h2 { font-size: 1.6rem; }
  .answer { font-size: 1.0625rem; }
  .product-notes h2 { font-size: 1.2rem; }
  .tool-row { grid-template-columns: minmax(0, 1fr) 20px; gap: 8px 20px; padding: 22px 0; }
  .tool-row h3 { font-size: 1.125rem; }
  .tool-row p { grid-column: 1; grid-row: 2; }
  .tool-row > svg { grid-column: 2; grid-row: 1 / 3; }
  .related-tools { margin-top: 44px; }
  .hub-notes { grid-template-columns: 1fr; gap: 20px; margin-top: 40px; padding-top: 30px; }
  footer { gap: 20px; }
  footer nav { gap: 16px; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .topnav { gap: 8px; padding-inline: 12px; }
  .nav-pill { padding-inline: 9px; }
  .nav-center > a:nth-child(2) { display: none; }
  .brief-controls { align-items: stretch; }
  .brief-controls .cta { width: 100%; }
  .format-label { font-size: .8125rem; }
  footer nav { width: 100%; margin: 0; }
}

.workflow-categories { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 48px; }
.workflow-categories a { display:flex; gap:12px; align-items:center; border:1px solid #333; border-radius:999px; padding:10px 16px; font-size:13px; }
.workflow-categories a:hover { border-color:var(--accent); }
.workflow-categories span { color:#999; }
.tools-directory + .tools-directory { margin-top:48px; }
.tools-directory .section-heading h2 { font-size:1.25rem; }
