/*
  Serynn holding page
  Colours, type and logo follow the Serynn Assurance booklet cover
  (Figma: serynn-mark component, letterhead lockup, A5 front cover).
*/

@font-face {
  font-family: "Tiempos Headline";
  src: url("fonts/tiempos-headline-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: "Roboto";
  src: url("fonts/roboto-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #243f5d;
  --paper: #fafafa;
  --mint: #73d4ad;
  --mint-light: #b4f5dd;
  --mint-wash: rgba(115, 212, 173, 0.14);
  --line: rgba(250, 250, 250, 0.18);

  --serif: "Tiempos Headline", Georgia, "Times New Roman", serif;
  --sans: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif;

  color-scheme: dark;
}

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

html {
  background: var(--navy);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--mint-light);
  outline-offset: 4px;
}

.site-shell {
  width: min(100% - 48px, 1320px);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Header */

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header {
  padding: 36px 0 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  color: var(--paper);
  text-decoration: none;
}

.brand-lockup {
  display: block;
  width: 120px;
  height: auto;
  fill: currentColor;
}

.contact-link {
  color: var(--paper);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  text-decoration-color: currentColor;
}

/* Hero */

.hero {
  align-self: center;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  gap: clamp(48px, 8vw, 120px);
  padding: 80px 0 96px;
}

.hero-copy {
  max-width: 880px;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--mint-light);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.09;
  letter-spacing: 0;
  text-wrap: balance;
}

.intro {
  max-width: 40rem;
  margin-top: clamp(36px, 5vw, 60px);
  color: var(--paper);
  font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
  line-height: 1.65;
}

.intro p {
  margin: 0;
}

.intro p + p {
  margin-top: 16px;
}

.intro .lead {
  color: var(--paper);
  font-size: 1.15em;
  line-height: 1.5;
}

.intro .lead + p {
  margin-top: 20px;
}

.intro .trust-statement {
  margin-top: 24px;
  color: var(--paper);
}

/* Status panel */

.status-panel {
  align-self: end;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.status-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--mint-light);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.status-label::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px var(--mint-wash);
}

.status-copy {
  margin: 0 0 28px;
  color: var(--paper);
  line-height: 1.65;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 220px;
  padding: 15px 18px;
  border: 1px solid rgba(115, 212, 173, 0.6);
  border-radius: 2px;
  background: rgba(115, 212, 173, 0.04);
  color: var(--paper);
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.button svg {
  flex: none;
  width: 14px;
  height: 14px;
  transition: transform 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: rgba(115, 212, 173, 0.12);
  border-color: var(--mint);
}

.button:hover svg,
.button:focus-visible svg {
  transform: translate(2px, -2px);
}

/* Footer */

.site-footer {
  padding: 24px 0 32px;
  border-top: 1px solid var(--line);
  color: var(--paper);
  font-size: 0.8125rem;
}

.site-footer p {
  margin: 0;
}

.sign-off {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 300;
}

.footer-small {
  max-width: 46rem;
  text-align: right;
  line-height: 1.5;
}

/* Tablet */

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 40px, 1320px);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 64px 0 72px;
  }

  .status-panel {
    max-width: 560px;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .site-shell {
    width: min(100% - 32px, 1320px);
  }

  .site-header {
    padding: 24px 0 20px;
  }

  .brand-lockup {
    width: 100px;
  }

  .contact-link {
    font-size: 0.875rem;
  }

  .hero {
    align-self: start;
    gap: 48px;
    padding: 48px 0 64px;
  }

  .eyebrow {
    font-size: 0.9375rem;
  }

  h1 br {
    display: none;
  }

  .intro {
    margin-top: 32px;
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-small {
    text-align: left;
  }
}

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