@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #edf1f0;
  --ink: #101c24;
  --muted: #465a63;
  --rule: #c2cfcc;
  --link: #00657a;
  --pad: clamp(16px, 4vw, 48px);
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Source Serif 4", Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1418;
    --ink: #dfeaed;
    --muted: #9db2b9;
    --rule: #24373f;
    --link: #5cd6e6;
  }
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.65;
  font-variant-ligatures: none;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--display);
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}

/* Header */
.top,
main,
footer {
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--pad);
}
.top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding-block: 1.1rem;
  font-family: var(--display);
}
.brand {
  margin-right: auto;
  font-weight: 700;
  font-stretch: 115%;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}
.top nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.top nav a:hover {
  border-bottom-color: var(--link);
}

/* Sections */
main > section {
  padding-block: clamp(2.6rem, 6vw, 4.6rem);
  border-top: 1px solid var(--rule);
}
main > section.hero {
  border-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0;
}
h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.4rem);
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.01em;
  max-width: 30ch;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  font-stretch: 105%;
}
p {
  margin: 0 0 1em;
}
.section-note {
  color: var(--muted);
  max-width: 44rem;
  margin-top: 0.9rem;
}
.prose {
  max-width: 42rem;
  margin-top: 1rem;
}
.meta {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

/* Hero: the section sign is the signature of the product itself. */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2rem, 6vw, 4.5rem);
}
.hero::after {
  content: "\00a7";
  position: absolute;
  right: -0.06em;
  top: -0.12em;
  font-family: var(--text);
  font-weight: 400;
  font-size: clamp(14rem, 36vw, 30rem);
  line-height: 1;
  color: var(--ink);
  opacity: 0.055;
  pointer-events: none;
}
.hero-text {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(2rem, 6.4vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 17em;
}
.lead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.5;
  max-width: 36rem;
  margin: 1.4rem 0 0;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.8rem 0 0;
}
.button {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--bg);
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 0.75rem 1.25rem;
}
.button:hover {
  background: var(--bg);
  color: var(--link);
  border-color: var(--link);
}
.button.ghost {
  background: transparent;
  color: var(--ink);
}
.button.ghost:hover {
  color: var(--link);
  border-color: var(--link);
}

/* Examples */
.example {
  margin-top: 3rem;
}
.example-head h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
}
.shots {
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: end;
  margin-top: 1.1rem;
}
.frame,
.phone {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.frame {
  border-radius: 6px;
}
.phone {
  border-radius: 22px;
}
.frame-bar {
  padding: 0.45rem 0.85rem;
  font: 500 0.8rem var(--display);
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.frame img,
.phone img {
  display: block;
  width: 100%;
  height: auto;
}
.caption {
  font-size: 1rem;
  color: var(--muted);
  max-width: 44rem;
  margin: 0.9rem 0 0;
}

/* What you get */
.specs {
  margin: 2rem 0 0;
}
.specs > div {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 0.5rem 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.specs > div:last-child {
  border-bottom: 1px solid var(--rule);
}
.specs dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
}
.specs dd {
  margin: 0;
  max-width: 44rem;
}

/* Steps, written like articles of a statute */
.articles {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}
.articles li {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  column-gap: 1rem;
  padding: 1.3rem 0;
  border-top: 1px solid var(--rule);
  counter-increment: art;
}
.articles li:last-child {
  border-bottom: 1px solid var(--rule);
}
.articles li::before {
  content: "Art. " counter(art) "\00ba";
  grid-row: 1 / span 2;
  font: 700 1rem var(--display);
  color: var(--link);
  padding-top: 0.15rem;
}
.articles h3,
.articles p {
  grid-column: 2;
}
.articles p {
  margin: 0.4rem 0 0;
  max-width: 40rem;
}
.articles {
  counter-reset: art;
}

/* FAQ */
.faq {
  margin-top: 2rem;
  max-width: 50rem;
}
.faq details {
  border-top: 1px solid var(--rule);
}
.faq details:last-child {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  font: 600 1.05rem/1.3 var(--display);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--link);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details p {
  margin: 0 0 1.2rem;
  max-width: 42rem;
}

footer {
  padding-block: 2.5rem 3.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 0.92rem;
  color: var(--muted);
}
footer p {
  margin: 0 0 0.3rem;
}

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

@media (max-width: 720px) {
  body {
    font-size: 1.05rem;
  }
  .shots {
    grid-template-columns: minmax(0, 1fr);
  }
  .phone {
    width: min(58%, 230px);
  }
  .specs > div {
    grid-template-columns: minmax(0, 1fr);
  }
  .articles li {
    grid-template-columns: minmax(0, 1fr);
  }
  .articles li::before {
    grid-row: auto;
    margin-bottom: 0.25rem;
  }
  .articles h3,
  .articles p {
    grid-column: 1;
  }
}
