:root {
  color-scheme: light;
  --ink: #171412;
  --muted: #6f6760;
  --paper: #fbfaf8;
  --panel: #ffffff;
  --line: #ded8d0;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --rose: #bc3f58;
  --gold: #b8892f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.08), transparent 340px),
    var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

.topbar div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.topbar a:not(.brand) {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.share-layout,
.download-layout,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 88px);
  margin: 0 auto;
  padding: 28px 0 68px;
}

.profile-layout {
  grid-template-columns: 220px minmax(0, 620px);
  justify-content: center;
}

.share-media,
.fallback-visual {
  width: 100%;
  max-height: 76vh;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0ece6;
  object-fit: cover;
  box-shadow: 0 24px 70px rgba(23, 20, 18, 0.16);
}

.fallback-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ink-card {
  position: relative;
  width: min(64%, 320px);
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  border-radius: 8px;
  transform: rotate(-8deg);
}

.ink-card span {
  position: absolute;
  display: block;
  border: 3px solid var(--ink);
  border-radius: 999px;
}

.ink-card span:nth-child(1) {
  inset: 24% 28%;
  border-color: var(--rose);
}

.ink-card span:nth-child(2) {
  top: 18%;
  left: 18%;
  width: 24%;
  height: 24%;
  border-color: var(--gold);
}

.ink-card span:nth-child(3) {
  right: 18%;
  bottom: 16%;
  width: 22%;
  height: 22%;
  border-color: var(--accent);
}

.share-copy {
  max-width: 580px;
}

.eyebrow,
.updated,
.handle,
.byline {
  margin: 0 0 12px;
  color: var(--muted);
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.9rem);
  line-height: 0.98;
}

.policy-layout h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

p {
  font-size: 1.04rem;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 760;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.avatar {
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent-dark);
  font-size: 4rem;
  font-weight: 900;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.policy-layout {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.policy-section {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
  }

  .share-layout,
  .download-layout,
  .profile-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 16px;
  }

  .profile-layout {
    justify-content: start;
  }

  .share-media,
  .fallback-visual {
    max-height: 58vh;
  }

  h1 {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
  }

  .avatar {
    width: 150px;
    height: 150px;
  }
}
