:root {
  --ink: #21150f;
  --paper: #f6f0e7;
  --cream: #fffaf2;
  --orange: #d9793b;
  --orange-deep: #aa4e25;
  --line: #d8cabc;
  --shadow: 0 20px 50px rgba(69, 37, 20, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }

main { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.nav {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark, h1, h2 { font-family: Georgia, "Times New Roman", serif; }

.wordmark { font-size: 1.55rem; font-weight: 700; text-decoration: none; letter-spacing: -0.06em; }

.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.88rem; font-weight: 700; }
.nav-links a { text-decoration: none; border-bottom: 1px solid transparent; }
.nav-links a:hover, .nav-links a:focus-visible { border-bottom-color: currentColor; }

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(42px, 8vw, 120px);
  min-height: 670px;
  padding: 74px 0;
}

.eyebrow { margin: 0 0 17px; color: var(--orange-deep); font-size: 0.7rem; letter-spacing: 0.15em; font-weight: 800; }
h1 { margin: 0; font-size: clamp(4.1rem, 9vw, 8rem); letter-spacing: -0.085em; line-height: 0.84; }
.intro { max-width: 340px; margin: 29px 0 13px; font-size: clamp(1.12rem, 1.7vw, 1.38rem); line-height: 1.35; }
.ticker { margin: 0; font-size: 0.9rem; font-weight: 800; color: var(--orange-deep); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 35px; }
.button, .copy-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 19px;
  border: 1px solid var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}
.button:hover, .copy-button:hover { transform: translateY(-2px); }
.button:focus-visible, .copy-button:focus-visible, a:focus-visible { outline: 3px solid #edb54e; outline-offset: 4px; }
.button-primary { color: var(--cream); background: var(--ink); }
.button-primary:hover { background: var(--orange-deep); }
.button-secondary, .copy-button { background: transparent; }
.button-secondary:hover, .copy-button:hover { color: var(--cream); background: var(--ink); }

.portrait-wrap { position: relative; }
.portrait { display: block; width: 100%; max-width: 570px; margin-left: auto; aspect-ratio: 1; object-fit: cover; border-radius: 1px; box-shadow: var(--shadow); }
.portrait-caption { margin: 13px 0 0 auto; width: max-content; max-width: 100%; font-size: 0.75rem; letter-spacing: 0.05em; font-weight: 700; }

.contract-section { padding: 44px 0 100px; border-top: 1px solid var(--line); }
.contract-card { display: flex; align-items: end; justify-content: space-between; gap: 32px; padding: 32px; background: var(--cream); border: 1px solid var(--line); }
h2 { max-width: 470px; margin: 0 0 22px; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 0.96; letter-spacing: -0.06em; }
code { display: inline-block; padding: 8px 11px; border: 1px solid var(--line); background: var(--paper); font-family: "Courier New", monospace; font-size: 0.92rem; word-break: break-all; }
.copy-status { min-height: 1.2em; margin: 10px 0 0; color: var(--orange-deep); font-size: 0.8rem; font-weight: 700; }

footer { display: flex; justify-content: space-between; gap: 24px; max-width: 1240px; margin: 0 auto; padding: 28px 32px; border-top: 1px solid var(--line); font-size: 0.78rem; font-weight: 700; }
footer a { text-decoration: none; }
footer a:hover, footer a:focus-visible { text-decoration: underline; }

@media (max-width: 768px) {
  main { padding: 0 20px; }
  .nav { min-height: 77px; }
  .hero { grid-template-columns: 1fr; gap: 45px; min-height: auto; padding: 56px 0 70px; }
  .hero-copy { max-width: 500px; }
  .portrait { margin: 0; max-width: 100%; }
  .portrait-caption { margin-left: 0; }
  .contract-section { padding: 40px 0 70px; }
  .contract-card { align-items: flex-start; flex-direction: column; padding: 25px; }
  footer { padding: 24px 20px; }
}

@media (max-width: 420px) {
  .nav-links { gap: 13px; font-size: 0.78rem; }
  .wordmark { font-size: 1.35rem; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  footer { flex-direction: column; gap: 10px; }
}
