:root {
  --plaster: #ece4d5;
  --paper: #f6f0e4;
  --card: #fdfaf3;
  --ink: #1a1a1a;
  --ink-soft: #473f36;
  --muted: #837868;
  --line: #ded1bc;
  --line-strong: #c8b89e;
  --terracotta: #b8472b;
  --ochre: #d6a03e;
  --sage: #71806a;
  --indigo: #243250;
  --rose: #a85d65;
  --teal: #2e665f;
  --cream: #faf4e8;
  --shadow: 0 22px 50px rgba(45, 30, 18, 0.16);
  --display: "P052", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Adwaita Sans", "Nimbus Sans", "Liberation Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  background-color: var(--plaster);
  background-image:
    radial-gradient(circle at 7% -4%, rgba(214, 160, 62, 0.27) 0%, rgba(214, 160, 62, 0) 34%),
    radial-gradient(circle at 98% 4%, rgba(168, 93, 101, 0.18) 0%, rgba(168, 93, 101, 0) 36%),
    radial-gradient(circle at 72% 98%, rgba(46, 102, 95, 0.12) 0%, rgba(46, 102, 95, 0) 38%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

::selection {
  background: var(--ochre);
  color: var(--ink);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.015em;
}

a {
  color: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ambient span {
  position: absolute;
  display: block;
}

.ambient span:nth-child(1) {
  top: 12%;
  left: -24%;
  width: min(70vw, 880px);
  aspect-ratio: 1;
  border: 1px solid rgba(36, 50, 80, 0.09);
  border-radius: 50%;
}

.ambient span:nth-child(2) {
  top: 36%;
  right: -17%;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(184, 71, 43, 0.1);
  border-radius: 50%;
}

.ambient span:nth-child(3) {
  bottom: -120px;
  left: 8%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 160, 62, 0.14), transparent 68%);
  filter: blur(20px);
}

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

.topbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--ochre) 28%, var(--sage) 54%, var(--teal) 74%, var(--indigo));
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 8px rgba(45, 30, 18, 0.12));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-kicker {
  margin-bottom: 3px;
  color: var(--terracotta);
  font-family: var(--display);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.035em;
}

.brand-name {
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.02em;
}

.private-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(253, 250, 243, 0.55);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.private-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 102, 95, 0.12);
}

main {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 42px clamp(16px, 4vw, 48px) 76px;
}

.hero {
  max-width: 900px;
  padding: 12px 0 38px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line-strong);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(42px, 7.4vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--terracotta);
  font-style: italic;
}

.lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero-meta strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0;
}

.meta-dot {
  width: 4px;
  height: 4px;
  margin: 0 2px;
  border-radius: 50%;
  background: var(--line-strong);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  animation: card-in 0.5s ease both;
  animation-delay: var(--delay, 0ms);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

a.app-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.app-card:hover,
a.app-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--terracotta);
  box-shadow: var(--shadow);
  outline: none;
}

.app-card.is-static {
  cursor: default;
}

.app-cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 148px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tone-a), var(--tone-b));
}

.app-cover::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -68px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.app-monogram {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 253, 249, 0.95);
  font-family: var(--display);
  font-size: 31px;
  line-height: 1;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.app-category {
  position: absolute;
  z-index: 2;
  left: 13px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: 2px;
  background: rgba(26, 22, 18, 0.72);
  color: var(--cream);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.app-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 18px 18px;
}

.app-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.app-body h3 {
  font-size: 21px;
  line-height: 1.16;
}

.app-body p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.6;
}

.app-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 17px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.app-arrow {
  color: var(--terracotta);
  font-size: 16px;
  line-height: 1;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-live {
  border-color: #c9dfcf;
  background: #e7f0e9;
  color: #2f6548;
}

.status-progress {
  border-color: #e9d6b0;
  background: #faf0dc;
  color: #8a5c13;
}

.status-private {
  border-color: #d6deea;
  background: #e9edf5;
  color: var(--indigo);
}

.status-design {
  border-color: #c9e0db;
  background: #e6f0ee;
  color: var(--teal);
}

.tone-terracotta { --tone-a: #a93e24; --tone-b: #d6a03e; }
.tone-pink { --tone-a: #9d1460; --tone-b: #ff1493; }
.tone-indigo { --tone-a: #1d2a45; --tone-b: #4b648c; }
.tone-teal { --tone-a: #24564f; --tone-b: #7d9b86; }
.tone-ochre { --tone-a: #9b6c19; --tone-b: #d6a03e; }

.app-card.feature {
  grid-column: span 2;
  min-height: 442px;
  justify-content: flex-end;
  border: 0;
  color: var(--cream);
  background-color: var(--indigo);
  background-image:
    linear-gradient(180deg, rgba(20, 17, 14, 0.04) 0%, rgba(20, 17, 14, 0.18) 42%, rgba(20, 17, 14, 0.89) 100%),
    linear-gradient(90deg, rgba(20, 17, 14, 0.34), rgba(20, 17, 14, 0) 72%),
    var(--feature-image);
  background-size: cover;
  background-position: 52% 34%;
}

.app-card.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20, 17, 14, 0.18), transparent 70%);
  pointer-events: none;
}

.feature-top {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feature-top .app-category {
  position: static;
  background: rgba(250, 244, 232, 0.12);
  border: 1px solid rgba(250, 244, 232, 0.28);
  color: var(--cream);
}

.feature-body {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: 28px 28px 30px;
}

.feature-eyebrow {
  margin: 0 0 7px;
  color: rgba(250, 244, 232, 0.68);
  font-family: var(--display);
  font-size: 15px;
  font-style: italic;
}

.feature h2 {
  margin: 0 0 10px;
  color: var(--cream);
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.02;
}

.feature p {
  max-width: 480px;
  margin: 0 0 20px;
  color: rgba(250, 244, 232, 0.8);
  font-size: 14px;
  line-height: 1.65;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(250, 244, 232, 0.45);
  color: var(--cream);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.feature-cta span {
  color: var(--ochre);
  font-size: 16px;
  line-height: 1;
}

.more-note {
  margin: 30px 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 14px;
  font-style: italic;
}

.more-note span {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.02em;
}

.site-footer {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px) 44px;
  border-top: 1px solid var(--line-strong);
  text-align: center;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22%;
  right: 22%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--terracotta), var(--ochre), var(--teal), transparent);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 18px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
}

.footer-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-small {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.error-note {
  padding: 40px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1000px) {
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-card.feature {
    grid-column: span 2;
    min-height: 420px;
  }
}

@media (max-width: 700px) {
  .topbar {
    padding: max(12px, env(safe-area-inset-top)) 16px 12px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-kicker {
    font-size: 11px;
  }

  .brand-name {
    font-size: 22px;
  }

  .private-pill {
    padding: 6px 9px;
    font-size: 9px;
  }

  main {
    padding: 28px 16px 50px;
  }

  .hero {
    padding-top: 6px;
    padding-bottom: 28px;
    margin-bottom: 22px;
  }

  .hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .lede {
    font-size: 14px;
  }

  .app-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .app-card.feature {
    grid-column: span 1;
    min-height: 410px;
    background-position: 52% 28%;
  }

  .feature-body {
    padding: 22px 20px 24px;
  }

  .feature h2 {
    font-size: 34px;
  }

  .feature p {
    font-size: 13px;
  }

  .site-footer {
    padding-bottom: max(34px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.app-card.tall {
  position: relative;
  min-height: 442px;
  border: 0;
  color: var(--cream);
  background: linear-gradient(150deg, var(--tone-a), var(--tone-b));
}

.app-card.tall .app-cover {
  position: absolute;
  inset: 0;
  min-height: 0;
  background: transparent;
}

.app-card.tall .app-cover::after {
  right: -60px;
  bottom: -90px;
  width: 250px;
  height: 250px;
  border-color: rgba(255, 255, 255, 0.22);
}

.app-card.tall .app-monogram {
  position: absolute;
  top: 39%;
  left: 50%;
  width: 118px;
  height: 118px;
  transform: translate(-50%, -50%);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  font-size: 52px;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.05);
}

.app-card.tall .app-category {
  top: 18px;
  right: 18px;
  bottom: auto;
  left: auto;
  background: rgba(250, 244, 232, 0.13);
  border: 1px solid rgba(250, 244, 232, 0.28);
  color: var(--cream);
}

.app-card.tall .app-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 22px 20px 24px;
  background: linear-gradient(180deg, transparent, rgba(20, 17, 14, 0.56));
}

.app-card.tall h3 {
  color: var(--cream);
  font-size: 30px;
}

.app-card.tall p {
  color: rgba(250, 244, 232, 0.8);
}

.app-card.tall .app-foot {
  color: rgba(250, 244, 232, 0.58);
}

.app-card.tall .app-arrow {
  color: var(--ochre);
}
