/* All values come from design/generated/mocks/ (Mobile.dc.html as the base,
   Main.dc.html above the 48rem breakpoint). */

/* Source Code Pro, self-hosted (SIL Open Font License, see /fonts/OFL.txt) */
@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-code-pro-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/source-code-pro-500.woff2") format("woff2");
}

@font-face {
  font-family: "Source Code Pro";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/source-code-pro-700.woff2") format("woff2");
}

:root {
  --accent: #3970e4;
  --bg: #4f4f4f;
}

body {
  margin: 0;
  background: #4f4f4f;
}

/* Links get their colour from these two rules only, so the hover colour
   applies everywhere. (In the mocks each link also repeats
   `color: #ffffff` inline, which is the same value.) */
a {
  color: #ffffff;
}

a:hover {
  color: #dfe7fb;
}

p {
  margin: 0;
}

.page {
  min-height: 100vh;
  background: var(--bg);
  color: #ffffff;
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.01em;
  display: flex;
  flex-direction: column;
}

/* Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 24px 1.5rem;
}

.site-name {
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.social {
  display: flex;
  gap: 28px;
}

.social a {
  text-decoration: none;
  padding: 10px 0;
}

/* Main */

.content {
  width: 100%;
  max-width: 46rem;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.title {
  margin: 0;
  text-align: center;
  font-size: 2.75rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.section {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.section-title {
  margin: 0 0 0.4rem;
  font-size: 2.08rem;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.section-title span {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 1rem;
}

.action {
  display: block;
  width: 19rem;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 0;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
}

/* Footer */

.site-footer {
  width: 100%;
  max-width: 46rem;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  font-size: 0.95rem;
}

.contact {
  display: flex;
  flex-direction: column;
}

.contact a {
  text-decoration: none;
}

.address {
  font-style: normal;
  display: flex;
  flex-direction: column;
}

/* Desktop (Main.dc.html) */

@media (min-width: 48rem) {
  .site-header {
    padding: 32px 4vw;
  }

  .content {
    padding: 4rem 1.5rem 3rem;
  }
}
