:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  color: #fff4fd;
  background: #21071e;
  --muted: #e3b9da;
  --accent: #ff8de9;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 50% 8%, #9a246f 0%, transparent 57%),
    radial-gradient(ellipse at 94% 78%, #641950 0%, transparent 55%),
    radial-gradient(ellipse at 0% 100%, #46133f 0%, transparent 50%), #21071e;
  line-height: 1.65;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  font: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
::selection {
  background: #ff8de9;
  color: #21071e;
}
main {
  width: min(100%, 1120px);
  margin-inline: auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(48px, 9vh, 96px) clamp(24px, 5vw, 64px) 24px;
  display: flex;
  flex-direction: column;
}
.intro {
  text-align: center;
}
h1 {
  font-size: clamp(76px, 12vw, 144px);
  line-height: 1.05;
  letter-spacing: -0.075em;
  font-weight: 900;
  margin: 0 0 20px;
}
h1:focus {
  outline: none;
}
h2 {
  font-size: clamp(16px, 2.5vw, 21px);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  color: var(--muted);
}
.typewriter1,
.typewriter2 {
  display: inline-block;
}
.is-entered .typewriter1 {
  animation: reveal 700ms steps(7, end) both;
}
.is-entered .typewriter2 {
  animation: reveal 900ms steps(27, end) 350ms both;
}
.content-row {
  display: grid;
  grid-template-columns: minmax(125px, 1fr) minmax(0, 2fr) minmax(175px, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin-block: clamp(48px, 8vh, 80px);
}
h3 {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.side-list,
.changes {
  font-size: 14px;
  color: var(--muted);
}
.side-list li,
.changes li {
  margin-bottom: 8px;
}
.main-content {
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 700;
  line-height: 1.6;
}
.main-content p {
  margin: 0 0 20px;
}
.main-content p:last-child {
  color: var(--accent);
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #ffffff26;
  font-size: 13px;
}
.site-footer a,
.audio-toggle,
.quiet-button {
  color: var(--muted);
  background: transparent;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  padding: 12px 0;
  min-height: 44px;
}
.site-footer a:hover,
.audio-toggle:hover,
.quiet-button:hover {
  color: white;
  text-decoration: underline;
}
.entry-gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 40%, #8c2267, #21071e 85%);
  overflow-y: auto;
}
.entry-content {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}
.entry-title {
  margin: 0 0 8px;
  font-size: clamp(64px, 12vw, 104px);
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 1.1;
}
.entry-button {
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid #ff8de980;
  border-radius: 8px;
  background: #ffffff0d;
  color: #fff4fd;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition:
    background 160ms ease,
    transform 160ms ease;
}
.entry-button:hover {
  background: #ffffff1c;
  transform: translateY(-2px);
}
.quiet-button {
  font-size: 14px;
}
@keyframes reveal {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}
@media (max-width: 800px) {
  .content-row {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .main-content {
    grid-column: 1 / -1;
    grid-row: 1;
    max-width: 38ch;
  }
}
@media (max-width: 480px) {
  main {
    padding-top: 48px;
  }
  h1 {
    font-size: clamp(64px, 20vw, 96px);
  }
  .content-row {
    margin-block: 40px;
    gap: 28px;
  }
  .side-list,
  .changes {
    font-size: 13px;
  }
  h3 {
    font-size: 14px;
  }
}
@media (max-width: 340px) {
  .content-row {
    grid-template-columns: 1fr;
  }
  .main-content {
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Floating navigation shares the existing Arial type and pink palette. */
.floating-nav {
  position: fixed;
  z-index: 5;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, calc(100% - 40px));
  min-height: 48px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
  font-size: 14px;
}
.nav-brand {
  grid-column: 3;
  grid-row: 1;
  justify-self: center;
  color: #fff4fd;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.075em;
  text-decoration: none;
  line-height: 1.3;
  transition:
    transform 180ms ease,
    color 180ms ease;
}
.nav-brand:hover {
  transform: translateY(-2px);
  color: var(--accent);
}
.nav-items {
  display: contents;
}
.nav-items a {
  grid-row: 1;
  color: var(--muted);
  text-decoration: none;
  width: fit-content;
  padding: 12px 0;
  min-height: 44px;
  position: relative;
  transition:
    color 180ms ease,
    transform 180ms ease;
}
.nav-items a:nth-child(1) {
  grid-column: 1;
  justify-self: center;
}
.nav-items a:nth-child(2) {
  grid-column: 2;
  justify-self: center;
}
.nav-items a:nth-child(3) {
  grid-column: 4;
  justify-self: center;
}
.nav-items a:nth-child(4) {
  grid-column: 5;
  justify-self: center;
}
.nav-items a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.nav-items a:hover,
.nav-items a[aria-current="page"] {
  color: #fff4fd;
  transform: translateY(-2px);
}
.nav-items a:hover::after,
.nav-items a[aria-current="page"]::after {
  transform: scaleX(1);
}
.page-view {
  min-width: 0;
}
.detail-view {
  padding-block: 32px 56px;
}
.detail-view h1 {
  font-size: clamp(48px, 8vw, 88px);
  letter-spacing: -0.065em;
  overflow-wrap: anywhere;
}
.view-lead {
  color: var(--muted);
  font-size: clamp(18px, 2.5vw, 22px);
  margin: 20px 0 40px;
}
.about-copy {
  max-width: 46ch;
  font-size: 20px;
  font-weight: 700;
}
.about-copy p {
  margin: 0 0 24px;
}
.about-copy p:last-child,
.view-note {
  color: var(--accent);
}
.project-link {
  display: grid;
  gap: 10px;
  padding-block: 24px;
  border-block: 1px solid #ffffff26;
  text-decoration: none;
  color: inherit;
  transition:
    padding-left 180ms ease,
    border-color 180ms ease;
}
.project-link:hover {
  padding-left: 12px;
  border-color: var(--accent);
}
.project-name {
  font-weight: 900;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.04em;
}
.project-name > span {
  display: inline-block;
  transition: transform 180ms ease;
}
.project-link:hover .project-name > span {
  transform: translate(3px, -3px);
}
.project-description,
.project-meta {
  color: var(--muted);
}
.project-meta {
  font-size: 13px;
}
.view-note {
  margin-top: 28px;
}
.nav-toggle {
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  min-height: 44px;
  padding: 0;
  font-size: 13px;
}
@media (max-width: 640px) {
  .floating-nav {
    width: calc(100% - 40px);
    grid-template-columns: 1fr auto 1fr;
    column-gap: 0;
  }
  .nav-brand {
    grid-column: 2;
  }
  .nav-toggle:not([hidden]) {
    display: block;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }
  .nav-items {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .floating-nav.is-enhanced .nav-items {
    display: none;
  }
  .floating-nav.is-open .nav-items {
    display: grid;
    padding: 8px 0;
    background: transparent;
    box-shadow: none;
  }
  .nav-items a:nth-child(2) {
    margin-right: 0;
  }
  .nav-items a {
    font-size: 13px;
    grid-column: auto !important;
    grid-row: auto;
    justify-self: center;
  }
  body:has(.floating-nav.is-open) main {
    padding-top: 176px;
  }
  main {
    padding-top: 112px;
  }
  .is-enhanced ~ main {
    padding-top: 96px;
  }
  .detail-view {
    padding-top: 24px;
  }
}
@media (min-width: 641px) {
  .nav-toggle {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .floating-nav *,
  .project-link,
  .project-link * {
    transition: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .is-entered .detail-view:not([hidden]) {
    animation: page-arrive 220ms ease-out both;
  }
}
@keyframes page-arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wall-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.wall-write,
.wall-thread {
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  padding-block: 12px;
  min-height: 44px;
}
.wall-write {
  font-weight: 700;
}
.wall-write:hover,
.wall-thread:hover {
  color: #fff4fd;
  text-decoration: underline;
}
.wall-help,
#wall-status {
  color: var(--muted);
  font-size: 14px;
}
.wall-help {
  margin: 4px 0 32px;
}
.wall-comments {
  max-width: 70ch;
}
.wall-comment {
  border-top: 1px solid #ffffff26;
  padding-block: 24px;
  overflow-wrap: anywhere;
}
.wall-comment header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.wall-comment-author {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.wall-comment time {
  color: var(--muted);
  font-size: 12px;
}
.wall-comment p {
  white-space: pre-wrap;
  text-align: left;
  margin: 12px 0 0;
}
.wall-thread {
  margin-top: 20px;
  font-size: 13px;
}
@media (min-width: 641px) and (max-width: 760px) {
  .floating-nav {
    column-gap: 12px;
    font-size: 12px;
  }
}

.wall-form {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin-bottom: 24px;
}
.wall-form label {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}
.wall-form input,
.wall-form textarea {
  width: 100%;
  border: 1px solid #ff8de94d;
  border-radius: 8px;
  background: #21071e66;
  color: #fff4fd;
  font: inherit;
  padding: 12px 16px;
  font-size: 16px;
}
.wall-form textarea {
  resize: vertical;
  min-height: 120px;
}
.wall-form input::placeholder,
.wall-form textarea::placeholder {
  color: #d0a8c8;
}
.wall-form input:focus-visible,
.wall-form textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.wall-form .wall-help {
  margin: 0 0 8px;
}
.wall-submit {
  justify-self: start;
  font-size: 15px;
}
#wall-form-status {
  margin: 0;
  min-height: 26px;
  color: var(--accent);
  font-size: 14px;
}
.wall-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

/* Native cross-document transitions; every destination is still a real page. */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 160ms;
}
@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}
