/* Mouton landing page
   One typeface (Rubik, the app's date numerals), the app's own palette, and
   the timeline itself as the centrepiece. */

:root {
    --butter: #f8edcb;
    --paper: #f6f2e9;
    --wool: #ffffff;
    --ink: #2a2724;
    --ink-soft: #6e6a62;
    --heart: #d85048;
    --sat: #3e5a8c;
    --line: rgba(42, 39, 36, 0.12);
    --line-strong: rgba(42, 39, 36, 0.22);
    --bezel: #17161a;
    --radius: 20px;
    --max-w: 1120px;
    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(64px, 9vw, 120px);
    --font: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    color-scheme: light;
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--wool);
    overflow-wrap: anywhere;
}

/* Korean pages load Pretendard (variable, dynamic subset) instead of Rubik and
   use it for Latin text too, so mixed Hangul and Latin sit on one rhythm. */
:lang(ko) {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    word-break: keep-all;
}

:lang(ja) {
    font-family: 'Rubik', -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', Meiryo, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
}

:lang(zh-Hans) {
    font-family: 'Rubik', -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
}

:lang(zh-Hant) {
    font-family: 'Rubik', -apple-system, 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
}

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

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

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

h1,
h2,
h3 {
    font-weight: 500;
    letter-spacing: -0.01em;
    margin: 0;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    line-height: 1.15;
    max-width: 22ch;
}

h3 {
    font-size: 1.3rem;
    line-height: 1.3;
}

:lang(ko) h1,
:lang(ja) h1,
:lang(zh-Hans) h1,
:lang(zh-Hant) h1 {
    line-height: 1.2;
    letter-spacing: 0;
}

:lang(ko) h2,
:lang(ja) h2,
:lang(zh-Hans) h2,
:lang(zh-Hant) h2 {
    line-height: 1.3;
    letter-spacing: 0;
}

:lang(ko) h1,
:lang(ko) h2,
:lang(ko) h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

.lead {
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 52ch;
}

.container {
    max-width: var(--max-w);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    background: var(--ink);
    color: var(--wool);
    padding: 10px 14px;
    border-radius: 8px;
    z-index: 100;
}

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

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

/* Buttons and the App Store badge */

.button {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--wool);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
}

.button:hover {
    background: var(--heart);
}

.appstore {
    display: inline-block;
    line-height: 0;
    border-radius: 10px;
}

.appstore img {
    width: 180px;
    height: 60px;
}

/* Header */

/* Above the hero that follows, so the open language menu is not painted over. */
.site-header {
    position: relative;
    z-index: 10;
    background: var(--butter);
    padding-block: 20px;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.15rem;
}

.brand img {
    width: 40px;
    height: 40px;
}

.site-nav {
    display: flex;
    gap: clamp(16px, 3vw, 32px);
    font-size: 0.95rem;
}

.site-nav a {
    text-decoration: none;
    padding-block: 6px;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover {
    border-bottom-color: var(--ink);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language menu: a <details> listing this page in every language. The closed control
   matches the App Store button's height and the hero's "what's new" pill. */
.lang-menu {
    position: relative;
}

.lang-menu summary {
    display: flex;
    align-items: center;
    gap: 6px;
    /* The App Store button's height, also when the label is hidden on phones. */
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    list-style: none;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

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

.lang-menu summary:hover,
.lang-menu[open] summary {
    background: var(--wool);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.lang-menu summary:focus-visible {
    border-radius: 999px;
}

.lang-menu__globe,
.lang-menu__chevron {
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lang-menu__globe {
    width: 18px;
    height: 18px;
}

.lang-menu__chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.lang-menu[open] .lang-menu__chevron {
    transform: rotate(180deg);
}

.lang-menu__list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 11rem;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--wool);
    border-radius: 14px;
    box-shadow: 0 0 0 1px var(--line), 0 24px 48px -24px rgba(42, 39, 36, 0.45);
}

.lang-menu__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.lang-menu__list a:hover {
    background: var(--paper);
}

.lang-menu__list a:focus-visible {
    outline-offset: -3px;
    border-radius: 8px;
}

.lang-menu__list a[aria-current] {
    font-weight: 600;
}

.lang-menu__list a[aria-current]::after {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--heart);
}

/* Hero */

.hero {
    position: relative;
    background: var(--butter);
    padding-block: clamp(40px, 7vw, 96px) 0;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
}

.hero__copy {
    padding-bottom: clamp(48px, 7vw, 96px);
}

.hero__copy h1 {
    max-width: 12ch;
}

/* "What's new" pill above the headline: the newest version, linking to the changelog. */
.news {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(20px, 3vw, 28px);
    padding: 4px 14px 4px 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.news:hover {
    background: var(--wool);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.news__version {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--heart);
    color: var(--wool);
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.news__arrow {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.news:hover .news__arrow {
    transform: translateX(3px);
}

.hero__copy .lead {
    margin-top: 24px;
    color: var(--ink);
    opacity: 0.85;
}

.hero__copy .appstore {
    margin-top: 32px;
}

.hero__note {
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.hero__media {
    display: flex;
    justify-content: center;
    align-self: end;
}

.hero__lamb,
.changelog-hero__lamb {
    position: absolute;
    top: 0;
    right: -40px;
    width: clamp(120px, 14vw, 190px);
    height: auto;
    pointer-events: none;
}

/* The phone that plays the preview clip */

.phone {
    width: clamp(240px, 30vw, 340px);
    aspect-ratio: 720 / 1564;
    padding: 3.4%;
    border-radius: 15% / 7%;
    background: var(--bezel);
    box-shadow: 0 30px 60px -30px rgba(42, 39, 36, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    margin-bottom: -18%;
}

.phone__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12% / 5.6%;
    background: var(--paper);
}

/* Meet Mouton */

.mouton {
    background: var(--paper);
    padding-block: var(--section);
}

.mouton__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: start;
}

.mouton__copy {
    position: sticky;
    top: 32px;
}

.mouton__copy .lead {
    margin-top: 20px;
}

.points {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    border-top: 1px solid var(--line-strong);
}

.points li {
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.points li::before {
    content: '';
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--heart);
    transform: translateY(-2px);
}

.points__lock::before {
    display: none;
}

.scope {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: none;
    transform: translateY(3px);
}

.scope svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scope svg:nth-child(2) {
    width: 14px;
    stroke: var(--ink-soft);
}

.feed {
    background: var(--wool);
    border-radius: var(--radius);
    padding: 8px 0;
    box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(42, 39, 36, 0.35);
    max-width: 560px;
    justify-self: end;
    width: 100%;
}

.post {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 0 8px;
    padding: 20px 20px 22px 12px;
    border-bottom: 1px solid var(--line);
}

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

.post__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
    padding-top: 4px;
}

.post__weekday {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.post__date {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 8px;
}

.post__weekday--sat,
.post__date--sat {
    color: var(--sat);
}

.post__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.paw {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.post__text {
    margin-top: 6px;
    font-size: 1.02rem;
    line-height: 1.5;
}

.post__photo {
    margin-top: 12px;
    width: 220px;
    border-radius: 10px;
}

.post__actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 14px;
}

.action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
    cursor: default;
}

.action svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.action--liked {
    color: var(--heart);
    cursor: pointer;
}

.action--liked svg {
    fill: var(--heart);
    stroke: var(--heart);
}

.action--liked:hover svg,
.action--liked:focus-visible svg {
    animation: burst 0.45s ease-out;
}

@keyframes burst {
    0% { transform: scale(1); }
    35% { transform: scale(1.45); }
    65% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.post__visitor {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--wool);
    box-shadow: 0 0 0 1px var(--line);
}

.reply {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--line-strong);
}

.reply__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--butter);
}

.reply__meta {
    font-size: 0.85rem;
    font-weight: 500;
}

.reply__meta span {
    font-weight: 400;
    color: var(--ink-soft);
    margin-left: 6px;
}

.reply__text {
    margin-top: 4px;
    font-size: 0.98rem;
    line-height: 1.5;
}

.reply--liked {
    align-items: center;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.reply--liked .reply__avatar {
    position: relative;
}

.reply--liked span::before {
    content: '\2665';
    color: var(--heart);
    margin-right: 8px;
}

/* A reply written by the journal owner inside a thread */
.reply--you {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

.reply__avatar--you {
    display: block;
    background: var(--wool);
    box-shadow: inset 0 0 0 1px var(--line-strong);
}

.reply--you .reply__meta {
    color: var(--ink-soft);
}

.js .reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    transition-delay: 0.3s;
}

.js .reveal--2 {
    transition-delay: 0.9s;
}

.js .reveal--3 {
    transition-delay: 1.6s;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Feed features */

.features {
    padding-block: var(--section);
}

.features h2 {
    max-width: 26ch;
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 6vw, 96px);
    align-items: center;
    margin-top: clamp(40px, 6vw, 72px);
}

.feature__copy p {
    margin-top: 12px;
    color: var(--ink-soft);
    max-width: 46ch;
}

.feature__shot {
    justify-self: center;
    width: min(100%, 300px);
    height: clamp(340px, 30vw, 420px);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}

.feature--alt .feature__shot {
    order: -1;
}

/* Privacy */

.ipad {
    padding-block: var(--section);
    background: var(--butter);
    text-align: center;
}

.ipad h2 {
    margin-inline: auto;
    text-wrap: balance;
}

.ipad__body {
    max-width: 58ch;
    margin: 20px auto 0;
    color: var(--ink-soft);
    text-wrap: pretty;
}

.ipad__slides {
    display: grid;
    margin-top: clamp(24px, 4vw, 48px);
}

.ipad__shot {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 650ms ease, visibility 650ms;
}

.ipad__shot.is-active {
    opacity: 1;
    visibility: visible;
}

.ipad__controls:not([hidden]) {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.ipad__controls button {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

.ipad__dot[aria-pressed="true"] {
    background: var(--ink);
    color: var(--butter);
}

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

.privacy {
    background: var(--paper);
    padding-block: var(--section);
}

.privacy__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(24px, 4vw, 48px);
    margin-top: clamp(32px, 5vw, 56px);
}

.privacy__item {
    border-top: 1px solid var(--line-strong);
    padding-top: 20px;
}

.privacy__item h3 {
    font-size: 1.15rem;
}

.privacy__item p {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 1rem;
}

/* Languages */

.languages {
    padding-block: var(--section);
}

.languages .lead {
    margin-top: 16px;
}

.languages__list {
    list-style: none;
    margin: 32px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 1.4em;
    font-size: clamp(1.3rem, 2.4vw, 1.85rem);
    font-weight: 500;
}

.languages__list a {
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.languages__list a:hover,
.languages__list a[aria-current] {
    border-bottom-color: var(--heart);
}

/* Trial */

.trial {
    background: var(--butter);
    padding-block: var(--section);
}

.steps {
    counter-reset: step;
    list-style: none;
    margin: clamp(32px, 5vw, 56px) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(24px, 4vw, 48px);
    font-size: 1.1rem;
}

.steps li {
    counter-increment: step;
    border-top: 1px solid var(--line-strong);
    padding-top: 16px;
}

.steps li::before {
    content: counter(step);
    display: block;
    font-size: 2rem;
    font-weight: 500;
    color: var(--heart);
    line-height: 1;
    margin-bottom: 12px;
}

/* FAQ */

.faq {
    padding-block: var(--section);
}

.faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: start;
}

.faq__item {
    border-top: 1px solid var(--line-strong);
}

.faq__item:last-child {
    border-bottom: 1px solid var(--line-strong);
}

.faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 40px 18px 0;
    font-weight: 500;
    position: relative;
}

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

.faq__item summary::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}

.faq__item[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.faq__item p {
    padding: 0 0 20px;
    color: var(--ink-soft);
    max-width: 60ch;
}

/* Final call */

.cta {
    background: var(--butter);
    padding-block: var(--section);
    overflow: hidden;
}

.cta__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 32px;
}

.cta .lead {
    margin-top: 16px;
}

.cta .appstore {
    margin-top: 28px;
}

.cta__lamb {
    width: clamp(140px, 18vw, 220px);
    margin-bottom: -60px;
}

/* Release notes (/<lang>/changelog/): the feed's day column and white cards,
   strung on a timeline rail from the newest version down to 1.0. */

.changelog-hero {
    position: relative;
    background: var(--butter);
    padding-block: clamp(48px, 8vw, 104px);
    overflow: hidden;
}

.changelog-hero h1 {
    max-width: 14ch;
}

.changelog-hero .lead {
    margin-top: 20px;
    color: var(--ink);
    opacity: 0.85;
}

.changelog {
    background: var(--paper);
    padding-block: var(--section);
}

.releases {
    --head: 11rem;
    --marker: 36px;
    --dot-y: 2.35rem;
    --space: clamp(36px, 5vw, 56px);
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 920px;
}

.release {
    display: grid;
    grid-template-columns: var(--head) var(--marker) minmax(0, 1fr);
    grid-template-areas: "head marker notes";
    column-gap: clamp(16px, 2.5vw, 28px);
    padding-bottom: var(--space);
    scroll-margin-top: 24px;
}

.release:last-child {
    padding-bottom: 0;
}

.release__head {
    grid-area: head;
    text-align: right;
    padding-top: 14px;
}

.release__version {
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    max-width: none;
}

.release__version a {
    text-decoration: none;
}

.release__version a:hover {
    color: var(--heart);
}

.release__label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink-soft);
}

.release__date {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--ink-soft);
}

.release__badge {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--heart);
    color: var(--wool);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.5;
}

/* The rail runs through every marker, from the newest dot down to the lamb. */
.release__marker {
    grid-area: marker;
    position: relative;
    display: flex;
    justify-content: center;
}

.release__marker::before {
    content: '';
    position: absolute;
    left: calc(50% - 0.5px);
    top: 0;
    bottom: calc(-1 * var(--space));
    width: 1px;
    background: var(--line-strong);
}

.release:first-child .release__marker::before {
    top: var(--dot-y);
}

.release:last-child .release__marker::before {
    bottom: auto;
    height: var(--dot-y);
}

.release__marker::after {
    content: '';
    position: relative;
    width: 12px;
    height: 12px;
    margin-top: calc(var(--dot-y) - 6px);
    border-radius: 50%;
    background: var(--paper);
    box-shadow: inset 0 0 0 2px var(--heart);
}

.release--latest .release__marker::after {
    background: var(--heart);
    box-shadow: 0 0 0 6px rgba(216, 80, 72, 0.16);
}

.release--first .release__marker::after {
    display: none;
}

.release__marker img {
    position: relative;
    width: var(--marker);
    height: var(--marker);
    margin-top: calc(var(--dot-y) - var(--marker) / 2);
    border-radius: 50%;
    background: var(--butter);
    box-shadow: 0 0 0 5px var(--paper);
}

.release__notes {
    grid-area: notes;
    align-self: start;
    background: var(--wool);
    border-radius: var(--radius);
    padding: 22px 26px 24px;
    box-shadow: 0 1px 0 var(--line), 0 24px 48px -32px rgba(42, 39, 36, 0.35);
}

.release__notes p {
    margin-top: 14px;
    color: var(--ink-soft);
}

.release__notes > :first-child {
    margin-top: 0;
}

.release__notes > p:first-child {
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink);
}

.release__notes ul {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.release__notes li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding-block: 5px;
    line-height: 1.55;
}

.release__notes li::before {
    content: '';
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--heart);
    transform: translateY(-2px);
}

:lang(ko) .release__version,
:lang(ja) .release__version,
:lang(zh-Hans) .release__version,
:lang(zh-Hant) .release__version {
    line-height: 1;
}

/* Footer */

.site-footer {
    background: var(--paper);
    padding-block: 40px;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

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

.site-footer .brand {
    font-size: 1rem;
    color: var(--ink);
}

.site-footer .brand img {
    width: 32px;
    height: 32px;
}

.site-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.site-footer__links a {
    white-space: nowrap;
}

.site-footer__languages {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 0.9rem;
}

.site-footer__languages a[aria-current] {
    color: var(--ink);
    text-decoration: none;
}

.site-footer__copyright {
    margin-top: 28px;
    font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 900px) {
    .site-nav {
        display: none;
    }

    .hero__grid,
    .mouton__grid,
    .feature,
    .feature--alt,
    .faq__grid,
    .cta__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__copy {
        padding-bottom: 0;
    }

    .hero__media {
        margin-top: 40px;
    }

    .phone {
        width: min(72vw, 300px);
        margin-bottom: -22%;
    }

    .hero__lamb,
    .changelog-hero__lamb {
        width: 110px;
        right: -30px;
        top: -10px;
    }

    /* Keep the title's first line clear of the lamb peeking in at the top right. */
    .changelog-hero h1 {
        padding-right: 72px;
    }

    .mouton__copy {
        position: static;
    }

    .feed {
        justify-self: stretch;
        max-width: none;
    }

    .feature--alt .feature__shot {
        order: 0;
    }

    .feature__shot {
        justify-self: start;
        height: clamp(320px, 70vw, 420px);
        width: min(100%, 260px);
    }

    .cta__row {
        align-items: start;
    }

    .cta__lamb {
        justify-self: end;
        margin-top: -20px;
        margin-bottom: -70px;
    }
}

@media (max-width: 720px) {
    .releases {
        --marker: 28px;
        --dot-y: 0.95rem;
        --space: 32px;
    }

    .release {
        grid-template-columns: var(--marker) minmax(0, 1fr);
        grid-template-areas:
            "marker head"
            "marker notes";
        column-gap: 12px;
    }

    .release__head {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 12px;
        text-align: left;
        padding-top: 0;
        padding-bottom: 12px;
    }

    .release__version {
        font-size: 1.6rem;
    }

    .release__label {
        display: inline;
        margin: 0 6px 0 0;
    }

    .release__date {
        margin-top: 0;
    }

    .release__badge {
        margin-top: 0;
    }

    .release__notes {
        padding: 18px 18px 20px;
    }
}

@media (max-width: 520px) {
    /* Globe only: the brand, the menu and the App Store button share a phone-width row.
       The language name stays in the accessibility tree. */
    .lang-menu__label {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .lang-menu summary {
        padding-inline: 12px;
    }

    .post {
        grid-template-columns: 52px minmax(0, 1fr);
        padding-inline: 8px 14px;
    }

    .post__date {
        font-size: 1.5rem;
    }

    .post__photo {
        width: 100%;
        max-width: 260px;
    }

    .post__actions {
        gap: 16px;
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
