/*
 * Placeholder website for foreplanr.com (decision 0133), from the Figma
 * "Placeholder site" page. Values are plain copies of
 * src/packages/design-tokens/tokens.json; page.test.js checks the colours.
 */

@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: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
}

:root {
  --paper: #f3f0e8;
  --surface: #ffffff;
  --ink: #1a1d1c;
  --ink-hover: #3a3d3c;
  --muted: #5f6663;
  --accent: #0e8a5f;
  --rule: #dad7cd;
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px 64px;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Onest', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
}

.header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.wordmark {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
}

.main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  max-width: 820px;
}

.heading {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 104px;
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.015em;
}

.heading em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  max-width: 560px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

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

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

.email {
  font-size: 15px;
  line-height: 1.4;
}

.footer {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.imprint,
.privacy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.imprint {
  width: 320px;
}

.privacy {
  width: 420px;
}

.label {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.reading {
  font-size: 13px;
  line-height: 1.55;
}

.copyright {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.brand-line {
  font-weight: 500;
}

.year {
  color: var(--muted);
}

@media (max-width: 1100px) {
  .heading {
    font-size: clamp(52px, 9vw, 104px);
  }

  .footer {
    flex-wrap: wrap;
  }

  .copyright {
    flex-basis: 100%;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    gap: 48px;
    padding: 24px 24px 32px;
  }

  .main {
    flex: none;
    padding: 0;
  }

  .heading {
    font-size: 52px;
  }

  .lead {
    font-size: 17px;
  }

  .footer {
    flex-direction: column;
    gap: 24px;
  }

  .imprint,
  .privacy {
    width: 100%;
  }
}
