* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

body {
    margin: 0;
    background: #fafafa;
    color: #222;
    font-family: neue-haas-grotesk-text, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}

a {
    color: #111;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: #526d51;
}

.page {
    width: min(920px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px 0 64px;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 42px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
}

.brand {
    color: #111;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.hero {
    border-bottom: 1px solid #e6e6e2;
    margin-bottom: 34px;
    padding-bottom: 30px;
}

.eyebrow {
    color: #6a6a5e;
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 8px;
    text-transform: uppercase;
}

h1 {
    color: #111;
    font-size: clamp(34px, 7vw, 58px);
    line-height: 1;
    margin: 0 0 16px;
}

.lede {
    color: #444;
    font-size: 18px;
    max-width: 680px;
    margin: 0;
}

.topic-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 28px 0 38px;
}

.topic-card {
    background: #fff;
    border: 1px solid #e6e6e2;
    border-radius: 8px;
    padding: 18px;
    text-decoration: none;
}

.topic-card:hover {
    border-color: #b9c8a7;
    color: #222;
}

.topic-card strong {
    display: block;
    color: #111;
    font-size: 18px;
    margin-bottom: 6px;
}

.topic-card span {
    color: #575757;
    display: block;
    font-size: 14px;
}

.section {
    border-bottom: 1px solid #e6e6e2;
    margin-bottom: 30px;
    padding-bottom: 30px;
}

.section:last-child {
    border-bottom: 0;
}

.section-title {
    color: #111;
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
}

.starter {
    background: #f2f6ef;
    border: 1px solid #dce6d5;
    border-radius: 8px;
    padding: 18px;
}

.irish-line {
    color: #111;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px;
}

.translation,
.pronunciation,
.note {
    color: #555;
    margin: 0;
}

.pronunciation {
    color: #2f5c3b;
    font-size: 14px;
    margin-top: 6px;
}

.dialogue {
    display: grid;
    gap: 12px;
}

.dialogue-line {
    background: #fff;
    border: 1px solid #e6e6e2;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: 42px 1fr;
    padding: 14px;
}

.speaker {
    align-items: center;
    background: #111;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.phrase {
    color: #111;
    display: block;
    font-weight: 650;
}

.meaning {
    color: #555;
    display: block;
    font-size: 14px;
    margin-top: 2px;
}

.vocab {
    border: 1px solid #e6e6e2;
    border-radius: 8px;
    overflow: hidden;
}

.vocab-row {
    background: #fff;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr 1.1fr auto;
    padding: 13px 14px;
}

.vocab-row + .vocab-row {
    border-top: 1px solid #e6e6e2;
}

.vocab-head {
    background: #f4f4f1;
    color: #666;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.listen {
    color: #526d51;
    font-size: 14px;
    font-weight: 650;
}

.practice-list {
    margin: 0;
    padding-left: 20px;
}

.practice-list li {
    margin-bottom: 8px;
}

.source-note {
    color: #666;
    font-size: 13px;
    margin-top: 26px;
}

@media (max-width: 720px) {
    .page {
        width: min(100% - 28px, 920px);
        padding-top: 28px;
    }

    .top-nav {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 30px;
    }

    .topic-grid {
        grid-template-columns: 1fr;
    }

    .vocab-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .vocab-head {
        display: none;
    }

    .listen {
        margin-top: 4px;
    }
}
