:root {
  --bg: #101112;
  --glass: rgba(16, 17, 18, 0.52);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-highlight: rgba(255, 255, 255, 0.28);
  --text: #f2f2f4;
  --text-dim: #b0b3b8;
  --radius: 28px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: -apple-system, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #1a1a3a;
  background-image: url("/img/alaska.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-attachment: scroll;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(10, 12, 28, 0.12);
}

.wrap {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* Glass island */
.glass-island {
  position: relative;
  z-index: 1;
  width: min(560px, 94vw);
  max-height: 80vh;
  overflow-y: auto;
  background: var(--glass);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 var(--glass-highlight);
}

/* Nav */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 12px;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px var(--glass-border);
}

/* App list */
.app-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-list li a,
.app-list li .row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.8rem;
  align-items: center;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
}

.app-list li a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.app-list .name {
  grid-column: 1;
  grid-row: 1;
  font-size: 16px;
  font-weight: 500;
}

.app-list .meta {
  grid-column: 1;
  grid-row: 2;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
}

.app-list .go {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--text-dim);
  font-size: 20px;
}

/* Typography */
h1 {
  font-family: "New York", "Iowan Old Style", Palatino, serif;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}

.lead {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 24px;
}

.mail {
  display: inline-block;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.mail:hover {
  background: rgba(255, 255, 255, 0.12);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1rem;
}

/* Prose sections */
.section {
  margin-top: 24px;
}

.section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.section p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 12px;
}

/* FAQ */
.faq details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq summary {
  padding: 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.faq details p {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
}

/* Colophon */
.colophon {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
  font-size: 13px;
  color: var(--text-dim);
}

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

/* Scrollbar */
.glass-island::-webkit-scrollbar {
  width: 6px;
}

.glass-island::-webkit-scrollbar-track {
  background: transparent;
}

.glass-island::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
