/* ---------------------------------------------------------
   Tokens
--------------------------------------------------------- */
:root {
  --paper: #f1ece0;
  --paper-card: #ebe3d2;
  --hairline: #c9bfa8;
  --ink: #20241f;
  --ink-soft: #4a4a3e;
  --gold: #a8792e;
  --gold-deep: #8a611f;
  --stamp: #7a3b2e;
  --paper-dark: #e3dac4;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --content-width: 720px;
  --wide-width: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------
   Layout shell
--------------------------------------------------------- */
.shell {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

.shell-wide {
  max-width: var(--wide-width);
  margin: 0 auto;
  padding: 0 24px;
}

header.site {
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--hairline);
}

header.site .mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
}

header.site nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-left: 24px;
}

header.site nav a:hover {
  color: var(--ink);
}

footer.site {
  border-top: 1px solid var(--hairline);
  margin-top: 96px;
  padding: 32px 24px 48px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

footer.site .footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

footer.site .social-links {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer.site .social-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

footer.site .social-links a:hover {
  color: var(--ink);
}

/* ---------------------------------------------------------
   Story / landing page
--------------------------------------------------------- */
.story-hero {
  padding: 88px 0 56px;
}

.story-hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.18;
  margin: 0 0 28px;
  max-width: 15ch;
}

.story-hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0;
}

.story-body {
  padding: 8px 0 40px;
}

.story-body p {
  max-width: 66ch;
  margin: 0 0 22px;
}

.story-body p.pull {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 44px 0;
  max-width: 26ch;
}

.signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  margin-top: 40px;
}

.signature .role {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-soft);
  display: block;
  margin-top: 4px;
}

.cta-block {
  margin: 56px 0 24px;
  padding: 32px;
  background: var(--paper-card);
  border: 1px solid var(--hairline);
}

.cta-block h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.cta-block p {
  margin: 0 0 20px;
  color: var(--ink-soft);
  max-width: 50ch;
}

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}

.btn:active {
  transform: translateY(1px);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn[disabled],
.btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------------------------------------------------------
   Market page
--------------------------------------------------------- */
.market-header {
  padding: 64px 0 40px;
}

.market-header h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 14px;
}

.market-header p {
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
  padding: 8px 0 80px;
}

.product-card {
  position: relative;
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.product-card .cover {
  aspect-ratio: 3 / 4;
  background: var(--paper-dark);
  overflow: hidden;
  margin-bottom: 16px;
}

.product-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.product-card p.tagline {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 18px;
  flex-grow: 1;
}

.product-card .card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card .price {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

/* the signature moment: a rotated ledger stamp on the featured/available product */
.stamp {
  position: absolute;
  top: -10px;
  right: 14px;
  transform: rotate(6deg);
  border: 2px solid var(--stamp);
  color: var(--stamp);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.78rem;
  padding: 3px 10px;
  background: var(--paper);
}

.empty-state {
  padding: 60px 0;
  color: var(--ink-soft);
  max-width: 50ch;
}

/* ---------------------------------------------------------
   Product detail page
--------------------------------------------------------- */
.product-detail {
  padding: 56px 0 80px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
}

@media (max-width: 760px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-detail .buy-panel {
  align-self: start;
  position: sticky;
  top: 24px;
}

.product-detail .buy-panel .cover {
  border: 1px solid var(--hairline);
  margin-bottom: 20px;
}

.product-detail .buy-panel .cover img {
  width: 100%;
  display: block;
}

.buy-box {
  background: var(--paper-card);
  border: 1px solid var(--hairline);
  padding: 22px;
}

.buy-box .price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 4px;
}

.buy-box .price-note {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0 0 18px;
}

.buy-box .btn {
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
}

.buy-box .reassure {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 12px 0 0;
}

.product-copy h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 16px;
}

.product-copy .tagline {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 32px;
}

.product-copy h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 40px 0 14px;
}

.product-copy ul.contents {
  margin: 0 0 24px;
  padding-left: 20px;
}

.product-copy ul.contents li {
  margin-bottom: 8px;
}

.demo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}

.demo-strip img {
  border: 1px solid var(--hairline);
}

/* ---------------------------------------------------------
   Download / confirmation page
--------------------------------------------------------- */
.status-page {
  padding: 100px 0;
  text-align: left;
}

.status-page h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  margin: 0 0 16px;
}

.status-page p {
  color: var(--ink-soft);
  max-width: 52ch;
}
