:root {
  --eggshell: #fdfcfc;
  --taupe: #f5f3f1;
  --stone: #ebe8e4;
  --ink: #000000;
  --graphite: #44403b;
  --smoke: #777169;
  --ash: #a59f97;
  --button-border: #e5e5e5;
  --shadow-whisper: rgba(0, 0, 0, 0.4) 0 0 1px 0, rgba(0, 0, 0, 0.04) 0 1px 1px 0, rgba(0, 0, 0, 0.04) 0 2px 4px 0;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --section-pad: clamp(28px, 4.5vw, 48px);
  --radius-card: 20px;
  --radius-panel: 24px;
  --radius-pill: 9999px;
}

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

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

body {
  margin: 0;
  background: var(--eggshell);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p {
  text-wrap: pretty;
}

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

address {
  font-style: normal;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--ink);
  color: var(--eggshell);
}

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

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

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--eggshell);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

.button--filled {
  background: var(--ink);
  color: var(--eggshell);
}

.button--filled:hover {
  background: var(--graphite);
  border-color: var(--graphite);
}

.button--outline {
  padding: 0 14px;
  border-color: var(--button-border);
  background: var(--eggshell);
  box-shadow: var(--shadow-whisper);
  color: var(--ink);
}

.button--outline:hover {
  background: var(--taupe);
}

/* Header */

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
}

.wordmark {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav__link {
  color: var(--graphite);
  font-size: 14px;
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Hero */

.hero {
  padding-top: clamp(56px, 11vw, 144px);
}

.hero__title {
  font-size: clamp(32px, 8.6vw, 48px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero__lead {
  max-width: 44ch;
  margin-top: 16px;
  color: var(--graphite);
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

/* The tideline: the scalloped mark a receding tide leaves on sand.
   It stands in for the hairline between the hero and the page. */

.tideline {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: clamp(40px, 7vw, 88px);
  overflow: visible;
  animation: tide-in 1600ms cubic-bezier(0.22, 0.61, 0.36, 1) 150ms both;
}

.tideline__earlier,
.tideline__latest {
  fill: none;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.tideline__earlier {
  stroke: var(--stone);
}

.tideline__latest {
  stroke: var(--ash);
}

@keyframes tide-in {
  from {
    clip-path: inset(-4px 100% -4px 0);
  }
  to {
    clip-path: inset(-4px 0 -4px 0);
  }
}

/* Sections */

.section {
  scroll-margin-top: 16px;
}

.section__inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px 48px;
  padding-block: var(--section-pad);
}

/* Hairline between sections, drawn as a grid row so it stays inside the gutters.
   Only a visible section counts as the one before. */
.section:not([hidden]) ~ .section .section__inner {
  padding-top: 0;
}

.section:not([hidden]) ~ .section .section__inner::before {
  content: "";
  grid-column: 1 / -1;
  margin-bottom: calc(var(--section-pad) - 24px);
  border-top: 1px solid var(--stone);
}

.section__title {
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 300;
  line-height: 1.13;
  letter-spacing: -0.02em;
}

.prose {
  display: grid;
  gap: 16px;
  max-width: 60ch;
  color: var(--graphite);
}

/* Products */

.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 260px;
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--taupe);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  border: 1px solid var(--stone);
  border-radius: var(--radius-pill);
  background: var(--eggshell);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.status__dot {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}

.status__dot--live {
  background: var(--ink);
}

.status__dot--pending {
  border-color: var(--smoke);
}

/* App icons are square files; the corner radius follows the iOS icon shape. */
.product__icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-top: 28px;
  border-radius: 22.5%;
}

.product__name {
  margin-top: 16px;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
}

.product__text {
  margin-top: 6px;
  margin-bottom: 28px;
  max-width: 40ch;
  color: var(--smoke);
}

.product__link,
.product__note {
  margin-top: auto;
}

.product__note {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: var(--smoke);
  font-size: 14px;
}

/* Contact */

.contact__email {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 300;
  line-height: 1.13;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--ash);
  text-decoration-thickness: 1px;
  text-underline-offset: 8px;
}

.contact__email:hover {
  text-decoration-color: var(--ink);
}

.contact__note {
  max-width: 44ch;
  margin-top: 20px;
  color: var(--smoke);
}

/* Company details */

.details {
  padding: 8px 32px;
  border-radius: var(--radius-panel);
  background: var(--taupe);
}

.details__row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 4px 24px;
  align-items: baseline;
  padding-block: 16px;
}

.details__row + .details__row {
  border-top: 1px solid var(--stone);
}

.details__label {
  color: var(--smoke);
  font-size: 14px;
}

.details__value {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.69;
  letter-spacing: 0;
}

/* Footer */

.site-footer {
  margin-top: var(--section-pad);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  color: var(--smoke);
  font-size: 14px;
}

.site-footer__inner::before {
  content: "";
  flex: 0 0 100%;
  margin-bottom: 24px;
  border-top: 1px solid var(--stone);
}

.site-footer__inner::after {
  content: "";
  flex: 0 0 100%;
  height: 40px;
}

/* Narrow screens */

@media (max-width: 860px) {
  .section__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__lead {
    max-width: 36ch;
    margin-top: 12px;
    font-size: 18px;
  }

  .hero__actions {
    margin-top: 24px;
  }

  .tideline {
    height: 20px;
  }
}

@media (max-width: 640px) {
  .button {
    min-height: 40px;
  }

  .site-nav__link {
    display: none;
  }

  .products {
    grid-template-columns: minmax(0, 1fr);
  }

  .product {
    min-height: 0;
    padding: 24px;
  }

  .details {
    padding: 4px 20px;
  }

  .details__row {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  .tideline {
    animation: none;
  }

  .button {
    transition: none;
  }
}
