/* Jigsmith website. Fonts are served from this site (no Google Fonts):
   Anybody and Instrument Sans, SIL Open Font License, see assets/fonts. */
@font-face {
  font-family: "Anybody";
  src: url("/assets/fonts/anybody.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 50% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --lime: #d4f53c;
  --orange: #f2994a;
  --blue: #2f62c9;
  --mist: #eef0f2;
  --ink: #262a30;
  --ink-soft: #4f555d;
  --white: #ffffff;
  --display: "Anybody", "Arial Black", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --wrap: 1280px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--text); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.on-blue :focus-visible { outline-color: var(--white); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Printed-layer texture: the fine horizontal lines on the app icon's hook. */
.layers { background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .05) 0 1px, transparent 1px 5px); }
.field-lime { background-color: var(--lime); }
.field-orange { background-color: var(--orange); }
.field-blue { background-color: var(--blue); color: var(--white); }
.field-mist { background-color: var(--mist); }

.display { font-family: var(--display); font-weight: 900; line-height: .95; margin: 0; }
h1.display { font-size: clamp(44px, 8vw, 120px); font-stretch: 140%; line-height: .9; letter-spacing: -.02em; }
h2.display { font-size: clamp(32px, 4vw, 52px); font-stretch: 108%; font-weight: 800; line-height: 1; }
.section-title { max-width: 22em; }
h3 { margin: 0; }
p { margin: 0; }
.lede { font-size: 21px; line-height: 1.5; max-width: 34em; }
.muted { color: var(--ink-soft); }
.stack { display: flex; flex-direction: column; gap: 20px; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; }
.wordmark { font-family: var(--display); font-weight: 900; font-stretch: 130%; font-size: 24px; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 500; }
.site-nav a { text-decoration: none; padding: 10px 0; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.badge { display: inline-block; line-height: 0; border-radius: 8px; }
/* Until the app is in the store: a plain note, not a link or Apple's badge. */
.soon { display: inline-flex; align-items: center; min-height: 56px; padding: 0 24px; border-radius: 12px; background: var(--ink); color: var(--lime); font-weight: 600; font-size: 18px; }
.badge img { height: 56px; width: auto; }

/* Home: hero */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; padding-top: 32px; }
.hero-copy { flex: 1 1 560px; min-width: 0; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.hero-art { flex: 0 1 380px; margin: 0 auto -150px; position: relative; z-index: 1; }
.hero-art img { width: 100%; max-width: 380px; filter: drop-shadow(0 34px 28px rgba(70, 40, 0, .32)); }
.after-hero .section { padding-top: 190px; }

/* Home: sections */
.section { padding-top: 112px; padding-bottom: 112px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.split > .stack { flex: 1 1 440px; min-width: 0; max-width: 580px; }
.after-hero .split > .stack { flex: 1 1 340px; max-width: 420px; }
.pair { flex: 1 1 640px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.pair figure { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pair img { border-radius: 28px; box-shadow: 0 24px 48px rgba(90, 40, 0, .25); }
.pair figcaption { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 20px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-top: 48px; }
.steps figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.steps img { border-radius: 28px; border: 1px solid #e2e4e7; width: 100%; }
.steps figcaption strong { font-weight: 600; }

.samples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; flex: 1 1 600px; min-width: 0; }
.samples { row-gap: 28px; }
.samples li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 15px; line-height: 1.3; }
.samples img { width: 100%; max-width: 128px; height: 96px; object-fit: contain; }

.prices { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.price { background: var(--white); color: var(--ink); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.price.featured { background: var(--lime); }
.price.wide { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: baseline; }
.price .amount { font-family: var(--display); font-size: 40px; font-weight: 900; font-stretch: 120%; line-height: 1.1; }
.price .note { font-size: 15px; color: var(--ink-soft); }
.price.featured .note { color: var(--ink); }
.tag { align-self: flex-start; margin-top: 6px; background: var(--ink); color: var(--lime); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; }

/* Inner pages */
.page-head { padding-top: 40px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1.display { font-size: clamp(40px, 7vw, 104px); max-width: 10em; }
.page-body { padding-top: 80px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.page-aside { flex: 1 1 320px; min-width: 0; max-width: 400px; }
.page-main { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 36px; }
.intro { font-size: 24px; line-height: 1.4; font-weight: 500; }
.policy h2 { font-family: var(--display); font-size: 26px; font-weight: 900; font-stretch: 115%; margin: 0 0 8px; line-height: 1.1; }
.card { border-radius: 28px; padding: 28px 32px; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--mist); border-radius: 24px; padding: 22px 28px; }
.faq summary { font-family: var(--display); font-size: 22px; font-weight: 900; font-stretch: 115%; line-height: 1.2; cursor: pointer; padding: 4px 0; }
.faq details[open] summary { margin-bottom: 10px; }
.faq p { max-width: 40em; }

.contact { display: flex; flex-direction: column; gap: 16px; border-radius: 28px; padding: 36px; }
.contact h2 { font-size: 34px; font-stretch: 125%; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 600; text-decoration: none; }
.pill:hover { color: var(--ink); background: #e2ff5c; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; padding-top: 32px; padding-bottom: 32px; font-size: 15px; color: var(--ink-soft); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 17px; }
  h1.display { font-stretch: 115%; }
  .lede { font-size: 19px; }
  .hero-copy { padding-bottom: 24px; }
  .hero { padding-top: 8px; }
  .hero-art { margin: -8px 0 -70px auto; flex-basis: 150px; }
  .hero-art img { max-width: 150px; }
  .after-hero .section { padding-top: 96px; }
  .pair { gap: 12px; }
  .pair figcaption { font-size: 16px; }
  .intro { font-size: 22px; }
  .faq summary { font-size: 19px; }
  .faq details { padding: 18px 20px; }
  .samples { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .samples li { padding: 8px 6px 12px; font-size: 14px; border-radius: 18px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .split { gap: 40px; }
  .prices { grid-template-columns: 1fr; }
  .price.wide { grid-column: auto; }
  .page-body { padding-top: 48px; padding-bottom: 72px; }
}
