@font-face {
  font-family: Inter;
  src: url('./assets/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Sync Mermaid';
  src: url('./assets/mermaid-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  color: #2d2d2d;
  background: #fff;
  font: 400 100%/1.5 Inter, system-ui, sans-serif;
  letter-spacing: -.007em;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, ul { margin: 0; }
body { -webkit-font-smoothing: antialiased; }
article { max-width: 51rem; margin-inline: auto; }

.sheet { overflow-wrap: break-word; }
.sheet > * + * { margin-block-start: .6rem; }
.sheet > h1 { margin-block-start: 2.375rem; }
.sheet > * + h2 { margin-block-start: 1.6rem; }
.sheet > h2 + p { margin-block-start: .35rem; }

h1, h2 {
  font-family: 'Sync Mermaid', Georgia, serif;
  font-weight: 700;
}
h1 { font-size: 1.375rem; line-height: 1.75rem; }
h2 { font-size: 1.125rem; line-height: 1.75rem; }
.release-label, strong { font-weight: 600; }
.sheet > .standfirst { margin-top: .5625rem; color: #655f59; font-style: italic; }

ul { padding-inline-start: 1.875rem; }
li + li { margin-top: .25rem; }
.screenshots {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

a { color: inherit; text-decoration-color: #aaa39b; text-underline-offset: .16em; }
a:hover { text-decoration-color: currentColor; }
a:focus-visible { outline: 2px solid #466395; outline-offset: 3px; }

@media screen {
  :root {
    --ink: #2d2d2d;
    --muted: #6b655f;
    --rule: #dcd6ce;
    --wash: #f1f1f1;
    --gutter: clamp(20px, 4vw, 40px);
    --section-gap: clamp(36px, 5.5vw, 72px);
    --wrap: 65rem;
  }
  .print-only { display: none; }
  .brand-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    background: #000;
    color: #fff;
  }
  .brand, .brand img { display: block; }
  .site-nav { display: flex; align-items: center; gap: 24px; font-weight: 500; letter-spacing: normal; }
  .brand-bar a { color: inherit; text-decoration: none; }
  .brand-bar :focus-visible { outline: 2px solid white; outline-offset: 4px; }
  .site-nav a:hover { text-decoration: underline; }
  .site-nav .download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: 20px;
    padding: 4px 4px 4px 12px;
    border-radius: 100px;
    color: #222;
    background: white;
    font: 500 14px/1.2 Inter, system-ui, sans-serif;
  }
  .site-nav .nav-home, .menu-toggle { display: none; }
  .menu-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    color: #fff;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle::before, .menu-toggle::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 15px;
    width: 20px;
    height: 2px;
    background: currentColor;
  }
  .menu-toggle::after { top: 23px; }
  #site-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: clamp(64px, 18vh, 144px) 24px 64px;
    border: 0;
    color: white;
    background: transparent;
    overscroll-behavior: contain;
  }
  #site-menu[open] { display: flex; }
  #site-menu::backdrop { background: rgb(0 0 0 / 80%); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  html:has(dialog[open]) { overflow: hidden; }
  .menu-brand { position: absolute; top: 16px; left: 24px; }
  #close-menu { display: block; position: absolute; inset: 12px 16px auto auto; }
  #close-menu::before, #close-menu::after { top: 19px; transform: rotate(45deg); }
  #close-menu::after { transform: rotate(-45deg); }
  #site-menu .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(24px, 8vh, 64px);
    margin: auto;
    color: white;
    font: 700 clamp(36px, 12.8vw, 48px)/1 'Sync Mermaid', Georgia, serif;
  }
  #site-menu .nav-home { display: block; }
  #site-menu .download-link { margin: 0; padding-inline-start: 24px; gap: 16px; }
  #site-menu .download-link img { width: 40px; height: 40px; }

  article {
    max-width: none;
    display: grid;
    grid-template-columns: [full] minmax(var(--gutter), 1fr) [wrap] minmax(0, 21rem)
      [copy] minmax(0, 44rem) [end] minmax(var(--gutter), 1fr) [full-end];
    font-size: 1.0625rem;
    line-height: 1.65;
    letter-spacing: normal;
    overflow-wrap: break-word;
  }
  .sheet { display: contents; }
  .sheet > * { grid-column: copy / end; min-width: 0; }
  .sheet > * + *, .sheet > h2 + p { margin-block-start: 1rem; }
  .sheet > .release-meta, .sheet > h1, .sheet > .standfirst, .sheet > .release-actions {
    grid-column: wrap / end;
  }
  .release-meta {
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding-top: clamp(38px, calc(7vw - 6px), 98px);
  }
  .release-label {
    color: #333;
    font: 700 clamp(1rem, 5vw, 1.25rem)/1.55 'Sync Mermaid', Georgia, serif;
  }
  .release-label strong { font-weight: inherit; }
  .sheet > h1 {
    grid-row: 2;
    margin: 18px 0 8px;
    max-width: 19ch;
    text-wrap: balance;
    font-size: clamp(44px, 7.2vw, 92px);
    line-height: 1.02;
    letter-spacing: -.025em;
  }
  .sheet > .standfirst {
    grid-row: 3;
    margin: 0;
    max-width: 54rem;
    color: var(--muted);
    font-size: clamp(18px, 1.8vw, 21px);
    line-height: 1.55;
  }
  .standfirst, .standfirst em { font-style: normal; }
  .release-actions {
    grid-row: 4;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
    padding-bottom: clamp(32px, 4.5vw, 60px);
    border-bottom: 1px solid var(--rule);
  }
  .demo-button, .read-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: .55rem 1.4rem;
    border: 1px solid var(--ink);
    border-radius: 100px;
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: none;
  }
  .demo-button { background: var(--ink); color: white; }
  .demo-button:hover { background: #454545; }
  .read-button:hover { background: var(--wash); }

  .share { position: relative; align-self: center; margin-inline-start: auto; }
  .share summary {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    padding: .5rem .625rem;
    border-radius: 100px;
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }
  .share summary::-webkit-details-marker { display: none; }
  .share summary:hover, .share[open] summary, .share-panel button:hover { background: var(--wash); }
  .share :focus-visible { outline: 2px solid #466395; outline-offset: 2px; }
  .share-panel {
    position: absolute;
    z-index: 1;
    inset-inline-end: 0;
    top: calc(100% + .375rem);
    width: min(15rem, calc(100vw - 2 * var(--gutter)));
    padding: .375rem;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: white;
    box-shadow: 0 8px 28px rgb(0 0 0 / 12%);
    font-size: .9375rem;
  }
  .share-panel button {
    width: 100%;
    min-height: 44px;
    padding: .5rem .75rem;
    border: 0;
    border-radius: 7px;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: start;
    cursor: pointer;
  }
  .share-status:not(:empty), .manual-copy:not([hidden]) {
    display: block;
    margin: .25rem .75rem .5rem;
    font-size: .875rem;
    color: var(--muted);
  }
  .manual-copy input { width: 100%; margin-top: .4rem; padding: .4rem; font: inherit; }

  .contents {
    grid-column: wrap / copy;
    grid-row: 5 / span 2;
    align-self: start;
    margin-top: var(--section-gap);
    padding-right: 2rem;
  }
  .contents p { margin-bottom: .75rem; font-weight: 600; }
  .contents a { display: block; width: fit-content; padding-block: .22rem; color: var(--muted); font-size: .9375rem; }
  .contents a:hover { color: var(--ink); }
  #release-copy { grid-row: 5; margin-top: var(--section-gap); }
  [id] { scroll-margin-top: 6rem; }
  h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -.025em; }
  .sheet > h2 {
    grid-column: wrap / copy;
    align-self: start;
    padding-right: clamp(24px, 4vw, 64px);
  }
  .sheet > * + h2, .sheet > h2 + p { margin-top: var(--section-gap); }
  .sheet > ul { padding-inline-start: 1.3rem; }
  .sheet > ul li + li, .sheet + .sheet > ul:first-child { margin-top: .55rem; }
  .founder-quote {
    border-inline-start: 3px solid var(--ink);
    padding-left: clamp(16px, 2vw, 24px);
    margin-block: 1.75rem .75rem;
    font: 700 clamp(19px, 1.7vw, 23px)/1.45 'Sync Mermaid', Georgia, serif;
  }

  .sheet > .media-block, .sheet > .contact-block {
    grid-column: full / full-end;
    margin-top: var(--section-gap);
    padding: var(--section-gap) var(--gutter);
  }
  .band-inner { max-width: var(--wrap); margin-inline: auto; }
  .media-block { background: var(--wash); }
  .media-block h2, .contact-block h2 { margin-bottom: 1rem; }
  .media-block p { color: var(--muted); }
  .media-block .screenshots-label {
    margin: 2rem 0 .6rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem;
    color: var(--ink);
    font-size: .9rem;
  }
  .screenshots {
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 32px rgb(45 45 45 / 7%);
  }
  #screenshot-viewer {
    position: fixed;
    inset: 0;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #202020;
    color: white;
  }
  #screenshot-viewer[open] { display: flex; flex-direction: column; }
  #screenshot-viewer::backdrop { background: rgb(0 0 0 / 78%); }
  .viewer-toolbar {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem clamp(.75rem, 2vw, 1.5rem);
  }
  .viewer-toolbar strong { margin-inline-end: auto; }
  .viewer-toolbar button {
    min-height: 44px;
    padding: .4rem .75rem;
    border: 1px solid #777;
    border-radius: 100px;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
  }
  .viewer-toolbar button:hover { background: #404040; }
  #screenshot-viewer :focus-visible { outline: 2px solid white; outline-offset: -3px; }
  .viewer-image {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .viewer-image img { flex: none; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: auto; }
  .viewer-image.zoomed img { max-width: none; max-height: none; }
  .contact-block { color: #fff; background: var(--ink); }
  .contact-block .band-inner { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 44rem); }
  .contact-block h2 { grid-row: 1 / span 2; }
  .contact-block p { grid-column: 2; }
  .contact-email { color: #fff; text-decoration-color: #bcb7b2; }
  .end-mark { display: none; }
}

@media screen and (width < 1280px) {
  .brand-bar { min-height: 64px; padding: 12px 16px 12px 24px; }
  #open-menu:not([hidden]) { display: block; }
  #open-menu:not([hidden]) ~ .site-nav { display: none; }
  .brand-bar:has(#open-menu[hidden]) { position: static; flex-wrap: wrap; gap: 1rem; }
  .brand-bar > .site-nav { flex-wrap: wrap; }
}

@media screen and (800px <= width < 1280px) {
  .brand-bar { padding: 16px 16px 16px 48px; }
  .brand img { width: 88.57px; height: 41px; }
  .menu-brand { left: 48px; }
  #close-menu { top: 16.5px; }
}

@media screen and (max-width: 799px) {
  article { grid-template-columns: [full] var(--gutter) [wrap copy] minmax(0, 1fr) [end] var(--gutter) [full-end]; }
  .contents { display: none; }
  .sheet > h2 { grid-column: copy / end; padding: 0; }
  .sheet > h2 + p { margin-top: .9rem; }
  .contact-block .band-inner { display: block; }
}

@page { size: letter; margin: 0; }
@media print {
  .screen-only { display: none; }
  .release-meta { display: contents; }
  .media-block, .contact-block, .band-inner { display: contents; }
  .band-inner > * + * { margin-block-start: .6rem; }
  .contact-block h2 { margin-block-start: 1.6rem; }
  .band-inner > h2 + p { margin-block-start: .35rem; }
  .sheet {
    min-height: 66rem;
    padding: 4.25rem 4.5rem 4rem;
    break-after: page;
  }
  .sheet:first-child { padding-top: 4.875rem; }
  .sheet:last-child { break-after: auto; }
  h1, h2, .screenshots-label { break-after: avoid; }
  li, .screenshots { break-inside: avoid; }
}
