:root {
  --bg: #0b0a09;
  --card: #161513;
  --cream: #f4f0e6;
  --muted: #a39e93;
  --nav: #ddd6c8;
  --gold: #d6ae4e;
  --gold-ink: #1a1408;
  --line: rgba(244, 240, 230, 0.1);
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  transform: translateY(-160%);
  background: var(--gold);
  color: var(--gold-ink);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  z-index: 30;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cream);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1.05rem;
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
}

.nav a {
  color: var(--nav);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
}

.nav a[aria-current="true"] {
  color: var(--cream);
}

.nav a.tip,
.nav a.feedback {
  color: var(--gold-ink);
  font-weight: 600;
}

.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.7rem;
  height: 2.35rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  line-height: 1;
}

.tip:hover,
.tip:focus-visible,
.nav a.tip:hover,
.nav a.tip:focus-visible {
  background: #e3bc63;
  color: var(--gold-ink);
}

.share,
.feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.05rem;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.nav .share,
.nav .feedback {
  min-height: 2.35rem;
  height: 2.35rem;
  padding: 0 0.85rem;
  font-size: 0.98rem;
}

.share:hover,
.share:focus-visible,
.feedback:hover,
.feedback:focus-visible,
.nav a.feedback:hover,
.nav a.feedback:focus-visible {
  background: #e3bc63;
  color: var(--gold-ink);
}

.share.is-copied {
  background: var(--cream);
  color: var(--gold-ink);
}

.hero {
  padding: 0.2rem 0 2.15rem;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.eyebrow,
.hero-mark {
  display: none;
}

h1 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(3.05rem, 16vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--cream);
}

.tagline {
  position: relative;
  display: inline-block;
  margin-top: 0.55rem;
  padding-bottom: 0.85rem;
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 560;
  font-size: clamp(1.85rem, 5.4vw, 2.65rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.tagline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--gold) 0 1.5px,
    transparent 1.5px 6px
  );
}

.lede {
  max-width: 38rem;
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 1.15rem;
}

.see-apps {
  display: inline-block;
  color: var(--cream);
  text-underline-offset: 0.35rem;
  text-decoration-thickness: 1px;
}

.see-apps:hover,
.see-apps:focus-visible {
  color: var(--gold);
}

.section {
  padding: 0.4rem 0 1.6rem;
  scroll-margin-top: 1rem;
}

#shop {
  min-height: calc(100vh - 4.5rem);
  min-height: calc(100svh - 4.5rem);
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.95rem;
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(2rem, 5vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.dash {
  color: var(--gold);
  font-weight: 560;
}

.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(244, 240, 230, 0.12);
  border-radius: 18px;
  background: var(--card);
  padding: 1.55rem 1.25rem 1.25rem;
}

.panel::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 4px,
    var(--gold) 4px 5.4px
  );
}

.badge {
  margin: 0.15rem 0 0.45rem;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.panel h3 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--cream);
}

.blurb {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.open {
  margin-top: auto;
  padding-top: 1.35rem;
  color: var(--cream);
  font-weight: 500;
}

.app-card:focus-visible,
.see-apps:focus-visible,
.brand:focus-visible,
.nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.tip:focus-visible,
.share:focus-visible,
.feedback:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

.shop-card {
  max-width: 36rem;
}

.empty {
  color: var(--muted);
}

.empty a {
  color: var(--cream);
}

.site-footer {
  padding: 1.4rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 720px) {
  .bar {
    flex-wrap: wrap;
    row-gap: 0.35rem;
    padding-block: 0.7rem;
  }

  .nav {
    margin-left: auto;
  }
}

@media (max-width: 380px) {
  .wrap {
    width: min(1080px, calc(100% - 1.7rem));
  }

  .nav {
    gap: 0.55rem;
  }

  .nav a {
    font-size: 0.92rem;
  }

  .nav .share,
  .nav .feedback {
    padding: 0 0.7rem;
  }

  .brand {
    font-size: 0.98rem;
  }
}

@media (min-width: 760px) {
  .apps-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
  }

  .eyebrow {
    display: block;
    margin-bottom: 0.85rem;
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }
}

@media (min-width: 960px) {
  body {
    background-image: radial-gradient(
      ellipse 78% 42% at 50% -12%,
      rgba(112, 72, 28, 0.42),
      transparent 60%
    );
    background-repeat: no-repeat;
  }

  .wrap {
    width: min(1080px, calc(100% - 6rem));
  }

  .hero {
    padding: 2.6rem 0 3.2rem;
  }

  h1 {
    font-size: clamp(4.8rem, 8vw, 6.6rem);
  }

  .hero-mark {
    display: block;
    width: min(270px, 32vw);
    flex: 0 0 auto;
  }

  .hero-mark img {
    display: block;
    width: 100%;
    height: auto;
  }

  .lede {
    margin-top: 1.35rem;
  }

  .section {
    padding-bottom: 2rem;
  }

  .section-title {
    margin-bottom: 1.15rem;
  }
}

@media (hover: hover) {
  .app-card:hover {
    border-color: rgba(212, 170, 74, 0.5);
    transform: translateY(-2px);
  }

  .app-card:hover .open {
    color: var(--gold);
  }

  .nav a:hover {
    color: var(--cream);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .app-card {
    transition: none;
  }
}
