/* Shared by every page of the holding site: the brown board with the gold-foil
   logo from the front of the business card, the BG/EN switch and the buttons. */
@import url(/fonts/fonts.css);

:root {
  --honey: #f4ecd8;
  --chess: #3d2314;
  --ink: #24150b;
  --gold: #b48a3c;
  --foil: linear-gradient(115deg, #a87d38 0%, #e9cf98 28%, #c59a52 48%, #f3e2b8 66%, #b0843e 100%);
  --g: 'EB Garamond', Garamond, Georgia, serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink);
  color: var(--honey);
  font-family: var(--g);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- the board ---------- */
.board { position: relative; background: var(--chess); isolation: isolate; overflow: hidden; }
.board .bg, .board .frame { position: absolute; inset: 0; z-index: -1; }
.board .bg {
  background:
    radial-gradient(ellipse 70% 55% at 50% 46%, rgba(110, 66, 36, .32), transparent 70%),
    url(paper-fibre.png) 0 0 / 256px repeat,
    linear-gradient(160deg, #42261a, #361e12 55%, #2a170c);
  background-blend-mode: normal, multiply, normal;
}
.board .frame {
  inset: clamp(18px, 2.4vw, 34px);
  border: 1px solid rgba(214, 183, 123, .38);
  outline: 1px solid rgba(214, 183, 123, .18);
  outline-offset: 6px;
  transition: border-color .7s var(--ease), outline-color .7s var(--ease);
}

/* ---------- content ---------- */
.inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
}
.kicker {
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(244, 236, 216, .82);
  margin: 0 0 22px;
}
.logo {
  display: block;
  width: clamp(240px, 30vw, 440px);
  aspect-ratio: 1665 / 598;
  background: var(--foil);
  -webkit-mask: url(logo.svg) center / contain no-repeat;
  mask: url(logo.svg) center / contain no-repeat;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .35));
}
.rule {
  width: 56px;
  height: 1px;
  margin: 26px 0 16px;
  background: linear-gradient(90deg, transparent, #d6b77b, transparent);
}
.motto {
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 21px);
  margin: 0;
  color: #ecd9b0;
}
.sub {
  max-width: 30ch;
  margin: 12px 0 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.4;
  color: rgba(244, 236, 216, .86);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  min-height: 52px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn .arrow, .btn .mini { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform .35s var(--ease); }
.btn-fill {
  background: var(--honey);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
}
.btn-line {
  border: 1.5px solid rgba(244, 236, 216, .85);
  color: var(--honey);
  background: rgba(36, 21, 11, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.url {
  margin-top: 14px;
  font-size: 15px;
  letter-spacing: .06em;
  color: rgba(244, 236, 216, .7);
}
.sprite { position: absolute; width: 0; height: 0; }
.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- language ---------- */
.lang {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: 20px;
  z-index: 5;
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(36, 21, 11, .45);
  border: 1px solid rgba(244, 236, 216, .3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lang button {
  font: 600 13px/1 var(--g);
  letter-spacing: .14em;
  min-width: 44px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(244, 236, 216, .8);
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--honey); color: var(--ink); }
.lang button:focus-visible { outline: 2px solid var(--honey); outline-offset: 2px; }

@media (max-width: 760px) {
  .inner { padding: 20px 20px 18px; }
  .board .frame { inset: 14px; outline-offset: 4px; }
  .kicker { font-size: 11px; margin-bottom: 14px; }
  .logo { width: min(66vw, 300px); }
  .rule { margin: 16px 0 10px; width: 44px; }
  .motto { font-size: 17px; }
  .sub { font-size: 16px; margin-top: 8px; }
  .btn { margin-top: 22px; min-height: 50px; padding: 0 28px; font-size: 14px; }
  .lang { right: 24px; top: max(24px, env(safe-area-inset-top)); }
}

/* ---------- arrival ---------- */
@media (prefers-reduced-motion: no-preference) {
  .inner > * { animation: rise .9s var(--ease) both; }
  .inner > :nth-child(2) { animation-delay: .08s; }
  .inner > :nth-child(3) { animation-delay: .16s; }
  .inner > :nth-child(4) { animation-delay: .22s; }
  .inner > :nth-child(5) { animation-delay: .28s; }
  .inner > :nth-child(6) { animation-delay: .34s; }
  .inner > :nth-child(7) { animation-delay: .40s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
}
@media (prefers-reduced-motion: reduce) {
  .board .bg, .btn, .btn .arrow { transition: none; }
}
