@font-face {
  font-family: 'Late Serif';
  src: url('assets/fonts/late-serif-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: 'Elms Sans';
  src: url('assets/fonts/elms-sans-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* Colores extraídos de las muestras vectoriales del manual, página 13. */
:root, :root[data-theme='crema'] {
  color-scheme: light;
  --paper: #ede9db;
  --ink: #00444f;
  --logo: #00444f;
  --motif: #50b4af;
  --rule: #00444f38;
  --hover: #00444f0c;
  --selection: #00444f;
  --selected-ink: #ede9db;
}
:root[data-theme='verde'] {
  color-scheme: dark;
  --paper: #00444f;
  --ink: #ede9db;
  --logo: #ede9db;
  --motif: #a0cfbf;
  --rule: #ede9db47;
  --hover: #ede9db12;
  --selection: #f0a6a8;
  --selected-ink: #00444f;
}
:root[data-theme='rosa'] {
  color-scheme: light;
  --paper: #f0a6a8;
  --ink: #00444f;
  --logo: #ede9db;
  --motif: #00444f;
  --rule: #00444f38;
  --hover: #00444f0a;
  --selection: #00444f;
  --selected-ink: #ede9db;
}
:root[data-theme='turquesa'] {
  color-scheme: light;
  --paper: #50b4af;
  --ink: #003e48;
  --logo: #ede9db;
  --motif: #00444f;
  --rule: #00444f40;
  --hover: #00444f0a;
  --selection: #00444f;
  --selected-ink: #ede9db;
}
* { box-sizing: border-box; }
html { background: var(--paper); scrollbar-color: var(--ink) var(--paper); }
body { margin: 0; color: var(--ink); font-family: 'Elms Sans', sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
::selection { color: var(--selected-ink); background: var(--selection); }
.page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 66px 68px 46px;
  overflow: hidden;
  background: var(--paper);
}
.page::before {
  content: '';
  position: absolute;
  inset: 24px;
  z-index: -1;
  border: 1px solid var(--rule);
  pointer-events: none;
}
.brand { display: flex; justify-content: center; }
.brand-logo {
  display: block;
  width: 250px;
  aspect-ratio: 3.1;
  background: var(--logo);
  -webkit-mask: url('assets/brand/logo-sulerna.svg') center / contain no-repeat;
  mask: url('assets/brand/logo-sulerna.svg') center / contain no-repeat;
}
.artwork { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ornament {
  position: absolute;
  display: block;
  background: var(--motif);
  opacity: .56;
  -webkit-mask: var(--drawing) center / contain no-repeat;
  mask: var(--drawing) center / contain no-repeat;
}
.ornament-flora {
  --drawing: url('assets/brand/flora-andina.svg');
  width: clamp(320px, 30vw, 470px);
  aspect-ratio: .83;
  top: 50%;
  left: clamp(-205px, -12vw, -125px);
  transform: translateY(-44%);
}
.ornament-universe {
  --drawing: url('assets/brand/universo-sulerna.svg');
  width: clamp(430px, 39vw, 580px);
  aspect-ratio: 1.2;
  top: 50%;
  right: clamp(-330px, -22vw, -235px);
  transform: translateY(-42%);
}
[data-theme='rosa'] .ornament, [data-theme='turquesa'] .ornament { opacity: .28; }
.message {
  align-self: center;
  width: min(100%, 800px);
  margin: 0 auto;
  padding: 61px 0 67px;
  text-align: center;
  animation: welcome 1000ms cubic-bezier(.16, 1, .3, 1) both;
}
.flourish { display: block; width: 112px; height: 26px; margin: 0 auto 34px; }
h1 {
  margin: 0;
  font-family: 'Late Serif', Georgia, serif;
  font-size: clamp(46px, 4.85vw, 76px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 span { display: block; }
.description { margin: 28px auto 0; font-size: 16px; line-height: 1.7; font-weight: 450; }
.socials { display: flex; justify-content: center; flex-wrap: wrap; gap: 13px; margin-top: 35px; }
.socials a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.socials a > svg { flex: none; width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.socials a .icon-dot { fill: currentColor; stroke: none; }
.socials a .arrow { width: 12px; height: 12px; margin-left: 9px; stroke-width: 1.2; transition: transform 180ms ease; }
.socials a:hover { background: var(--hover); border-color: var(--ink); }
.socials a:hover .arrow { transform: translate(1px, -1px); }
.socials a:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.footer > span { font-size: 13px; font-weight: 550; }
.footer p { margin: 0; font-family: 'Late Serif', Georgia, serif; font-size: 22px; font-weight: 400; }
.since { text-align: right; }
@keyframes welcome {
  from { transform: translateY(12px); filter: blur(2px); }
  to { transform: translateY(0); filter: blur(0); }
}
@media (min-width: 1600px) {
  .ornament-flora { left: -125px; }
  .ornament-universe { right: -235px; }
}
@media (max-width: 1000px) {
  .page { padding: 54px 40px 38px; }
  .page::before { inset: 18px; }
  .ornament-flora { width: 340px; left: -230px; }
  .ornament-universe { width: 460px; right: -340px; }
  h1 { font-size: clamp(45px, 6.2vw, 64px); }
}
@media (max-width: 600px) {
  .page { padding: 47px 30px 30px; }
  .page::before { inset: 12px; }
  .brand-logo { width: 200px; }
  .message { padding: 65px 0 62px; }
  .flourish { width: 82px; margin-bottom: 28px; }
  h1 { font-size: clamp(32px, 9vw, 53px); line-height: 1.12; letter-spacing: -.035em; }
  .description { max-width: 100%; margin-top: 25px; }
  .socials { margin-top: 29px; }
  .ornament-flora { width: 200px; left: -128px; top: 166px; transform: none; opacity: .29; }
  .ornament-universe { width: 285px; right: -209px; top: auto; bottom: 105px; transform: none; opacity: .29; }
  [data-theme='rosa'] .ornament, [data-theme='turquesa'] .ornament { opacity: .16; }
  .footer { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .footer p { grid-column: 1 / -1; grid-row: 1; text-align: center; font-size: 20px; }
}
@media (max-width: 359px) {
  .page { padding-inline: 23px; }
  h1 { font-size: clamp(30px, 9vw, 34px); }
}
@media (max-width: 600px) and (max-height: 700px) {
  .page { padding-top: 34px; padding-bottom: 26px; }
  .message { padding-top: 40px; padding-bottom: 44px; }
  .flourish { margin-bottom: 24px; }
  .footer { row-gap: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .message { animation: none; }
  .socials a, .socials a .arrow { transition: none; }
}
@media (forced-colors: active) {
  .brand-logo, .ornament { background: CanvasText; }
  .socials a { border-color: LinkText; }
}
