:root {
  color-scheme: light;
  --bg: #f2efe6;
  --bg-deep: #e9e4d8;
  --surface: #fbf9f3;
  --surface-soft: #f5f2e9;
  --ink: #1c1b17;
  --ink-soft: #49463e;
  --muted: #6c685e;
  --line: rgba(28, 27, 23, 0.12);
  --line-strong: rgba(28, 27, 23, 0.22);
  --accent: #e54b16;
  --accent-ink: #b43b0d;
  --accent-soft: #fbe3d6;
  --night: #191a16;
  --cream: #f6f2e8;
  --font-body: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Bahnschrift", "DIN Alternate", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
  --radius-lg: 30px;
  --radius-md: 20px;
  --shadow-soft: 0 18px 50px rgba(35, 32, 24, 0.07);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: #b9b2a3 transparent;
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 92% -10%, rgba(229, 75, 22, 0.13), transparent 63%),
    radial-gradient(900px 620px at -8% 14%, rgba(106, 120, 92, 0.1), transparent 62%),
    var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image: radial-gradient(rgba(28, 27, 23, 0.24) 0.55px, transparent 0.55px);
  background-size: 9px 9px;
  mask-image: linear-gradient(to bottom, #000, transparent 65%);
}

::selection {
  color: var(--cream);
  background: var(--accent);
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

svg {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

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

.wrap {
  width: min(1240px, calc(100% - 72px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--cream);
  background: var(--ink);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 26px;
  padding-bottom: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border-radius: 12px;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--cream);
  background: var(--ink);
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.brand-dot {
  color: var(--accent);
}

.brand-sub {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1;
  text-transform: uppercase;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.01em;
}

.header-divider {
  width: 1px;
  height: 12px;
  margin-inline: 3px;
  background: var(--line-strong);
}

.live-dot {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--accent);
  border-radius: inherit;
  animation: live-pulse 2.4s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    opacity: 0.7;
    transform: scale(0.35);
  }
  65%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 25px 38px 23px 40px;
  color: var(--cream);
  background:
    radial-gradient(700px 460px at 86% 4%, rgba(229, 75, 22, 0.32), transparent 64%),
    radial-gradient(540px 380px at 0% 110%, rgba(104, 122, 86, 0.2), transparent 70%),
    var(--night);
  border-radius: var(--radius-lg);
  box-shadow:
    0 30px 80px rgba(35, 31, 23, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.65;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: radial-gradient(120% 110% at 78% 0%, #000 0%, transparent 72%);
}

.hero-topline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(246, 242, 232, 0.55);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero-place {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(246, 242, 232, 0.78);
}

.hero-coords {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.hero-main {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  min-height: 332px;
  padding: 27px 0 20px;
}

.hero-kicker {
  margin-bottom: 13px;
  color: rgba(246, 242, 232, 0.58);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.hero-clock {
  display: flex;
  align-items: flex-start;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(88px, 11.2vw, 146px);
  font-stretch: 92%;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.82;
  white-space: nowrap;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.16);
}

.hero-seconds {
  margin-top: 0.16em;
  margin-left: 0.09em;
  color: #ff7e4e;
  font-size: 0.23em;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.hero-date {
  margin-top: 25px;
  color: rgba(246, 242, 232, 0.7);
  font-size: 14.5px;
  letter-spacing: 0.005em;
}

.hero-period {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 13px;
  color: rgba(246, 242, 232, 0.6);
  font-size: 11.5px;
}

.period-dot {
  width: 5px;
  height: 5px;
  background: #eab25d;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(234, 178, 93, 0.65);
}

.hero-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 16px;
}

.orbit {
  position: relative;
  flex: 0 0 auto;
  width: 286px;
  height: 286px;
  border-radius: 50%;
}

.orbit::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.055), transparent 70%);
  filter: blur(10px);
}

.orbit-ticks {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -0.35deg,
    rgba(246, 242, 232, 0.38) 0deg 0.65deg,
    transparent 0.65deg 6deg
  );
  -webkit-mask: radial-gradient(circle at center, transparent 64.5%, #000 65.2% 67.5%, transparent 68.2%);
  mask: radial-gradient(circle at center, transparent 64.5%, #000 65.2% 67.5%, transparent 68.2%);
}

.orbit-ring {
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(246, 242, 232, 0.13);
  border-radius: 50%;
  box-shadow:
    0 0 0 19px rgba(246, 242, 232, 0.018),
    inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.orbit-hand {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: orbit-turn 60s linear infinite;
  animation-delay: var(--orbit-delay, 0s);
  will-change: transform;
}

@keyframes orbit-turn {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.orbit-hand span {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  background: #ff7440;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(229, 75, 22, 0.12),
    0 0 20px rgba(255, 116, 64, 0.8);
}

.orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  border: 1px solid rgba(246, 242, 232, 0.12);
  border-radius: 50%;
  background: rgba(246, 242, 232, 0.025);
  box-shadow: inset 0 1px 18px rgba(255, 255, 255, 0.03);
  transform: translate(-50%, -50%);
}

.orbit-label {
  color: rgba(246, 242, 232, 0.4);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.orbit-core strong {
  margin: 3px 0 1px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.orbit-unit {
  color: rgba(246, 242, 232, 0.3);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.16em;
}

.hero-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-top: 17px;
  border-top: 1px solid rgba(246, 242, 232, 0.1);
}

.hero-footer p {
  max-width: 550px;
  color: rgba(246, 242, 232, 0.57);
  font-size: 11.5px;
  line-height: 1.5;
}

.scroll-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  color: rgba(246, 242, 232, 0.77);
  border: 1px solid rgba(246, 242, 232, 0.15);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.scroll-link svg {
  width: 13px;
  height: 13px;
}

.scroll-link:hover {
  color: var(--cream);
  background: rgba(246, 242, 232, 0.06);
  border-color: rgba(246, 242, 232, 0.28);
}

/* Explore and filters */

.explore {
  margin-top: 66px;
  scroll-margin-top: 24px;
}

.explore-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 22px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  color: var(--accent-ink);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.explore-head h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.1vw, 39px);
  font-stretch: 95%;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.explore-note {
  max-width: 390px;
  padding-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.filter-panel {
  padding: 18px 20px 15px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: rgba(251, 249, 243, 0.78);
  box-shadow: 0 16px 38px rgba(35, 32, 24, 0.045);
  backdrop-filter: blur(10px);
}

.filter-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-field {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  height: 47px;
  min-width: 0;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.search-field:focus-within {
  border-color: rgba(28, 27, 23, 0.42);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(229, 75, 22, 0.09);
}

.search-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-right: 9px;
  color: var(--muted);
}

.search-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.search-field input::placeholder {
  color: #8c8679;
  opacity: 1;
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  display: grid;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  margin-left: 5px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.search-clear svg {
  width: 13px;
  height: 13px;
}

.search-clear:hover {
  color: var(--ink);
  background: rgba(28, 27, 23, 0.06);
}

.scope-tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(28, 27, 23, 0.05);
  border-radius: 14px;
  background: var(--bg-deep);
}

.scope-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  color: var(--ink-soft);
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.scope-tab:hover {
  color: var(--ink);
  background: rgba(251, 249, 243, 0.66);
}

.scope-tab[aria-pressed="true"] {
  color: var(--cream);
  background: var(--ink);
  box-shadow: 0 4px 12px rgba(28, 27, 23, 0.16);
}

.scope-tab[aria-pressed="true"]:hover {
  color: var(--cream);
  background: var(--ink);
}

.scope-tab svg {
  width: 13px;
  height: 13px;
  fill: none;
}

.scope-tab-fav.has-favorites svg {
  color: var(--accent);
}

.scope-tab[aria-pressed="true"].scope-tab-fav.has-favorites svg {
  color: #ff8a5e;
}

.tab-count {
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  opacity: 0.48;
}

.scope-tab[aria-pressed="true"] .tab-count {
  color: #ff9a72;
  opacity: 1;
}

.filter-bottom {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.select-block {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.select-block label {
  padding-left: 2px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.select-wrap {
  position: relative;
}

.select-wrap svg {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 13px;
  height: 13px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.select-wrap select {
  width: 100%;
  height: 40px;
  min-width: 214px;
  padding: 0 34px 0 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: var(--surface-soft);
  font-size: 11.5px;
  appearance: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.select-block:nth-child(2) select {
  min-width: 176px;
}

.select-wrap select:hover {
  border-color: var(--line-strong);
}

.select-wrap select:focus-visible {
  border-color: rgba(28, 27, 23, 0.4);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(229, 75, 22, 0.09);
}

.reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 7px;
  color: var(--muted);
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 11px;
  text-decoration: underline;
  text-decoration-color: rgba(108, 104, 94, 0.45);
  text-underline-offset: 3px;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.reset-btn svg {
  width: 11px;
  height: 11px;
}

.reset-btn:hover {
  color: var(--ink);
  background: rgba(28, 27, 23, 0.04);
}

.results {
  align-self: flex-end;
  margin-left: auto;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Sections and cards */

.results-area {
  margin-top: 36px;
}

.time-section {
  scroll-margin-top: 24px;
}

.time-section + .time-section {
  margin-top: 62px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 17px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 13px;
}

.section-no {
  display: grid;
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  place-items: center;
  color: var(--accent-ink);
  border-radius: 50%;
  background: rgba(229, 75, 22, 0.09);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.04em;
}

.section-kicker {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 25px;
  font-stretch: 95%;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.section-meta {
  padding-bottom: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.015em;
  text-align: right;
  white-space: nowrap;
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.clock-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 188px;
  flex-direction: column;
  padding: 16px 16px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.clock-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(200px 130px at 100% 0%, rgba(229, 75, 22, 0.11), transparent 72%);
  transition: opacity 200ms ease;
}

.clock-card:hover {
  border-color: rgba(28, 27, 23, 0.2);
  box-shadow: 0 13px 28px rgba(35, 32, 24, 0.075);
  transform: translateY(-3px);
}

.clock-card:hover::before {
  opacity: 1;
}

.clock-card.is-favorite {
  border-color: rgba(229, 75, 22, 0.34);
  background:
    linear-gradient(155deg, rgba(255, 247, 238, 0.9), rgba(251, 249, 243, 0.96) 58%),
    var(--surface);
}

.clock-card.is-favorite::after {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  width: 28px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--accent);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-place {
  min-width: 0;
}

.card-city {
  padding-right: 2px;
  font-family: var(--font-display);
  font-size: 18px;
  font-stretch: 96%;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  overflow-wrap: break-word;
}

.card-region {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-region .utc {
  color: #7e786b;
  font-family: var(--font-mono);
  font-size: 9px;
}

.fav-btn {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin: -4px -5px 0 0;
  padding: 0;
  place-items: center;
  color: #999286;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.fav-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.fav-btn:hover {
  color: var(--accent);
  border-color: rgba(229, 75, 22, 0.16);
  background: var(--accent-soft);
  transform: scale(1.05);
}

.fav-btn[aria-pressed="true"] {
  color: var(--accent);
  border-color: rgba(229, 75, 22, 0.2);
  background: var(--accent-soft);
}

.fav-btn[aria-pressed="true"] svg {
  fill: currentColor;
}

.card-clock {
  display: flex;
  align-items: baseline;
  margin: 21px 0 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 38px;
  font-stretch: 92%;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
  white-space: nowrap;
}

.card-seconds {
  margin-left: 1px;
  color: #746e62;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid rgba(28, 27, 23, 0.085);
}

.card-date-wrap {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.card-date {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
}

.day-shift {
  padding: 1px 4px;
  color: var(--accent-ink);
  border-radius: 4px;
  background: rgba(229, 75, 22, 0.1);
  font-family: var(--font-mono);
  font-size: 7.5px;
  line-height: 1.5;
  white-space: nowrap;
}

.card-diff {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

/* Empty state */

.empty-state {
  padding: 62px 24px 58px;
  border: 1px dashed var(--line-strong);
  border-radius: 24px;
  background: rgba(251, 249, 243, 0.46);
  text-align: center;
}

.empty-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 17px;
  place-items: center;
  color: var(--accent-ink);
  border-radius: 50%;
  background: var(--accent-soft);
}

.empty-icon svg {
  width: 28px;
  height: 28px;
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.empty-state p {
  max-width: 390px;
  margin: 6px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.empty-action {
  height: 41px;
  margin-top: 18px;
  padding: 0 17px;
  color: var(--cream);
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.empty-action:hover {
  background: #343229;
  transform: translateY(-1px);
}

/* Footer and toast */

.site-footer {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 78px;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
}

.footer-brand {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.footer-brand span {
  color: var(--accent);
}

.footer-note {
  max-width: 350px;
  line-height: 1.45;
}

.footer-note-right {
  margin-left: auto;
  text-align: right;
}

.toast {
  position: fixed;
  bottom: 27px;
  left: 50%;
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 10px 17px;
  color: var(--cream);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(22, 20, 16, 0.24);
  font-size: 11.5px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast button {
  margin-left: 11px;
  padding: 1px 0;
  color: #ff9a72;
  border: 0;
  border-bottom: 1px solid rgba(255, 154, 114, 0.45);
  background: transparent;
  font-size: inherit;
  font-weight: 600;
}

.toast button:hover {
  color: #ffc0a4;
  border-bottom-color: currentColor;
}

.noscript-note {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 100;
  padding: 13px 18px;
  color: var(--cream);
  border-radius: 12px;
  background: var(--ink);
  font-size: 13px;
  text-align: center;
}

/* Responsive */

@media (max-width: 1180px) {
  .clock-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .orbit {
    width: 252px;
    height: 252px;
  }

  .hero-side {
    padding-right: 0;
  }

  .hero-clock {
    font-size: clamp(86px, 11.4vw, 128px);
  }
}

@media (max-width: 1080px) {
  .filter-top {
    flex-wrap: wrap;
  }

  .search-field {
    flex-basis: 100%;
  }

  .scope-tabs {
    width: 100%;
  }

  .scope-tab {
    flex: 1;
  }
}

@media (max-width: 980px) {
  .hero {
    padding-right: 30px;
    padding-left: 30px;
  }

  .hero-main {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 300px;
  }

  .hero-side {
    width: 195px;
  }

  .orbit {
    width: 208px;
    height: 208px;
  }

  .orbit-core {
    width: 88px;
    height: 88px;
  }

  .orbit-core strong {
    font-size: 24px;
  }

  .hero-clock {
    font-size: clamp(80px, 11vw, 112px);
  }

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

  .explore-head {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .site-header {
    padding-top: 18px;
    padding-bottom: 16px;
  }

  .header-status #header-date,
  .header-divider {
    display: none;
  }

  .hero {
    padding: 20px 20px 18px;
    border-radius: 24px;
  }

  .hero-grid {
    background-size: 54px 54px;
  }

  .hero-coords {
    display: none;
  }

  .hero-main {
    display: block;
    min-height: 0;
    padding: 50px 0 32px;
  }

  .hero-side {
    display: none;
  }

  .hero-clock {
    font-size: clamp(76px, 18.5vw, 108px);
  }

  .hero-seconds {
    margin-top: 0.13em;
  }

  .hero-date {
    margin-top: 22px;
    font-size: 13px;
  }

  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .hero-footer p {
    max-width: 420px;
  }

  .explore {
    margin-top: 46px;
  }

  .explore-head {
    display: block;
    margin-bottom: 17px;
  }

  .explore-note {
    max-width: 440px;
    margin-top: 9px;
    padding-bottom: 0;
  }

  .filter-panel {
    padding: 14px;
    border-radius: 19px;
  }

  .filter-top {
    display: block;
  }

  .search-field {
    width: 100%;
    height: 44px;
  }

  .scope-tabs {
    margin-top: 9px;
  }

  .scope-tab {
    height: 37px;
    padding: 0 7px;
    font-size: 11px;
  }

  .filter-bottom {
    gap: 9px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .select-block {
    flex: 1 1 140px;
  }

  .select-block label {
    font-size: 8px;
  }

  .select-wrap select,
  .select-block:nth-child(2) select {
    width: 100%;
    min-width: 0;
  }

  .reset-btn {
    height: 36px;
  }

  .results {
    flex-basis: 100%;
    margin: 1px 0 0;
    text-align: right;
  }

  .results-area {
    margin-top: 28px;
  }

  .section-head {
    gap: 14px;
    padding-bottom: 12px;
  }

  .section-head h2 {
    font-size: 22px;
  }

  .section-meta {
    display: none;
  }

  .time-section + .time-section {
    margin-top: 46px;
  }

  .clock-card {
    min-height: 176px;
  }

  .fav-btn {
    width: 36px;
    height: 36px;
    margin: -7px -8px 0 0;
  }

  .fav-btn svg {
    width: 18px;
    height: 18px;
  }

  .site-footer {
    display: block;
    margin-top: 56px;
    padding-top: 18px;
  }

  .footer-brand {
    margin-bottom: 9px;
  }

  .footer-note {
    max-width: 390px;
  }

  .footer-note-right {
    margin: 8px 0 0;
    text-align: left;
  }
}

@media (max-width: 540px) {
  .header-status {
    gap: 7px;
    font-size: 10.5px;
  }

  .brand-word {
    font-size: 23px;
  }

  .brand-sub {
    font-size: 7.5px;
  }

  .scope-tab {
    gap: 3px;
    padding: 0 5px;
    font-size: 10.5px;
  }

  .scope-tab-fav svg {
    display: none;
  }

  .tab-count {
    display: none;
  }

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

  .clock-card {
    min-height: 166px;
    padding: 15px 15px 13px;
  }

  .card-city {
    font-size: 19px;
  }

  .card-clock {
    margin: 17px 0 15px;
    font-size: 42px;
  }

  .card-seconds {
    font-size: 15px;
  }

  .empty-state {
    padding: 46px 18px 42px;
  }

  .empty-state h3 {
    font-size: 21px;
  }

  .toast {
    bottom: 18px;
  }
}

@media (max-width: 350px) {
  .filter-bottom .select-block {
    flex-basis: 100%;
  }
}

@media (max-width: 400px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-mark svg {
    width: 21px;
    height: 21px;
  }

  .brand-sub {
    letter-spacing: 0.12em;
  }

  .scope-tab {
    padding-inline: 3px;
    font-size: 9.5px;
  }

  .hero-clock {
    font-size: clamp(69px, 18.2vw, 86px);
  }

  .hero-kicker {
    letter-spacing: 0.14em;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
