:root {
  --bg: #eef9ff;
  --paper: #ffffff;
  --ink: #101928;
  --ton: #0098ff;
  --ton-dark: #006dcc;
  --cream: #fff2c7;
  --mint: #d7f8ed;
  --muted: #617084;
  --shadow: 8px 8px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 18%, rgba(0, 152, 255, .18) 0 9%, transparent 10%),
    radial-gradient(circle at 86% 18%, rgba(255, 242, 199, .9) 0 12%, transparent 13%),
    linear-gradient(90deg, rgba(16, 25, 40, .055) 1px, transparent 1px),
    linear-gradient(rgba(16, 25, 40, .055) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 44px 44px, 44px 44px, auto;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 4px 4px 0 var(--ink);
  backdrop-filter: blur(12px);
}

.brand,
.nav-links,
.hero-actions,
.post-top {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 0;
  font-weight: 1000;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: white;
}

.nav-links {
  gap: 8px;
}

.nav-links a {
  padding: 9px 12px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: .9rem;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}

.nav-links a:nth-child(4),
.nav-links a:nth-child(5) {
  background: var(--ton);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  gap: 30px;
  align-items: center;
  min-height: calc(100vh - 118px);
  padding: 42px 0 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ton-dark);
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
.hero-dog span {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(5.2rem, 17vw, 12.5rem);
  line-height: .78;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(2.1rem, 5.4vw, 4.7rem);
  line-height: .95;
}

.hero-text {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(1.08rem, 1.9vw, 1.32rem);
  font-weight: 760;
  line-height: 1.5;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 1000;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
}

.button:hover {
  transform: translate(2px, 2px) rotate(-1deg);
  box-shadow: 2px 2px 0 var(--ink);
}

.primary {
  background: var(--cream);
}

.secondary {
  background: white;
}

.ink {
  background: var(--ink);
  color: white;
  box-shadow: 4px 4px 0 var(--ton);
}

.hero-dog {
  position: relative;
  justify-self: center;
  width: min(100%, 500px);
  padding: 14px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(0, 152, 255, .16), transparent 50%),
    white;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-dog img {
  display: block;
  width: 100%;
  border-radius: 50%;
}

.hero-dog span {
  position: absolute;
  right: -10px;
  bottom: 32px;
  padding: 10px 16px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--ton);
  color: white;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 1000;
  box-shadow: 4px 4px 0 var(--ink);
}

.banner-frame,
.kennel article,
.contract-card,
.post-card,
.manifesto {
  border: 5px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.banner-frame {
  padding: 10px;
  overflow: hidden;
}

.banner-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.kennel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.kennel article {
  padding: 18px;
}

.kennel span,
.contract-card span,
.post-top span {
  color: var(--muted);
}

.kennel span {
  display: block;
  margin-bottom: 6px;
  font-size: .75rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.kennel strong {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.contract-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 44px;
  padding: clamp(18px, 3vw, 28px);
  background:
    linear-gradient(135deg, rgba(0, 152, 255, .16), transparent 48%),
    white;
}

.contract-card h2 {
  overflow-wrap: anywhere;
}

.contract-card p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.lore-section {
  padding: 44px 0 0;
}

.section-heading {
  max-width: 830px;
  margin-bottom: 22px;
}

.lore-board {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 20px;
  align-items: stretch;
}

.post-card,
.manifesto {
  padding: clamp(16px, 2.5vw, 24px);
}

.post-top {
  gap: 10px;
  margin-bottom: 12px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ton);
  color: white;
  font-weight: 1000;
}

.post-top strong,
.post-top span {
  display: block;
}

.post-text,
.post-reply {
  margin: 12px 0;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 900;
}

.post-card img {
  display: block;
  width: 100%;
  border: 4px solid var(--ink);
  border-radius: 8px;
}

.post-reply {
  padding-top: 12px;
  border-top: 3px solid var(--soft);
}

.manifesto {
  background:
    linear-gradient(145deg, rgba(255, 242, 199, .78), transparent 60%),
    white;
}

.manifesto ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.manifesto li {
  padding: 14px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  background: white;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 950;
}

.social-strip {
  display: flex;
  gap: 12px;
  overflow: hidden;
  margin: 34px calc(50% - 50vw) 0;
  padding: 12px;
  border-block: 5px solid var(--ink);
  background: var(--ink);
  color: white;
}

.social-strip a,
.social-strip span {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 3px solid white;
  border-radius: 999px;
  background: var(--ton);
  font-weight: 1000;
  text-decoration: none;
  white-space: nowrap;
  animation: floaty 3.2s ease-in-out infinite;
}

.social-strip span:nth-child(3) {
  background: #2bc36b;
  animation-delay: -1.1s;
}

.social-strip span:nth-child(4) {
  background: #f2bd28;
  color: var(--ink);
  animation-delay: -1.7s;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 20;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 4px solid var(--ink);
  border-radius: 8px;
  background: #2bc36b;
  color: white;
  font-weight: 1000;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-50%, 120px);
  transition: transform .2s ease;
}

.toast.show {
  transform: translate(-50%, 0);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-4px) rotate(1deg);
  }
}

@media (max-width: 920px) {
  .hero,
  .lore-board {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    order: 2;
  }

  .hero-dog {
    width: min(100%, 420px);
  }

  .kennel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  main {
    width: min(100% - 20px, 1180px);
  }

  .topbar,
  .contract-card {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-links a,
  .button {
    flex: 1;
    text-align: center;
  }

  h1 {
    font-size: clamp(4.2rem, 24vw, 7rem);
  }

  .hero-dog span {
    right: 12px;
    bottom: 18px;
  }
}
