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

:root {
  color-scheme: light;
  --paper: #f7f9ff;
  --blue: #2566f4;
  --ink: #122247;
  --muted: #5d6b88;
  --line: #d5dff1;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
body { margin: 0; }
button { font: inherit; }
::selection { background: var(--blue); color: white; }

.page {
  width: min(100%, 1920px);
  height: 100svh;
  min-height: 640px;
  margin-inline: auto;
  padding: clamp(24px, 3.5vh, 42px) clamp(28px, 5.5vw, 106px) clamp(24px, 3.8vh, 42px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.025em;
}
.brand-period { color: var(--blue); }
.motto {
  margin: 0;
  color: var(--blue);
  font-size: .875rem;
  letter-spacing: -.015em;
}
.header-side {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.social-link:hover { color: white; background: var(--blue); border-color: var(--blue); }
.social-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.main {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 76px);
  align-items: center;
  min-height: 0;
  padding-block: 28px;
}
.statement { padding-bottom: 12px; }
h1 {
  margin: 0;
  font-family: "Rubik", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-kerning: normal;
  letter-spacing: normal;
}
.percentage {
  display: block;
  color: var(--blue);
  font-size: clamp(7rem, 15.2vw, 17rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: normal;
  white-space: nowrap;
}
.percent-sign { font-size: .69em; letter-spacing: normal; }
.statement-copy {
  display: block;
  margin-top: 20px;
  font-size: clamp(2rem, 3.65vw, 4.35rem);
  line-height: 1.13;
  letter-spacing: normal;
}
.cat-backed { color: var(--blue); white-space: nowrap; }
.logo-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  padding-right: clamp(0px, 2vw, 32px);
}
.logo {
  display: block;
  width: auto;
  height: 100%;
  max-height: 570px;
  max-width: 100%;
  object-fit: contain;
  user-select: none;
  animation: cat-float 6s ease-in-out infinite;
  transition: filter .3s ease;
}
@keyframes cat-float {
  0%, 100% { transform: translateY(3px) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1deg); }
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.contract-block { min-width: 0; width: min(100%, 690px); }
.contract-label {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.contract-control { display: flex; align-items: center; gap: 24px; min-height: 44px; }
.contract-value {
  min-width: 0;
  font: .875rem / 1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere;
  user-select: all;
}
.contract-value.is-pending {
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--muted);
  user-select: auto;
}
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 94px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  color: var(--blue);
  padding: 10px 15px;
  font-size: .875rem;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
  cursor: pointer;
}
.copy-button:hover:not(:disabled) { color: white; background: var(--blue); border-color: var(--blue); }
.copy-button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.copy-button:disabled { color: #697996; border-color: #dce3f0; cursor: default; }
.check-icon { display: none; }
.copy-button.is-copied .copy-icon { display: none; }
.copy-button.is-copied .check-icon { display: block; }
.footer-note { color: var(--blue); font-size: .875rem; white-space: nowrap; padding-bottom: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (min-width: 761px) and (max-height: 760px) {
  .page { min-height: 540px; padding-block: 24px; }
  .header { padding-bottom: 18px; }
  .main { padding-block: 20px; }
  .percentage { font-size: clamp(7rem, 25vh, 13rem); }
  .statement-copy { font-size: clamp(2rem, 5.9vh, 3.5rem); margin-top: 12px; }
  .footer { padding-top: 16px; }
}

@media (max-width: 760px) {
  .page {
    min-height: 600px;
    padding: 24px 24px 20px;
  }
  .header { gap: 20px; padding-bottom: 19px; }
  .brand { font-size: 1rem; }
  .motto { font-size: .8125rem; }
  .main {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 9px;
    padding: 18px 0 23px;
  }
  .logo-stage { grid-row: 1; padding: 0; }
  .logo { max-height: 300px; }
  .statement { grid-row: 2; text-align: center; padding: 0; }
  .percentage { font-size: clamp(5.75rem, 22vw, 8rem); }
  .statement-copy { font-size: clamp(1.5625rem, 5.5vw, 2.125rem); margin-top: 5px; line-height: 1.15; }
  .statement-copy br { display: none; }
  .footer { padding-top: 15px; }
  .contract-block { width: 100%; }
  .contract-label { font-size: .75rem; margin-bottom: 4px; }
  .contract-control { justify-content: space-between; gap: 14px; }
  .contract-value { font-size: .875rem; }
  .contract-value.is-pending { font-size: 1rem; }
  .footer-note { display: none; }
  .copy-button { min-width: 84px; padding-inline: 12px; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .page { min-height: 480px; padding-block: 18px; }
  .header { padding-bottom: 14px; }
  .main { padding-block: 12px 18px; gap: 4px; }
  .percentage { font-size: 5.25rem; }
  .statement-copy { font-size: 1.5rem; }
}

@media (max-width: 360px) {
  .page { padding-inline: 18px; }
  .motto { max-width: 72px; text-align: right; line-height: 1.3; }
  .header-side { gap: 12px; }
  .social-link { width: 36px; height: 36px; }
  .statement-copy { font-size: 1.375rem; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .page { min-height: 360px; padding: 14px 4vw; }
  .header { padding-bottom: 12px; }
  .brand { font-size: .875rem; }
  .social-link { width: 34px; height: 34px; }
  .main { grid-template-columns: 1.15fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 24px; padding-block: 12px; }
  .statement { grid-row: auto; text-align: left; padding: 0; }
  .logo-stage { grid-row: auto; }
  .percentage { font-size: clamp(5rem, 24vh, 8rem); }
  .statement-copy { font-size: clamp(1.375rem, 5.5vh, 1.75rem); margin-top: 8px; }
  .statement-copy br { display: initial; }
  .footer { padding-top: 10px; }
  .footer-note { display: none; }
  .contract-control { justify-content: flex-start; }
}

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