:root {
  color-scheme: dark;
  --bg: #12110f;
  --surface: #1b1a17;
  --surface-2: #24231f;
  --text: #f4efe5;
  --muted: #b9afa1;
  --faint: #756f66;
  --line: rgba(244, 239, 229, 0.13);
  --accent: #c96f43;
  --accent-2: #7aa39a;
  --focus: #d8b26e;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    linear-gradient(180deg, rgba(201, 111, 67, 0.1), transparent 280px),
    var(--bg);
  color: var(--text);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:disabled {
  cursor: progress;
  opacity: 0.58;
}

svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(18, 17, 15, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 760;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, var(--surface) 48% 52%, transparent 53%),
    linear-gradient(180deg, var(--accent-2) 0 50%, var(--accent) 50%);
}

.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.tab-button,
.text-button,
.icon-button,
.favorite-chip,
.dialog-close {
  border: 0;
  cursor: pointer;
}

.tab-button {
  min-width: 58px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

.tab-button.is-active {
  background: var(--text);
  color: #161411;
}

.tab-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.tab-link.is-active {
  background: var(--text);
  color: #161411;
}

main {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 40px);
}

.view {
  display: none;
}

.view.is-visible {
  display: block;
}

.today-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: clamp(18px, 3vw, 38px);
  align-items: start;
}

.today-artwork {
  min-height: min(72vh, 760px);
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0b0a;
  box-shadow: var(--shadow);
}

.today-artwork img {
  display: block;
  width: 100%;
  max-height: min(78vh, 820px);
  object-fit: contain;
}

.image-skeleton,
.thumb-skeleton {
  width: 100%;
  min-height: 460px;
  background:
    linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    var(--surface-2);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite linear;
}

.today-panel {
  position: sticky;
  top: 92px;
  padding-top: 4px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 5.7rem);
  max-width: 9ch;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.meta-lines {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  color: var(--muted);
}

.meta-lines strong {
  color: var(--text);
  font-weight: 720;
}

.story-copy {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}

.icon-button,
.favorite-chip,
.dialog-close {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.icon-button:hover,
.favorite-chip:hover,
.dialog-close:hover {
  border-color: rgba(244, 239, 229, 0.32);
  background: rgba(255, 255, 255, 0.09);
}

.icon-button.is-favorite,
.favorite-chip.is-favorite {
  color: var(--accent);
}

.icon-button.is-favorite svg,
.favorite-chip.is-favorite svg {
  fill: currentColor;
}

.text-button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #160f0a;
  font-weight: 780;
}

.text-button:hover {
  filter: brightness(1.08);
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 760;
  text-decoration: none;
}

.outline-button:hover {
  border-color: rgba(244, 239, 229, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.quiet-note {
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 0.86rem;
  line-height: 1.6;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.search-head {
  align-items: center;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.segment-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

.segment-button.is-active {
  border-color: transparent;
  background: var(--accent-2);
  color: #07110f;
  font-weight: 760;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.art-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card-hit {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.thumb {
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 220ms ease;
}

.art-card:hover .thumb img {
  transform: scale(1.035);
}

.card-copy {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.card-title {
  color: var(--text);
  font-weight: 760;
  line-height: 1.35;
}

.card-artist,
.card-date {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.card-date {
  color: var(--accent-2);
}

.favorite-chip {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: rgba(18, 17, 15, 0.72);
  backdrop-filter: blur(10px);
}

.load-more-row {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(460px, 100%);
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-box input::placeholder {
  color: var(--faint);
}

.empty-state,
.error-state {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-align: center;
}

.detail-dialog {
  width: min(1100px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(18, 17, 15, 0.8);
}

.detail-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
}

.detail-image {
  display: grid;
  place-items: center;
  min-height: 420px;
  background: #090908;
}

.detail-image img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 40px);
  object-fit: contain;
}

.detail-copy {
  padding: clamp(24px, 4vw, 44px);
}

.detail-copy h3 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
  color: var(--muted);
}

.detail-list div {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  line-height: 1.55;
}

.external-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 22px;
  color: var(--focus);
  font-weight: 720;
  text-decoration: none;
}

.site-page {
  display: grid;
  gap: clamp(28px, 5vw, 72px);
}

.marketing-hero {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.marketing-copy {
  max-width: 680px;
}

.site-lead {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.8;
}

.marketing-art {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0b0a;
  box-shadow: var(--shadow);
}

.marketing-art img {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  object-fit: cover;
}

.marketing-art figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.feature-band,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-band article,
.support-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.feature-band article,
.support-card {
  padding: clamp(18px, 3vw, 28px);
}

.feature-band h2,
.support-card h2,
.site-section h2,
.legal-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.feature-band p,
.support-card p,
.site-section p,
.legal-card p,
.faq-list {
  color: var(--muted);
  line-height: 1.8;
}

.site-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.legal-page {
  width: min(920px, 100%);
}

.legal-hero h1 {
  max-width: none;
}

.legal-card {
  padding: clamp(22px, 4vw, 42px);
}

.legal-card h2:not(:first-child) {
  margin-top: 32px;
}

.legal-card a,
.site-footer a {
  color: var(--focus);
}

.faq-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.faq-list dt {
  color: var(--text);
  font-weight: 760;
}

.faq-list dd {
  margin: 0 0 12px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 28px clamp(16px, 4vw, 48px) 42px;
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (max-width: 900px) {
  .topbar,
  .section-head,
  .search-head {
    align-items: stretch;
    flex-direction: column;
  }

  .tabs {
    width: 100%;
    justify-content: space-between;
  }

  .tab-button {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
  }

  .tab-link {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
  }

  .today-layout,
  .detail-body,
  .marketing-hero,
  .site-section {
    grid-template-columns: 1fr;
  }

  .marketing-hero {
    min-height: 0;
  }

  .feature-band,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .today-panel {
    position: static;
  }

  h1 {
    max-width: 11ch;
  }

  .segmented {
    justify-content: flex-start;
  }

  .search-box {
    width: 100%;
  }
}

@media (max-width: 520px) {
  main {
    padding: 14px;
  }

  .topbar {
    padding: 12px 14px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card-copy {
    padding: 10px;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-artist,
  .card-date {
    font-size: 0.78rem;
  }

  .today-artwork {
    min-height: 360px;
  }

  .detail-image {
    min-height: 300px;
  }
}
