:root {
  --ink: #17202b;
  --muted: #556171;
  --paper: #f6f3ea;
  --gold: #d89b42;
  --line: rgba(23, 32, 43, .16);
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #aeb9c8;
  font-family: Georgia, 'Times New Roman', serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  content: '';
  background: linear-gradient(137deg, #c9d3df 0%, #9aa8ba 44%, #596775 100%);
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: '';
  opacity: .38;
  background-image: radial-gradient(rgba(255,255,255,.42) .7px, transparent .7px);
  background-size: 7px 7px;
  pointer-events: none;
}

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(6px); pointer-events: none; }
.ambient--one { width: 32rem; height: 32rem; top: 8%; left: -16rem; background: rgba(255, 204, 108, .29); }
.ambient--two { width: 25rem; height: 25rem; right: -11rem; bottom: 6%; background: rgba(244, 231, 183, .35); }

.site-header, main, footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 92px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.brand img { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; object-fit: cover; object-position: 49% 42%; box-shadow: 0 2px 9px rgba(43, 40, 32, .19); }
.top-link, .footer-links a { color: var(--ink); text-underline-offset: 4px; }

.hero { display: grid; grid-template-columns: 1fr minmax(300px, 510px); align-items: center; gap: clamp(44px, 8vw, 130px); padding: clamp(42px, 8vw, 104px) 0 65px; }
.eyebrow, .detail-label { margin: 0 0 15px; color: var(--muted); font-family: Arial, sans-serif; font-size: .71rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 6ch; margin: 0; font-size: clamp(4.1rem, 9vw, 7.75rem); line-height: .82; letter-spacing: -.075em; font-weight: 500; }
.ticker { display: inline-block; margin: 25px 0 20px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: #384657; background: rgba(246, 243, 234, .48); font-family: Arial, sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .05em; }
.intro { max-width: 390px; margin: 0; color: #2a3543; font-size: clamp(1.14rem, 2vw, 1.35rem); line-height: 1.42; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 31px; }
.button { display: inline-flex; align-items: center; gap: 8px; min-height: 45px; padding: 12px 16px; border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); font-family: Arial, sans-serif; font-size: .82rem; font-weight: 700; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button--primary { color: #fff9eb; background: #38485b; }
.button--quiet { background: rgba(246, 243, 234, .38); }

.cat-frame { position: relative; aspect-ratio: 1 / 1; margin: 0; overflow: hidden; transform: rotate(2.5deg); }
.cat-frame::before { position: absolute; inset: 7% -5% -7% 8%; z-index: -1; content: ''; border-radius: 48%; background: rgba(255, 208, 104, .45); filter: blur(38px); }
.cat-frame img { display: block; width: 100%; height: 100%; border: 9px solid rgba(249, 246, 234, .73); object-fit: cover; box-shadow: 0 19px 48px rgba(29, 39, 48, .25); }
.cat-frame figcaption { position: absolute; right: 8px; bottom: 18px; margin: 0; padding: 7px 12px; transform: rotate(-3deg); color: #303d4e; background: var(--paper); box-shadow: 0 3px 11px rgba(26, 38, 51, .13); font-size: clamp(.9rem, 2vw, 1.05rem); font-style: italic; }

.details { width: min(730px, 100%); margin: 0 auto; padding: 20px 0 84px; }
.contract-row { display: flex; align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
code { flex: 1; min-width: 0; padding: 17px 0; overflow: hidden; color: #2a3543; font-family: 'Courier New', monospace; font-size: clamp(.9rem, 2vw, 1rem); text-overflow: ellipsis; white-space: nowrap; }
button { cursor: pointer; }
#copy-button { align-self: center; padding: 7px 0 7px 15px; border: 0; border-left: 1px solid var(--line); color: var(--ink); background: transparent; font-family: Arial, sans-serif; font-size: .77rem; font-weight: 700; }
#copy-button:hover, #copy-button:focus-visible { color: #7e4d14; }
.copy-status { min-height: 1.2em; margin: 9px 0 0; color: #425161; font-family: Arial, sans-serif; font-size: .78rem; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 23px 0 30px; border-top: 1px solid var(--line); color: #394756; font-family: Arial, sans-serif; font-size: .72rem; }
.footer-links { display: flex; gap: 17px; }

a:focus-visible, button:focus-visible { outline: 3px solid rgba(255, 244, 190, .95); outline-offset: 3px; }

@media (max-width: 720px) {
  .site-header, main, footer { width: min(100% - 32px, 1120px); }
  .site-header { min-height: 74px; }
  .hero { grid-template-columns: 1fr; gap: 45px; padding-top: 54px; }
  h1 { font-size: clamp(4.25rem, 23vw, 6.2rem); }
  .cat-frame { width: min(100%, 480px); justify-self: center; }
  .details { padding-bottom: 55px; }
}

@media (max-width: 390px) {
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { justify-content: center; }
  footer { align-items: flex-start; flex-direction: column; }
}
