:root {
  --ink: #252526;
  --muted: #78766f;
  --paper: #f2efe7;
  --line: #cfcac0;
  --blue: #34486e;
  --yellow: #e3b74d;
  --display: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.hero { min-height: 680px; padding: 24px clamp(22px, 5vw, 82px) 56px; border-bottom: 1px solid var(--line); overflow: hidden; }
.topbar, .hero-content, .contract-section, footer { max-width: 1280px; margin: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: clamp(40px, 7vw, 102px); }
.brand { color: inherit; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: -.03em; }
.brand img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--ink); }
.top-link, footer a { color: inherit; font-size: 13px; text-underline-offset: 4px; }

.hero-content { display: grid; grid-template-columns: 1fr minmax(360px, 510px); gap: clamp(36px, 7vw, 120px); align-items: center; }
.eyebrow { margin: 0 0 16px; color: var(--muted); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 24px; max-width: 670px; font: italic 400 clamp(70px, 10.5vw, 158px)/.78 var(--display); letter-spacing: -.09em; }
h1 em { color: var(--blue); }
.intro { max-width: 330px; margin-bottom: 29px; color: #55544f; font-size: 17px; line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); padding: 12px 17px; text-decoration: none; font-size: 14px; font-weight: 750; transition: transform .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: var(--paper); }
.portrait { margin: 0; transform: rotate(2.5deg); }
.image-frame { position: relative; aspect-ratio: 1; padding: 11px; background: #fffdf7; box-shadow: 14px 15px 0 var(--yellow), 19px 20px 0 var(--ink); }
.image-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
figcaption { margin-top: 18px; color: var(--muted); font: italic 16px var(--display); transform: rotate(-2.5deg); }

.contract-section { display: grid; grid-template-columns: .72fr 1.28fr; gap: 20px 48px; align-items: center; padding: clamp(58px, 10vw, 122px) clamp(22px, 5vw, 82px); }
h2 { margin: 0; font: italic 400 clamp(38px, 5.5vw, 76px)/.95 var(--display); letter-spacing: -.07em; }
.contract-box { min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 9px 8px 17px; background: #e5e1d7; border: 1px solid var(--line); border-radius: 6px; }
code { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #4f4d48; font: 15px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
#copy-button { flex: 0 0 auto; cursor: pointer; border: 0; border-radius: 3px; padding: 10px 14px; background: var(--blue); color: white; font: 700 13px var(--sans); }
#copy-button:hover { background: #293b5c; }
.copy-status { grid-column: 2; min-height: 1.2em; margin: -7px 0 0; color: var(--muted); font-size: 12px; }

.note { max-width: 1280px; margin: 0 auto; padding: 0 clamp(22px, 5vw, 82px) clamp(68px, 11vw, 155px); }
.note p { max-width: 820px; margin: 0; font: italic clamp(27px, 4.5vw, 61px)/1.04 var(--display); letter-spacing: -.055em; }
.note span { color: var(--blue); }
footer { display: flex; justify-content: space-between; padding: 22px clamp(22px, 5vw, 82px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 767px) {
  .hero { min-height: unset; padding-bottom: 70px; }
  .topbar { padding-bottom: 50px; }
  .hero-content { grid-template-columns: 1fr; gap: 50px; }
  h1 { font-size: clamp(70px, 23vw, 118px); }
  .portrait { width: min(88%, 460px); justify-self: end; }
  .contract-section { grid-template-columns: 1fr; gap: 19px; }
  .copy-status { grid-column: 1; margin: -10px 0 0; }
}

@media (max-width: 390px) {
  .button { padding: 11px 13px; font-size: 13px; }
  .image-frame { padding: 8px; box-shadow: 10px 11px 0 var(--yellow), 14px 15px 0 var(--ink); }
}
