:root {
    color-scheme: light dark;
    --background: #fff;
    --text: #1d1d1f;
    --secondary: #6e6e73;
    --quiet: #6e6e73;
    --line: #e5e5e7;
    --accent: #06c;
    --accent-hover: #004f9e;
    --button-background: #06c;
    --button-hover-background: #004f9e;
    --surface: #fff;
    --header-background: #ffffffd9;
    --page-gutter: 48px;
    --content-width: 1120px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

html { scroll-padding-top: 96px; }

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover { color: var(--accent-hover); }

a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 24px;
    padding: 8px 16px;
    background: var(--background);
    z-index: 30;
}

.skip-link:focus { top: 16px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.site-header,
.site-footer {
    width: min(calc(100% - var(--page-gutter) * 2), var(--content-width));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    padding: 16px max(var(--page-gutter), calc((100% - var(--content-width)) / 2));
    background: var(--header-background);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    backdrop-filter: saturate(160%) blur(20px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-size: 24px;
    font-weight: 650;
    letter-spacing: -0.6px;
    text-decoration: none;
}

.brand img { width: 36px; height: 36px; border-radius: 8px; }

.site-header nav,
.site-footer div {
    display: flex;
    align-items: center;
    gap: 26px;
}

.site-header nav a,
.site-footer a {
    color: var(--secondary);
    font-size: 14px;
    text-decoration: none;
}

.site-header nav a:not(.button):hover,
.site-footer a:hover { color: var(--accent); }

.site-header nav a[aria-current="page"],
.site-footer a[aria-current="page"] { color: var(--text); }

.site-header nav .button {
    min-height: 36px;
    padding: 6px 16px;
    color: #fff;
    font-size: 14px;
}

.landing { overflow: clip; }

.content-width {
    width: min(calc(100% - var(--page-gutter) * 2), var(--content-width));
    margin-inline: auto;
}

.hero {
    padding-top: 64px;
    text-align: center;
}

.app-icon {
    display: block;
    margin: 0 auto 28px;
    border-radius: 20px;
}

h1,
h2,
h3,
p { margin-top: 0; }

.hero h1 {
    margin: 0 var(--page-gutter) 24px;
    font-size: clamp(52px, 7.6vw, 88px);
    font-weight: 650;
    letter-spacing: -0.06em;
    line-height: 1.04;
}

.hero-description {
    width: calc(100% - var(--page-gutter) * 2);
    max-width: 760px;
    margin: 0 auto 22px;
    color: var(--secondary);
    font-size: 21px;
    letter-spacing: -0.4px;
    line-height: 1.55;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-inline: var(--page-gutter);
}

.system-requirements {
    margin: 18px var(--page-gutter) 0;
    color: var(--secondary);
    font-size: 13px;
    line-height: 1.6;
}

.app-screenshot {
    width: min(calc(100% - var(--page-gutter) * 2), var(--content-width));
    margin-inline: auto;
    margin-bottom: 0;
}

.app-screenshot img {
    display: block;
    /* Both 3840px screenshots include 112px of padding on each side. Align their 3616px window frames with the content while letting shadows extend into the gutters. */
    width: calc(100% * 3840 / 3616);
    margin-inline: calc(-100% * 112 / 3616);
    height: auto;
}

.hero-screenshot {
    margin-top: 38px;
    filter: drop-shadow(0 20px 28px #00000018);
}

.catalog-section { padding-block: 88px 112px; }

.section-intro {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
    gap: 72px;
}

.landing h2 {
    margin-bottom: 0;
    font-size: clamp(36px, 4.3vw, 52px);
    font-weight: 650;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

.section-description {
    margin-bottom: 0;
    color: var(--secondary);
    font-size: 19px;
    line-height: 1.6;
}

.feature-columns,
.roadmap-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
    margin-top: 64px;
}

.landing h3 {
    margin-bottom: 12px;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.3;
}

.feature-columns p,
.editing-details p,
.roadmap-columns p {
    margin-bottom: 0;
    color: var(--secondary);
    font-size: 16px;
    line-height: 1.65;
}

.editing-section {
    padding-block: 104px 96px;
    background: #000;
    color: #f5f5f7;
    --secondary: #a1a1a6;
}

.section-heading {
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
}

.section-heading > p:last-child {
    max-width: 720px;
    margin: 24px auto 0;
    color: var(--secondary);
    font-size: 20px;
    line-height: 1.6;
}

.viewer-screenshot { margin-top: 40px; }

.editing-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 900px;
    margin-top: 44px;
}

.craft-section {
    max-width: 820px;
    padding-block: 120px;
    text-align: center;
}

.craft-section > p {
    max-width: 760px;
    margin: 28px auto 0;
    color: var(--secondary);
    font-size: 20px;
    line-height: 1.6;
}

.craft-section > .text-link { margin-top: 24px; }

.roadmap-section {
    padding-block: 88px 104px;
    border-top: 1px solid var(--line);
}

.roadmap-columns { margin-top: 40px; }

.roadmap-columns h3 { margin-top: 0; }

.testing-section {
    padding-block: 80px 104px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.testing-section > p:first-of-type {
    margin: 24px auto 28px;
    color: var(--secondary);
    font-size: 20px;
}

.signup-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin-inline: auto;
}

.signup-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.signup-form input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.testing-section > .text-link { margin-top: 28px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 44px;
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--button-background);
    color: #fff;
    font-size: 16px;
    font-weight: 550;
    text-decoration: none;
}

.button:hover {
    background: var(--button-hover-background);
    color: #fff;
}

.signup-form .button {
    flex-shrink: 0;
    border: 0;
    font-family: inherit;
}

.signup-form .button:disabled {
    background: var(--button-background);
    opacity: 0.55;
    cursor: default;
}

.site-footer {
    min-height: 86px;
    padding-block: 24px;
    border-top: 1px solid var(--line);
    color: var(--quiet);
    font-size: 12px;
}

.site-footer a { font-size: inherit; }

.error-page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.error-content {
    flex: 1;
    width: min(calc(100% - var(--page-gutter) * 2), 760px);
    margin-inline: auto;
    padding-block: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.retro-camera {
    width: 80px;
    height: 64px;
    margin-bottom: 28px;
}

.error-content h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 650;
    letter-spacing: -0.05em;
    line-height: 1.12;
}

.error-content p {
    max-width: 460px;
    margin: 24px 0 32px;
    color: var(--secondary);
    font-size: 18px;
}

.about {
    width: min(calc(100% - var(--page-gutter) * 2), 760px);
    margin: 80px auto 96px;
}

.about h1 {
    margin-bottom: 32px;
    font-size: clamp(40px, 5.5vw, 60px);
    font-weight: 650;
    letter-spacing: -0.05em;
    line-height: 1.12;
}

.about p {
    margin-bottom: 28px;
    font-size: 18px;
    line-height: 1.85;
}

.about-introduction {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    margin-bottom: 36px;
}

.about-portrait {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.about .story-intro {
    margin-bottom: 0;
    font-size: 23px;
    letter-spacing: -0.02em;
    line-height: 1.6;
}

.about-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.policy {
    width: min(calc(100% - var(--page-gutter) * 2), 690px);
    margin: 54px auto 80px;
    overflow-wrap: anywhere;
}

.page-heading { margin-bottom: 34px; }

.page-heading h1 {
    margin-bottom: 12px;
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 650;
    letter-spacing: -0.05em;
    line-height: 1.2;
}

.updated {
    margin-bottom: 0;
    color: var(--quiet);
    font-size: 13px;
}

.policy p {
    margin-bottom: 16px;
    color: var(--secondary);
}

.policy .policy-intro {
    color: var(--text);
    margin-bottom: 36px;
}

.policy section + section { margin-top: 30px; }

.policy h2 {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.45px;
    line-height: 1.4;
}

.policy strong { color: var(--text); }

.contact-page {
    width: min(calc(100% - var(--page-gutter) * 2), 560px);
    margin: 54px auto 80px;
}

.contact-page .page-heading p { color: var(--secondary); }

.contact-form {
    display: grid;
    gap: 24px;
}

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    font-size: 14px;
    font-weight: 550;
}

.form-field input,
.form-field select,
.form-field textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
}

.form-field select {
    -webkit-appearance: none;
    appearance: none;
    height: 52px;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 16px center;
    background-size: 12px 8px;
    background-repeat: no-repeat;
}

.form-field textarea {
    min-height: 200px;
    resize: vertical;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.form-privacy {
    margin: 0;
    color: var(--secondary);
    font-size: 13px;
}

.contact-form .button {
    justify-self: start;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.contact-honeypot { display: none; }

.form-notice {
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
}

.form-success {
    text-align: center;
    color: #246b36;
    border-color: #a3d6af;
    background: #eff9f1;
}

.form-notice ul {
    margin: 0;
    padding-left: 20px;
}

.form-error { border-color: var(--accent); }

@media (prefers-color-scheme: dark) {
    :root {
        --background: #000;
        --text: #f5f5f7;
        --secondary: #a1a1a6;
        --quiet: #a1a1a6;
        --line: #303033;
        --accent: #2997ff;
        --accent-hover: #69b7ff;
        --surface: #111;
        --header-background: #000000d9;
    }

    .form-success {
        color: #9ad8a9;
        border-color: #315b3b;
        background: #102418;
    }
}

@media (max-width: 800px) {
    .section-intro { grid-template-columns: 1fr; gap: 24px; }
    .section-description { max-width: 620px; }
    .feature-columns,
    .roadmap-columns { gap: 28px; }
    .editing-details { gap: 40px; }
    .hero-description { font-size: 19px; }
    .wide-only { display: none; }
}

@media (max-width: 560px) {
    :root { --page-gutter: 24px; }

    .site-header { padding-block: 14px; gap: 16px; }
    .site-header nav { gap: 14px; }
    .site-header nav .button { padding-inline: 12px; font-size: 13px; }

    .site-footer div { gap: 20px; }

    .nav-features,
    .nav-contact { display: none; }
    .hero { padding-top: 44px; }
    .hero h1 { font-size: clamp(46px, 11.5vw, 64px); }
    .hero-screenshot { margin-top: 28px; }

    .hero-description { font-size: 18px; }
    .system-requirements span { display: block; }
    .system-requirements .requirements-divider { display: none; }
    .catalog-section { padding-block: 48px 64px; }
    .section-description { font-size: 18px; }
    .feature-columns,
    .roadmap-columns,
    .editing-details { grid-template-columns: 1fr; gap: 32px; }
    .feature-columns { margin-top: 40px; }
    .roadmap-columns { margin-top: 32px; }
    .editing-section { padding-block: 64px; }
    .section-heading > p:last-child { font-size: 18px; }
    .viewer-screenshot { margin-top: 28px; }
    .editing-details { margin-top: 32px; }
    .craft-section { padding-block: 72px; }
    .craft-section > p { font-size: 18px; }
    .roadmap-section { padding-block: 64px; }
    .testing-section { padding-block: 64px; }
    .testing-section > p:first-of-type { font-size: 18px; }
    .policy { margin-top: 34px; }
    .about { margin-block: 44px 64px; }
    .about-introduction { grid-template-columns: 1fr; gap: 24px; }
    .about-portrait { width: 144px; }
    .about .story-intro { font-size: 21px; }
    .about-actions { gap: 20px; }
    .contact-page { margin-top: 34px; }
    .site-footer { gap: 16px; }
}
