/* Nota's site, in the app's own language: warm ink on paper, one green accent,
   gold for what the app marks, hairlines before boxes. Buttons are pills; surfaces
   are 16px; pictures of the app are 14px. Tokens are the app's (src/styles/globals.css). */

/* --- Fonts, shipped with the theme ------------------------------------------ */

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Noto Sans Ethiopic";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/noto-sans-ethiopic.woff2") format("woff2");
	unicode-range: U+030E, U+1200-1399, U+2D80-2DDE, U+AB01-AB2E, U+1E7E0-1E7E6, U+1E7E8-1E7EB, U+1E7ED-1E7EE, U+1E7F0-1E7FE;
}

/* --- Tokens ------------------------------------------------------------------ */

:root {
	color-scheme: light;

	--paper: #fbfcf9;
	--sidebar: #eef2ec;
	--list: #f5f7f3;
	--surface: #ffffff;
	--ink: #1d2a21;
	--muted: #5d6b61;
	--line: #dde4db;
	--accent: #15803d;
	--accent-ink: #166534;
	--on-accent: #ffffff;
	--accent-soft: #e2f0e4;
	--mark: #f8e7a6;
	--shot-shadow: 0 1px 2px rgb(29 42 33 / 0.05), 0 24px 56px -28px rgb(29 42 33 / 0.28);

	--font: "Plus Jakarta Sans", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, "Noto Sans Ethiopic", monospace;

	--gutter: 20px;
	--wrap: 1240px;
	--section: clamp(72px, 10vw, 136px);
	--radius: 16px;
	--radius-shot: 14px;

	--tracking-title: -0.03em;
	--leading-title: 1.06;
}

:root:lang(am) {
	/* Ge'ez has no capitals and tall forms: no negative tracking, and more air. */
	--tracking-title: 0;
	--leading-title: 1.24;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;

		--paper: #151b17;
		--sidebar: #1a221c;
		--list: #171f19;
		--surface: #212b24;
		--ink: #e5ece6;
		--muted: #9aa89d;
		--line: #2b3630;
		--accent: #4fbf7a;
		--accent-ink: #79d39c;
		--on-accent: #0c1a10;
		--accent-soft: rgb(79 191 122 / 0.16);
		--mark: #5b4b12;
		--shot-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 24px 56px -28px rgb(0 0 0 / 0.7);
	}
}

:root[data-theme="dark"] {
	color-scheme: dark;

	--paper: #151b17;
	--sidebar: #1a221c;
	--list: #171f19;
	--surface: #212b24;
	--ink: #e5ece6;
	--muted: #9aa89d;
	--line: #2b3630;
	--accent: #4fbf7a;
	--accent-ink: #79d39c;
	--on-accent: #0c1a10;
	--accent-soft: rgb(79 191 122 / 0.16);
	--mark: #5b4b12;
	--shot-shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 24px 56px -28px rgb(0 0 0 / 0.7);
}

/* --- Base --------------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

:lang(am) body,
body.lang-am {
	line-height: 1.75;
}

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

ul,
ol {
	padding: 0;
	list-style: none;
}

img,
picture,
video,
svg {
	display: block;
	max-width: 100%;
}

img {
	height: auto;
}

picture > img {
	width: 100%;
}

a {
	color: inherit;
}

code {
	padding: 0.1em 0.38em;
	border-radius: 6px;
	background: var(--accent-soft);
	color: var(--accent-ink);
	font-family: var(--mono);
	font-size: 0.86em;
	overflow-wrap: anywhere;
}

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

.icon {
	flex: none;
	width: 1.15em;
	height: 1.15em;
	fill: currentColor;
}

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

.skip-link {
	position: absolute;
	z-index: 100;
	top: 8px;
	left: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

.wrap {
	width: min(var(--wrap), 100% - 2 * var(--gutter));
	margin-inline: auto;
}

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

/* --- Shared pieces ------------------------------------------------------------ */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 46px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.94rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.button:active {
	transform: translateY(1px);
}

.button--primary {
	background: var(--accent);
	color: var(--on-accent);
}

.button--primary:hover {
	background: var(--accent-ink);
}

:root[data-theme="dark"] .button--primary:hover {
	background: var(--accent-ink);
}

.button--quiet {
	border-color: var(--line);
	background: var(--surface);
}

.button--quiet:hover {
	border-color: var(--muted);
}

.icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 1.05rem;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

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

.icon-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--accent-soft);
	color: var(--accent-ink);
	font-size: 1.1rem;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--accent-ink);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.text-link:hover {
	text-decoration-thickness: 2px;
}

.section-title {
	font-size: clamp(2rem, 4.4vw, 3.25rem);
	font-weight: 700;
	line-height: var(--leading-title);
	letter-spacing: var(--tracking-title);
	text-wrap: balance;
}

.block-title {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

:root:lang(am) .block-title {
	letter-spacing: 0;
	line-height: 1.5;
}

.block-text {
	color: var(--muted);
	max-width: 62ch;
}

.small-print {
	color: var(--muted);
	font-size: 0.875rem;
	line-height: 1.6;
	max-width: 62ch;
}

:root:lang(am) .small-print {
	line-height: 1.8;
}

/* These stack their children and start-align them. Without a track that can shrink,
   a paragraph's max-content width sets the column, and a phone scrolls sideways. */
.hero__side,
.proof__foot,
.speech__copy,
.speech__import-head,
.tile__text,
.privacy__item > div,
.device > div,
.download__head,
.download__foot,
.site-footer__about,
.site-footer__contact {
	grid-template-columns: minmax(0, 1fr);
}

.frame {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-shot);
	background: var(--surface);
	box-shadow: var(--shot-shadow);
}

.shot-img {
	display: block;
}

/* --- Header ------------------------------------------------------------------- */

/* The colour is set here as well as on the body, because an Elementor kit's body
   colour wins on the pages Elementor built, and would recolour the header and footer. */
.site-header {
	position: sticky;
	z-index: 40;
	top: 0;
	border-bottom: 1px solid var(--line);
	color: var(--ink);
	background: var(--paper);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}

.site-header__row {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 64px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: 1.12rem;
	letter-spacing: -0.015em;
	text-decoration: none;
}

.brand__icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
}

.site-nav {
	flex: 1;
	min-width: 0;
}

.site-nav__list {
	display: flex;
	flex-wrap: nowrap;
	gap: 2px;
}

.site-nav__list a {
	display: block;
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.93rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav__list a:hover {
	background: var(--sidebar);
	color: var(--ink);
}

.site-header__tools {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.site-header__cta {
	min-height: 40px;
	margin-left: 8px;
	padding: 8px 16px;
}

.lang-switch {
	display: flex;
	align-items: center;
	gap: 2px;
}

.lang-switch a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	min-height: 40px;
	padding: 4px 8px;
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
}

.lang-switch a:hover {
	background: var(--sidebar);
	color: var(--ink);
}

.lang-switch a[aria-current="true"] {
	background: var(--accent-soft);
	color: var(--accent-ink);
}

.theme-toggle {
	display: none;
}

.js .theme-toggle {
	display: inline-flex;
}

.theme-toggle__sun,
.theme-toggle__moon {
	display: inline-flex;
}

.theme-toggle__moon {
	display: none;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle__sun {
		display: none;
	}

	:root:not([data-theme="light"]) .theme-toggle__moon {
		display: inline-flex;
	}
}

:root[data-theme="dark"] .theme-toggle__sun {
	display: none;
}

:root[data-theme="dark"] .theme-toggle__moon {
	display: inline-flex;
}

.menu-sheet {
	display: none;
	position: relative;
}

.menu-sheet > summary {
	list-style: none;
}

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

.menu-sheet__open,
.menu-sheet__close {
	display: inline-flex;
}

.menu-sheet__close,
.menu-sheet[open] .menu-sheet__open {
	display: none;
}

.menu-sheet[open] .menu-sheet__close {
	display: inline-flex;
}

.menu-sheet__panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	display: grid;
	gap: 12px;
	width: min(320px, 100vw - 2 * var(--gutter));
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shot-shadow);
}

.menu-sheet__panel a:not(.button) {
	display: block;
	padding: 11px 12px;
	border-radius: 10px;
	font-weight: 500;
	text-decoration: none;
}

.menu-sheet__panel a:not(.button):hover {
	background: var(--sidebar);
}

.menu-sheet__panel .button {
	width: 100%;
}

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

	.menu-sheet {
		display: block;
	}
}

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

/* --- Hero --------------------------------------------------------------------- */

.hero {
	padding-top: clamp(44px, 7vw, 92px);
}

.hero__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 24px;
	align-items: end;
	margin-bottom: clamp(36px, 5vw, 64px);
}

.hero__title {
	grid-column: 1 / span 8;
	font-size: clamp(2.6rem, 6.2vw, 4.75rem);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

:root:lang(am) .hero__title {
	font-size: clamp(2.3rem, 5.4vw, 4.2rem);
	line-height: 1.22;
	letter-spacing: 0;
}

.hero__side {
	grid-column: 9 / -1;
	display: grid;
	gap: 22px;
}

.hero__text {
	color: var(--muted);
	font-size: 1.06rem;
	line-height: 1.55;
}

:root:lang(am) .hero__text {
	line-height: 1.8;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.hero__shot {
	border-bottom-width: 1px;
}

/* --- Proof -------------------------------------------------------------------- */

.proof {
	padding-top: var(--section);
}

.proof__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 40px 24px;
}

.proof__title {
	grid-column: 1 / span 5;
}

.stats {
	grid-column: 7 / -1;
	display: grid;
}

.stat {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 24px;
	align-items: baseline;
	padding-block: 24px;
	border-top: 1px solid var(--line);
}

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

.stat__number {
	color: var(--muted);
	font-size: clamp(2.75rem, 5.6vw, 4.5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.stat--good .stat__number {
	color: var(--accent-ink);
}

.stat__text {
	color: var(--muted);
	font-size: 0.97rem;
}

.proof__foot {
	grid-column: 7 / -1;
	display: grid;
	gap: 12px;
	justify-items: start;
}

.proof__note {
	max-width: 58ch;
}

/* --- Speech ------------------------------------------------------------------- */

.speech {
	padding-top: var(--section);
	overflow-x: clip;
}

.speech__title {
	max-width: 18ch;
	margin-bottom: clamp(36px, 5vw, 64px);
}

:root:lang(am) .speech__title {
	max-width: none;
}

.speech__row {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 32px 24px;
	align-items: center;
}

.speech__row + .speech__row {
	margin-top: clamp(56px, 8vw, 104px);
}

.speech__copy {
	display: grid;
	gap: 12px;
	justify-items: start;
}

.speech__row--dictate .clip {
	grid-column: 1 / span 7;
}

.speech__row--dictate .speech__copy {
	grid-column: 9 / -1;
}

.speech__row--voice .speech__copy {
	grid-column: 1 / span 4;
}

.speech__row--voice .frame--bleed {
	grid-column: 5 / -1;
	margin-right: calc((100vw - min(var(--wrap), 100vw - 2 * var(--gutter))) / -2 - 1px);
	border-right: 0;
	border-radius: var(--radius-shot) 0 0 var(--radius-shot);
}

.speech__row--import {
	align-items: start;
	padding-top: 32px;
	border-top: 1px solid var(--line);
}

.speech__import-head {
	grid-column: 1 / span 4;
	display: grid;
	gap: 12px;
	justify-items: start;
}

.speech__row--import .block-text {
	grid-column: 5 / span 4;
}

.chips {
	grid-column: 9 / -1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chips li {
	padding: 4px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.82rem;
}

.clip {
	position: relative;
}

.clip__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.35s ease;
}

.clip.is-playing .clip__video {
	opacity: 1;
}

.clip__toggle {
	display: none;
	position: absolute;
	right: 12px;
	bottom: 12px;
	border-color: var(--line);
	background: var(--surface);
	color: var(--ink);
}

.clip__toggle:hover {
	background: var(--sidebar);
}

.js .clip__toggle {
	display: inline-flex;
}

.clip__play,
.clip__pause {
	display: inline-flex;
}

.clip__play,
.clip.is-paused .clip__pause {
	display: none;
}

.clip.is-paused .clip__play {
	display: inline-flex;
}

/* --- Notes: tiles of different sizes ------------------------------------------- */

.notes {
	padding-top: var(--section);
}

.notes__title {
	max-width: 22ch;
	margin-bottom: clamp(36px, 5vw, 56px);
}

:root:lang(am) .notes__title {
	max-width: 24ch;
}

.bento {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 14px;
}

.tile {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: flex-start;
	min-width: 0;
	padding: 28px;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--list);
}

.tile__text {
	display: grid;
	gap: 10px;
	justify-items: start;
}

.tile--tags {
	grid-column: span 5;
	grid-row: span 2;
	background: var(--sidebar);
}

.tile__sidebar {
	align-self: stretch;
	flex: 1;
	position: relative;
	min-height: 320px;
	margin: 12px -28px -28px;
	overflow: hidden;
}

.tile__sidebar .shot-img {
	position: absolute;
	top: 0;
	left: 28px;
	width: 260px;
	border: 1px solid var(--line);
	border-bottom: 0;
	border-radius: var(--radius-shot) var(--radius-shot) 0 0;
	overflow: hidden;
}

.tile--calendar {
	grid-column: span 7;
	flex-direction: row;
	gap: 24px;
	align-items: stretch;
	border-color: transparent;
	background: var(--mark);
}

.tile--calendar .block-text,
.tile--calendar .today__gregorian,
.tile--calendar .today__label {
	color: var(--ink);
}

.tile--calendar .icon-badge {
	background: var(--paper);
	color: var(--ink);
}

.tile--calendar .tile__text {
	flex: 1;
	min-width: 0;
	align-content: start;
}

.today {
	display: grid;
	gap: 2px;
	margin-top: 8px;
}

.today__label {
	font-size: 0.82rem;
	font-weight: 600;
}

.today__ethiopian {
	font-size: clamp(1.45rem, 2.5vw, 2rem);
	font-weight: 700;
	line-height: 1.35;
}

.today__gregorian {
	font-size: 0.9rem;
}

.tile__panel {
	flex: none;
	align-self: center;
	width: min(50%, 330px);
	overflow: hidden;
	border-radius: var(--radius-shot);
	box-shadow: var(--shot-shadow);
}

.tile--zen {
	grid-column: span 7;
	padding: 0;
	gap: 0;
}

.tile__picture {
	width: 100%;
	border-bottom: 1px solid var(--line);
}

.tile__text--row {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
	gap: 8px 20px;
	align-items: baseline;
	width: 100%;
	padding: 20px 28px;
}

.tile--write {
	grid-column: span 4;
}

.tile--fonts {
	grid-column: span 3;
}

.tile--assist {
	grid-column: span 5;
}

.notes__more {
	max-width: 74ch;
	margin-top: 28px;
	color: var(--muted);
}

/* --- Privacy ------------------------------------------------------------------- */

.privacy {
	margin-top: var(--section);
	padding-block: var(--section);
	background: var(--sidebar);
}

.privacy__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 32px 24px;
	align-items: start;
}

.privacy__title {
	grid-column: 1 / span 5;
	position: sticky;
	top: 96px;
}

.privacy__list {
	grid-column: 7 / -1;
}

.privacy__item {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 18px;
	padding-block: 26px;
	border-top: 1px solid var(--line);
}

.privacy__item:first-child {
	padding-top: 0;
	border-top: 0;
}

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

.privacy__item > div {
	display: grid;
	gap: 8px;
	justify-items: start;
}

.privacy__item .icon-badge {
	background: var(--paper);
}

/* --- Devices ------------------------------------------------------------------- */

.devices {
	padding-top: var(--section);
	overflow-x: clip;
}

.devices__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 48px 24px;
	align-items: center;
}

.devices__text {
	grid-column: 1 / span 7;
	display: grid;
	gap: 36px;
}

.device {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 18px;
}

.device > div {
	display: grid;
	gap: 10px;
	justify-items: start;
}

.caveat {
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--mark);
	color: var(--ink);
	font-size: 0.95rem;
	max-width: 62ch;
}

.device__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	margin-top: 4px;
}

.device__signup {
	width: 100%;
	margin-top: 8px;
}

.phones {
	grid-column: 8 / -1;
	display: grid;
	grid-template-columns: repeat(8, minmax(0, 1fr));
	align-items: start;
}

.phone {
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 26px;
	background: var(--surface);
	box-shadow: var(--shot-shadow);
}

.phone--back {
	grid-column: 1 / span 5;
	grid-row: 1;
}

.phone--front {
	grid-column: 4 / -1;
	grid-row: 1;
	margin-top: 56px;
}

/* --- Download ------------------------------------------------------------------ */

.download {
	padding-top: var(--section);
}

.download__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 32px 24px;
	align-items: start;
}

.download__head {
	grid-column: 1 / span 4;
	display: grid;
	gap: 14px;
	justify-items: start;
}

.download__version {
	font-size: 0.875rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.download__count {
	margin-top: -8px;
	color: var(--muted);
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

.download__groups {
	grid-column: 6 / -1;
}

.dl-group {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 5fr);
	gap: 8px 24px;
	padding-block: 24px;
	border-top: 1px solid var(--line);
}

.dl-group:first-child {
	padding-top: 0;
	border-top: 0;
}

.dl-group__os {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	align-self: start;
	padding-top: 10px;
	font-size: 1.1rem;
}

.dl-group__name {
	font-size: 1.05rem;
	font-weight: 700;
}

.dl-group__yours {
	flex-basis: 100%;
	color: var(--accent-ink);
	font-size: 0.8rem;
	font-weight: 600;
}

.dl-group__yours[hidden] {
	display: none;
}

.dl-group__files {
	display: grid;
	gap: 2px;
}

.dl-file {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0 16px;
	align-items: center;
	padding: 10px 14px;
	border-radius: 12px;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.dl-file:hover {
	background: var(--sidebar);
}

.dl-file__label {
	font-weight: 600;
}

.dl-file__meta {
	grid-column: 1;
	color: var(--muted);
	font-size: 0.85rem;
}

.dl-file .icon {
	grid-column: 2;
	grid-row: 1 / span 2;
	color: var(--accent-ink);
}

.dl-group__note {
	grid-column: 2;
	padding-inline: 14px;
	color: var(--muted);
	font-size: 0.9rem;
}

.dl-group__note summary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-block: 6px;
	color: var(--ink);
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

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

.dl-group__note[open] summary .icon {
	transform: rotate(180deg);
}

.dl-group__note p {
	padding-block: 4px 8px;
	max-width: 62ch;
}

.download__foot {
	grid-column: 6 / -1;
	display: grid;
	gap: 12px;
	justify-items: start;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

/* --- Questions ----------------------------------------------------------------- */

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

.faq .section-title {
	margin-bottom: 36px;
}

.faq__list {
	columns: 2;
	column-gap: 48px;
}

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

.faq__item summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

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

.faq__item summary .icon {
	margin-top: 0.25em;
	color: var(--muted);
	transition: transform 0.15s ease;
}

.faq__item[open] summary .icon {
	transform: rotate(180deg);
}

.faq__item p {
	padding-bottom: 20px;
	color: var(--muted);
	max-width: 58ch;
}

/* --- Footer -------------------------------------------------------------------- */

.site-footer {
	padding-block: 48px 40px;
	border-top: 1px solid var(--line);
	color: var(--ink);
	background: var(--list);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 32px 24px;
}

.site-footer__about {
	grid-column: 1 / span 6;
	display: grid;
	gap: 10px;
	justify-items: start;
}

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

.site-footer__contact {
	grid-column: 8 / -1;
	display: grid;
	gap: 8px;
	justify-items: start;
}

.site-footer__heading {
	color: var(--muted);
	font-size: 0.85rem;
	font-weight: 600;
}

.site-footer__email {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 32px;
	font-weight: 500;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.site-footer__email:hover span {
	text-decoration: underline;
}

.site-footer__social {
	display: flex;
	margin-left: -10px;
}

.site-footer__menu {
	grid-column: 1 / -1;
}

.site-footer__menu ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.site-footer__menu a {
	color: var(--muted);
	font-size: 0.93rem;
}

.site-footer__credit {
	grid-column: 1 / -1;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.85rem;
}

/* --- Other pages --------------------------------------------------------------- */

.page-shell {
	padding-block: clamp(48px, 7vw, 88px);
	min-height: 50vh;
}

.page-shell--builder {
	padding-block: 0;
}

.page-title {
	margin-bottom: 20px;
	font-size: clamp(2rem, 4.4vw, 3rem);
	font-weight: 700;
	line-height: var(--leading-title);
	letter-spacing: var(--tracking-title);
}

.page-intro {
	margin-bottom: 28px;
	color: var(--muted);
}

.page-back {
	margin-top: 28px;
}

.post-list {
	display: grid;
}

.post-card {
	padding-block: 28px;
	border-top: 1px solid var(--line);
}

.post-card__title {
	font-size: 1.45rem;
	font-weight: 700;
	line-height: 1.3;
}

.post-card__title a {
	text-decoration: none;
}

.post-card__title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.post-card__meta {
	margin-block: 4px 12px;
	color: var(--muted);
	font-size: 0.875rem;
}

.post-thumb {
	margin-block: 20px;
	overflow: hidden;
	border-radius: var(--radius-shot);
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2,
.prose h3,
.prose h4 {
	margin-top: 1.8em;
	font-weight: 700;
	line-height: 1.3;
}

.prose h2 {
	font-size: 1.6rem;
}

.prose h3 {
	font-size: 1.25rem;
}

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

.prose ul,
.prose ol {
	padding-left: 1.4em;
}

.prose ul {
	list-style: disc;
}

.prose ol {
	list-style: decimal;
}

.prose blockquote {
	margin: 1.4em 0;
	padding-left: 1.1em;
	border-left: 2px solid var(--line);
	color: var(--muted);
}

.prose .alignwide {
	width: min(1000px, 100vw - 2 * var(--gutter));
	max-width: none;
	margin-inline: calc((min(720px, 100%) - min(1000px, 100vw - 2 * var(--gutter))) / 2);
}

.prose .alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc(50% - 50vw);
}

.prose .aligncenter {
	margin-inline: auto;
}

.prose .alignleft {
	float: left;
	margin: 0.3em 1.4em 1em 0;
}

.prose .alignright {
	float: right;
	margin: 0.3em 0 1em 1.4em;
}

.prose figcaption,
.wp-caption-text {
	margin-top: 8px;
	color: var(--muted);
	font-size: 0.875rem;
}

.search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 28px;
}

.search-form__input,
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
	flex: 1 1 200px;
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
	color: var(--ink);
	font: inherit;
}

.comment-form .submit {
	min-height: 46px;
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: var(--on-accent);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.comments {
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.comments__list {
	display: grid;
	gap: 20px;
	margin-block: 20px;
}

.comments__list .children {
	margin-top: 16px;
	padding-left: 20px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 20px;
	justify-content: space-between;
	margin-top: 32px;
}

.nav-links a {
	color: var(--accent-ink);
}

/* Tables and code blocks in posts and release notes: a table wraps its cells
   before it ever makes a phone scroll sideways. */
.prose h5,
.prose h6 {
	margin-top: 1.6em;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
}

.prose li + li {
	margin-top: 0.45em;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
	line-height: 1.5;
}

.prose th,
.prose td {
	padding: 10px 14px 10px 0;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
	overflow-wrap: anywhere;
}

.prose th:last-child,
.prose td:last-child {
	padding-right: 0;
}

.prose th {
	color: var(--muted);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.prose pre {
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--sidebar);
	font-family: var(--mono);
	font-size: 0.86rem;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.prose pre code {
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
}

.release-table {
	overflow-x: auto;
}

/* --- Release notes ---------------------------------------------------------------- */

.releases-page__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	max-width: 720px;
	padding-bottom: clamp(28px, 4vw, 44px);
}

.releases-page__head .page-intro {
	margin-bottom: 0;
	max-width: 62ch;
}

.releases-page__text {
	margin-top: 20px;
}

.release {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 20px 24px;
	padding-block: clamp(32px, 5vw, 56px);
	border-top: 1px solid var(--line);
}

.release__head {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	align-self: start;
	gap: 10px;
	min-width: 0;
}

.admin-bar .release__head {
	top: 128px;
}

.release__title {
	font-size: clamp(1.5rem, 2.6vw, 2rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.release__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	color: var(--muted);
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
}

.release__badge {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent-ink);
	font-size: 0.78rem;
	font-weight: 700;
}

.release__badge--quiet {
	background: var(--sidebar);
	color: var(--muted);
}

.release__count {
	color: var(--muted);
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
}

.release__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-top: 6px;
}

.release__body {
	min-width: 0;
	max-width: 720px;
}

.release__lang-note {
	margin-bottom: 18px;
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--sidebar);
	color: var(--muted);
	font-size: 0.9rem;
}

.release__notes {
	font-size: 1rem;
}

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

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

.release__notes h4 {
	font-size: 1rem;
}

.releases__more,
.releases__empty {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-items: start;
	gap: 12px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.releases__empty {
	color: var(--muted);
}

/* --- Narrow screens ------------------------------------------------------------- */

@media (max-width: 900px) {
	.hero__title,
	.hero__side,
	.proof__title,
	.stats,
	.proof__foot,
	.speech__row--dictate .clip,
	.speech__row--dictate .speech__copy,
	.speech__row--voice .speech__copy,
	.speech__row--voice .frame--bleed,
	.speech__import-head,
	.speech__row--import .block-text,
	.chips,
	.privacy__title,
	.privacy__list,
	.devices__text,
	.phones,
	.download__head,
	.download__groups,
	.download__foot,
	.site-footer__about,
	.site-footer__contact {
		grid-column: 1 / -1;
	}

	.privacy__title {
		position: static;
	}

	/* Only part of the sidebar fits in the tile here, so it is the part with the tags. */
	.shot-crop--tags {
		min-height: 340px;
	}

	.shot-crop--tags .shot-img {
		bottom: 0;
	}

	.shot-crop--tags img {
		margin-top: -306px;
	}

	.speech__row--voice .frame--bleed {
		margin-right: calc(var(--gutter) * -1 - 1px);
	}

	.speech__row--dictate .speech__copy {
		order: -1;
	}

	.speech__row--import {
		gap: 14px;
	}

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

	.tile--tags,
	.tile--calendar,
	.tile--zen,
	.tile--assist {
		grid-column: 1 / -1;
		grid-row: auto;
	}

	.tile--write,
	.tile--fonts {
		grid-column: span 1;
	}

	.tile__sidebar {
		min-height: 300px;
	}

	.phones {
		max-width: 520px;
		margin-inline: auto;
		width: 100%;
	}

	.faq__list {
		columns: 1;
	}

	.release {
		grid-template-columns: minmax(0, 1fr);
	}

	.release__head {
		position: static;
	}
}

@media (max-width: 620px) {
	body {
		font-size: 16px;
	}

	.tile {
		padding: 22px;
	}

	.tile--zen {
		padding: 0;
	}

	.tile__text--row {
		grid-template-columns: minmax(0, 1fr);
		padding: 18px 22px;
	}

	.tile--write,
	.tile--fonts {
		grid-column: 1 / -1;
	}

	/* A whole desktop window is too small to read here, so each shows its note. */
	.shot-crop--main,
	.shot-crop--voice,
	.shot-crop--zen {
		overflow: hidden;
		aspect-ratio: var(--crop-ratio);
	}

	.shot-crop--main img,
	.shot-crop--voice img,
	.shot-crop--zen img {
		width: var(--crop-width);
		max-width: none;
		margin: var(--crop-y) 0 0 var(--crop-x);
	}

	.shot-crop--main {
		--crop-ratio: 7 / 6;
		--crop-width: 230%;
		--crop-x: -94%;
		--crop-y: 0px;
	}

	.shot-crop--voice {
		--crop-ratio: 1 / 1.07;
		--crop-width: 170%;
		--crop-x: -66%;
		--crop-y: 0px;
	}

	.shot-crop--zen {
		--crop-ratio: 4 / 3;
		--crop-width: 210%;
		--crop-x: -45%;
		--crop-y: -24%;
	}

	.tile--calendar {
		flex-direction: column;
	}

	.tile__panel {
		align-self: stretch;
		width: 100%;
	}

	.tile__sidebar {
		margin: 12px -22px -22px;
	}

	.tile__sidebar .shot-img {
		left: 22px;
	}

	.stat {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.dl-group {
		grid-template-columns: minmax(0, 1fr);
	}

	.dl-group__os {
		padding-top: 0;
	}

	.dl-group__note {
		grid-column: 1;
	}

	.dl-file {
		padding-inline: 0;
	}

	.dl-group__note {
		padding-inline: 0;
	}

	.privacy__item,
	.device {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.phone {
		border-radius: 18px;
	}

	.phone--front {
		margin-top: 36px;
	}

	.lang-switch a {
		min-width: 36px;
		padding-inline: 6px;
	}
}

/* --- Motion and print ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}

@media print {
	.site-header,
	.clip__video,
	.clip__toggle {
		display: none;
	}
}
