/*
 * Times — skin layer.
 *
 * Loaded after base.css and keeps the templates intact: white bars, soft
 * outlines, one chronograph blue with a teal timer signal and an amber
 * second-hand marker.
 */

/* ---------------------------------------------------------------
   1. Type
   --------------------------------------------------------------- */

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-sans);
	font-weight: 700;
	letter-spacing: -0.018em;
	line-height: 1.25;
}

em,
i {
	font-style: normal;
}

h1 em,
h2 em,
h3 em,
.hero__title em,
.section-head__title em,
.tool-card__title em {
	color: var(--accent);
}

::selection {
	background: var(--accent-soft-2);
	color: var(--ink);
}

/* ---------------------------------------------------------------
   2. Header
   --------------------------------------------------------------- */

.masthead {
	position: sticky;
	top: var(--masthead-top);
	z-index: 60;
	height: var(--header-h);
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	box-shadow: none;
	transition: box-shadow 0.2s var(--ease), border-bottom-color 0.2s var(--ease);
}

.masthead.is-scrolled {
	box-shadow: var(--shadow-sm);
	border-bottom-color: transparent;
}

.masthead__inner {
	display: flex;
	align-items: center;
	gap: 18px;
	height: var(--header-h);
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
	border-bottom: 0;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	text-decoration: none;
}

.brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	background: var(--accent);
	color: var(--accent-contrast);
	box-shadow: 0 6px 16px -8px var(--accent);
}

.brand__mark svg {
	width: 19px;
	height: 19px;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	min-width: 0;
}

.brand__name {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--ink);
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.brand__tag {
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.brand__logo {
	max-height: 34px;
	width: auto;
}

/* The footer wordmark is larger, so it gets more room before ellipsis. */
.brand--footer .brand__name {
	max-width: 360px;
}

.brand__logo--dark {
	display: none;
}

[data-theme="dark"] .brand__logo--dark {
	display: block;
}

[data-theme="dark"] .brand__logo:not(.brand__logo--dark) {
	display: none;
}

.header-divider {
	width: 1px;
	height: 22px;
	flex: 0 0 auto;
	background: var(--line);
}

/* Navigation --------------------------------------------------- */

.nav {
	margin-right: auto;
	min-width: 0;
}

.nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav__list > li {
	position: relative;
}

.nav__list > li > a {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 12px;
	border-radius: 9px;
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.nav__list > li > a:hover,
.nav__list > li.current-menu-item > a,
.nav__list > li > a[aria-current="page"] {
	background: var(--accent-soft);
	color: var(--accent);
	text-decoration: none;
}

.nav__list .sub-menu {
	position: absolute;
	left: 0;
	z-index: 40;
	min-width: 180px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow-md);
}

.nav__list .sub-menu a {
	display: block;
	padding: 8px 12px;
	border-radius: 9px;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-2);
	text-decoration: none;
}

.nav__list .sub-menu a:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.masthead__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.icon-btn {
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: var(--surface);
	color: var(--ink-2);
	transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background 0.16s var(--ease);
}

.icon-btn:hover {
	border-color: var(--line-strong);
	background: var(--surface-2);
	color: var(--accent);
}

/* ---------------------------------------------------------------
   3. Language dropdown
   --------------------------------------------------------------- */

.lang-menu {
	position: relative;
	display: inline-flex;
}

.lang-menu__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 11px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink-2);
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	cursor: pointer;
	list-style: none;
	user-select: none;
	transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.lang-menu__btn::-webkit-details-marker {
	display: none;
}

.lang-menu__btn:hover,
.lang-menu[open] .lang-menu__btn {
	border-color: var(--line-strong);
	color: var(--accent);
}

.lang-menu__btn svg {
	flex: 0 0 auto;
}

.lang-menu__panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 70;
	display: grid;
	min-width: 160px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: var(--shadow-md);
}

.lang-menu__item {
	display: flex;
	align-items: center;
	height: 34px;
	padding: 0 12px;
	border-radius: 9px;
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.lang-menu__item:hover {
	background: var(--surface-2);
	color: var(--accent);
	text-decoration: none;
}

.lang-menu__item.is-current {
	background: var(--accent-soft);
	color: var(--accent);
	font-weight: 600;
}

.lang-menu--stack .lang-menu__btn {
	display: none;
}

.lang-menu--stack .lang-menu__panel {
	position: static;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-width: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

.lang-menu--stack .lang-menu__item {
	height: 32px;
	border: 1px solid var(--line);
	border-radius: 999px;
}

/* ---------------------------------------------------------------
   4. Buttons, chips, forms
   --------------------------------------------------------------- */

.btn {
	height: 40px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.005em;
	transition: background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease), box-shadow 0.16s var(--ease), transform 0.16s var(--ease);
}

.btn:hover {
	transform: translateY(-1px);
}

.btn--primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-contrast);
	box-shadow: 0 10px 24px -14px var(--accent);
}

.btn--primary:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-contrast);
	filter: brightness(1.06);
	box-shadow: 0 14px 30px -14px var(--accent);
}

.btn--ghost,
.btn--paper {
	background: var(--surface);
	border-color: var(--line);
	color: var(--ink-2);
}

.btn--ghost:hover,
.btn--paper:hover {
	background: var(--surface-2);
	border-color: var(--line-strong);
	color: var(--ink);
}

.btn--outline-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.32);
	color: #fff;
}

.btn--outline-light:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.6);
	color: #fff;
}

.btn--lg {
	height: 46px;
	padding: 0 22px;
	border-radius: 12px;
	font-size: 14px;
}

.btn--sm {
	height: 34px;
	padding: 0 14px;
	border-radius: 9px;
	font-size: 12px;
}

.btn--xs {
	height: 28px;
	padding: 0 10px;
	border-radius: 8px;
	font-size: 11px;
}

.chip {
	height: 30px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink-2);
	font-size: 12px;
	font-weight: 600;
	transition: border-color 0.16s var(--ease), color 0.16s var(--ease), background 0.16s var(--ease);
}

.chip:hover {
	border-color: var(--line-strong);
	background: var(--surface-2);
	color: var(--ink);
	text-decoration: none;
}

.chip.is-active,
.chip--filter.is-active {
	background: var(--accent-soft);
	border-color: transparent;
	color: var(--accent);
}

.chip--accent {
	background: var(--accent-soft);
	border-color: transparent;
	color: var(--accent);
}

.field__label {
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-2);
	letter-spacing: 0.01em;
}

.field__hint {
	font-size: 12px;
	color: var(--muted);
	line-height: 1.55;
}

.input {
	height: 44px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 500;
	transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), background 0.16s var(--ease);
}

.input::placeholder {
	color: var(--muted);
	font-weight: 400;
}

.input:hover {
	border-color: var(--line-strong);
}

.input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.select-wrap select,
.times-select {
	width: 100%;
	height: 44px;
	padding: 0 34px 0 13px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: var(--surface);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 14px;
	font-weight: 500;
	appearance: none;
}

.select-wrap select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.segmented {
	display: inline-flex;
	gap: 3px;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: var(--surface-2);
}

.segmented__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	padding: 0 13px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	transition: background 0.16s var(--ease), color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.segmented__btn.is-active {
	background: var(--surface);
	color: var(--ink);
	box-shadow: var(--shadow-xs);
}

/* ---------------------------------------------------------------
   5. Sections and page headers
   --------------------------------------------------------------- */

.section {
	padding: clamp(48px, 7vw, 76px) 0;
}

.section--paper {
	background: var(--paper-2);
}

.section--rule {
	border-top: 1px solid var(--line);
}

.section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(24px, 3.4vw, 36px);
	padding-bottom: 0;
	border-bottom: 0;
}

.section-head__title {
	margin: 8px 0 0;
	font-size: clamp(26px, 3.4vw, 36px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.18;
	color: var(--ink);
}

.section-head__text {
	max-width: 52ch;
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.65;
}

.section-head__count {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--accent);
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.eyebrow::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--marker);
}

.eyebrow__line {
	display: none;
}

.eyebrow--light {
	color: var(--card-muted);
}

/* Pages without a page header carry their own top spacing. */
.page--tools .container,
.page--tool .container,
.page-body,
.search-page {
	padding-top: clamp(20px, 3vw, 34px);
}

/* ---------------------------------------------------------------
   6. Readouts, meters, badges
   --------------------------------------------------------------- */

.readout {
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface);
}

.readout__value {
	font-family: var(--font-sans);
	font-size: clamp(24px, 3.6vw, 34px);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.1;
	color: var(--ink);
	font-variant-numeric: tabular-nums;
}

.readout__meta {
	margin-top: 6px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
}

.meter {
	position: relative;
	height: 6px;
	border-radius: 999px;
	background: var(--paper-2);
	overflow: hidden;
}

.meter i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--accent);
	transition: width 0.4s var(--ease);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 22px;
	padding: 0 8px;
	border: 1px solid var(--line);
	border-radius: 6px;
	background: var(--surface-2);
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.badge--live {
	border-color: transparent;
	background: var(--signal-soft);
	color: color-mix(in srgb, var(--signal) 74%, var(--ink));
}

.pulse-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--signal);
	box-shadow: 0 0 0 3px var(--signal-soft);
}

/* ---------------------------------------------------------------
   7. Search
   --------------------------------------------------------------- */

.search-panel {
	border-top: 1px solid var(--line);
	background: var(--surface);
}

.search-form__input {
	flex: 1 1 auto;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface-2);
	color: var(--ink);
	font-size: 14px;
}

.search-form__input:focus {
	outline: none;
	border-color: var(--accent);
	background: var(--surface);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-form__submit {
	height: 46px;
	padding: 0 18px;
	border-radius: 12px;
	background: var(--accent);
	color: var(--accent-contrast);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* ---------------------------------------------------------------
   8. Footer
   --------------------------------------------------------------- */

.footer {
	margin-top: clamp(36px, 6vw, 64px);
	padding: 0;
	background: var(--surface);
	border-top: 1px solid var(--line);
}

.footer__ruler,
.footer__wordmark,
.footer__clock,
.footer__quote {
	display: none;
}

.footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 48px);
	padding: clamp(32px, 5vw, 48px) 0;
	border-bottom: 1px solid var(--line);
}

.footer__col {
	min-width: 0;
}

.footer__intro {
	display: grid;
	align-content: start;
	gap: 14px;
	min-width: 0;
}

.footer__title {
	margin: 0 0 14px;
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}

.footer-links {
	display: grid;
	gap: 9px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links a {
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.16s var(--ease);
}

.footer-links a:hover {
	color: var(--accent);
}

.footer__note {
	max-width: 32ch;
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.65;
}

.footer__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer__stats li {
	display: inline-flex;
	align-items: center;
	height: 24px;
	padding: 0 9px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface-2);
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
}

.footer__top-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 16px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.footer__top-link:hover {
	color: var(--accent);
}

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 0;
	color: var(--muted);
	font-size: 12px;
}

.footer__bottom p {
	margin: 0;
}

.footer__colophon {
	color: var(--muted);
}

@media (max-width: 960px) {
	.footer__top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.footer__intro {
		grid-column: 1 / -1;
	}
}

@media (max-width: 620px) {
	.footer__top {
		grid-template-columns: minmax(0, 1fr);
	}
}

.footer__credit a {
	color: var(--ink-2);
	text-decoration: none;
}

.footer__credit a:hover {
	color: var(--accent);
}

.socials {
	display: flex;
	align-items: center;
	gap: 6px;
}

.socials__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--line);
	border-radius: 9px;
	color: var(--muted);
	transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}

.socials__link:hover {
	border-color: var(--line-strong);
	color: var(--accent);
}

.to-top {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: var(--surface);
	color: var(--ink-2);
	box-shadow: var(--shadow-sm);
}

.to-top:hover {
	color: var(--accent);
	border-color: var(--line-strong);
}

/* ---------------------------------------------------------------
   9. Breadcrumbs and toast
   --------------------------------------------------------------- */

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
}

.breadcrumbs a {
	color: var(--muted);
	text-decoration: none;
}

.breadcrumbs a:hover {
	color: var(--accent);
}

.times-toast {
	border-radius: 999px;
	background: var(--ink-card);
	color: var(--card-ink);
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 600;
	box-shadow: var(--shadow-lg);
}

/* ---------------------------------------------------------------
   10. Home hero and tool cards
   --------------------------------------------------------------- */

.hero {
	position: relative;
	padding: clamp(40px, 6vw, 76px) 0 clamp(34px, 5vw, 58px);
	background:
		radial-gradient(circle at 88% -8%, var(--accent-soft), transparent 46%),
		radial-gradient(circle at -4% 106%, var(--signal-soft), transparent 48%),
		var(--paper);
	overflow: hidden;
}

/* Two dashed rings read as a watch dial without adding any texture. */
.hero::before,
.hero::after {
	content: "";
	position: absolute;
	border: 1px dashed var(--line-strong);
	border-radius: 50%;
	pointer-events: none;
}

.hero::before {
	top: -180px;
	right: -120px;
	width: 520px;
	height: 520px;
}

.hero::after {
	top: -90px;
	right: -30px;
	width: 340px;
	height: 340px;
	border-color: var(--line);
}

.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(28px, 4vw, 56px);
}

.hero__title {
	margin: 14px 0 0;
	font-size: clamp(36px, 5vw, 56px);
	font-weight: 700;
	letter-spacing: -0.042em;
	line-height: 1.06;
	color: var(--ink);
}

.hero__text {
	max-width: 46ch;
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.68;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	margin: 28px 0 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
}

.hero__meta li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.hero__clock {
	min-width: 0;
}

.hero__scroll,
.marquee,
.dial {
	display: none;
}

/* Live clock card --------------------------------------------- */

.chrono {
	position: relative;
	padding: 22px;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-md);
}

.chrono::after {
	content: "";
	position: absolute;
	top: 0;
	left: 22px;
	right: 22px;
	height: 2px;
	border-radius: 0 0 999px 999px;
	background: linear-gradient(90deg, var(--accent), var(--signal));
}

.chrono__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.chrono__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.chrono__zone {
	padding: 4px 8px;
	border-radius: 6px;
	background: var(--accent-soft);
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
}

.chrono__time {
	display: flex;
	align-items: baseline;
	gap: 1px;
	margin-top: 14px;
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: clamp(38px, 5.4vw, 54px);
	font-weight: 700;
	letter-spacing: -0.05em;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.chrono__colon {
	color: var(--marker);
	animation: times-blink 2s steps(1, end) infinite;
}

.chrono__seconds {
	margin-left: 4px;
	color: var(--signal);
	font-size: 0.52em;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.chrono__date {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 13px;
	font-weight: 500;
}

.chrono__body {
	display: block;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
}

.chrono__meter-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 9px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
}

.chrono__meter-head strong {
	color: var(--accent);
	font-weight: 700;
}

.chrono__rows {
	margin-top: 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface-2);
	overflow: hidden;
}

.chrono__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 13px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
}

.chrono__row + .chrono__row {
	border-top: 1px solid var(--line);
}

.chrono__row strong {
	color: var(--ink);
	font-family: var(--font-mono);
	font-weight: 600;
}

@keyframes times-blink {
	0%, 55% { opacity: 0.35; }
	56%, 100% { opacity: 0; }
}

/* Tool grid --------------------------------------------------- */

.filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.filter-bar__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.filter-bar__chips .chip span {
	margin-left: 6px;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--paper-2);
	color: var(--muted);
	font-size: 10px;
	font-weight: 700;
}

.filter-bar__hint {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
}

.tool-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
	gap: 16px;
}

.tool-card {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	overflow: hidden;
	transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.18s var(--ease);
}

.tool-card:hover {
	border-color: var(--accent-soft-2);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.tool-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 18px;
	color: inherit;
	text-decoration: none;
}

.tool-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.tool-card__index {
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.tool-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: var(--accent-soft);
	color: var(--accent);
}

.tool-card__cat {
	display: block;
	color: var(--muted);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tool-card__title {
	margin: 6px 0 0;
	color: var(--ink);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.022em;
	line-height: 1.3;
}

.tool-card__desc {
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.6;
}

.tool-card__live {
	margin-top: auto;
	padding-top: 14px;
	color: var(--accent);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
}

.tool-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

.tool-card__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--surface-2);
	color: var(--ink-2);
	transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.tool-card__arrow svg {
	transform: rotate(45deg);
}

.tool-card:hover .tool-card__arrow {
	background: var(--accent);
	color: var(--accent-contrast);
}

@media (max-width: 960px) {
	.hero__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.hero__text {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.chrono__colon,
	.tool-card {
		animation: none;
		transition: none;
	}
}

@media (max-width: 860px) {
	.section-head {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}
}

/* ---------------------------------------------------------------
   11. Home sections
   --------------------------------------------------------------- */

/* World strip ------------------------------------------------- */

.world {
	padding: clamp(28px, 4vw, 44px) 0;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
}

.world__note {
	margin: 0;
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 12px;
	line-height: 1.5;
}

.world__grid {
	border-color: var(--line);
	background: var(--line);
	border-radius: var(--radius);
}

.world-city {
	padding: 16px 18px 14px;
}

.world-city__city {
	color: var(--ink-2);
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.world-city__icon {
	color: var(--line-strong);
}

.world-city__time {
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: clamp(22px, 2.4vw, 27px);
	font-weight: 700;
	letter-spacing: -0.04em;
	font-variant-numeric: tabular-nums;
}

.world-city__meta {
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.world-city__bar {
	height: 4px;
	margin-top: 9px;
	background: var(--paper-2);
}

/* Time in perspective ----------------------------------------- */

.section--perspective {
	background: var(--surface);
	color: var(--ink);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	--card-ink: var(--ink);
	--card-muted: var(--muted);
	--card-line: var(--line);
}

.section--perspective::before,
.section--perspective::after {
	display: none;
}

.perspective {
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
	align-items: start;
	gap: clamp(28px, 4vw, 64px);
}

.perspective__title {
	margin: 12px 0 14px;
	font-size: clamp(28px, 3.6vw, 42px);
	line-height: 1.14;
	letter-spacing: -0.035em;
}

.perspective__text {
	max-width: 48ch;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.7;
}

.perspective__quote {
	max-width: 46ch;
	margin: 24px 0 0;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--surface-2);
}

.perspective__quote p {
	margin: 0 0 8px;
	color: var(--ink-2);
	font-family: var(--font-sans);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
}

.perspective__quote cite {
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.balance {
	padding: clamp(20px, 2.6vw, 28px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow-md);
}

.balance__title {
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 700;
	letter-spacing: -0.015em;
}

.balance__row {
	gap: 8px 16px;
	padding: 15px 0;
	border-top: 1px solid var(--line);
}

.balance__row:first-of-type {
	padding-top: 12px;
}

.balance__label {
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
}

.balance__value {
	color: var(--muted);
	font-size: 12px;
}

.balance__value strong {
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.balance__row .meter {
	height: 8px;
	background: var(--paper-2);
}

.balance__percent {
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.balance__foot {
	margin-top: 2px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.balance__foot strong {
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: 12px;
	font-weight: 600;
}

/* Journal ------------------------------------------------------ */

.post-card {
	border-color: var(--line);
	border-radius: var(--radius);
	box-shadow: none;
}

.post-card:hover {
	transform: translateY(-2px);
	border-color: var(--line-strong);
	box-shadow: var(--shadow-md);
}

.post-card__day {
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: clamp(40px, 4.4vw, 52px);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.05em;
}

.post-card__month {
	color: var(--muted);
	font-family: var(--font-sans);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.post-card__glyph {
	opacity: 0.08;
}

.empty-note {
	color: var(--muted);
	font-size: 14px;
}

/* FAQ ---------------------------------------------------------- */

.section--faq {
	background: var(--surface);
	border-top: 1px solid var(--line);
}

.faq-layout {
	grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
	gap: clamp(28px, 4vw, 64px);
}

.faq-layout__head {
	position: sticky;
	top: calc(var(--header-h) + 24px);
}

.faq {
	gap: 10px;
}

.faq__item {
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	overflow: hidden;
	transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.faq__item:last-child {
	border-bottom: 1px solid var(--line);
}

.faq__item[open] {
	border-color: var(--accent-soft-2);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
}

.faq__question {
	padding: 15px 18px;
	color: var(--ink-2);
	font-size: 14px;
	font-weight: 600;
}

.faq__item[open] .faq__question,
.faq__question:hover {
	color: var(--accent);
}

.faq__toggle {
	width: 18px;
	height: 18px;
	border: 1px solid var(--line);
	border-radius: 6px;
	color: var(--muted);
}

.faq__toggle::before,
.faq__toggle::after {
	width: 8px;
}

.faq__answer {
	padding: 0 18px 16px;
}

.faq__answer p {
	font-size: 14px;
	line-height: 1.7;
}

/* Text link ---------------------------------------------------- */

.text-link {
	gap: 6px;
	padding: 0;
	border-bottom: 0;
	color: var(--accent);
	font-family: var(--font-sans);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: -0.005em;
	text-transform: none;
}

.text-link:hover {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 0.22em;
}

/* Closing CTA -------------------------------------------------- */

.cta {
	grid-template-columns: minmax(0, 1.3fr) auto;
	align-items: center;
	gap: clamp(24px, 3vw, 40px);
	padding: clamp(26px, 4vw, 46px);
	border: 0;
	border-radius: var(--radius-lg);
	background:
		radial-gradient(circle at 90% 8%, rgba(255, 255, 255, 0.2), transparent 46%),
		linear-gradient(135deg, #2a6ef0 0%, #1b4fc4 56%, #123a96 100%);
	color: #fff;
	box-shadow: 0 28px 60px -34px rgba(21, 58, 148, 0.72);
	--card-ink: #ffffff;
	--card-muted: rgba(255, 255, 255, 0.8);
	--card-line: rgba(255, 255, 255, 0.24);
}

.cta::before,
.cta__grain {
	display: none;
}

.cta__title {
	margin: 12px 0 14px;
	color: #fff;
	font-size: clamp(26px, 3.6vw, 42px);
	line-height: 1.12;
	letter-spacing: -0.035em;
}

.cta__text {
	max-width: 50ch;
	color: rgba(255, 255, 255, 0.82);
	font-size: 15px;
	line-height: 1.68;
}

.cta__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	margin-top: 0;
}

.cta__actions .btn {
	justify-content: center;
	white-space: nowrap;
}

.cta__actions .btn--paper {
	border-color: #fff;
	background: #fff;
	color: var(--accent);
	box-shadow: 0 14px 28px -18px rgba(6, 22, 60, 0.7);
}

.cta__actions .btn--paper:hover {
	border-color: #eef4ff;
	background: #eef4ff;
	color: var(--accent);
}

@media (max-width: 960px) {
	.perspective,
	.faq-layout,
	.cta {
		grid-template-columns: minmax(0, 1fr);
	}

	.faq-layout__head {
		position: static;
		top: auto;
	}

	.cta__actions {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.cta__actions .btn {
		flex: 1 1 auto;
	}
}

@media (max-width: 620px) {
	.hero__meta li + li {
		padding-left: 0;
		border-left: 0;
	}

	.cta__actions {
		flex-direction: column;
	}
}
