/* Página provisional de barct.ie. Concepto: el papel de carta de la empresa (logo arriba, mensaje centrado y
   pie en azul marino). Colores tomados del logo (#156ac1). */

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

:root {
  color-scheme: light;
  --blue: #156ac1;
  --blue-deep: #0d4f93;
  --navy: #0c2f57;
  --ink: #13293f;
  --muted: #50606f;
  --paper: #ffffff;

  --serif: "Marcellus", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--blue);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

p {
  margin: 0;
}

/* Contenido */

.page {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 9vh, 6.5rem) var(--gutter) clamp(3rem, 8vh, 5.5rem);
  text-align: center;
}

.logo {
  margin: 0 0 clamp(2.25rem, 6vh, 3.5rem);
  line-height: 0;
}

.logo img {
  width: clamp(17.5rem, 62vw, 26rem);
  height: auto;
}

.lede {
  max-width: 20ch;
  font-family: var(--serif);
  font-size: clamp(1.875rem, 1.1rem + 2.9vw, 3.125rem);
  line-height: 1.16;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

.note {
  max-width: 32em;
  margin-top: 1.125rem;
  color: var(--muted);
  text-wrap: pretty;
}

/* Línea corta que se dibuja desde el centro, como la del logo. */
.rule {
  width: 3.5rem;
  height: 2px;
  margin: clamp(2rem, 5vh, 2.75rem) auto;
  background: var(--blue);
  animation: draw-rule 900ms cubic-bezier(0.22, 0.61, 0.36, 1) 200ms both;
}

@keyframes draw-rule {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.875rem;
  width: fit-content;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .contact {
    flex-direction: row;
    align-items: center;
    gap: clamp(2rem, 5vw, 3.5rem);
  }
}

.contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}

.contact .icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  transition: background-color 180ms ease, color 180ms ease;
}

.contact .value {
  font-size: 1.1875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: lining-nums;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color 180ms ease;
}

.contact a:hover .icon {
  background: var(--blue);
  color: var(--paper);
}

.contact a:hover .value {
  text-decoration-color: currentColor;
}

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

/* Pie */

.footer {
  padding: clamp(2.5rem, 6vh, 3.5rem) var(--gutter) 2rem;
  background: var(--navy);
  color: rgb(255 255 255 / 0.78);
  font-size: 0.875rem;
  line-height: 1.7;
  text-align: center;
}

.footer-mark {
  display: block;
  width: 56px;
  height: auto;
  margin: 0 auto 1rem;
}

.footer-name,
.footer-legal,
.footer-copy {
  text-wrap: balance;
}

.footer-name {
  color: #ffffff;
  font-family: var(--serif);
  font-size: 1.1875rem;
  letter-spacing: 0.01em;
}

.footer-legal {
  margin-top: 0.5rem;
}

.footer-copy {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  color: rgb(255 255 255 / 0.62);
  font-size: 0.8125rem;
}

.footer a:focus-visible {
  outline-color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .rule {
    animation: none;
  }

  .contact .icon,
  .contact .value {
    transition: none;
  }
}
