/* Self-hosted so a visit to deasil.dev reaches no one else, Google Fonts
   included. Latin subsets only; anything outside them falls back to the
   system font stack below. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

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

:root {
  color-scheme: light;

  /* Colour */
  --color-surface: #f7f9fb;
  --color-surface-raised: #ffffff;
  --color-surface-muted: #f2f4f6;
  --color-border: #eceef0;
  --color-text: #191c1e;
  --color-text-strong: #000000;
  --color-text-muted: #45474a;
  --color-text-subtle: #76777b;
  --color-icon: #545f72;
  --color-button: #000000;
  --color-button-hover: #45474a;
  --color-on-button: #ffffff;
  --color-focus: #3887d4;

  /* Type */
  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-label: "Geist", system-ui, sans-serif;

  /* Space */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 3rem;
  --gutter: 1.25rem;
  --content-max: 1440px;
  --header-height: 5rem;

  /* Shape */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --shadow-card: 0 1px 2px rgb(0 0 0 / 0.05);
  --shadow-header: 0 1px 8px rgb(0 0 0 / 0.04);
}

@media (min-width: 768px) {
  :root {
    --gutter: 2.5rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 5rem;
  }
}

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

html,
body {
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 24px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.arrow {
  width: 0.75em;
  height: 0.75em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header */

.site-header {
  background: var(--color-surface);
  box-shadow: var(--shadow-header);
}

.site-header .container {
  display: flex;
  align-items: center;
  height: var(--header-height);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-strong);
}

/* Hero */

.hero {
  display: flex;
  flex: 1;
  align-items: center;
  padding-block: var(--space-lg);
}

@media (min-width: 768px) {
  .hero {
    padding-block: var(--space-xl);
  }
}

.headline {
  max-width: 42rem;
  margin-bottom: var(--space-xl);
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-text-strong);
}

@media (min-width: 768px) {
  .headline {
    font-size: 56px;
    letter-spacing: -0.03em;
  }
}

/* Product card */

.product-card {
  max-width: 36rem;
  padding: var(--space-lg);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .product-card {
    padding: var(--space-xl);
  }
}

.product-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.01em;
  color: var(--color-text-strong);
}

.product-card__domain {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: 2px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.04em;
  color: var(--color-text-subtle);
  transition: color 150ms ease;
}

.product-card__domain:hover {
  color: var(--color-text-strong);
}

.product-card__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  color: var(--color-icon);
}

.product-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-card__summary {
  margin-bottom: var(--space-lg);
  color: var(--color-text-muted);
}

.product-card__actions {
  display: flex;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--color-button);
  color: var(--color-on-button);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.04em;
  transition: background-color 150ms ease;
}

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

/* Footer */

.site-footer .container {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.site-footer p {
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  line-height: 14px;
  letter-spacing: 0.06em;
  color: var(--color-text-subtle);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
