/* Colours, radii and shadows copied from src/design/tokens.json, so the page needs nothing from the app.
   Studio theme only (light); the page has no JavaScript. */

@font-face {
  font-family: 'Libre Franklin';
  src: url('assets/fonts/libre-franklin-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('assets/fonts/playfair-display-latin-500-italic.woff2') format('woff2');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #fbf8f6;
  --surface: #ffffff;
  --ink: #1a1416;
  --ink-muted: #5e5457;
  --line: #e4dad6;
  --flow-red: #aa1827;
  --flow-red-strong: #8a1220;
  --flow-red-text: #aa1827;
  --on-flow: #ffffff;
  --focus: #aa1827;
  --shadow-card: 0 1px 2px rgba(26, 20, 22, 0.06), 0 8px 24px rgba(26, 20, 22, 0.08);
  --radius-sm: 4px;
  --radius-lg: 16px;
  --gutter: 16px;
  --font-sans: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color-scheme: light;
}

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
}

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

a {
  color: var(--flow-red-text);
  text-underline-offset: 0.15em;
}

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

.page {
  display: grid;
  gap: 48px;
  max-width: calc(640px + 2 * var(--gutter));
  margin-inline: auto;
  padding: 64px var(--gutter) 96px;
}

.logo {
  width: 160px;
  aspect-ratio: 240 / 152;
  background: url('assets/logos/salsaflow-logo-240.webp') center / contain no-repeat;
}

@media (forced-colors: active) {
  .logo {
    forced-color-adjust: none;
  }
}

.block {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.overline {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  color: var(--flow-red-text);
}

.overline::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin-top: 8px;
  background: currentColor;
}

.display,
.headline {
  font-weight: 600;
  text-wrap: balance;
}

.display {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.headline {
  font-size: clamp(30px, 4.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* The one accent phrase of a headline: Playfair Display italic in the brand red. */
.display em,
.headline em {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0;
  color: var(--flow-red-text);
}

.lead {
  font-weight: 300;
  font-size: 20px;
  line-height: 1.55;
  max-width: 60ch;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid var(--flow-red);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 180ms ease-out;
}

.button.primary {
  background: var(--flow-red);
  color: var(--on-flow);
}

.button.primary:hover {
  background: var(--flow-red-strong);
}

.button.secondary {
  background: transparent;
  color: var(--flow-red-text);
}

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

.panel {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.title {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}

.contacts {
  display: grid;
  gap: 12px;
}

.contacts dt,
.small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.contacts dd {
  white-space: nowrap;
}

hr {
  width: 100%;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.motto {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
