:root { color-scheme: light; --ink: #1d1d1f; --soft: #6e6e73; --grey: #f5f5f7; --line: #d2d2d7; --blue: #0071e3; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--grey); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(20px, calc((100vw - 1200px) / 2)); background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.brand img { height: 26px; width: auto; }
.brand b { font-weight: 600; color: var(--blue); }
.top-links { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.top-links .quiet { padding: 8px 12px; color: var(--soft); border-radius: 999px; }
.top-links .quiet:hover { color: var(--ink); }
.top-links .outline { padding: 8px 16px; border: 1px solid var(--blue); color: var(--blue); background: #fff; border-radius: 999px; font-weight: 500; transition: background .2s, color .2s; }
.top-links .outline:hover { background: var(--blue); color: #fff; }

/* Hero */
main { max-width: 1200px; margin: 0 auto; padding: 0 20px 80px; }
.hero { text-align: center; padding: 72px 0 40px; }
.eyebrow { margin: 0; color: var(--blue); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.hero h1 { margin: 10px 0 0; font-size: clamp(36px, 7vw, 76px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 650; white-space: nowrap; }
.lead { margin: 16px auto 0; max-width: 620px; font-size: clamp(16px, 2vw, 20px); line-height: 1.5; color: var(--soft); }
.facts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.facts li { padding: 7px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--soft); }
.facts b { color: var(--ink); }

/* Toolbar */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-size: 14px; cursor: pointer; transition: border-color .2s; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.search input { width: 260px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; font-size: 14px; outline: none; }
.search input:focus { border-color: var(--blue); }

/* Cards */
#grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 20px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; cursor: pointer; text-align: left; padding: 0; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); border-color: rgba(0,113,227,.5); box-shadow: 0 18px 40px -22px rgba(0,113,227,.45); }
.shot { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(160deg, #eef3fb, #dde7f6); overflow: hidden; border-bottom: 1px solid var(--line); }
/* Each editor shown as a screen rising from the bottom of a light-blue stage. */
.shot img { position: absolute; left: 50%; bottom: 0; width: 86%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; display: block; transform: translate(-50%, 7%); border-radius: 10px 10px 0 0; box-shadow: 0 18px 40px -14px rgba(18, 40, 79, .45); outline: 1px solid rgba(0, 0, 0, .06); transition: transform .6s; }
.card:hover .shot img { transform: translate(-50%, 2%); }
.wide { grid-column: span 2; }
.wide .shot { aspect-ratio: 33 / 10; }
.wide .shot img { width: 62%; }
.tag { position: absolute; left: 12px; top: 12px; padding: 4px 10px; font-size: 11px; font-weight: 500; background: rgba(255,255,255,.92); border-radius: 999px; }
.body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.body h3 { margin: 0; font-size: 20px; letter-spacing: -.4px; }
.body p { margin: 6px 0 18px; flex: 1; font-size: 14px; line-height: 1.5; color: var(--soft); }
.open { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--blue); color: var(--blue); background: #fff; border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.card:hover .open { background: var(--blue); color: #fff; }
.empty { text-align: center; color: var(--soft); padding: 40px 0; }

/* Footer */
.foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 28px 20px 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }
.foot img { height: 20px; }
.foot a { color: var(--blue); }

/* Editor window */
dialog { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: var(--grey); }
dialog[open] { display: flex; flex-direction: column; }
.editorbar { display: flex; align-items: center; gap: 18px; background: #fff; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.editorbar button { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.editorbar button:hover { border-color: var(--ink); }
.editorbar strong { font-size: 15px; }
.editorbar a { margin-left: auto; font-size: 13px; color: var(--blue); }
.warning { margin: 0; padding: 7px 18px; font-size: 12px; color: var(--soft); background: #fff; border-bottom: 1px solid var(--line); }
iframe { border: 0; flex: 1; width: 100%; background: #fff; }

@media (max-width: 960px) {
  .wide-lg { grid-column: auto; }
  .wide-lg .shot { aspect-ratio: 16 / 10; }
  .wide-lg .shot img { width: 86%; }
  #grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar { flex-direction: column; align-items: stretch; }
  .chips { justify-content: center; }
  .search input { width: 100%; }
}
@media (max-width: 560px) {
  .top { height: 58px; }
  .top-links .quiet { display: none; }
  .hero { padding: 44px 0 28px; }
  #grid { gap: 12px; }
  .card { border-radius: 18px; }
  .body { padding: 12px 12px 14px; }
  .body h3 { font-size: 15px; }
  .body p { display: none; }
  .body h3 { margin-bottom: 10px; }
  .open { padding: 8px 10px; font-size: 13px; }
  .tag { display: none; }
  .wide:not(.wide-lg) .shot { aspect-ratio: 16 / 7; }
  .wide:not(.wide-lg) .shot img { width: 72%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips button { flex: none; }
  .editorbar { gap: 10px; padding: 8px 10px; }
  .editorbar strong { font-size: 13px; }
  .warning { display: none; }
}
