/* Candidate hub. Visual baseline: mocks/v3/01 — hairlines, system type, air. */
:root {
  --ink: #111;
  --mute: #5c5c5c;
  --line: #111;
  --paper: #fff;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 clamp(1.25rem, 5.5vw, 4.5rem);
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

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

.skip {
  position: absolute;
  left: clamp(1.25rem, 5.5vw, 4.5rem);
  top: -3.25rem;
  z-index: 2;
  background: var(--ink);
  color: var(--paper);
  padding: 0.3rem 0.55rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.6rem;
}

.langs {
  position: absolute;
  top: 0.9rem;
  right: clamp(1.25rem, 5.5vw, 4.5rem);
  z-index: 1;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--mute);
}

.langs a {
  color: var(--mute);
  text-decoration: none;
}

.langs a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

html[lang="ja"] .langs [data-set-lang="ja"],
html[lang="en"] .langs [data-set-lang="en"] {
  color: var(--ink);
}

.langs-sep {
  margin: 0 0.35em;
  color: var(--mute);
}

main {
  max-width: 24rem;
  padding: 4.75rem 0 6.5rem;
}

header {
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0;
  font-size: 2.125rem;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

.byline {
  margin: 0.32rem 0 0;
  color: var(--mute);
  font-size: 0.875rem;
  font-weight: 400;
  white-space: nowrap;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

a {
  color: inherit;
}

#links a {
  display: block;
  padding: 0.95rem 0 0.88rem;
  text-decoration: none;
}

#links a:hover .title {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.title {
  display: block;
}

.desc {
  display: block;
  margin-top: 0.2rem;
  color: var(--mute);
  font-size: 0.8125rem;
  line-height: 1.4;
}

html[lang="ja"] [data-en],
html[lang="en"] [data-ja] {
  display: none;
}

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

@media (max-width: 360px) {
  h1 {
    font-size: 1.85rem;
  }

  main {
    max-width: none;
  }
}
