/* Traders of Venice marketing page (venice.html).
   Standalone: the game has its own light palette and does not share styles.css.
   One light design on purpose; there is no dark-mode variant. */

:root {
    color-scheme: only light;

    /* Palette from the app's ColorScheme.swift */
    --action: #B36633;
    --header: #804D33;
    --card: #F2E6D9;
    --brown: #66331A;
    --dark-brown: #331A0D;
    --parchment: #F5EBD6;
    --parchment-light: #FAF5E6;
    --parchment-dark: #D9C7A6;
    --ink: #402E1F;

    --serif: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 14px;
    --shadow: 0 10px 30px rgba(64, 46, 31, 0.18);
    --header-height: 56px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
p,
figure,
ol,
ul {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.15;
    text-wrap: balance;
}

a {
    color: var(--header);
    text-underline-offset: 0.15em;
}

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

a:focus-visible {
    outline: 3px solid var(--action);
    outline-offset: 3px;
    border-radius: 2px;
}

[id] {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

.skip-link {
    position: absolute;
    left: 0.5rem;
    top: -4rem;
    z-index: 30;
    padding: 0.6rem 1rem;
    background: #fff;
    color: var(--brown);
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    top: 0;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.wrap--narrow {
    max-width: 720px;
}

/* ---------- Pre-launch label ----------
   A parchment placard, the material of the game's notices. Deliberately not a
   button: no action colour, no shadow, no hover, no pointer. */
.soon {
    display: inline-block;
    padding: 0.7em 1.25em;
    font-family: var(--serif);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
    background: var(--parchment);
    border: 1px solid var(--parchment-dark);
    border-radius: 6px;
    cursor: default;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header);
    color: #fff;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-height);
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.app-icon {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 22.37%;
}

.site-header__name {
    font-family: var(--serif);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-header__soon {
    display: none;
    font-size: 0.875rem;
    color: var(--parchment);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    isolation: isolate;
    color: #fff;
    background: var(--dark-brown) url("images/venice/welcome-bg.webp") center 68% / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, 0.42);
}

.hero__inner {
    display: grid;
    gap: 2.5rem;
    padding-top: 1.25rem;
    padding-bottom: 3rem;
    text-align: center;
}

.hero__emblem {
    display: block;
    width: 84px;
    height: 84px;
    margin: 0 auto 0.35rem;
}

.hero__eyebrow {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--parchment);
}

.hero h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(2.125rem, 1.35rem + 3.6vw, 3.75rem);
    line-height: 1.08;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero__lede {
    max-width: 34em;
    margin: 0 auto 1.1rem;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.hero__release {
    margin-top: 0.6rem;
}

.hero__trust {
    margin-top: 1rem;
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.3;
}

.hero__small {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
}

/* ---------- Screenshots ---------- */
.shot img {
    display: block;
    width: 100%;
    box-shadow: var(--shadow);
}

.shot figcaption,
.map figcaption {
    margin-top: 0.9rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--header);
    text-align: center;
    text-wrap: balance;
}

.hero .hero__shot figcaption {
    color: var(--parchment);
}

.shot--phone {
    width: min(78vw, 320px);
    margin-inline: auto;
}

.shot--phone.hero__shot {
    width: min(70vw, 300px);
}

.shot--phone.shot--large {
    width: min(92vw, 400px);
}

/* Elliptical radii keep the corners circular on a 1320 x 2868 capture. */
.shot--phone img {
    border-radius: 9.5% / 4.37%;
}

/* Whole 2064 x 2752 iPad captures. The radius is large enough to hide the
   system's resize handle in the bottom-right corner (needs 5.5% of the width). */
.shot--tablet img {
    border: 1px solid var(--parchment-dark);
    border-radius: 6% / 4.5%;
}

.shot--crop img {
    border: 1px solid var(--parchment-dark);
    border-radius: var(--radius);
    background: #fff;
}

/* ---------- Sections ---------- */
.section {
    padding: 3.5rem 0;
}

.section--parchment {
    background: var(--parchment);
}

.section--parchment-light {
    background: var(--parchment-light);
}

.section--centered {
    text-align: center;
}

.section__title {
    margin-bottom: 1.25rem;
    font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
}

.lede {
    max-width: 36em;
    font-size: 1.125rem;
}

.lede + .lede {
    margin-top: 1rem;
}

.section--centered .lede {
    margin-inline: auto;
}

.section__link {
    margin-top: 1.75rem;
}

/* ---------- How it plays ---------- */
.steps {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step {
    padding: 1.25rem;
    background: var(--card);
    border-radius: var(--radius);
    counter-increment: step;
}

.step::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    margin-bottom: 0.75rem;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: var(--header);
    border-radius: 50%;
}

.step h3 {
    margin-bottom: 0.4rem;
    font-size: 1.3125rem;
}

.closing-line {
    margin-top: 2rem;
    font-family: var(--serif);
    font-size: 1.3125rem;
    line-height: 1.35;
    text-align: center;
}

.how__shot {
    max-width: 760px;
    margin: 2.5rem auto 0;
}

/* ---------- Cities and goods ---------- */
.map {
    max-width: 1400px;
    margin: 2rem auto 0;
}

.map img {
    display: block;
    width: 100%;
}

.map figcaption {
    padding: 0 1.25rem;
}

.cities {
    display: grid;
    gap: 2.5rem;
    margin-top: 3rem;
}

.cities > *,
.split > *,
.work > *,
.trio > * {
    min-width: 0;
}

.cities__table h3 {
    margin-bottom: 1rem;
    font-size: 1.375rem;
}

.city-table {
    width: 100%;
    border: 1px solid var(--parchment-dark);
    border-radius: var(--radius);
    border-spacing: 0;
    overflow: hidden;
    font-size: 0.9375rem;
    text-align: left;
}

.city-table th,
.city-table td {
    padding: 0.5rem 0.6rem;
}

.city-table thead th {
    color: #fff;
    background: var(--header);
    font-weight: 600;
}

.city-table tbody th {
    font-weight: 600;
}

.city-table tbody tr:nth-child(even) {
    background: var(--card);
}

.cities__goods {
    margin-top: 1rem;
}

.cities__shot {
    width: min(92vw, 480px);
    margin-inline: auto;
}

/* ---------- Text beside a screenshot ---------- */
.split {
    display: grid;
    gap: 2.5rem;
}

/* ---------- Routes and warehouses ---------- */
.work {
    display: grid;
    gap: 1.75rem;
    margin-top: 2rem;
}

.work + .work {
    margin-top: 3rem;
}

.work__item {
    padding-left: 1rem;
    border-left: 3px solid var(--parchment-dark);
}

.work__item h3 {
    margin-bottom: 0.35rem;
    font-size: 1.375rem;
}

.work__item p {
    max-width: 34em;
}

.work--warehouse .work__shot {
    width: min(80vw, 300px);
    margin-inline: auto;
}

/* ---------- Ways to play ---------- */
.modes {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.mode h3 {
    margin-bottom: 0.3rem;
    font-size: 1.3125rem;
}

.mode p {
    max-width: 36em;
}

/* ---------- Learn, earn, sound ---------- */
.trio {
    display: grid;
    gap: 1rem;
}

.trio__card {
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--parchment-dark);
    border-radius: var(--radius);
}

.trio__title {
    margin-bottom: 0.75rem;
    font-size: 1.625rem;
}

.badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.9rem 1.25rem;
    margin: 1.1rem 0 1.25rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.badge img {
    flex: none;
    width: 64px;
    height: 64px;
}

.badge figcaption {
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--header);
}

/* ---------- No strings ---------- */
.tiles {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
    padding: 0;
    list-style: none;
}

.tile {
    padding: 1.5rem 1.25rem;
    background: var(--card);
    border-radius: var(--radius);
}

.tile h3 {
    margin-bottom: 0.4rem;
    font-size: 1.375rem;
}

/* ---------- FAQ ---------- */
.faq {
    margin-top: 2rem;
}

.faq__item {
    margin-bottom: 1.6rem;
    break-inside: avoid;
}

.faq__item h3 {
    margin-bottom: 0.3rem;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.4;
}

.faq__item p + p {
    margin-top: 0.4rem;
}

/* ---------- Final call ---------- */
.final-cta {
    padding: 4.5rem 0;
}

.final-cta .soon {
    margin-top: 1.75rem;
}

.final-cta__small {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--header);
}

/* ---------- Footer ---------- */
.footer {
    padding: 2.5rem 0;
    font-size: 0.875rem;
    color: var(--parchment);
    background: var(--brown);
    text-align: center;
}

.footer a {
    color: #fff;
}

.footer a:focus-visible {
    outline-color: var(--parchment);
}

.footer__links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.6rem;
}

.footer__credit {
    max-width: 46em;
    margin: 1.5rem auto 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--parchment-dark);
}

/* ---------- Small phones ----------
   Keep the hero's trust line above the fold on a 375 x 553 Safari viewport,
   and the city table inside a 320 px screen. */
@media (max-width: 400px) {
    .hero__inner {
        padding-top: 0.75rem;
    }

    .hero__emblem {
        width: 64px;
        height: 64px;
    }

    .hero h1 {
        margin-bottom: 0.6rem;
    }

    .hero__lede {
        margin-bottom: 0.9rem;
    }
}

@media (max-width: 359px) {
    .city-table {
        font-size: 0.8125rem;
    }

    .city-table th,
    .city-table td {
        padding: 0.45rem 0.4rem;
    }
}

/* ---------- Wider screens ---------- */
@media (min-width: 560px) {
    .site-header__soon {
        display: block;
    }

    .city-table {
        font-size: 1rem;
    }

    .city-table th,
    .city-table td {
        padding: 0.55rem 0.9rem;
    }

    .tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 760px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 860px) {
    .wrap {
        padding: 0 2rem;
    }

    .section {
        padding: 5.5rem 0;
    }

    .hero__inner {
        grid-template-columns: 1fr 300px;
        align-items: center;
        gap: 4rem;
        padding-top: 4rem;
        padding-bottom: 4.5rem;
        text-align: left;
    }

    .hero__emblem {
        width: 120px;
        height: 120px;
        margin: 0 0 0.5rem -14px;
    }

    .hero__eyebrow {
        font-size: 1rem;
    }

    .hero__lede {
        margin-left: 0;
        font-size: 1.1875rem;
    }

    .shot--phone.hero__shot {
        width: 300px;
    }

    .cities {
        grid-template-columns: 1fr minmax(0, 480px);
        gap: 3.5rem;
        align-items: start;
    }

    .cities__shot {
        width: auto;
    }

    .split {
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 4rem;
    }

    .split .shot--phone {
        width: 320px;
    }

    .split .shot--phone.shot--large {
        width: 400px;
    }

    .work--routes {
        grid-template-columns: 1fr minmax(0, 620px);
        align-items: center;
        gap: 3.5rem;
    }

    /* The tall warehouse card runs down the left; items 2 to 4 are spaced along it. */
    .work--warehouse {
        grid-template-columns: 300px 1fr;
        column-gap: 4rem;
        align-items: center;
    }

    .work--warehouse .work__shot {
        grid-column: 1;
        grid-row: 1 / span 3;
        width: 300px;
    }

    .work--warehouse .work__item {
        grid-column: 2;
    }

    .faq {
        columns: 2;
        column-gap: 4rem;
    }

    .final-cta {
        padding: 7rem 0;
    }
}

@media (min-width: 960px) {
    .trio {
        grid-template-columns: 1fr 1.55fr 1fr;
    }

    .tiles {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1400px) {
    .map img {
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }
}
