/* Redeko website. The app's look: Onest, ink #0F0F0F on the feed's warm ground #F3F2EF
   (Brand in ios/Redeko/DesignSystem/Palette.swift). Light only, like the app's feed. */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/onest-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/onest-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/onest-latin-600-normal.woff2") format("woff2");
}

:root {
  --ink: #0f0f0f;
  --ink-2: rgba(15, 15, 15, 0.64);
  --ink-3: rgba(15, 15, 15, 0.42);
  --ground: #f3f2ef;
  --tile: #e7e4de;
  --card: #faf9f7;
  --line: rgba(15, 15, 15, 0.1);
  --gutter: 20px;
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (min-width: 720px) {
  :root { --gutter: 40px; }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Top bar */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gutter);
}

.wordmark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.top nav a {
  color: var(--ink-2);
  text-decoration: none;
}

.top nav a:hover,
.top nav a[aria-current="page"] { color: var(--ink); }

/* Landing */

.hero {
  flex: 1;
  display: grid;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px var(--gutter) 48px;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 64px;
    padding-bottom: 64px;
  }
}

.hero h1 {
  margin: 0;
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 15ch;
}

.hero .lede {
  margin: 20px 0 0;
  max-width: 30em;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.45;
  color: var(--ink-2);
}

/* Placeholder until the app is on the App Store: swap for the official
   "Download on the App Store" badge and the app's link (see README). */
.store-soon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 32px;
  min-height: 52px;
  padding: 8px 20px 9px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--ground);
  line-height: 1.1;
  user-select: none;
  -webkit-user-select: none;
}

.store-soon small {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
}

.store-soon span {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.styles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .styles { gap: 14px; }
}

.styles figure { margin: 0; }

.styles .tile {
  aspect-ratio: 1;
  border-radius: 20px;
  background: var(--tile);
  overflow: hidden;
}

/* The icons are drawn on white. Multiply turns the white into the tile's color,
   the same trick the app's style card uses. */
.styles img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.styles figcaption {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Legal pages */

.legal {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px var(--gutter) 72px;
}

.legal h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.legal .date {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-3);
}

.legal .intro {
  margin-top: 32px;
}

.legal section {
  margin-top: 40px;
}

.legal h2 {
  margin: 0 0 12px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.legal h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

.legal p {
  margin: 0 0 12px;
}

.legal p,
.legal li {
  color: rgba(15, 15, 15, 0.82);
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--ink-3); }

.legal .summary {
  margin-top: 32px;
  padding: 20px 22px 8px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}

.legal .summary h2 {
  font-size: 17px;
  margin-bottom: 10px;
}

.legal .summary ul { padding-left: 18px; }

/* Visible until Vladimir answers; search the HTML for "todo" to find them all. */
.todo {
  padding: 1px 5px;
  border-radius: 5px;
  background: #ffe9a8;
  color: var(--ink);
  font-weight: 500;
}

/* 404 */

.lost {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px var(--gutter) 72px;
}

.lost h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lost p {
  margin: 16px 0 0;
  color: var(--ink-2);
}
