:root {
  --ink: #17170f;
  --paper: #d9cfaa;
  --paper-light: #eee5c6;
  --moss: #59613c;
  --wine: #5e2430;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

button, a { font: inherit; }

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 42px;
  background:
    radial-gradient(circle at 77% 15%, rgba(255,255,255,.42), transparent 28%),
    linear-gradient(135deg, var(--paper-light), var(--paper) 58%, #bbb089);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: .19;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.turnip-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.turnip {
  --w: 70px;
  --r: 0deg;
  --sx: 1;
  --sy: 1;
  position: absolute;
  width: var(--w);
  height: calc(var(--w) * 1.18);
  color: var(--moss);
  opacity: .14;
  transform: rotate(var(--r)) scaleX(var(--sx)) scaleY(var(--sy));
  transform-origin: center;
}

.turnip::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 29%;
  height: 66%;
  border: 2px solid currentColor;
  border-radius: 50% 50% 48% 52% / 43% 43% 68% 68%;
  background: rgba(89,97,60,.05);
  clip-path: polygon(0 0, 100% 0, 92% 64%, 56% 91%, 50% 100%, 44% 91%, 8% 64%);
}

.turnip::after {
  content: "";
  position: absolute;
  left: 17%;
  top: 0;
  width: 66%;
  height: 40%;
  background: currentColor;
  clip-path: polygon(47% 100%, 0 46%, 8% 9%, 42% 74%, 44% 0, 60% 0, 57% 73%, 92% 13%, 100% 50%, 59% 100%);
}

.t1  { --w: 78px;  --r: -18deg; left: 2%;  top: 5%; }
.t2  { --w: 44px;  --r: 24deg;  left: 18%; top: 2%; --sy: 1.28; color: var(--wine); }
.t3  { --w: 104px; --r: 13deg;  left: 38%; top: -5%; --sx: .76; }
.t4  { --w: 54px;  --r: -31deg; left: 61%; top: 4%; color: var(--wine); }
.t5  { --w: 91px;  --r: 19deg;  right: 4%; top: 9%; --sy: 1.2; }
.t6  { --w: 39px;  --r: 41deg;  left: 6%;  top: 31%; color: var(--wine); }
.t7  { --w: 66px;  --r: -11deg; right: 2%; top: 36%; --sx: 1.2; }
.t8  { --w: 48px;  --r: 28deg;  left: 1%;  top: 60%; --sy: 1.38; }
.t9  { --w: 86px;  --r: -26deg; left: 14%; bottom: -2%; color: var(--wine); }
.t10 { --w: 42px;  --r: 8deg;   left: 31%; bottom: 3%; --sx: 1.25; }
.t11 { --w: 108px; --r: 22deg;  left: 48%; bottom: -7%; --sx: .72; }
.t12 { --w: 55px;  --r: -37deg; right: 25%; bottom: 5%; color: var(--wine); --sy: 1.25; }
.t13 { --w: 79px;  --r: 16deg;  right: 3%; bottom: -1%; }
.t14 { --w: 34px;  --r: -9deg;  left: 26%; top: 18%; color: var(--wine); }
.t15 { --w: 46px;  --r: 35deg;  right: 28%; top: 18%; --sy: 1.45; }
.t16 { --w: 37px;  --r: -42deg; right: 12%; top: 58%; color: var(--wine); }
.t17 { --w: 61px;  --r: 12deg;  left: 36%; top: 74%; --sx: 1.18; }
.t18 { --w: 31px;  --r: 31deg;  left: 72%; top: 48%; color: var(--wine); --sy: 1.35; }

.hero {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: clamp(40px, 7vw, 104px);
}

.eyebrow,
.contract-label,
.note,
.portrait-caption {
  font-family: "Courier New", monospace;
  font-weight: 700;
  letter-spacing: .17em;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 11px 7px;
  color: var(--paper-light);
  background: var(--wine);
  font-size: 12px;
  transform: rotate(-1.2deg);
}

h1 {
  margin: 0;
  font-size: clamp(68px, 9vw, 132px);
  line-height: .77;
  letter-spacing: -.075em;
  font-weight: 900;
  text-shadow: 3px 3px 0 rgba(89,97,60,.28);
}

.tagline {
  margin: 30px 0 17px;
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.02;
  font-style: italic;
  font-weight: 700;
}

.lore {
  max-width: 530px;
  margin: 0 0 30px;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.6;
}

.contract-wrap { max-width: 560px; }

.contract-label {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
}

.contract {
  width: 100%;
  border: 2px solid var(--ink);
  background: rgba(238,229,198,.45);
  color: var(--ink);
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s ease, box-shadow .15s ease;
}

.contract:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.contract:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
.contract span { padding: 15px 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px/1 "Courier New", monospace; }
.contract strong { min-width: 92px; padding: 15px 14px; color: var(--paper-light); background: var(--ink); font: 700 12px/1 "Courier New", monospace; }

.actions { display: flex; gap: 12px; margin-top: 24px; }
.actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 51px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper-light);
  text-decoration: none;
  font: 700 13px/1 "Courier New", monospace;
  transition: transform .15s ease, background .15s ease;
}
.actions a:hover { transform: translateY(-3px) rotate(-1deg); background: var(--wine); }
.actions a.secondary { color: var(--ink); background: transparent; }
.actions a.secondary:hover { color: var(--paper-light); background: var(--moss); }
.actions span { font-size: 18px; }

.note { margin: 22px 0 0; font-size: 10px; opacity: .65; }

.portrait-column { position: relative; transform: rotate(1.6deg); animation: float 6s ease-in-out infinite; }
.portrait-shadow { position: absolute; inset: 8% -6% -7% 7%; border-radius: 50%; background: rgba(23,23,15,.18); filter: blur(20px); }
.portrait-frame { position: relative; padding: 10px; background: var(--ink); border: 2px solid var(--ink); box-shadow: 15px 17px 0 var(--wine); }
.portrait-frame::after { content: ""; position: absolute; inset: 10px; pointer-events: none; box-shadow: inset 0 0 55px 18px rgba(0,0,0,.22); }
.portrait-frame img { display: block; width: 100%; aspect-ratio: 1.117/1; object-fit: cover; filter: sepia(.12) contrast(1.05); }
.portrait-caption { position: relative; margin: 25px 0 0; text-align: center; font-size: 10px; }

.leaf { position: absolute; z-index: 1; width: 280px; height: 90px; border: 3px solid rgba(89,97,60,.27); border-radius: 100% 0 100% 0; transform: rotate(28deg); }
.leaf-one { left: -130px; bottom: 7%; }
.leaf-two { right: -150px; top: 5%; transform: rotate(-38deg); }

@keyframes float {
  0%,100% { transform: translateY(0) rotate(1.6deg); }
  50% { transform: translateY(-8px) rotate(.4deg); }
}

@media (max-width: 850px) {
  .site-shell { padding: 28px 22px 40px; overflow: auto; }
  .hero { grid-template-columns: 1fr; gap: 46px; padding: 26px 0; }
  .copy-column { text-align: center; }
  h1 { font-size: clamp(62px, 20vw, 112px); }
  .lore, .contract-wrap { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .portrait-column { width: min(500px, 93%); margin: auto; }
  .turnip { opacity: .1; }
  .t3, .t10, .t14, .t15, .t17, .t18 { display: none; }
}

@media (max-width: 520px) {
  .site-shell { padding-left: 16px; padding-right: 16px; }
  .eyebrow { font-size: 9px; }
  h1 { font-size: 20vw; }
  .tagline { font-size: 27px; }
  .lore { font-size: 12px; }
  .actions { flex-direction: column; }
  .actions a { width: 100%; }
  .contract span { font-size: 11px; }
  .portrait-frame { box-shadow: 9px 10px 0 var(--wine); }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-column { animation: none; }
  * { scroll-behavior: auto !important; }
}
