/* Parallel 45 Labs site styles. Direction C: warm drafting paper, close-up keycap
   illustrations with hatched skirts, one ink colour, keys that press. Light mode only. */

/* Archivo, hosted with the site (SIL Open Font License). Loading it from Google would send visitors' IPs there. */
/* latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1c1e3f;
  --ink-soft: #4b4e78;
  --paper: #f3ece6;
  --cream: #f6eee8;
  --lav: #c8bde8;
  --lav-deep: #6f68ad;
  --band: #4565c8;
  --mustard: #e9b949;
  --mustard-deep: #a8781c;
  --link: #3552b8;

  --rule: 2.5px;
  --gutter: clamp(16px, 4vw, 48px);
  --font: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  background-color: var(--paper);
  /* Isometric drafting grid. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='41.569' height='24'%3E%3Cpath d='M0 0L41.569 24M0 24L41.569 0' stroke='%23e6dce4' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 41.569px 24px;
}

a { color: inherit; }

:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 6px; }

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

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }

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

.display {
  font-weight: 900;
  font-stretch: 125%;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.wordmark {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav ul { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; margin: 0; padding: 0; font-weight: 500; }
.nav a:not(.wordmark) { text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:not(.wordmark):hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav .lang { color: var(--ink-soft); }

/* ---------- Keys that press. The link never moves; only the face sinks, so hover never flickers. ---------- */

.press { display: block; text-decoration: none; padding-bottom: 12px; }
.press > .face { transition: transform 70ms ease-out, box-shadow 70ms ease-out; }
.press:hover > .face { transform: translateY(6px); }
.press:active > .face { transform: translateY(11px); }

.key-button { display: inline-block; text-decoration: none; padding-bottom: 7px; }
.key-button > span {
  display: inline-block;
  font-weight: 800;
  font-size: 1.08rem;
  background: var(--mustard);
  border: var(--rule) solid var(--ink);
  border-radius: 14px;
  padding: 13px 24px 12px;
  box-shadow: 0 7px 0 0 var(--mustard-deep), 0 7px 0 var(--rule) var(--ink);
  transition: transform 70ms ease-out, box-shadow 70ms ease-out;
}
.key-button:hover > span { transform: translateY(3px); box-shadow: 0 4px 0 0 var(--mustard-deep), 0 4px 0 var(--rule) var(--ink); }
.key-button:active > span { transform: translateY(7px); box-shadow: 0 0 0 0 var(--mustard-deep), 0 0 0 var(--rule) var(--ink); }

/* ---------- The 45th parallel ---------- */

.rule45 { display: block; position: relative; border-top: 3px dashed var(--ink); height: 0; }
.rule45 > span {
  position: absolute; left: 0; top: 0; transform: translateY(-50%);
  font-size: 1rem; font-stretch: 100%; letter-spacing: 0; font-weight: 800; line-height: 1.4;
  background: var(--mustard); border: 2px solid var(--ink); border-radius: 6px; padding: 1px 10px 2px;
}

/* ---------- Home hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 32px 56px;
  align-items: center;
  padding-top: clamp(16px, 4vw, 40px);
  padding-bottom: clamp(56px, 7vw, 96px);
}

.hero h1 { margin: 0; font-size: clamp(3.1rem, 7.6vw, 7.2rem); line-height: 0.86; letter-spacing: -0.045em; }
.hero h1 > span { display: block; white-space: nowrap; }
.hero .rule45 { margin: 0.12em -100vw 0.16em 0; }

.keywell { display: inline-block; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.key45 {
  display: inline-block; font-size: 0.74em; line-height: 1; letter-spacing: -0.03em;
  padding: 0.06em 0.16em 0.1em; margin-right: 0.04em;
  background: var(--cream); border: 0.04em solid var(--ink); border-radius: 0.16em;
  box-shadow: 0 0.13em 0 0 var(--lav-deep), 0 0.13em 0 0.04em var(--ink);
  transform: rotate(-4deg) translateY(-0.04em);
  transition: transform 70ms ease-out, box-shadow 70ms ease-out;
}
.keywell:hover .key45 { transform: rotate(-4deg) translateY(0.08em); box-shadow: 0 0.01em 0 0 var(--lav-deep), 0 0.01em 0 0.04em var(--ink); }

.claim { margin: 30px 0 0; font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; }

.frame {
  border: var(--rule) solid var(--ink);
  border-radius: 28px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 12px 12px 0 0 var(--ink);
  background: var(--ink);
}
.frame svg { width: 100%; height: 100%; }
.frame.hero-art { aspect-ratio: 1200 / 900; }
.frame.app-art { aspect-ratio: 900 / 560; }

/* ---------- Apps band (home) ---------- */

.band {
  background-color: var(--band);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='41.569' height='24'%3E%3Cpath d='M0 0L41.569 24M0 24L41.569 0' stroke='%23ffffff' stroke-opacity='0.14' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 41.569px 24px;
  border-top: var(--rule) solid var(--ink);
  border-bottom: var(--rule) solid var(--ink);
  padding: clamp(56px, 7vw, 88px) 0 clamp(64px, 8vw, 104px);
}

.cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; }

.card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: var(--rule) solid var(--ink);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 12px 0 0 var(--lav-deep), 0 12px 0 var(--rule) var(--ink);
}
.press:hover > .card { box-shadow: 0 6px 0 0 var(--lav-deep), 0 6px 0 var(--rule) var(--ink); }
.press:active > .card { box-shadow: 0 1px 0 0 var(--lav-deep), 0 1px 0 var(--rule) var(--ink); }

.card-art { aspect-ratio: 900 / 560; border-bottom: var(--rule) solid var(--ink); }
.card-art svg { width: 100%; height: 100%; }
.card-body { padding: 22px 26px 26px; }
.card-body h2 { margin: 0 0 6px; font-weight: 900; font-stretch: 118%; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.02; }
.card-body p { margin: 0; max-width: 28rem; }
.card-meta { margin-top: 10px !important; color: var(--ink-soft); font-size: 0.95rem; }
.press:hover .card-body h2 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.soon {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 28px;
  border: var(--rule) dashed var(--cream);
  border-radius: 26px;
  color: var(--cream);
}
.soon-art { width: 160px; flex: none; margin: 4px 0 -6px 8px; }
.soon .card-body p { color: var(--cream); }
.tag { margin-left: auto; background: var(--mustard); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 14px 4px; font-weight: 800; white-space: nowrap; }

/* ---------- About (home) ---------- */

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px 64px; padding-top: clamp(56px, 8vw, 96px); }
.about h2 { margin: 0; font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
.about p { margin: 0; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.4; font-weight: 600; max-width: 32rem; }

/* ---------- App pages ---------- */

.app-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px 64px;
  align-items: center;
  padding-top: clamp(16px, 4vw, 40px);
  padding-bottom: 8px;
}
.app-hero h1 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.2rem); }
.app-hero .claim { margin-top: 20px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }
.cta .notes { font-weight: 700; margin-bottom: 7px; }
.req { margin: 14px 0 0; color: var(--ink-soft); font-size: 0.95rem; }

.section { padding-top: clamp(56px, 8vw, 104px); }

.pitch { max-width: 46rem; }
.pitch p { margin: 0; }
.asks { font-size: clamp(1.25rem, 2.1vw, 1.6rem); line-height: 1.4; font-weight: 600; color: var(--ink-soft); }
.answer { margin-top: 18px !important; font-size: clamp(1.5rem, 2.8vw, 2.2rem); line-height: 1.2; font-weight: 900; font-stretch: 112%; letter-spacing: -0.02em; }

.diagram {
  margin: 0;
  padding: clamp(20px, 4vw, 44px) clamp(16px, 4vw, 44px) clamp(18px, 3vw, 28px);
  background: #fff;
  border: var(--rule) solid var(--ink);
  border-radius: 22px;
  box-shadow: 12px 12px 0 0 var(--band);
}
.diagram svg { width: 100%; height: auto; }
.steps {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; grid-template-columns: 30fr 5fr 30fr 5fr 30fr;
  font-weight: 900; font-stretch: 118%; font-size: clamp(1rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; text-align: center;
}
.steps li:nth-child(2) { grid-column: 3; }
.steps li:nth-child(3) { grid-column: 5; }

/* LinkPaster: the result, shown instead of explained. */
.demo {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: center;
  align-items: center;
  gap: 20px 36px;
  padding: clamp(28px, 4vw, 44px);
  background: #fff;
  border: var(--rule) solid var(--ink);
  border-radius: 22px;
  box-shadow: 12px 12px 0 0 var(--lav);
}
.demo .before { color: var(--ink-soft); font-size: 1.05rem; overflow-wrap: anywhere; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.demo .after { color: var(--link); font-weight: 700; font-size: clamp(1.15rem, 1.8vw, 1.35rem); text-decoration: underline; text-underline-offset: 4px; }
.keys { display: flex; gap: 6px; }
kbd {
  display: inline-grid; place-items: center; min-width: 2.2em; height: 2.2em; padding: 0 0.4em;
  font-family: var(--font); font-weight: 800; font-size: 1rem;
  background: var(--cream); border: 2px solid var(--ink); border-radius: 9px;
  box-shadow: 0 4px 0 0 var(--lav-deep), 0 4px 0 2px var(--ink);
}

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

.footer { margin-top: clamp(72px, 10vw, 128px); padding-bottom: 40px; }
.footer .rule45 { margin-bottom: 28px; border-top-width: 2px; }
.footer .rule45 > span { left: auto; right: 0; font-size: 0.85rem; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--ink-soft); font-size: 0.95rem; }
.footer-row p { margin: 0; }
.footer-row ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }

/* ---------- Long pages (privacy, release notes) ---------- */

.doc { max-width: 44rem; padding-top: clamp(16px, 4vw, 40px); }
.doc h1 { margin: 0 0 8px; font-size: clamp(2.4rem, 5.6vw, 4rem); }
.doc .doc-meta { margin: 0 0 40px; color: var(--ink-soft); }
.doc h2 { margin: 48px 0 10px; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; }
.doc h3 { margin: 28px 0 6px; font-size: 1.12rem; font-weight: 800; }
.doc p, .doc li { max-width: 38rem; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }
.doc code { font-size: 0.9em; background: var(--cream); border: 1px solid #e0d6d0; border-radius: 4px; padding: 0 4px; }
.back { display: inline-block; margin-bottom: 20px; font-weight: 700; }

.version {
  background: var(--cream);
  border: var(--rule) solid var(--ink);
  border-radius: 18px;
  padding: 4px 28px 18px;
  margin-top: 28px;
  box-shadow: 0 8px 0 0 var(--lav), 0 8px 0 var(--rule) var(--ink);
}
.version h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 20px; }
.version h2 time { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- One moment of motion: the 45 key presses once on load ---------- */

@media (prefers-reduced-motion: no-preference) {
  .key45 { animation: press45 0.42s ease-out 0.35s both; }
  @keyframes press45 {
    0%, 100% { transform: rotate(-4deg) translateY(-0.04em); box-shadow: 0 0.13em 0 0 var(--lav-deep), 0 0.13em 0 0.04em var(--ink); }
    35%, 55% { transform: rotate(-4deg) translateY(0.08em); box-shadow: 0 0.01em 0 0 var(--lav-deep), 0 0.01em 0 0.04em var(--ink); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .press > .face, .key-button > span, .key45 { transition: none; }
}

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .hero, .cards, .about, .app-hero { grid-template-columns: 1fr; }
  .frame { transform: rotate(1.2deg); box-shadow: 8px 8px 0 0 var(--ink); }
  .hero .rule45 { margin: 0.22em -100vw 0.26em 0; }
  .hero .rule45 > span { font-size: 0.75rem; padding: 0 7px 1px; }
  .nav .lang-item { display: none; }
  .footer-row p { font-size: 0.85rem; }
  .soon { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 22px; }
  .soon .tag { margin-left: 26px; }
  .demo { grid-template-columns: 1fr; justify-items: start; }
}
