:root {
  color-scheme: light dark;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-border: rgba(17, 17, 17, 0.08);
  --text: #111111;
  --muted: #6a6a65;
  --accent: #111111;
  --button-text: #ffffff;
  --ghost-bg: rgba(17, 17, 17, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --surface: #181818;
    --surface-border: rgba(255, 255, 255, 0.08);
    --text: #f5f4ef;
    --muted: #b4b4b0;
    --accent: #f5f4ef;
    --button-text: #111111;
    --ghost-bg: rgba(255, 255, 255, 0.08);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 20px 16px 24px;
}

.site-header {
  width: min(100%, 720px);
  margin: 0 auto 18px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.content-card {
  width: min(100%, 720px);
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 28px;
  overflow: hidden;
}

.copy {
  padding: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.muted {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.media-wrap {
  background: rgba(0, 0, 0, 0.03);
}

.hero-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.03);
}

.detail-row {
  margin-top: 18px;
}

.detail-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.detail-value {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.06);
}

.avatar-large {
  width: 64px;
  height: 64px;
}

.avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-meta {
  min-width: 0;
}

.author-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.author-caption {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.button-primary {
  background: var(--accent);
  color: var(--button-text);
}

.button-secondary {
  background: var(--ghost-bg);
  color: var(--text);
}

.button-disabled {
  cursor: default;
  opacity: 0.7;
}

.footer {
  width: min(100%, 720px);
  margin: 24px auto 0;
  padding: 0 4px;
  display: flex;
  gap: 14px 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer a {
  text-decoration: none;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2px;
  background: rgba(0, 0, 0, 0.06);
}

.preview-grid img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.08);
}

.preview-grid .stack {
  display: grid;
  gap: 2px;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
}

.metric-line {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.list-block {
  margin-top: 20px;
}

.list-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  line-height: 1.7;
}

.home-page {
  justify-content: space-between;
}

.home-shell {
  width: min(100%, 720px);
  margin: auto auto 0;
}

.brand-mark {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.home-copy {
  max-width: 34rem;
  margin-top: 14px;
}

.unavailable-card {
  padding: 20px;
}

@media (min-width: 760px) {
  .page {
    padding-top: 36px;
    padding-bottom: 32px;
  }

  .copy {
    padding: 24px 28px 28px;
  }
}
