/* Light page, with the logo's navy as the one accent color. */

:root {
    --navy: #325075;
    --navy-light: #587292;
    --text: #1f2933;
    --muted: #5f6b7a;
    --rule: #e3e8ef;
    --tint: #f4f6f9;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

#container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    padding: 40px 0 0;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 32px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.brand {
    display: inline-block;
}

/* Dropdowns (language menu; page menu on phones): native <details>, no JavaScript. */
.dropdown {
    position: relative;
    font-size: 15px;
}

.dropdown summary {
    cursor: pointer;
    list-style: none;
    padding: 6px 12px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    color: var(--navy);
    white-space: nowrap;
}

.dropdown summary::-webkit-details-marker {
    display: none;
}

.dropdown summary::after {
    content: " ▾";
}

.dropdown ul {
    position: absolute;
    right: 0;
    z-index: 10;
    margin: 4px 0 0;
    padding: 6px 0;
    list-style: none;
    min-width: 140px;
    background: #ffffff;
    border: 1px solid var(--rule);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(31, 41, 51, 0.12);
}

.dropdown li + li {
    margin-top: 0;
}

.dropdown li a {
    display: block;
    padding: 6px 14px;
    color: var(--text);
    text-decoration: none;
}

.dropdown li a:hover {
    background: var(--tint);
}

.dropdown li a[aria-current="true"],
.dropdown li a[aria-current="page"] {
    font-weight: 700;
    color: var(--navy);
}

.brand img {
    display: block;
    width: 216px;
    height: auto;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 20px;
    padding-bottom: 14px;
    font-size: 15px;
    font-weight: 500;
}

.site-header nav a {
    color: var(--navy);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
    border-bottom-color: var(--navy);
}

.site-header nav a[aria-current="page"] {
    font-weight: 700;
}

h1 {
    color: var(--navy);
    font-size: 30px;
    line-height: 1.25;
    margin: 0 0 16px;
}

h2 {
    color: var(--navy);
    font-size: 21px;
    line-height: 1.3;
    margin: 36px 0 8px;
}

h3 {
    font-size: 17px;
    margin: 24px 0 4px;
}

p, ul, ol {
    margin: 0 0 16px;
}

li + li {
    margin-top: 6px;
}

a {
    color: var(--navy);
}

a:hover {
    color: var(--navy-light);
}

address {
    font-style: normal;
}

.tagline {
    color: var(--navy-light);
    font-size: 19px;
    font-style: italic;
    margin-top: -8px;
}

.app-icon {
    float: right;
    width: 128px;
    height: 128px;
    margin: 0 0 16px 24px;
    border-radius: 28px;
    box-shadow: 0 2px 10px rgba(31, 41, 51, 0.15);
}

.button {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 8px;
    background: var(--navy);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.button:hover {
    background: var(--navy-light);
    color: #ffffff;
}

.note {
    color: var(--muted);
    font-size: 15px;
}

.site-footer {
    margin-top: 64px;
    padding: 24px 0 48px;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 14px;
}

.site-footer a {
    color: var(--muted);
}

@media (max-width: 520px) {
    .brand img {
        width: 180px;
    }

    .app-icon {
        width: 96px;
        height: 96px;
        border-radius: 21px;
        margin-left: 16px;
    }
}

.contact-form {
    margin: 24px 0 32px;
    max-width: 560px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin: 16px 0 4px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c5ced9;
    border-radius: 6px;
    font: inherit;
    color: var(--text);
    background: #ffffff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--navy-light);
    outline-offset: 1px;
    border-color: var(--navy-light);
}

.contact-form .note {
    margin: 16px 0;
}

.contact-form .button {
    border: 0;
    cursor: pointer;
}

/* Honeypot: hidden from people, left in the form for bots. */
.contact-form .hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.header-controls {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

/* Phones: the page menu becomes a dropdown next to the language menu. */
.nav-menu,
.lang-code {
    display: none;
}

@media (max-width: 600px) {
    .nav-menu {
        display: block;
    }

    .nav-menu ul {
        min-width: 200px;
    }

    .site-header nav.nav-desktop {
        display: none;
    }

    .site-header {
        padding-bottom: 16px;
    }

    .brand img {
        width: 150px;
    }

    .lang-name {
        display: none;
    }

    .lang-code {
        display: inline;
    }
}

.screenshot {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(31, 41, 51, 0.18);
}

/* Phone screenshots: narrow, centered. */
.screenshot.phone {
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 24px;
}

.screenshot-figure {
    margin: 24px 0 32px;
}

.screenshot-figure .screenshot {
    margin: 0;
}

.screenshot-figure figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
    text-align: center;
}

/* Store badges: official App Store / Google Play artwork (en, de), and
   badge-sized text buttons for Esperanto, which has no official badges. */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 20px 0;
}

.store-badges a {
    display: inline-flex;
}

.store-badges img {
    display: block;
    height: 48px;
    width: auto;
}

.store-badges img.google {
    aspect-ratio: 239 / 70.9;
}

.store-badges .button {
    height: 48px;
    align-items: center;
    padding: 0 22px;
}

.store-badges.small {
    margin: 8px 0 0;
}

.store-badges.small img,
.store-badges.small .button {
    height: 40px;
}

.store-badges.small .button {
    padding: 0 16px;
    font-size: 14px;
}

/* Secondary action (e.g. "Visit whattheshell.games →"): outlined, quieter than the badges. */
.button.secondary {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--navy);
    font-weight: 500;
}

.button.secondary:hover {
    background: var(--tint);
    color: var(--navy);
}

/* App names on the home page link to their pages but still read as headings. */
h2 a {
    color: inherit;
    text-decoration: none;
}

h2 a:hover {
    text-decoration: underline;
}

/* Direct downloads with no official store badge (Sonow for Mac): black, to
   sit next to the black App Store badge. */
.button.dark {
    background: #000000;
    color: #ffffff;
}

.button.dark:hover {
    background: #333333;
    color: #ffffff;
}
