/* --------------------------------------------------------------------------
   Pasket — a quiet clipboard history for macOS
   A restrained, self-contained product page.
   -------------------------------------------------------------------------- */

:root {
  --bg: #fbfbfa;
  --surface: #ffffff;
  --soft: #f4f4f1;
  --ink: #1b1b1d;
  --ink-soft: #3d4045;
  --muted: #61646a;
  --muted-light: #6c6f75;
  --line: #e7e6e1;
  --line-strong: #d8d7d1;
  --blue: #0a84ff;
  --blue-ink: #0066cc;
  --dark: #18181a;
  --container: 1120px;
  --sans:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', Arial,
    sans-serif;
  --mono: 'SF Mono', 'SFMono-Regular', ui-monospace, 'Cascadia Mono', Menlo, monospace;
  color-scheme: light;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
p,
figure,
dl,
dd {
  margin: 0;
}

figure {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

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

svg {
  display: block;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--blue-ink);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 550;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.nav-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px rgba(23, 24, 28, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.nav-links a,
.github-chip,
.footer-nav a,
.footer-meta a {
  transition: color 0.16s ease;
}

.nav-links a:hover,
.footer-nav a:hover,
.footer-meta a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 16px;
}

.github-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.github-chip:hover {
  color: var(--ink);
}

.github-chip svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.button--primary {
  background: var(--ink);
  color: var(--surface);
}

.button--primary:hover {
  background: #000000;
}

.button--secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.button--secondary:hover {
  border-color: #c3c2bc;
  background: var(--surface);
}

.button--small {
  min-height: 34px;
  gap: 7px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 12.5px;
}

.button--light {
  border-color: var(--surface);
  background: var(--surface);
  color: var(--ink);
}

.button--light:hover {
  border-color: #ececea;
  background: #ececea;
}

.button--outline-light {
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #f5f5f7;
}

.button--outline-light:hover {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.07);
}

.button.is-copied {
  border-color: rgba(149, 212, 166, 0.45);
  color: #c9e7d0;
}

.icon {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.icon--github {
  fill: currentColor;
  stroke: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(60px, 7vw, 82px) 0 clamp(60px, 7vw, 82px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: clamp(44px, 6.2vw, 76px);
}

.hero-copy {
  max-width: 520px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
}

.hero h1 {
  margin-top: 18px;
  color: var(--ink);
  font-size: clamp(2.8rem, 5.3vw, 4rem);
  font-weight: 610;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 span {
  display: block;
}

.hero-lede {
  max-width: 460px;
  margin-top: 23px;
  color: var(--muted);
  font-size: 15.5px;
  letter-spacing: -0.005em;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
}

.hero-repo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted-light);
  font-size: 11px;
  line-height: 1.4;
}

.hero-repo a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-color: rgba(24, 24, 26, 0.22);
  text-underline-offset: 3px;
  transition:
    color 0.16s ease,
    text-decoration-color 0.16s ease;
}

.hero-repo a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

/* ---------- Screenshots ---------- */

.shot {
  justify-self: end;
}

.shot img {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow:
    0 1px 2px rgba(20, 20, 22, 0.035),
    0 20px 38px -32px rgba(20, 20, 22, 0.32);
}

.shot--hero {
  width: 100%;
}

.shot--settings {
  max-width: 520px;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(68px, 7.8vw, 94px) 0;
}

.section--soft {
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(44px, 7vw, 86px);
}

.feature-row--reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.8fr);
}

.feature-row--reverse .feature-copy {
  order: 2;
}

.feature-row--reverse .shot {
  justify-self: start;
}

.feature-copy {
  max-width: 400px;
}

.section-label {
  margin-bottom: 12px;
  color: var(--blue-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.feature-copy h2 {
  color: var(--ink);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-wrap: balance;
}

.feature-copy > p:not(.section-label):not(.feature-facts) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1.65;
  text-wrap: pretty;
}

.feature-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 0;
  margin-top: 22px;
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.5;
}

.feature-facts span {
  display: inline-flex;
  align-items: center;
}

.feature-facts span + span::before {
  content: '·';
  margin: 0 9px;
  color: var(--line-strong);
  font-weight: 600;
}

/* ---------- Shortcuts ---------- */

.shortcut-note {
  display: flex;
  max-width: 400px;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.shortcut-plus {
  display: grid;
  width: 22px;
  height: 22px;
  flex: none;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.shortcut-note div {
  display: grid;
  gap: 3px;
}

.shortcut-note strong {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
}

.shortcut-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.shortcut-list {
  max-width: 400px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.shortcut-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.shortcut-list dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.shortcut-list dd {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

kbd {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(20, 20, 22, 0.04);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 20px;
  color: var(--blue-ink);
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.4;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link .icon {
  width: 13px;
  height: 13px;
}

/* ---------- Appearance ---------- */

.detail-list {
  max-width: 400px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-list div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.detail-list dd {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

/* ---------- History limits ---------- */

.limits-header {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.limits-header h2 {
  color: var(--ink);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.12;
  text-wrap: balance;
}

.limits-lede {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1.65;
  text-wrap: pretty;
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: clamp(38px, 4.6vw, 54px) 0 0;
  border-top: 1px solid var(--line);
}

.spec {
  padding: 20px 0 0 24px;
  border-left: 1px solid var(--line);
}

.spec:first-child {
  padding-left: 0;
  border-left: 0;
}

.spec dt {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.4;
}

.spec dd {
  margin: 9px 0 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 2.6vw, 2.05rem);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1;
}

.spec-unit {
  color: var(--muted);
  font-size: 0.54em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.specs-note {
  margin-top: 26px;
  color: var(--muted-light);
  font-size: 11.5px;
  line-height: 1.6;
  text-align: center;
  text-wrap: pretty;
}

/* ---------- Closing ---------- */

.site-cta {
  padding: clamp(62px, 7.8vw, 86px) 0;
  background: var(--dark);
  color: #f5f5f7;
}

.cta-inner {
  max-width: 680px;
  text-align: center;
}

.cta-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 12px;
}

.cta-inner h2 {
  color: #f7f7f8;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-wrap: balance;
}

.cta-inner > p {
  max-width: 520px;
  margin: 15px auto 0;
  color: rgba(245, 245, 247, 0.62);
  font-size: 14.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.cta-repo {
  display: inline-block;
  margin-top: 18px;
  color: rgba(245, 245, 247, 0.58);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: -0.01em;
  transition: color 0.16s ease;
}

.cta-repo:hover {
  color: rgba(245, 245, 247, 0.82);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) auto minmax(0, 1.1fr);
  align-items: start;
  gap: 32px;
  padding: 28px 0 32px;
}

.footer-brand .brand {
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-brand .brand img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.footer-brand p {
  margin-top: 8px;
  color: var(--muted-light);
  font-size: 10.5px;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 18px;
  padding-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.footer-meta {
  display: grid;
  justify-self: end;
  gap: 5px;
  padding-top: 2px;
  color: var(--muted-light);
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
}

.footer-meta a {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: -0.01em;
}

.footer-meta p {
  font-size: 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .hero-grid {
    gap: 44px;
  }

  .feature-row,
  .feature-row--reverse {
    gap: 52px;
  }
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    max-width: 620px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 7vw, 3.6rem);
  }

  .hero-lede {
    max-width: 550px;
  }

  .shot--hero {
    width: min(100%, 720px);
    justify-self: center;
  }

  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-row--reverse .feature-copy {
    order: 0;
  }

  .feature-copy {
    max-width: 620px;
  }

  .shot,
  .feature-row .shot,
  .feature-row--reverse .shot {
    width: 100%;
    max-width: 720px;
    justify-self: start;
  }

  .shot--settings {
    max-width: 720px;
  }

  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
    border-top: 0;
  }

  .spec,
  .spec:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .specs-note {
    text-align: left;
  }

  .section {
    padding: 64px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    gap: 18px 32px;
  }

  .footer-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
  }

  .footer-meta {
    text-align: right;
  }
}

@media (max-width: 600px) {
  .container {
    width: calc(100% - 36px);
  }

  .nav-shell {
    height: 64px;
  }

  .brand {
    gap: 8px;
    font-size: 15.5px;
  }

  .brand img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }

  .nav-actions {
    gap: 10px;
  }

  .github-chip span {
    display: none;
  }

  .github-chip svg {
    width: 17px;
    height: 17px;
  }

  .button--small {
    min-height: 32px;
    padding: 0 11px;
    border-radius: 7px;
    font-size: 12px;
  }

  .hero {
    padding: 42px 0 54px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 11.5vw, 3.3rem);
    line-height: 1.04;
  }

  .hero-lede {
    margin-top: 19px;
    font-size: 14.5px;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 24px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-repo {
    gap: 4px;
    margin-top: 18px;
    font-size: 10.5px;
  }

  .hero-repo a {
    font-size: 10px;
  }

  .shot--hero {
    max-width: none;
  }

  .section {
    padding: 54px 0;
  }

  .section-label {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .feature-copy h2 {
    font-size: clamp(1.9rem, 8vw, 2.25rem);
  }

  .feature-copy > p:not(.section-label):not(.feature-facts) {
    margin-top: 14px;
    font-size: 14px;
  }

  .feature-facts {
    margin-top: 17px;
    font-size: 11px;
  }

  .shot img {
    border-radius: 10px;
  }

  .shortcut-note {
    margin-top: 18px;
    padding: 12px;
  }

  .shortcut-list {
    margin-top: 16px;
  }

  .shortcut-list div {
    padding: 8px 0;
  }

  .shortcut-list dt {
    font-size: 11.5px;
  }

  .text-link {
    margin-top: 16px;
    font-size: 12px;
  }

  .detail-list {
    margin-top: 18px;
  }

  .detail-list div {
    padding: 8px 0;
    gap: 14px;
  }

  .detail-list dt,
  .detail-list dd {
    font-size: 11.5px;
  }

  .limits-header h2 {
    font-size: clamp(1.9rem, 8vw, 2.25rem);
  }

  .limits-lede {
    margin-top: 14px;
    font-size: 14px;
  }

  .specs {
    gap: 22px 20px;
    margin-top: 32px;
  }

  .spec dd {
    margin-top: 7px;
    font-size: 1.6rem;
  }

  .specs-note {
    margin-top: 22px;
    font-size: 11px;
  }

  .site-cta {
    padding: 56px 0;
  }

  .cta-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 10px;
  }

  .cta-inner h2 {
    font-size: clamp(1.9rem, 8vw, 2.4rem);
  }

  .cta-inner > p {
    margin-top: 13px;
    font-size: 13.5px;
  }

  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .cta-actions .button {
    width: 100%;
  }

  .cta-repo {
    margin-top: 16px;
    font-size: 9.5px;
    overflow-wrap: anywhere;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 0 28px;
  }

  .footer-brand p {
    font-size: 10px;
  }

  .footer-nav {
    grid-column: auto;
    order: 2;
    gap: 8px 14px;
    justify-content: flex-start;
    font-size: 10.5px;
  }

  .footer-meta {
    order: 3;
    justify-self: start;
    gap: 4px;
    text-align: left;
  }

  .footer-meta a {
    font-size: 8.5px;
  }

  .footer-meta p {
    font-size: 9px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
