:root {
  --bg: #12110f;
  --fg: #f3f0e8;
  --dim: #7a776f;
  --mute: #4a4842;
  --line: #242320;
  --hover: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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: 100vh;
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 2.75rem);
  display: flex;
  flex-direction: column;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2.5rem;
  animation: in 0.8s ease both;
}

.brand {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.time {
  font-size: 0.75rem;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

.hero {
  margin-bottom: 2.75rem;
  animation: in 0.8s ease 0.06s both;
}

.headline {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.25rem, 11vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.sub {
  margin-top: 1rem;
  color: var(--dim);
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  font-weight: 400;
}

.links {
  border-top: 1px solid var(--line);
  animation: in 0.8s ease 0.12s both;
}

.links a {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: baseline;
  gap: 0.75rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background: var(--fg);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.links a:hover::after,
.links a:focus-visible::after {
  width: 100%;
}

.links a:focus-visible {
  outline: none;
}

.idx {
  font-size: 0.7rem;
  color: var(--mute);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease;
}

.name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0.01em;
  transition: color 0.4s ease;
}

.meta {
  font-size: 0.7rem;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: lowercase;
  transition: color 0.4s ease;
}

.links a:hover .name,
.links a:focus-visible .name {
  color: var(--hover);
}

.links a:hover .idx,
.links a:focus-visible .idx,
.links a:hover .meta,
.links a:focus-visible .meta {
  color: var(--dim);
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
