/* shneer.com: one stylesheet for / and /gr/ */

/* Fonts: Balsamiq Sans draws Latin, Comic Relief draws Greek */

@font-face {
  font-family: "Balsamiq Sans";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/balsamiq-sans-400.woff2") format("woff2");
}

@font-face {
  font-family: "Balsamiq Sans";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/balsamiq-sans-700.woff2") format("woff2");
}

@font-face {
  font-family: "Comic Relief";
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/comic-relief-400-greek.woff2") format("woff2");
  unicode-range: U+0370-03FF;
}

@font-face {
  font-family: "Comic Relief";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/comic-relief-700-greek.woff2") format("woff2");
  unicode-range: U+0370-03FF;
}

/* Tokens: brand colours, and one scale in four steps (small phones, phones, tablets, desktop + wide) */

:root {
  --ink: #272727;
  --muted: #585A64;
  --paper: #FFFFFF;
  --crimson: #E03357;
  --crimson-text: #C41E47;
  --orange: #FF800B;
  --teal: #66C1C2;
  --teal-text: #1B7172;
  --peach: #FFCD9D;
  --line: 2px solid var(--ink);

  --fold: 100svh;
  --pad: 20px;
  --head: 64px;
  --logo: 44px;
  --nav: 16px;
  --nav-gap: 24px;
  --h1: 56px;
  --lead: 17px;
  --h2: 24px;
  --h3: 20px;
  --body: 16px;
  --num: 32px;
  --small: 14px;
  --fine: 13px;
  --sec: 56px;
  --gap: 16px;
  --card: 18px;
  --doodle: 56px;
  --hero-t: 24px;
  --hero-b: 32px;
  --hero-gap: 32px;
  --win: 340px;
}

@media (max-width: 359px) {
  :root {
    --pad: 16px;
    --head: 56px;
    --logo: 40px;
    --nav-gap: 14px;
    --lead: 16px;
    --h2: 21px;
    --h3: 18px;
    --num: 28px;
    --small: 13px;
    --fine: 12px;
    --sec: 48px;
    --gap: 14px;
    --card: 16px;
    --doodle: 52px;
  }
}

@media (min-width: 600px) {
  :root {
    --pad: 40px;
    --head: 72px;
    --logo: 48px;
    --nav: 17px;
    --nav-gap: 32px;
    --lead: 19px;
    --h2: 34px;
    --h3: 21px;
    --body: 17px;
    --num: 40px;
    --small: 15px;
    --fine: 14px;
    --sec: 72px;
    --gap: 20px;
    --card: 22px;
    --doodle: 64px;
    --hero-t: 40px;
    --hero-b: 48px;
    --hero-gap: 40px;
    --win: 400px;
  }
}

@media (min-width: 1024px) {
  :root {
    --head: 80px;
    --logo: 52px;
    --nav: 18px;
    --nav-gap: 36px;
    --h1: 84px;
    --lead: 20px;
    --h2: 40px;
    --h3: 24px;
    --body: 18px;
    --num: 44px;
    --sec: 96px;
    --gap: 24px;
    --card: 28px;
    --doodle: 72px;
    --hero-t: 32px;
    --hero-b: 64px;
  }
}

@media (min-width: 1600px) {
  :root {
    --h1: 96px;
    --lead: 22px;
    --h2: 44px;
    --h3: 26px;
    --body: 19px;
    --num: 48px;
    --sec: 112px;
  }
}

/* Base */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Balsamiq Sans", "Comic Relief", "Comic Sans MS", cursive;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
}

a:hover {
  color: var(--crimson-text);
}

a:focus-visible {
  outline: 3px solid var(--teal-text);
  outline-offset: 3px;
}

h2 {
  font-size: var(--h2);
  line-height: 1.18;
  text-wrap: balance;
}

.wrap {
  box-sizing: border-box;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: var(--pad);
}

@media (min-width: 1600px) {
  .wrap {
    max-width: 1400px;
  }
}

/* Hand-drawn borders: two wobbles, alternated */

.sketch,
.sketch-2 {
  border: var(--line);
}

.sketch {
  border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px;
}

.sketch-2 {
  border-radius: 15px 225px 15px 255px / 255px 15px 225px 15px;
}

.hl {
  background: linear-gradient(transparent 58%, var(--peach) 58%);
}

.squig {
  display: block;
  width: 140px;
  height: 14px;
  margin-top: 12px;
  fill: none;
  stroke: var(--crimson);
  stroke-width: 3.5;
  stroke-linecap: round;
}

#products .squig {
  stroke: var(--teal);
}

/* Header: stays on top; a line appears once the page moves */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
}

header .wrap {
  height: var(--head);
  display: flex;
  align-items: center;
  gap: var(--nav-gap);
}

.home {
  margin-right: auto;
}

header img,
footer img,
.missing img {
  display: block;
  width: auto;
  height: var(--logo);
}

.menu {
  display: flex;
  gap: var(--nav-gap);
  font-size: var(--nav);
}

@media (max-width: 599px) {
  .menu {
    display: none;
  }
}

@keyframes head-line {
  to {
    box-shadow: 0 2px 0 var(--ink);
  }
}

@supports (animation-timeline: scroll()) {
  header {
    animation: head-line linear both;
    animation-timeline: scroll();
    animation-range: 0 24px;
  }
}

@supports not (animation-timeline: scroll()) {
  header {
    box-shadow: 0 2px 0 var(--ink);
  }
}

/* Language switch, the same in header and footer */

.lang {
  display: flex;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
}

.lang a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  box-sizing: border-box;
  text-decoration: none;
}

.lang a + a {
  border-left: var(--line);
}

.lang a:focus-visible {
  outline-offset: -5px;
}

.lang [aria-current] {
  background: var(--peach);
}

.lang [aria-current]:hover {
  color: var(--ink);
}

@media (max-width: 599px) {
  .lang a {
    height: 40px;
  }
}

/* First screen: exactly one screen tall on every device */

.hero {
  min-height: calc(var(--fold) - var(--head));
  display: flex;
  flex-direction: column;
  padding-block: var(--hero-t) var(--hero-b);
  container-type: inline-size;
}

h1 {
  font-size: min(var(--h1), 100cqi / 10.9);
  line-height: 1.12;
  text-wrap: balance;
}

:lang(el) h1 {
  font-size: min(var(--h1), 100cqi / 9.7);
}

@media (min-width: 600px) {
  :lang(el) h1 {
    font-size: min(var(--h1), 100cqi / 13);
  }

  h1 .m {
    display: none;
  }
}

.copy {
  margin-top: 16px;
}

.lead {
  font-size: var(--lead);
  line-height: 1.55;
  max-width: 32em;
  text-wrap: pretty;
}

@media (min-width: 600px) {
  .lead {
    text-wrap: balance;
  }
}

.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 24px;
  font-weight: 700;
  font-size: var(--body);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  color: var(--ink);
  transform: rotate(-1.5deg);
}

.btn.primary {
  background: var(--orange);
}

@media (max-width: 599px) {
  .ctas .btn {
    flex: 1 1 auto;
  }
}

/* The site drawn inside the visitor's own device. script.js sets data-device on <html>:
   a browser window on desktops, an iPad, an iPhone (an iPhone 8 lies on its side), an open
   iPhone Duo or Galaxy Z Fold (folded and on its side when the screen is short), an Android phone */

.art {
  flex: 1 1 0;
  container-type: size;
  display: flex;
  align-items: center;
}

.win,
.dev {
  width: 100%;
  height: min(100cqh - var(--hero-gap), var(--win));
  margin-top: var(--hero-gap);
}

.win {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

html:not([data-device="desktop"]) .win {
  display: none;
}

.bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: var(--line);
}

.url {
  flex: 1;
  min-width: 0;
  padding: 2px 12px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.bar svg {
  flex: none;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}

.view {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 8cqi, 44px);
  padding-inline: clamp(16px, 8cqi, 44px);
}

.view img {
  flex: none;
  width: auto;
  height: min(55cqh, 200px);
}

.wire {
  flex: 1;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: min(3cqh, 14px);
}

.wire span {
  height: 6px;
}

.wire span:nth-child(1) { height: 10px; width: 90%; background: var(--ink); }
.wire span:nth-child(2) { width: 100%; }
.wire span:nth-child(3) { width: 80%; }
.wire span:nth-child(4) { width: 92%; }
.wire span:nth-child(5) { width: 60%; }
.wire span:nth-child(6) { height: 30px; width: min(120px, 70%); margin-top: 6px; background: var(--teal); }

.dev {
  display: none;
  overflow: visible;
}

.d-iphone,
.d-android {
  height: min(100cqh - var(--hero-gap), 400px);
}

.dev .o {
  stroke: var(--ink);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.dev .i {
  fill: none;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dev .w {
  fill: var(--paper);
}

.dev .crease {
  stroke-opacity: .55;
  stroke-dasharray: 6 4;
}

.dev text {
  font-weight: 700;
  fill: var(--ink);
}

.dev .u {
  font-weight: 400;
  fill: var(--muted);
}

/* Each drawing needs room on the first screen; a short screen gets a phone lying on its side */

@container (height >= 260px) {
  [data-device="iphone"] .d-iphone,
  [data-device="android"] .d-android {
    display: block;
  }
}

@container (height >= 200px) {
  [data-device="ipad"] .d-ipad,
  [data-device="iphone-duo"] .d-duo,
  [data-device="galaxy-fold"] .d-fold {
    display: block;
  }
}

@container (height >= 150px) {
  [data-device="iphone-se"] .d-se {
    display: block;
  }
}

@container (120px <= height < 200px) {
  [data-device="galaxy-fold"] .d-cover {
    display: block;
  }
}

@container (height < 200px) {
  .win {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "t t" "c a";
    align-content: center;
    align-items: start;
    column-gap: 64px;
    row-gap: 40px;
  }

  .hero h1 {
    grid-area: t;
  }

  .copy {
    grid-area: c;
    margin-top: 0;
  }

  .art {
    grid-area: a;
    aspect-ratio: 5 / 4;
  }

  .win,
  .dev {
    height: 100cqh;
    margin-top: 0;
  }
}

/* Sections */

main {
  overflow-x: clip;
  padding-bottom: var(--sec);
}

.sec {
  padding-top: var(--sec);
  scroll-margin-top: var(--head);
}

.text p {
  margin-top: 16px;
  font-size: var(--body);
  line-height: 1.65;
  max-width: 36em;
  text-wrap: pretty;
}

.text .squig + p {
  margin-top: 24px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: var(--gap);
  margin-top: 32px;
}

.stat {
  padding: var(--card);
}

.num {
  margin-top: 10px;
  font-size: var(--num);
  line-height: 1;
  font-weight: 700;
}

.lbl {
  margin-top: 8px;
  font-size: var(--small);
  line-height: 1.4;
  color: var(--muted);
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .about {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: 64px;
    align-items: center;
  }

  .stats {
    margin-top: 0;
  }
}

.note {
  margin-top: 20px;
  font-size: var(--body);
  line-height: 1.6;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: var(--gap);
  margin-top: 32px;
}

@media (min-width: 700px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  padding: var(--card);
  display: grid;
  grid-template-columns: var(--doodle) minmax(0, 1fr);
  column-gap: 16px;
  align-items: center;
  align-content: start;
}

.doodle {
  width: var(--doodle);
  height: var(--doodle);
  box-sizing: border-box;
  border: var(--line);
  border-radius: var(--blob);
  display: flex;
  align-items: center;
  justify-content: center;
}

.doodle svg {
  width: 64%;
  height: 64%;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

h3 {
  grid-column: 1 / -1;
  margin-top: 14px;
  font-size: var(--h3);
  line-height: 1.25;
  text-wrap: balance;
}

.desc {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: var(--body);
  line-height: 1.6;
  text-wrap: pretty;
}

@media (min-width: 1024px) {
  .card {
    column-gap: 24px;
    align-items: start;
  }

  .doodle {
    grid-row: 1 / span 3;
  }

  .eyebrow {
    margin-top: 6px;
  }

  .card h3,
  .desc {
    grid-column: 2;
  }

  .card h3 {
    margin-top: 10px;
  }
}

/* Stats and cards each carry one triangle of the mark, in mark order:
   crimson left, orange right, teal left, graphite right, in the mark's 202 : 335 proportion */

.stat::before,
.eyebrow::before {
  content: "";
  aspect-ratio: 202.473 / 335;
  background: var(--tri);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.stat::before {
  display: inline-block;
  height: 26px;
}

.eyebrow::before {
  height: 20px;
}

.stat:nth-child(even)::before,
.card:nth-child(even) .eyebrow::before {
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.stat:nth-child(1), .card:nth-child(1) { --tri: var(--crimson); --blob: 50% 46% 52% 48% / 48% 52% 46% 54%; }
.stat:nth-child(2), .card:nth-child(2) { --tri: var(--orange); --blob: 48% 52% 46% 54% / 50% 46% 52% 48%; }
.stat:nth-child(3), .card:nth-child(3) { --tri: var(--teal); --blob: 52% 48% 54% 46% / 46% 54% 48% 52%; }
.stat:nth-child(4), .card:nth-child(4) { --tri: var(--ink); --blob: 46% 54% 48% 52% / 52% 48% 54% 46%; }

/* Footer: the logo on the left, centred on the footer's height; on the right the switch,
   the email, then the company lines, all on the right edge. Under 720px everything stacks on the left. */

footer {
  border-top: var(--line);
}

footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding-block: 32px;
}

.info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--fine);
  line-height: 1.5;
  color: var(--muted);
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: top;
}

.mail svg {
  flex: none;
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 599px) {
  .company .dot,
  :lang(el) .copyright .dot {
    display: none;
  }

  .company .br,
  :lang(el) .copyright .br {
    display: block;
  }
}

@media (max-width: 339px) {
  .copyright .dot {
    display: none;
  }

  .copyright .br {
    display: block;
  }
}

@media (min-width: 720px) {
  footer .wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .info {
    align-items: flex-end;
  }

  .legal {
    text-align: right;
  }
}

@media (min-width: 1024px) {
  footer .wrap {
    padding-block: 40px;
  }
}

/* 404 */

.missing {
  min-height: var(--fold);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding-block: var(--sec);
}
