:root {
  --bg: #f7f5f0;
  --paper: rgba(255,255,255,.68);
  --ink: #161616;
  --muted: #7d7972;
  --line: rgba(22,22,22,.105);
  --soft: rgba(22,22,22,.042);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 7%, rgba(211,180,142,.13), transparent 24%),
    var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

a {
  color: inherit;
  text-decoration: none;
}

.header,
main,
footer {
  width: min(1100px, calc(100% - 44px));
  margin: 0 auto;
}

.header {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.mark {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 14px;
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: 330px;
  padding: 52px 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 80px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -60px;
  top: 13px;
  border-radius: 50%;
  border: 1px solid rgba(22,22,22,.055);
  background:
    radial-gradient(
      circle,
      transparent 0 66%,
      rgba(22,22,22,.035) 66.3% 66.6%,
      transparent 67%
    ),
    repeating-conic-gradient(
      from -90deg,
      rgba(22,22,22,.075) 0deg .5deg,
      transparent .5deg 30deg
    );
  opacity: .7;
  pointer-events: none;
}

.hero-copy,
.current-time {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 13px;
  font-size: 43px;
  line-height: 1;
  letter-spacing: -.05em;
}

.hero-copy p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.local-time {
  margin-top: 8px;
  font-size: clamp(58px, 6vw, 78px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
}

.local-date {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

h2 {
  margin: 5px 0 0;
  font-size: 27px;
  line-height: 1;
  letter-spacing: -.04em;
}

.live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.live i {
  width: 6px;
  height: 6px;
  background: #2da768;
  border-radius: 50%;
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.35);
}

.clock {
  min-width: 0;
  padding: 18px 16px;
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.clock:last-child {
  border-right: 0;
}

.clock-city {
  font-size: 12px;
  font-weight: 700;
}

.clock-zone {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clock-time {
  margin-top: 20px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}

.clock-day {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.converter-section {
  padding-bottom: 52px;
}

.converter {
  display: grid;
  grid-template-columns: 1.35fr .85fr .75fr auto 1.35fr 1.3fr;
  gap: 12px;
  align-items: end;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 12px 36px rgba(0,0,0,.035);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label,
.result span {
  color: var(--muted);
  font-size: 10px;
}

select,
input {
  width: 100%;
  height: 39px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  outline: none;
  background: rgba(255,255,255,.78);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
}

select:focus,
input:focus {
  border-color: rgba(22,22,22,.32);
}

.arrow {
  height: 39px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 18px;
}

.result {
  min-height: 53px;
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
}

.result strong {
  margin-top: 3px;
  font-size: 20px;
  line-height: 1;
}

.result small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.3;
}

footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

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

  .clock {
    border-bottom: 1px solid var(--line);
  }

  .clock:nth-child(3n) {
    border-right: 0;
  }

  .clock:nth-last-child(-n+3) {
    border-bottom: 0;
  }

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

  .arrow {
    display: none;
  }

  .result {
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 700px) {
  .header,
  main,
  footer {
    width: min(100% - 28px, 1100px);
  }

  nav {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 42px 0;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero::after {
    width: 230px;
    height: 230px;
    right: -115px;
  }

  h1 {
    font-size: 36px;
  }

  .local-time {
    font-size: 58px;
  }

  .section {
    padding: 40px 0;
  }

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

  .clock:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .clock:nth-child(2n) {
    border-right: 0;
  }

  .clock:nth-last-child(-n+3) {
    border-bottom: 1px solid var(--line);
  }

  .clock:nth-last-child(-n+2) {
    border-bottom: 0;
  }

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

  footer {
    padding: 20px 0;
    gap: 8px;
    align-items: flex-start;
    flex-direction: column;
  }
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 0;
}

.wordmark {
  font-size: 18px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -0.045em;
}

.brand-index {
  margin-top: -2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.04em;
}

.mark {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.brand-clock {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  overflow: visible;
}

.clock-ring,
.clock-tick,
.clock-hand {
  fill: none;
  stroke: currentColor;
  vector-effect: non-scaling-stroke;
}

.clock-ring {
  stroke-width: 1.6;
}

.clock-tick {
  stroke-width: 1.25;
  stroke-linecap: round;
  opacity: .65;
}

.clock-hand {
  stroke-linecap: round;
}

.clock-hour {
  stroke-width: 2;
}

.clock-minute {
  stroke-width: 1.6;
}

.clock-center {
  fill: currentColor;
}

.wordmark {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}

.brand-index,
.mark {
  display: none;
}
