:root {
  color-scheme: light;
  --bg: #f4f1ec;
  --ink: #161616;
  --muted: #6f6a64;
  --link: #1f4e89;
  --focus: #161616;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

main {
  display: grid;
  place-items: center;
  min-height: 100%;
  min-height: 100svh;
  padding: 4.5rem 1.5rem;
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  text-align: center;
}

.portrait {
  width: 8.25rem;
  height: 8.25rem;
  margin: 0 0 1.4rem;
  border-radius: 50%;
  overflow: hidden;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 9vw, 4.25rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.aka {
  margin: 0.85rem 0 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--muted);
}

.place {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin: 1.1rem 0 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
}

.place svg {
  width: 0.78rem;
  height: 0.78rem;
}

.details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  width: 100%;
  max-width: 100%;
  margin: 1.05rem 0 0;
  padding: 0;
  list-style: none;
}

.detail {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

a.detail {
  margin: -0.28rem -0.4rem;
  padding: 0.28rem 0.4rem;
  text-decoration: none;
  border-radius: 0.4rem;
}

svg {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  fill: currentColor;
}

a.detail:hover {
  opacity: 0.45;
}

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

.resume-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.resume-word {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: inherit;
  border-radius: 0.25rem;
}

.resume-word:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.resume-line a {
  color: var(--link);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  border-radius: 0.25rem;
}

.resume-line a:hover {
  opacity: 0.55;
}

.resume-line a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.gravity-corner {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  width: 5.5rem;
  height: 5.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.gravity-prompt {
  position: fixed;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 21;
  margin: 0;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  cursor: pointer;
}

.gravity-prompt:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

body.is-weightless {
  overflow: hidden;
}

body.is-weightless .gravity-piece {
  z-index: 5;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

body.is-weightless .gravity-piece.is-held {
  z-index: 6;
  cursor: grabbing;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}
