:root {
    --yellow: #ffd700;
    --orange: #ff9500;
    --orange-dark: #a33a00;
    --blue: #0056d6;
    --ink: #141414;
    --ink-soft: #3d3a2e;
    --card: #ffffff;
    --line: rgba(20, 20, 20, 0.14);
    --radius: 18px;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --photo: min(160px, 25vw, 30vh);
    --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--yellow);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
}

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

a {
    color: var(--blue);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--orange-dark);
}

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

h1,
h2,
h3 {
    font-family: var(--serif);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

figure {
    margin: 0;
}

h1 {
    font-size: clamp(2.4rem, 7vw, 4.4rem);
}

h2 {
    font-size: clamp(1.6rem, 4vw, 2.3rem);
}

h3 {
    font-size: 1.3rem;
}

p {
    margin: 0 0 1em;
}

.wrap {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 16px;
    top: 16px;
    background: var(--card);
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 100;
}

.site-header {
    padding: 22px 0 10px;
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.brand {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.brand:hover {
    color: var(--ink);
}

.brand {
    display: block;
    flex: 0 1 auto;
}

.brand picture {
    display: block;
}

.brand img {
    width: clamp(150px, 42vw, 280px);
    height: auto;
}

main {
    flex: 1;
    padding: 24px 0 max(96px, calc(var(--photo) + 24px));
}

.hero {
    padding: clamp(24px, 6vw, 72px) 0 clamp(16px, 4vw, 40px);
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--orange-dark);
    margin-bottom: 0.6em;
}

.lead {
    font-size: clamp(1.1rem, 2.4vw, 1.35rem);
    color: var(--ink-soft);
    max-width: 38em;
}

.card {
    border-top: 2px solid var(--ink);
    padding: 28px 0 8px;
    margin-bottom: 32px;
}

.card > :last-child {
    margin-bottom: 0;
}

.card-head h2,
.card-head h3 {
    margin: 0 0 16px;
}

.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}

.split > * {
    min-width: 0;
}

@media (min-width: 820px) {
    .split {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.2em;
}

.feature-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.7em;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 12px;
    height: 12px;
    background: var(--orange);
}

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 12px;
    margin: 0 0 1.4em;
    padding: 0;
    list-style: none;
}

.facts li {
    border-left: 3px solid var(--orange);
    padding: 2px 0 2px 12px;
    font-size: 0.95rem;
}

.facts strong {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange-dark);
}

.app-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1em;
}

.app-title img {
    width: 72px;
    height: 72px;
    border-radius: 16px;
    border: 2px solid var(--ink);
}

.app-title h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin: 0;
}

.badge {
    display: inline-block;
    padding: 12px 22px;
    background: var(--ink);
    color: var(--yellow);
    font-weight: 700;
    text-decoration: none;
}

.badge:hover {
    color: var(--yellow);
    background: #000;
}

.iphone {
    position: relative;
    width: min(320px, 78vw);
    margin: 0 auto;
    padding: 11px;
    border-radius: 58px;
    background: linear-gradient(145deg, #3a3a3c, #121214 45%, #2c2c2e);
    border: 2px solid #6e6e73;
}

.iphone::before,
.iphone::after {
    content: "";
    position: absolute;
    width: 4px;
    border-radius: 2px;
    background: #6e6e73;
}

.iphone::before {
    left: -5px;
    top: 22%;
    height: 12%;
}

.iphone::after {
    right: -5px;
    top: 27%;
    height: 16%;
}

.iphone img {
    width: 100%;
    border-radius: 47px;
    aspect-ratio: 1206 / 2622;
    object-fit: cover;
    background: var(--yellow);
}

.iphone-caption {
    text-align: center;
    margin-top: 18px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.prose {
    max-width: 46em;
}

.prose h2 {
    margin-top: 1.4em;
}

.prose h3 {
    margin-top: 1.2em;
}

.prose ul {
    padding-left: 1.2em;
}

.placeholder {
    background: rgba(255, 149, 0, 0.25);
    border-radius: 4px;
    padding: 0 4px;
}

.contact-mail {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 700;
    word-break: break-word;
}

.site-footer {
    border-top: 1.5px solid var(--line);
    padding: 20px 0 24px;
    font-size: 0.95rem;
}

.site-footer .wrap {
    padding-right: max(var(--gutter), calc(var(--photo) + 24px));
}

.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    align-items: center;
}

.site-footer nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding: 0;
}

.site-footer a {
    color: var(--ink);
    font-weight: 600;
}

.site-footer a:hover {
    color: var(--orange-dark);
}

.site-footer small {
    color: var(--ink-soft);
}

.bird {
    position: fixed;
    right: 12px;
    bottom: 0;
    width: var(--photo);
    z-index: 50;
    pointer-events: none;
    user-select: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

@media print {
    .bird {
        display: none;
    }

    body {
        background: #fff;
    }
}

.back {
    margin: 0;
    font-weight: 600;
}

.back a {
    color: var(--ink);
}

.apps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
    gap: 0 48px;
    margin-top: 16px;
}

.app-entry {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border-top: 2px solid var(--ink);
    padding: 24px 0;
    color: var(--ink);
    text-decoration: none;
}

.app-entry:hover {
    color: var(--ink);
}

.app-entry img {
    flex: none;
    width: 96px;
    height: 96px;
    border-radius: 22px;
    border: 2px solid var(--ink);
}

.app-entry h2 {
    font-size: clamp(1.5rem, 3.5vw, 1.9rem);
    margin-bottom: 0.3em;
}

.app-entry:hover h2 {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.app-entry p {
    color: var(--ink-soft);
    margin-bottom: 0.5em;
}

.app-meta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--orange-dark);
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.site-nav a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.55);
    color: var(--ink);
}

.site-nav a[aria-current="page"] {
    background: var(--ink);
    color: var(--yellow);
}

.side-image {
    width: min(360px, 80vw);
    margin: 0 auto;
    border-radius: 50%;
}

@media print {
    .site-nav {
        display: none;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.lessons {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 48px 40px;
}

.lesson {
    display: block;
    color: var(--ink);
    text-decoration: none;
    text-align: center;
}

.lesson:hover {
    color: var(--ink);
}

.lesson img {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 1;
    margin: 0 auto 16px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.lesson:hover img {
    transform: scale(1.03);
}

.lesson h2 {
    font-size: clamp(1.4rem, 3vw, 1.7rem);
    margin-bottom: 0.25em;
}

.lesson:hover h2 {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.lesson p {
    color: var(--ink-soft);
    max-width: 22em;
    margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
    .lesson img {
        transition: none;
    }

    .lesson:hover img {
        transform: none;
    }
}

.hero.split h1 {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.inline-graphic {
    display: inline-block;
    height: 1.4em;
    width: auto;
    vertical-align: -0.38em;
}

.mail-graphic {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    max-width: 100%;
}

.mail-graphic img {
    display: block;
    height: clamp(1.75rem, 4.4vw, 2.3rem);
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
}

.contact-mail {
    display: inline-block;
}

@media (min-width: 820px) {
    .split.split-even {
        grid-template-columns: 1fr 1fr;
    }
}

.ipad {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: clamp(8px, 1.6vw, 14px);
    border-radius: clamp(18px, 3.2vw, 30px);
    background: linear-gradient(145deg, #3a3a3c, #121214 45%, #2c2c2e);
    border: 2px solid #6e6e73;
}

.ipad img {
    width: 100%;
    border-radius: clamp(8px, 1.6vw, 16px);
    aspect-ratio: 1600 / 1112;
    object-fit: cover;
    background: #111;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 32px 40px;
}

.feature-columns {
    columns: 2 22em;
    column-gap: 40px;
}

.feature-columns li {
    break-inside: avoid;
}
