/* The one stylesheet of dimitrisnatos.com. No web fonts and no request to anywhere else: the type is
   the system's own, rounded for headings on Apple devices. The colours are paper and deep teal ink,
   the mint and teal that our apps' icons share. */
:root {
  --paper: #ffffff;
  --tint: #e4f5f1;           /* the hero's wash */
  --tint-deep: #cdebe4;
  --ink: #0e2b28;
  --soft: #4d6662;           /* secondary text: 7.0:1 on white */
  --accent: #13706a;         /* links and accents: 7.6:1 on white */
  --line: #d6e8e3;
  --on-band: #e9f6f3;        /* the band is the page inverted: pale ink on deep teal by day */
  --band-accent: #7dd8cd;    /* 12.6:1 and 8.4:1 on the dark band */
  --shadow: 0 2rem 3.5rem -1.75rem rgba(14, 43, 40, 0.45);
  --display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a1a18;
    --tint: #123d38;
    --tint-deep: #0f312d;
    --ink: #e6f2ef;
    --soft: #a3bcb7;
    --accent: #5cc8bc;
    --line: #1d3b37;
    --on-band: #0e2b28;        /* at night the band turns pale: deep teal on mint, the one light stretch */
    --band-accent: #13706a;
    --shadow: 0 2rem 3.5rem -1.75rem rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; }

/* The bar on top: the mark and the company's name, on the hero's wash. */
.top { background: var(--tint); }
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font: 700 1.05rem/1.15 var(--display);
  letter-spacing: 0.01em;
  text-decoration: none;
}
.top nav { display: flex; gap: 1.25rem; font-size: 0.98rem; }
.top nav a { color: var(--soft); text-decoration: none; }
.top nav a:hover { color: var(--accent); text-decoration: underline; }

/* The hero: what the company makes, in one line. */
.hero { background: linear-gradient(180deg, var(--tint) 0%, var(--tint) 40%, var(--paper) 100%); }
.hero .wrap { padding-top: 3.5rem; padding-bottom: 4.5rem; max-width: 52rem; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
}
.hero .lede {
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  line-height: 1.5;
  color: var(--soft);
  max-width: 42ch;
  margin: 0;
  text-wrap: pretty;
}

/* What the company does: three plain lines, before the products. */
.doing { list-style: none; padding: 0; margin: 0 0 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.doing li { font-size: 1.02rem; line-height: 1.55; color: var(--soft); padding-top: 1rem; border-top: 3px solid var(--accent); }
.doing strong { display: block; color: var(--ink); font-weight: 600; }

/* The products: one card each, the app's own icon and a look at it. */
.products .wrap { padding-top: 1rem; padding-bottom: 4.5rem; }
.products h2,
.about h2,
.contact h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
}
.card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.card-text h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}
.card-text h3 img { width: 40px; height: 40px; border-radius: 9px; }
.card-text p { margin: 0 0 1rem; color: var(--soft); }
.card-text .status { font-size: 0.95rem; }
.card img.shot { border-radius: 12px; border: 1px solid var(--line); }

/* A card whose picture is a phone: taller than it is wide, so it is capped and centred. */
.card.phone .shot.tall { width: auto; max-height: 24rem; margin: 0 auto; border-radius: 18px; }

/* The label on a product that is not out yet. */
.soon {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-size: 0.85rem;
  font-weight: 600;
}

/* The other products, side by side under the newest one. */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.mini {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  padding: 1.5rem;
}
.mini h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}
.mini h3 img { width: 36px; height: 36px; border-radius: 8px; }
.mini p { margin: 0 0 0.75rem; color: var(--soft); font-size: 1rem; }
.mini .status { margin: 0; font-size: 0.95rem; }

/* The band: how the company builds, the one dark stretch of the page. */
.band { background: var(--ink); color: var(--on-band); }
.band .wrap { padding-top: 4.5rem; padding-bottom: 4.5rem; }
.band h2 {
  color: var(--on-band);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 2rem;
}
.band ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.band li { font-size: 1.1rem; line-height: 1.5; padding-left: 1rem; border-left: 3px solid var(--band-accent); }

/* About, between the band and the contact: the company behind the domain. */
.about .wrap { padding-top: 4.5rem; padding-bottom: 0; }
.about p { color: var(--soft); max-width: 64ch; margin: 0; }

/* Contact, at the end: the address, plainly. */
.contact { background: linear-gradient(180deg, var(--paper) 0%, var(--tint) 100%); }
.contact .wrap { padding-top: 4.5rem; padding-bottom: 5.5rem; }
.contact p { color: var(--soft); max-width: 46ch; }
.mail {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
}
.mail:hover { text-decoration: underline; }

/* Support and privacy: a column to read, under the same wash. */
.prose { background: linear-gradient(180deg, var(--tint) 0, var(--paper) 14rem) no-repeat; }
.prose .wrap { max-width: 44rem; padding-top: 3rem; padding-bottom: 5rem; }
.prose h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}
.prose h2 { font-size: 1.45rem; line-height: 1.25; margin: 2.75rem 0 0.75rem; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.1rem; line-height: 1.35; margin: 1.75rem 0 0.4rem; }
.prose p, .prose ul { margin: 0 0 1.1rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--accent); }
.prose .lede { font-size: 1.2rem; color: var(--soft); text-wrap: pretty; }
.prose .muted { color: var(--soft); font-size: 0.95rem; }

footer { border-top: 1px solid var(--line); }
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.75rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--soft);
}
footer img { width: 24px; height: 24px; }
footer a { color: var(--soft); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
footer a:hover { color: var(--accent); text-decoration: underline; }

@media (max-width: 52rem) {
  .hero .wrap { padding-top: 2.5rem; padding-bottom: 3.5rem; }
  .card { grid-template-columns: 1fr; gap: 1.75rem; padding: 1.5rem; }
  .band ul, .doing, .grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .top nav { gap: 1rem; font-size: 0.92rem; }
  .brand { font-size: 0.95rem; }
}

/* On a phone the company's name stays on one line — it is what Apple checks the domain against —
   and the two links drop below it when even that no longer fits. */
@media (max-width: 26rem) {
  .top .wrap { flex-wrap: wrap; gap: 0.4rem 1rem; }
  .brand { font-size: 0.85rem; gap: 0.5rem; white-space: nowrap; }
  .top nav { font-size: 0.88rem; }
}
