:root {
  --ink: #20201f;
  --muted: #7b7f8b;
  --paper: #ffffff;
  --line: #e6e6e2;
  --toggle-bg: #ffffff;
  --toggle-border: #ddddda;
  --toggle-shadow: 0 14px 42px rgba(32, 32, 31, 0.08);
  --overlay-bg: #111111;
  --overlay-ink: #ffffff;
}

html[data-theme="dark"] {
  --ink: #f6f2eb;
  --muted: #a8a8a0;
  --paper: #050505;
  --line: #2c2c2a;
  --toggle-bg: #111111;
  --toggle-border: #2f2f2c;
  --toggle-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  --overlay-bg: #ffffff;
  --overlay-ink: #111111;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  margin: 0;
  min-height: 100vh;
  transition:
    background 220ms ease,
    color 220ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.seo-summary {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 42px 48px 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 30;
}

.site-header > .menu-button,
.site-header > .theme-toggle {
  pointer-events: auto;
}

.menu-overlay {
  align-items: center;
  background: var(--overlay-bg);
  color: var(--overlay-ink);
  display: grid;
  gap: clamp(48px, 12vw, 220px);
  grid-template-columns: minmax(0, 1fr) auto;
  inset: 0;
  opacity: 0;
  padding: 0 clamp(48px, 17vw, 360px);
  pointer-events: none;
  position: fixed;
  transition: opacity 220ms ease;
  z-index: 20;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.menu-open .theme-toggle {
  opacity: 0;
  pointer-events: none;
}

.menu-overlay-links {
  display: grid;
  gap: 36px;
}

.menu-overlay-links a {
  color: var(--overlay-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.95;
  transition: opacity 160ms ease;
}

.menu-overlay-links a:hover {
  opacity: 0.62;
}

.menu-overlay-socials {
  align-self: center;
  display: grid;
  gap: 18px;
}

.menu-overlay-socials span {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-overlay-socials a {
  color: var(--overlay-ink);
  font-size: clamp(1.25rem, 1.6vw, 2rem);
  line-height: 1.1;
  transition: opacity 160ms ease;
}

.menu-overlay-socials a:hover {
  opacity: 0.62;
}

.menu-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: block;
  height: 28px;
  padding: 0;
  position: relative;
  width: 28px;
}

.menu-button span {
  background: var(--ink);
  display: block;
  height: 1.5px;
  left: 0;
  position: absolute;
  transform-origin: center;
  transition:
    background 220ms ease,
    top 220ms ease,
    transform 220ms ease;
  width: 24px;
}

.menu-button span:first-child {
  top: 8px;
}

.menu-button span:last-child {
  top: 18px;
}

body.menu-open .menu-button span {
  background: var(--overlay-ink);
  top: 13px;
}

body.menu-open .menu-button span:first-child {
  transform: rotate(45deg);
}

body.menu-open .menu-button span:last-child {
  transform: rotate(-45deg);
}

.theme-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  height: 22px;
  justify-items: center;
  padding: 0;
  width: 22px;
}

.theme-toggle:hover .sun {
  border-color: var(--ink);
}

.theme-icon {
  grid-area: 1 / 1;
}

.sun {
  background: linear-gradient(90deg, transparent 0 50%, #a2a8b4 50% 100%);
  border: 1px solid #a2a8b4;
  border-radius: 50%;
  display: block;
  height: 18px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 160ms ease;
  width: 18px;
}

.theme-toggle:hover .sun {
  transform: translateY(-1px);
}

.moon {
  display: none;
}

.profile {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: 160px auto;
  justify-content: start;
  min-height: 68vh;
  padding: 96px 32px 80px calc(24vw - 120px);
  width: 100%;
}

.home-profile {
  justify-content: center;
  min-height: 100vh;
  padding: 0 32px;
}

.intro {
  max-width: 492px;
}

.headshot-frame {
  --reveal-size: 0px;
  --reveal-x: 50%;
  --reveal-y: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: crosshair;
  overflow: hidden;
  position: relative;
  width: 160px;
}

.headshot {
  aspect-ratio: 1;
  border-radius: 50%;
  display: block;
  height: auto;
  inset: 0;
  object-fit: cover;
  object-position: 50% 38%;
  position: absolute;
  transition: opacity 220ms ease;
  width: 100%;
}

.headshot-dark {
  opacity: 0;
}

.headshot-skeleton {
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  -webkit-mask-image: radial-gradient(
    circle var(--reveal-size) at var(--reveal-x) var(--reveal-y),
    #000 0,
    #000 58%,
    transparent 72%
  );
  mask-image: radial-gradient(
    circle var(--reveal-size) at var(--reveal-x) var(--reveal-y),
    #000 0,
    #000 58%,
    transparent 72%
  );
  transition: opacity 140ms ease, -webkit-mask-image 120ms ease, mask-image 120ms ease;
}

.headshot-frame.is-revealing .headshot-skeleton-light {
  opacity: 1;
}

.headshot-skeleton-dark {
  opacity: 0;
}

html[data-theme="dark"] .headshot-frame.is-revealing .headshot-skeleton-light {
  opacity: 0;
}

html[data-theme="dark"] .headshot-frame.is-revealing .headshot-skeleton-dark {
  opacity: 1;
}

@media (hover: none) and (min-width: 761px) {
  .headshot-frame {
    --reveal-size: 42px;
  }

  .headshot-skeleton-light {
    opacity: 1;
  }

  html[data-theme="dark"] .headshot-skeleton-light {
    opacity: 0;
  }

  html[data-theme="dark"] .headshot-skeleton-dark {
    opacity: 1;
  }
}

html[data-theme="dark"] .headshot-light {
  opacity: 0;
}

html[data-theme="dark"] .headshot-dark {
  opacity: 1;
}

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.025em;
  line-height: 1;
  margin: 0 0 12px;
}

.name-highlight {
  background: #dfc4df;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.08em 0.03em;
  transition: background 220ms ease;
}

html[data-theme="dark"] .name-highlight {
  background: #4a314b;
}

.intro p {
  color: var(--muted);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.75rem;
  margin: 0;
  transition: color 220ms ease;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1;
  padding: 9px 13px;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.links a:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

.gallery {
  margin: 0 auto;
  max-width: 1360px;
  padding: 200px clamp(28px, 6vw, 96px) 120px;
  width: 100%;
}

.gallery-header {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.8125rem;
  font-weight: 600;
  justify-content: space-between;
  letter-spacing: 0.02em;
  margin: 0 0 36px;
  padding-top: 18px;
  text-transform: uppercase;
  transition: border-color 220ms ease;
}

.gallery-tabs {
  align-items: center;
  display: flex;
  gap: 48px;
}

.gallery-tabs a,
.gallery-tabs span,
.gallery-header > a {
  color: var(--muted);
  position: relative;
}

.gallery-tabs .active,
.gallery-header a:hover {
  color: var(--ink);
}

.gallery-tabs .active::before {
  background: var(--ink);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  top: -19px;
  width: 68px;
}

.gallery-grid {
  column-count: 4;
  column-gap: 28px;
}

.gallery-grid img {
  background: var(--line);
  break-inside: avoid;
  display: block;
  margin: 0 0 28px;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 980px) {
  .profile {
    grid-template-columns: 160px minmax(0, 1fr);
    padding-left: calc(33vw - 200px);
  }

  .gallery-grid {
    column-count: 3;
    column-gap: 22px;
  }

  .gallery-grid img {
    margin-bottom: 22px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 28px 24px 0;
  }

  .menu-overlay {
    align-items: center;
    gap: 54px;
    grid-template-columns: 1fr;
    padding: 0 48px;
  }

  .menu-overlay-links {
    gap: 26px;
  }

  .menu-overlay-socials {
    gap: 14px;
  }

  .profile {
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    min-height: 68vh;
    padding: 80px 24px 56px;
    text-align: center;
  }

  .home-profile {
    align-content: center;
    gap: 28px;
    min-height: 100svh;
    padding: 64px 24px 48px;
  }

  .intro {
    max-width: none;
  }

  .headshot-frame {
    width: 128px;
  }

  h1 {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .links {
    justify-content: center;
  }

  .gallery {
    background: var(--paper);
    max-width: none;
    padding: 160px 16px 96px;
  }

  .gallery-header {
    display: none;
  }

  .gallery-grid {
    column-count: 2;
    column-gap: 16px;
  }

  .gallery-grid img {
    background: var(--paper);
    margin-bottom: 16px;
  }
}

@media (max-width: 420px) {
  .profile {
    padding: 72px 24px 44px;
  }

  .home-profile {
    gap: 24px;
    padding: 60px 24px 44px;
  }

  .headshot-frame {
    width: 128px;
  }
}

.timeline-page {
  min-height: 100vh;
}

.timeline-sheet {
  margin: 0;
  max-width: none;
  padding: 118px 24px 48px;
}

.timeline-log {
  display: grid;
  gap: 18px;
  max-width: none;
}

.timeline-row {
  display: grid;
  gap: 84px;
  grid-template-columns: 74px minmax(0, 1fr);
}

.timeline-row time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
}

.timeline-row p {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
}

.typing-loop::before {
  animation: typingText 5.8s steps(14, end) infinite;
  content: "";
}

.typing-loop::after {
  animation: caretBlink 1s step-end infinite;
  content: "";
  border-right: 1px solid var(--ink);
  margin-left: 1px;
}

@keyframes typingText {
  0%, 5% { content: ""; }
  8% { content: "m"; }
  11% { content: "mo"; }
  14% { content: "mor"; }
  17% { content: "more"; }
  20% { content: "more "; }
  23% { content: "more s"; }
  26% { content: "more so"; }
  29% { content: "more soo"; }
  32% { content: "more soon"; }
  35% { content: "more soon."; }
  38% { content: "more soon.."; }
  41% { content: "more soon..."; }
  44%, 64% { content: "more soon...."; }
  67% { content: "more soon..."; }
  70% { content: "more soon.."; }
  73% { content: "more soon."; }
  76% { content: "more soon"; }
  79% { content: "more soo"; }
  82% { content: "more so"; }
  85% { content: "more s"; }
  88% { content: "more "; }
  91% { content: "more"; }
  94% { content: "mor"; }
  96% { content: "mo"; }
  98% { content: "m"; }
  100% { content: ""; }
}

@keyframes caretBlink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@media (max-width: 760px) {
  .timeline-sheet {
    padding: 92px 24px 48px;
  }

  .timeline-log {
    gap: 16px;
  }

  .timeline-row {
    gap: 20px;
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .timeline-row time {
    font-size: 0.78rem;
  }

  .timeline-row p {
    font-size: 0.86rem;
  }
}

.timeline-accent {
  color: rgb(154, 85, 163);
}

.blank-canvas {
  min-height: 100vh;
}

.world-page {
  min-height: 100vh;
  overflow: hidden;
}

.world-canvas {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

#world-globe {
  display: block;
  height: 100vh;
  width: 100vw;
}

.world-journal,
.world-place-list {
  display: none !important;
}

.world-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.world-journal h1 {
  font-size: clamp(3rem, 6vw, 5.75rem);
  margin: 0 0 12px;
}

.world-copy {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 24px;
}

.world-place-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.world-place-list:empty {
  display: none;
}

.world-place-list li {
  align-items: baseline;
  display: grid;
  gap: 12px;
  grid-template-columns: 2.25rem minmax(0, 1fr);
}

.world-place-list time {
  color: rgb(154, 85, 163);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.72rem;
}

.world-place-list span {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.25;
}

.world-place-list small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  margin-top: 2px;
}

@media (max-width: 760px) {
  .world-journal {
    bottom: 28px;
    left: 24px;
    max-width: calc(100vw - 48px);
  }

  .world-place-list {
    display: none;
  }
}


.profile-page {
  min-height: 100vh;
}

.profile-article {
  color: var(--ink);
  max-width: 820px;
  padding: 144px 48px 80px;
}

.profile-kicker {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.profile-article h1 {
  font-size: clamp(3rem, 9vw, 7.25rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 28px;
}

.profile-lede {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.8vw, 2.25rem);
  line-height: 1.18;
  margin: 0 0 64px;
}

.profile-article section {
  border-top: 1px solid var(--line);
  padding: 28px 0 0;
  margin: 0 0 42px;
}

.profile-article h2 {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.profile-article p,
.profile-links {
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.65;
}

.profile-links {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-links a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 760px) {
  .profile-article {
    padding: 112px 24px 64px;
  }

  .profile-lede {
    margin-bottom: 48px;
  }
}


.timeline-accent:is(a) {
  text-decoration: none;
}

.timeline-accent:is(a):hover,
.timeline-accent:is(a):focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.timeline-row p {
  position: relative;
}

.fortune-link,
.shark-link {
  position: relative;
}

.fortune-preview,
.shark-preview {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.18);
  left: 0;
  max-width: min(520px, calc(100vw - 48px));
  opacity: 0;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 12px);
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  width: 520px;
  z-index: 12;
}

.fortune-preview img,
.shark-preview img {
  display: block;
  height: auto;
  width: 100%;
}

.fortune-link:hover + .fortune-preview,
.fortune-link:focus-visible + .fortune-preview,
.shark-link:hover + .shark-preview,
.shark-link:focus-visible + .shark-preview {
  opacity: 1;
  transform: translateY(0);
}

.fortune-page {
  min-height: 100vh;
}

.fortune-stage {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 96px 24px;
}

.fortune-stage img {
  display: block;
  height: auto;
  max-height: calc(100vh - 192px);
  max-width: min(86vw, 1180px);
  object-fit: contain;
}

@media (max-width: 760px) {
  .fortune-preview,
  .shark-preview {
    width: min(420px, calc(100vw - 48px));
  }

  .fortune-stage img {
    max-height: none;
    max-width: 92vw;
  }
}


.aeo-profile {
  font-family: "Cooper Black", "Cooper Std Black", "Cooper Std", Georgia, serif;
  padding: 0 24px 96px;
}

.aeo-profile-inner {
  border-top: 1px solid var(--line);
  margin: 0 auto;
  max-width: 760px;
  padding-top: 48px;
}

.aeo-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.aeo-profile h2,
.aeo-profile h3 {
  color: var(--ink);
  font-family: inherit;
  letter-spacing: 0;
}

.aeo-profile h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 24px;
}

.aeo-profile h3 {
  font-size: 1rem;
  font-weight: 650;
  margin: 34px 0 10px;
}

.aeo-profile p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
}

.aeo-profile a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

@media (max-width: 760px) {
  .aeo-profile {
    padding: 8px 24px 72px;
  }

  .aeo-profile-inner {
    padding-top: 36px;
  }

  .aeo-profile p {
    font-size: 0.94rem;
    line-height: 1.65;
  }
}

.work-page {
  min-height: 100vh;
}

.work-sheet {
  margin: 0;
  padding: 118px 24px 72px;
}

.work-log {
  display: grid;
  gap: 34px;
  max-width: 860px;
}

.work-row {
  display: grid;
  gap: 84px;
  grid-template-columns: 74px minmax(0, 1fr);
}

.work-row time {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.35;
  white-space: nowrap;
}

.work-row h1,
.work-row h2 {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 16px;
}

.work-row h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.work-row p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 620px;
}

.work-row a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

@media (max-width: 760px) {
  .work-sheet {
    padding: 92px 24px 56px;
  }

  .work-log {
    gap: 30px;
  }

  .work-row {
    gap: 20px;
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .work-row time {
    font-size: 0.78rem;
  }

  .work-row p {
    font-size: 0.94rem;
    line-height: 1.55;
  }
}

.header-left {
  align-items: center;
  display: flex;
  gap: 16px;
  pointer-events: auto;
}

.work-shortcut {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  height: 24px;
  justify-content: center;
  opacity: 0.82;
  transition: opacity 160ms ease, color 220ms ease;
  width: 24px;
}

.work-shortcut:hover {
  opacity: 1;
}

.work-shortcut svg {
  display: block;
  fill: currentColor;
  height: 15px;
  width: 15px;
}

body.menu-open .work-shortcut {
  color: var(--overlay-ink);
}

.work-gate {
  align-items: center;
  display: flex;
  min-height: calc(100vh - 190px);
}

.work-gate-form {
  display: grid;
  gap: 14px;
  max-width: 320px;
  width: min(100%, 320px);
}

.work-gate-form label {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-password-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.work-password-row input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
  outline: 0;
  padding: 10px 0;
}

.work-password-row input:focus {
  border-bottom-color: var(--ink);
}

.work-password-row button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 8px 14px;
}

.work-gate-error {
  color: rgb(154, 85, 163);
  font-size: 0.86rem;
  min-height: 1.2em;
  margin: 0;
}
