:root {
  --plum: #2b1036;
  --plum-deep: #1a0a22;
  --plum-lift: #422453;
  --amber: #ffae1a;
  --on-amber: #231403;
  --paper: #f6eff2;
  --muted: #c0b0b9;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --cut: clamp(0.9rem, 2.5vw, 1.5rem);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--plum);
  color: var(--paper);
  /* Archivo is Latin only. ja and ko fall through to whatever the system has, which is
           correct for a holding page — the real site needs proper CJK webfonts. */
  font-family:
    'Archivo', 'Helvetica Neue', Arial, 'Hiragino Sans', 'Yu Gothic', 'Malgun Gothic',
    'Noto Sans CJK JP', sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem) var(--gutter);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(0.8rem, 2.4vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* The three-beat: generated, approved, published — the three states a post passes
   through. Not three days; the base package writes five. */
.beat {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.22em;
  height: 1.15em;
  color: var(--amber);
}
.beat i {
  display: block;
  width: 0.24em;
  background: currentColor;
}
.beat i:nth-child(1) {
  height: 0.6em;
}
.beat i:nth-child(2) {
  height: 1.15em;
}
.beat i:nth-child(3) {
  height: 0.85em;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  background: var(--amber);
  color: var(--on-amber);
  font-size: clamp(0.72rem, 2vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  align-self: flex-start;
  /* One corner, bottom-right, 45 degrees. */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.55rem), calc(100% - 0.55rem) 100%, 0 100%);
}

/* One unbreakable 18-character word, so it is sized off the viewport rather than off a
         type scale, and the width axis narrows before the size does. `anywhere` is the last
         resort that keeps it inside the gutter on the narrowest phones instead of overflowing. */
h1 {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  font-size: clamp(1.75rem, 7.2vw, 5.5rem);
  font-stretch: 100%;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

@media (min-width: 30rem) {
  h1 {
    font-stretch: 112%;
  }
}

.rhythm {
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: clamp(0.85rem, 2.4vw, 1rem);
  letter-spacing: 0.02em;
}
.rhythm .beat {
  height: 1em;
  color: var(--muted);
}

footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: clamp(1.25rem, 4vw, 2rem) var(--gutter);
  border-top: 1px solid var(--plum-lift);
  color: var(--muted);
  font-size: clamp(0.72rem, 2vw, 0.8rem);
}
footer a {
  color: var(--muted);
}

/* Terms, privacy and cookies. Published ahead of the rest of the site because a payment account
   needs them reachable, so they sit in the middle of the footer rather than as an afterthought. */
.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}
.legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* The language switcher. A native select so it works everywhere and needs no script to
         be usable, and so the tap target is the platform's own. */
.lang {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.lang select {
  appearance: none;
  background: transparent;
  border: 1px solid var(--plum-lift);
  color: var(--paper);
  font: inherit;
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  padding: 0.6rem 2.1rem 0.6rem 0.9rem;
  min-height: 44px;
  cursor: pointer;
}
.lang::after {
  content: '';
  position: absolute;
  right: 0.9rem;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-0.12rem) rotate(45deg);
  pointer-events: none;
}
.lang select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}
.lang option {
  background: var(--plum-deep);
  color: var(--paper);
}

a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}
