:root {
  --md-primary-fg-color: #174b4d;
  --md-primary-fg-color--light: #2f6d6b;
  --md-primary-fg-color--dark: #0e3435;
  --md-accent-fg-color: #d66b35;
  --ink-charcoal: #17201f;
  --ink-copper: #c75422;
  --ink-paper: #f4efdf;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.md-typeset h1,
.md-typeset h2,
.md-typeset h3 {
  color: var(--ink-charcoal);
  font-weight: 750;
  letter-spacing: -.025em;
}

[data-md-color-scheme="slate"] .md-typeset h1,
[data-md-color-scheme="slate"] .md-typeset h2,
[data-md-color-scheme="slate"] .md-typeset h3 {
  color: #f3efdf;
}

.md-header { background: rgba(23, 75, 77, .97); }
.md-tabs { background: #103c3e; }
.md-main {
  background-image: radial-gradient(circle at 90% 5%, rgba(214, 107, 53, .08), transparent 24rem);
}

.ink-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(14rem, .92fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  margin: 1rem 0 3.5rem;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  overflow: hidden;
  border: 1px solid rgba(23, 75, 77, .18);
  border-radius: 1.6rem;
  color: #39413f;
  background: linear-gradient(135deg, #faf6e8, #e4decc);
  box-shadow: 0 1.5rem 5rem rgba(23, 32, 31, .12);
}

.ink-hero__copy { min-width: 0; }
.ink-hero__logo { width: 7.5rem; margin-bottom: .8rem; }

/* Keep cream-panel typography dark even when the site uses its slate theme. */
.md-typeset .ink-hero h1 {
  max-width: 13ch;
  margin: .45rem 0 1rem;
  color: var(--ink-charcoal);
  font-size: clamp(2.15rem, 4vw, 3.45rem);
  line-height: 1.04;
  overflow-wrap: normal;
  word-break: normal;
}

.ink-kicker {
  margin: 0;
  color: var(--ink-copper);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .11em;
  line-height: 1.45;
  text-transform: uppercase;
}

.ink-lede {
  max-width: 36rem;
  margin-bottom: 0;
  color: #39413f;
  font-size: 1rem;
  line-height: 1.55;
}

.ink-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.ink-hero .md-button:not(.md-button--primary) {
  border-color: #2f6d6b;
  color: #174b4d;
}

.ink-hero__device {
  width: 100%;
  max-width: 28rem;
  justify-self: center;
  filter: drop-shadow(0 1.2rem 1.4rem rgba(23, 32, 31, .2));
  transform: rotate(1deg);
}

.ink-device-photo {
  max-width: 23rem;
  margin: 1.5rem auto 2rem;
  text-align: center;
}

.ink-device-photo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
}

.ink-device-photo-row .ink-device-photo {
  margin: 1.5rem auto 2rem;
}

.ink-device-photo img {
  display: block;
  width: 100%;
  border: 1px solid rgba(23, 75, 77, .2);
  border-radius: 1rem;
  box-shadow: 0 .8rem 2rem rgba(23, 32, 31, .16);
}

.ink-device-photo figcaption {
  margin-top: .65rem;
  font-size: .78rem;
  line-height: 1.45;
}

.ink-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.8rem 0 3rem;
}

.ink-card {
  padding: 1.25rem;
  border: 1px solid rgba(23, 75, 77, .18);
  border-radius: 1rem;
  background: rgba(242, 238, 223, .58);
}

.ink-card span {
  color: var(--ink-copper);
  font-family: ui-monospace, monospace;
  font-weight: 800;
}

.ink-card h3 { margin: .65rem 0 .35rem; }
.ink-card p { margin: 0; font-size: .78rem; line-height: 1.55; }

[data-md-color-scheme="slate"] .ink-card {
  border-color: rgba(102, 164, 159, .28);
  background: rgba(35, 53, 53, .72);
}

[data-md-color-scheme="slate"] .ink-card p { color: #d5d9d5; }

@media (max-width: 1050px) {
  .ink-hero {
    grid-template-columns: minmax(0, 1.12fr) minmax(13rem, .88fr);
    gap: 1.75rem;
    padding: 2rem;
  }
  .md-typeset .ink-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3rem); }
}

@media (max-width: 780px) {
  .ink-hero { grid-template-columns: 1fr; }
  .ink-hero__device { max-width: 25rem; }
  .ink-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .ink-hero {
    margin-top: 0;
    padding: 1.35rem;
    border-radius: 1rem;
  }
  .md-typeset .ink-hero h1 { max-width: none; font-size: 2.15rem; }
  .ink-grid { grid-template-columns: 1fr; }
  .ink-device-photo-row { grid-template-columns: 1fr; }
}
