:root {
  color-scheme: light;
  --page: #eae6de;
  --paper: #f8f5ef;
  --ink: #26231f;
  --muted: #62594e;
  --line: #dfd7ca;
  --accent: #26231f;
  --on-accent: #ffffff;
  --serif: Georgia, "Times New Roman", serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

.page {
  width: min(100% - 1.5rem, 34rem);
  margin-inline: auto;
  padding-top: 0.75rem;
}

.layout {
  overflow: hidden;
  border-radius: 0.85rem;
  background: var(--paper);
  box-shadow: 0 14px 38px #2921170c, 0 0 0 1px #29211712;
}

.hero {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 18.5rem;
  overflow: hidden;
  background: #24211e;
  color: #fbf6ed;
}

.cover, .hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.cover {
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.38) sepia(0.1);
}

:root[data-cover-position="top"] .cover { object-position: center top; }
:root[data-cover-position="bottom"] .cover { object-position: center bottom; }

.hero::after {
  content: "";
  background: linear-gradient(0deg, #100e0cf7 0%, #100e0cbd 34%, #100e0c32 74%, transparent);
}

.hero-content {
  padding: 1.25rem clamp(1.15rem, 5vw, 2.25rem) 1.5rem;
  min-width: 0;
}

:root:is([data-logo-align="center"], [data-logo-align="right"],
  [data-name-align="center"], [data-name-align="right"],
  [data-subtitle-align="center"], [data-subtitle-align="right"]) .hero-content { width: 100%; }

.emblem {
  display: grid;
  grid: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  --logo-base-size: 3.375rem;
  width: min(100%, calc(var(--logo-base-size) * var(--logo-scale, 1)));
  aspect-ratio: 1;
  margin-bottom: 0.85rem;
  font: calc(1.15rem * var(--logo-scale, 1)) var(--serif);
}

.emblem img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }

[data-logo-align="center"] .emblem { margin-inline: auto; }
[data-logo-align="right"] .emblem { margin-inline-start: auto; }

#monogram {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid #c6ad89;
  background: #24211e;
}

h1, h2, p { margin: 0; }

h1 {
  font: 400 clamp(1.9rem, 8.3vw, 3rem)/1.05 var(--serif);
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

[data-name-align="center"] #business-name { text-align: center; }
[data-name-align="right"] #business-name { text-align: end; }

.hero-rule {
  width: 2.5rem;
  height: 1px;
  margin-block: 0.8rem 0.65rem;
  background: #c6ad89;
}

#description {
  max-width: 32ch;
  color: #ebe2d5;
  font-size: 1rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

[data-subtitle-align="center"] :is(#description, .hero-rule) { margin-inline: auto; }
[data-subtitle-align="right"] :is(#description, .hero-rule) { margin-inline-start: auto; }
[data-subtitle-align="center"] #description { text-align: center; }
[data-subtitle-align="right"] #description { text-align: end; }

.hero-content:has(#description[hidden]) .hero-rule { display: none; }

#intro {
  max-width: 42ch;
  margin-top: 0.6rem;
  color: inherit;
  font-size: 0.925rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.panel { padding: 1.35rem clamp(1rem, 4.5vw, 2rem) 0.85rem; }

.panel-kicker {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h2 {
  font: 400 clamp(1.65rem, 6vw, 2.45rem)/1.1 var(--serif);
  letter-spacing: -0.045em;
}

.actions { margin: 1.05rem 0 0; padding: 0; list-style-type: none; }
.action + .action { border-top: 1px solid var(--line); }
.action.primary + .action { border-color: transparent; }
.action.primary { margin-bottom: 0.35rem; }

.action-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.6rem;
  padding: 0.45rem 0.6rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.primary .action-control {
  min-height: 4rem;
  padding-inline: 0.85rem;
  background: var(--accent);
  color: var(--on-accent);
}

.action-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.primary .action-icon { border-color: currentColor; }

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.copy-icon { flex: none; margin-inline: auto 0.2rem; color: var(--muted); }
.action-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.action-label { display: block; font-size: 0.98rem; font-weight: 660; line-height: 1.25; }
.action-detail { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.84rem; line-height: 1.3; }
.primary .action-detail { color: inherit; }
.action-control[data-copied] { background: #e5ebdf; }
.action-control[data-copied] .action-detail { color: #365530; }

@media (hover: hover) {
  .action-control:hover { background: #ebe4d9; }
  .primary .action-control:hover { background: var(--accent); transform: translateY(-2px); }
  .action-control[data-copied]:hover { background: #dce5d5; }
}

.action-control:active { transform: scale(0.985); }

:focus-visible {
  outline: 2px solid #433626;
  outline-offset: 3px;
}

.pix-manual {
  margin-block: 0.4rem 0.65rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  font-size: 0.9rem;
}

.pix-manual input {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.6rem;
  border: 1px solid #9e8f7a;
  border-radius: 0.3rem;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.45rem 1rem;
  padding: 1rem 0.3rem max(1rem, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

#footer-name { letter-spacing: 0.14em; font-weight: 650; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (min-width: 48rem) {
  .page { width: min(100% - 4rem, 69rem); padding-top: clamp(2rem, 8vh, 5rem); }
  .layout { display: grid; grid-template-columns: 1.07fr 1fr; }
  .layout:has(.panel[hidden]) { grid-template-columns: 1fr; }
  .hero { min-height: 35rem; }
  .hero-content { padding: 2.75rem clamp(1.7rem, 4vw, 3.1rem); }
  .emblem { --logo-base-size: 4.25rem; margin-bottom: 1.25rem; }
  h1 { font-size: clamp(2.35rem, 4.7vw, 4.4rem); }
  .hero-rule { margin-block: 1rem 0.85rem; }
  #description { font-size: 1.06rem; }
  .panel { padding: 2.25rem clamp(1.65rem, 3.8vw, 3rem) 1.45rem; }
  .actions { margin-top: 1.4rem; }
  .action-control { min-height: 3.7rem; }
  .primary .action-control { min-height: 4.2rem; }
  .footer { padding-inline: 0.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .action-control { transition: none; }
  .action-control:active, .primary .action-control:hover { transform: none; }
}
