/* Mintwise – palette "Ivory & Silver" (docs/ui-references.md) */
:root {
  --bg: #f3efe6;
  --surface: #ffffff;
  --line: #ddd5c6;
  --text: #1e1b17;
  --muted: #5f584d;
  --accent: #5a626b;
  --accent-text: #4e565f;
  --silver: #c9d0d5;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 68rem;
  --prose: 44rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--text);
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  margin-top: 0;
}

h3 {
  font-size: 1.375rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
}

.skip-link:focus {
  left: 0.5rem;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.brand svg {
  width: 1.75rem;
  height: 1.75rem;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
}

/* Sections */
main {
  display: block;
}

.section {
  padding: 3.5rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 36rem;
}

/* Hero */
.hero {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 3.5rem;
}

@media (min-width: 52rem) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 4.5rem 0;
  }
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.75rem;
}

.store-badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 11rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text);
  line-height: 1.25;
}

.store-badge small {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.store-badge strong {
  font-size: 1.0625rem;
  font-weight: 600;
}

.note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Example result card (illustration, not a screenshot) */
.example {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.25rem;
  max-width: 24rem;
  width: 100%;
  justify-self: center;
}

.example-coins {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.example-coins svg {
  width: 6.5rem;
  height: 6.5rem;
}

.example-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.example-meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 0.75rem;
}

.pill {
  display: inline-block;
  padding: 0.125rem 0.625rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
}

.example dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 1rem;
  margin: 1rem 0 0.75rem;
  font-size: 0.9375rem;
}

.example dt {
  color: var(--muted);
}

.example dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.example-source {
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.625rem;
  margin: 0;
}

.example-caption {
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  margin: 0.75rem 0 0;
}

/* Grids and cards */
.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 40rem) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.card h3 {
  margin-bottom: 0.375rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--accent);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.not-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  max-width: var(--prose);
}

.not-list li {
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
}

.not-list li:first-child {
  border-top: 1px solid var(--line);
}

/* Prose pages (privacy, terms, support) */
.prose {
  max-width: var(--prose);
  padding: 2.5rem 0 3.5rem;
}

.prose h2 {
  font-size: 1.75rem;
  margin-top: 2.25rem;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose li {
  margin-bottom: 0.375rem;
}

.prose .updated {
  color: var(--muted);
  font-size: 0.9375rem;
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  background: var(--surface);
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--line);
}

th {
  font-weight: 600;
}

details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details[open] summary {
  margin-bottom: 0.625rem;
}

details p:last-child,
details ol:last-child,
details ul:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.site-footer a {
  color: var(--accent-text);
}

.site-footer p {
  margin: 0 0 0.375rem;
}
