:root {
  --paper: #f3f1eb;
  --ink: #111111;
  --ink-soft: #3c3b37;
  --mute: #7a776e;
  --hair: rgba(17, 17, 17, 0.16);
  --bar-1: #d5d8dc;
  --bar-2: #b4bac0;
  --bar-3: #8b929a;
  --bar-4: #161616;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Commissioner", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  min-height: 100%;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 640px at 6% -8%, rgba(255, 255, 255, 0.72), transparent 55%),
    radial-gradient(820px 520px at 100% 112%, rgba(186, 176, 154, 0.24), transparent 52%),
    var(--paper);
  font-family: var(--sans);
  font-optical-sizing: auto;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.frame {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(1.15rem, 2.6vw, 1.85rem);
  gap: clamp(1.1rem, 3.2vh, 2.2rem);
}

.frame::before {
  content: "";
  position: absolute;
  inset: clamp(0.55rem, 1.3vw, 0.95rem);
  border: 1px solid var(--hair);
  pointer-events: none;
}

.masthead,
.stage,
.colophon {
  position: relative;
}

.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0.15rem clamp(0.55rem, 2vw, 1.2rem) 0;
}

.brand {
  display: block;
  width: min(214px, 62vw);
}

.brand img {
  width: 100%;
}

.status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.45rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.status__mark {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--ink);
  animation: pulse 2.6s var(--ease) infinite;
}

.status__label {
  white-space: nowrap;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(150px, 0.5fr);
  align-items: center;
  gap: clamp(1.4rem, 4.5vw, 4rem);
  padding: 0 clamp(0.55rem, 2vw, 1.2rem);
  min-height: 0;
}

.copy {
  max-width: 40rem;
}

.kicker {
  margin: 0 0 0.95rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.4vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h1 em {
  font-style: italic;
  font-weight: 400;
}

.lead {
  max-width: 38ch;
  margin: 1.35rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.35vw, 1.14rem);
  line-height: 1.58;
  hyphens: none;
}

.contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 2rem;
  width: min(100%, 28rem);
  margin: 1.9rem 0 0;
  padding: 1.05rem 0 0;
  border-top: 1px solid var(--hair);
  list-style: none;
}

.contacts__label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.contacts a {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

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

.signal {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: clamp(0.65rem, 1.4vw, 1.05rem);
  height: min(100%, 46vh, 420px);
  min-height: 220px;
}

.signal__bar {
  width: clamp(1.1rem, 1.9vw, 1.7rem);
  height: var(--rise);
  transform-origin: bottom;
  animation: rise 5.6s var(--ease) infinite;
  animation-delay: calc(var(--i) * 0.42s);
}

.signal__bar:nth-child(1) {
  --rise: 54%;
  background: var(--bar-1);
}

.signal__bar:nth-child(2) {
  --rise: 68%;
  background: var(--bar-2);
}

.signal__bar:nth-child(3) {
  --rise: 84%;
  background: var(--bar-3);
}

.signal__bar:nth-child(4) {
  --rise: 100%;
  background: var(--bar-4);
}

.colophon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 1rem 1.5rem;
  padding: 0 clamp(0.55rem, 2vw, 1.2rem) 0.1rem;
  color: var(--mute);
}

.clocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  width: min(100%, 16rem);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.clocks p,
.motto,
.where {
  margin: 0;
}

.clocks span {
  display: block;
  margin-bottom: 0.22rem;
}

.clocks time {
  color: var(--ink);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.motto {
  justify-self: center;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}

.where {
  justify-self: end;
  max-width: 26ch;
  text-align: right;
  font-size: 0.78rem;
  line-height: 1.45;
}

.masthead,
.copy,
.signal,
.colophon {
  animation: enter 1.05s var(--ease) both;
}

.copy {
  animation-delay: 0.12s;
}

.signal {
  animation-delay: 0.24s;
}

.colophon {
  animation-delay: 0.36s;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rise {
  0%,
  100% {
    transform: scaleY(0.86);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.28;
  }
}

@media (max-width: 900px) {
  .stage {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .signal {
    height: 58px;
    min-height: 58px;
    justify-content: flex-start;
  }

  .signal__bar {
    width: 0.85rem;
  }

  .colophon {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .motto,
  .where {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .frame {
    gap: 0.85rem;
    padding: 1rem 0.95rem 0.75rem;
  }

  .masthead {
    flex-direction: column;
  }

  .brand {
    width: min(188px, 70vw);
  }

  .contacts {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    margin-top: 1.25rem;
  }

  .clocks {
    width: 100%;
    max-width: none;
  }

  .signal {
    height: 44px;
    min-height: 44px;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.05rem);
  }

  .lead {
    margin-top: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .masthead,
  .copy,
  .signal,
  .colophon,
  .signal__bar,
  .status__mark {
    animation: none;
  }
}

@media print {
  .grain,
  .signal,
  .frame::before {
    display: none;
  }

  body {
    background: #fff;
  }
}
