/* Paralens — paralens.app. Black, Playfair Display + Inter, whites in steps. */

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --surface: #070707;
  --line: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --body: rgba(255, 255, 255, 0.72);
  --muted: rgba(255, 255, 255, 0.50);
  --subtle: rgba(255, 255, 255, 0.30);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gutter: 24px;
  --max: 1120px;
  --measure: 40rem;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

figure {
  margin: 0;
}

a {
  color: var(--text);
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--text);
}
:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #000;
  z-index: 10;
}
.skip-link:focus {
  left: 8px;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: var(--text);
}
.site-nav .lang {
  color: var(--text);
  border: 1px solid var(--line);
  padding: 6px 10px;
}

/* Type */
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
h1 {
  font-size: clamp(48px, 9vw, 112px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.12;
}
h3 {
  font-size: 22px;
  line-height: 1.3;
}
.lead {
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.6;
  color: var(--body);
  max-width: 36rem;
}
.rule {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  margin: 32px 0;
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
}
.button:hover {
  border-color: var(--text);
}
.button-primary {
  background: #fff;
  border-color: #fff;
  color: #000;
}
.button-primary:hover {
  background: rgba(255, 255, 255, 0.86);
}
.button[disabled] {
  opacity: 0.5;
  cursor: default;
}
.note {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Sections */
.hero {
  padding: clamp(72px, 14vw, 168px) 0 clamp(64px, 10vw, 120px);
}
.section {
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid var(--line);
}
.section-head {
  max-width: 44rem;
  margin-bottom: 56px;
}
.section-head p {
  margin: 24px 0 0;
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.split + .wrap {
  margin-top: clamp(64px, 9vw, 112px);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features h3 {
  margin-bottom: 12px;
}
.features p {
  margin: 0;
}
.features .num {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.principles li {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.principles strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
}

.steps {
  counter-reset: step;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 32px;
  max-width: 44rem;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 18px;
  color: var(--muted);
  padding-top: 2px;
}
.steps strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px;
}

/* A photograph with its label, shown at its own proportions (never cropped). */
.photo img {
  width: 100%;
  height: auto;
}
.photo figcaption {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0 8px;
  margin-top: 14px;
  font-size: 13px;
}
.photo .n {
  font-family: var(--serif);
  color: var(--muted);
}
.photo .c {
  font-family: var(--serif);
  font-style: italic;
  color: var(--body);
}
.hero-photo {
  margin-top: clamp(56px, 8vw, 96px);
}

/* The app's project page, as on a phone. */
.device {
  width: min(100%, 340px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  padding: 44px 0 0;
  background: #000;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(255, 255, 255, 0.06);
}
.device-wall {
  padding: 0 24px 28px;
}
.device-wall .who {
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
}
.device-wall .title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 10px;
}
.device-wall .meta {
  font-size: 8.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}
.device-wall .text {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 16px;
}
.device-wall .rule {
  margin: 0;
  width: 22px;
}
.device img {
  width: 100%;
  height: auto;
  margin-top: 8px;
}
.cartel {
  padding: 12px 24px 28px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0 8px;
  font-size: 12px;
}
.cartel .n {
  font-family: var(--serif);
  color: rgba(255, 255, 255, 0.55);
}
.cartel .c {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(255, 255, 255, 0.84);
}
.cartel .g {
  grid-column: 2;
  margin-top: 4px;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* The warm paper of the app's exhibitions: a gallery wall. */
.paper {
  --text: #141414;
  --body: rgba(20, 20, 20, 0.74);
  --muted: rgba(20, 20, 20, 0.5);
  --line: rgba(20, 20, 20, 0.12);
  background: #f7f4ef;
  color: var(--body);
  border-top: 0;
}
.wall {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 3vw, 40px);
}
/* Each frame grows with its photo's ratio (--r), so the photos share one height. */
.frame {
  flex: var(--r, 1) 1 0;
  min-width: 0;
  background: #fff;
  padding: clamp(10px, 1.6vw, 20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 24px 48px rgba(0, 0, 0, 0.10);
}
.frame figcaption {
  margin-top: 12px;
}

.download {
  text-align: center;
}
.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin: 0 auto 32px;
  box-shadow: 0 20px 60px rgba(120, 90, 255, 0.18);
}
.download .actions {
  justify-content: center;
}
.download h2 {
  max-width: 40rem;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 56px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.site-footer a {
  color: var(--body);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}
.site-footer p {
  margin: 0;
}

/* Legal and help pages */
.doc {
  padding: clamp(56px, 8vw, 96px) 0 96px;
}
.doc .wrap {
  max-width: calc(var(--measure) + 2 * var(--gutter));
}
.doc h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
}
.doc .updated {
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.langs {
  display: flex;
  gap: 8px;
  margin: 32px 0 0;
}
.langs a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px 12px;
}
.doc-lang {
  padding-top: 56px;
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.doc-lang > .eyebrow {
  margin-bottom: 8px;
}
.doc h2 {
  font-size: 26px;
  line-height: 1.25;
  margin: 48px 0 16px;
}
.doc h3 {
  font-size: 19px;
  margin: 28px 0 10px;
}
.doc p,
.doc li {
  color: var(--body);
}
.doc ul {
  padding-left: 1.2em;
}
.doc li {
  margin: 6px 0;
}
.doc strong {
  color: var(--text);
  font-weight: 500;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}
.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
}
.doc th {
  color: var(--text);
  font-weight: 500;
}
.table-scroll {
  overflow-x: auto;
}
.callout {
  border-left: 1px solid rgba(255, 255, 255, 0.4);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
}

/* Forms */
.form {
  display: grid;
  gap: 18px;
  margin: 24px 0 8px;
  max-width: 32rem;
}
.form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}
.form input,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 14px;
  border-radius: 0;
}
.form textarea {
  min-height: 112px;
  resize: vertical;
}
.form input:focus,
.form textarea:focus {
  border-color: rgba(255, 255, 255, 0.6);
  outline: none;
}
.form .hp {
  position: absolute;
  left: -9999px;
}
.form-status {
  min-height: 1.6em;
  margin: 0;
  font-size: 15px;
}
.form-status[data-state='ok'] {
  color: var(--text);
}
.form-status[data-state='error'] {
  color: #ff8a8a;
}

/* 404 */
.not-found {
  min-height: 70vh;
  display: grid;
  align-content: center;
  padding: 96px 0;
}

@media (max-width: 860px) {
  .split,
  .features,
  .principles {
    grid-template-columns: minmax(0, 1fr);
  }
  .features {
    gap: 40px;
  }
  .wall {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }
  .frame {
    flex: none;
  }
  .site-nav .optional {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .site-nav {
    gap: 16px;
  }
  .actions .button {
    flex: 1 1 100%;
  }
}

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