:root {
  --bg: #0f0f10;
  --surface: #161617;
  --surface-2: #1c1c1d;
  --text: #f4f0e8;
  --muted: #a9a39a;
  --line: rgba(244, 240, 232, 0.12);
  --accent: #ffffff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  --radius: 2px;
  --content-max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0)),
    var(--bg);
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: 100%;
  margin: 0;
  padding: 0 12px 24px;
}

.hero,
.section {
  border: 1px solid var(--line);
  background: rgba(22, 22, 23, 0.92);
  backdrop-filter: blur(10px);
}

.hero {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-color: rgba(17, 17, 17, 0.09);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.hero-image {
  position: relative;
  min-height: 44vh;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), var(--surface);
}

.hero-token-action {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  padding: 20px clamp(20px, 4vw, 72px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  text-align: left;
}

.hero-token-button {
  min-width: min(100%, 360px);
}

.hero-dashboard-link {
  position: absolute;
  top: 20px;
  right: clamp(20px, 4vw, 72px);
  min-width: 0;
}

.hero-token-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}

.hero-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
  color: var(--muted);
}

.hero-token-copy h1 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  line-height: 0.9;
  font-weight: 700;
}

.hero-email-field {
  width: min(100%, 360px);
  display: grid;
  gap: 6px;
  text-align: left;
}

.hero-email-field span {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  color: var(--muted);
}

.hero-email-field input {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0 14px;
  border-radius: 2px;
  font: inherit;
}

.hero-email-field input::placeholder {
  color: rgba(169, 163, 154, 0.7);
}

.hero-email-field input:focus {
  outline: 2px solid rgba(244, 240, 232, 0.28);
  outline-offset: 2px;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.68rem;
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

.section-head h3 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5.3vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

.section-note,
.footer p,
.footer a {
  color: var(--muted);
}

.footer p,
.gallery-footer p {
  margin: 0;
  display: inline-block;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 18px;
}

.button-primary {
  background: #f4f0e8;
  color: #111;
  border-color: #f4f0e8;
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.section {
  margin-top: 12px;
  padding: 14px 0 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 10px 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.68rem;
  white-space: nowrap;
}

.filter-chip.is-active {
  background: #111;
  color: #fff;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 0 14px 14px;
}

.collection-card {
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
}

.collection-thumb {
  aspect-ratio: 16 / 11;
  background-size: cover;
  background-position: center;
}

.thumb-wedding {
  background-image: linear-gradient(rgba(0,0,0,0.08), rgba(0,0,0,0.18)), url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1200&q=80");
}

.thumb-family {
  background-image: linear-gradient(rgba(0,0,0,0.06), rgba(0,0,0,0.14)), url("https://images.unsplash.com/photo-1511895426328-dc8714191300?auto=format&fit=crop&w=1200&q=80");
}

.thumb-portrait {
  background-image: linear-gradient(rgba(0,0,0,0.06), rgba(0,0,0,0.14)), url("https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=1200&q=80");
}

.thumb-travel {
  background-image: linear-gradient(rgba(0,0,0,0.06), rgba(0,0,0,0.14)), url("https://images.unsplash.com/photo-1502602898657-3e91760cbb34?auto=format&fit=crop&w=1200&q=80");
}

.collection-body {
  padding: 14px 14px 16px;
}

.collection-meta {
  display: grid;
  gap: 5px;
}

.collection-meta span:first-child {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.05;
  text-transform: uppercase;
  font-weight: 700;
}

.collection-meta span:last-child {
  font-size: 0.88rem;
  color: var(--muted);
}

.collection-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.status,
.count {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.status {
  padding: 8px 10px;
  border: 1px solid var(--line);
}

.status-review {
  color: var(--accent);
}

.status-favorite {
  color: #65725f;
}

.status-done {
  color: #5f6e7a;
}

.footer {
  margin-top: 12px;
  padding: 16px 0 0;
  text-align: center;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.gallery-back {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.gallery-hero {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: rgba(22, 22, 23, 0.92);
  padding: 20px 16px 18px;
  display: grid;
  gap: 18px;
  justify-items: start;
}

.gallery-title {
  margin: 10px 0 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.25rem, 7.5vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-weight: 700;
}

.gallery-subtitle {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 34rem;
}

.gallery-summary {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.gallery-summary-card {
  border: 1px solid var(--line);
  background: rgba(22, 22, 23, 0.86);
  padding: 14px 16px;
}

.gallery-summary-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.64rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.gallery-summary-card strong {
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.gallery-scene-head {
  margin: 18px 16px 10px;
  display: grid;
  gap: 8px;
}

.gallery-scene-head h3 {
  margin: 8px 0 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.45rem, 4.8vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.gallery-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gallery-stats > div {
  border: 1px solid var(--line);
  padding: 12px 10px;
  text-align: center;
}

.gallery-stat-value {
  display: block;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.gallery-stat-label {
  display: block;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.65rem;
  color: var(--muted);
}

.gallery-section {
  padding-top: 14px;
}

.gallery-toolbar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 16px;
  scrollbar-width: none;
}

.gallery-toolbar::-webkit-scrollbar {
  display: none;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 12px 12px;
}

.photo-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0 0 12px;
  overflow: hidden;
  text-align: left;
}

.photo-card.photo-wide {
  grid-column: span 2;
}

.photo-card.photo-square .photo-image {
  aspect-ratio: 1 / 1;
}

.photo-card.is-selected {
  outline: 2px solid #f4f0e8;
  outline-offset: -2px;
}

.photo-card.is-selected .photo-meta strong,
.photo-card.is-favorite .photo-meta strong {
  color: #f4f0e8;
}

.photo-select {
  margin: 0 10px;
  min-height: 42px;
  width: calc(100% - 20px);
  border: 1px solid var(--line);
  background: transparent;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
}

.photo-card.is-selected .photo-select {
  background: #f4f0e8;
  color: #111;
  border-color: #f4f0e8;
}

.photo-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.photo-image {
  display: block;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
}

.photo-card.is-landscape .photo-image,
.photo-card.photo-wide .photo-image {
  aspect-ratio: 16 / 10;
}

.photo-01 {
  background-image: url("https://images.unsplash.com/photo-1529626455594-4ff0802cfb7e?auto=format&fit=crop&w=900&q=80");
}

.photo-02 {
  background-image: url("https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&w=900&q=80");
}

.photo-03 {
  background-image: url("https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=900&q=80");
}

.photo-04 {
  background-image: url("https://images.unsplash.com/photo-1524504388940-b1c1722653e1?auto=format&fit=crop&w=900&q=80");
}

.photo-05 {
  background-image: url("https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&w=900&q=80");
}

.photo-06 {
  background-image: url("https://images.unsplash.com/photo-1488426862026-3ee34a7d66df?auto=format&fit=crop&w=900&q=80");
}

.photo-07 {
  background-image: url("https://images.unsplash.com/photo-1494790108377-be9c29b29330?auto=format&fit=crop&w=1200&q=80");
}

.photo-08 {
  background-image: url("https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&w=1200&q=80");
}

.photo-meta {
  display: grid;
  gap: 4px;
  padding: 10px 10px 12px;
}

.photo-meta strong {
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-meta small {
  color: var(--muted);
  font-size: 0.74rem;
}

.gallery-footer {
  position: sticky;
  bottom: 12px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  color: #f4f0e8;
  display: grid;
  gap: 12px;
}

.gallery-footer-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 240, 232, 0.72);
  font-size: 0.65rem;
}

.gallery-footer-actions {
  display: grid;
  grid-template-columns: auto;
  gap: 10px;
  justify-content: end;
  justify-items: end;
}

.dashboard-hero {
  border: 1px solid var(--line);
  background: rgba(22, 22, 23, 0.92);
  backdrop-filter: blur(10px);
  padding: 20px 16px;
  display: grid;
  gap: 16px;
}

.dashboard-hero h1 {
  margin: 8px 0 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.dashboard-create-button {
  width: 100%;
  max-width: 20rem;
}

.dashboard-grid {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.dashboard-card,
.dashboard-section {
  border: 1px solid var(--line);
  background: rgba(22, 22, 23, 0.92);
  backdrop-filter: blur(10px);
}

.dashboard-card {
  padding: 16px;
  display: grid;
  gap: 8px;
}

.dashboard-card-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.64rem;
  color: var(--muted);
}

.dashboard-card strong {
  font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.dashboard-card p,
.dashboard-flow-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-section {
  margin-top: 12px;
  padding: 16px;
}

.dashboard-flow {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.dashboard-flow-step {
  border: 1px solid var(--line);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.dashboard-flow-step span {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--muted);
  font-size: 0.64rem;
}

.dashboard-flow-step strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.9rem;
}

.gallery-footer .button-primary {
  background: #f4f0e8;
  color: #111;
  border-color: #f4f0e8;
}

@media (min-width: 720px) {
  .page-shell {
    width: 100%;
    padding: 16px 16px 24px;
  }

  .topbar {
    padding: 16px 20px;
  }

  .hero {
    grid-template-columns: 1.35fr 1fr;
  }

  .hero-image {
    min-height: 64vh;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px clamp(28px, 4vw, 72px) 28px clamp(36px, 4.5vw, 84px);
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 34rem;
  }

  .access-card {
    max-width: 34rem;
  }

  .section-head,
  .filter-bar,
  .collection-grid {
    padding-left: 20px;
    padding-right: 20px;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 16px 20px;
  }

  .gallery-hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    padding: 22px 20px;
  }

  .gallery-scene-head {
    margin-left: 20px;
    margin-right: 20px;
  }

  .gallery-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0 20px;
  }

  .photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-left: 20px;
    padding-right: 20px;
  }

  .photo-card.photo-wide {
    grid-column: span 2;
  }

  .gallery-toolbar {
    padding-left: 20px;
    padding-right: 20px;
  }

  .gallery-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 16px 20px;
  }
}

@media (min-width: 1080px) {
  .hero {
    grid-template-columns: 1.4fr 0.9fr;
  }

  .collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1600px) {
  .page-shell {
    width: 100%;
    padding: 20px 24px 28px;
  }

  .hero-image {
    min-height: 72vh;
  }

  .hero-content {
    padding: 34px clamp(56px, 4vw, 96px) 34px clamp(44px, 4vw, 84px);
  }

  .section {
    padding-top: 20px;
  }

  .collection-grid {
    gap: 16px;
  }

  .photo-grid {
    gap: 14px;
  }
}

@media (min-width: 1920px) {
  .page-shell {
    width: 100%;
    padding: 24px 32px 32px;
  }

  .hero {
    grid-template-columns: 1.45fr 0.85fr;
  }

  .hero-image {
    min-height: 74vh;
  }

  .hero-content {
    padding: 40px clamp(64px, 4vw, 120px) 40px clamp(52px, 4vw, 100px);
  }

  .hero-image-caption {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .hero-content h2,
  .section-head h3 {
    font-size: clamp(2.4rem, 3.1vw, 4.9rem);
  }

  .hero-text {
    font-size: 1.05rem;
    max-width: 34rem;
  }

  .section-head {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 24px;
    padding-bottom: 4px;
  }

  .filter-bar {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .photo-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .photo-card.photo-wide {
    grid-column: span 2;
  }

  .collection-body {
    padding: 16px 16px 18px;
  }
}

@media (min-width: 2300px) {
  .page-shell {
    width: 100%;
    padding: 28px 40px 36px;
  }

  .hero {
    grid-template-columns: 1.55fr 0.75fr;
  }

  .hero-image {
    min-height: 78vh;
  }

  .hero-content {
    padding: 48px clamp(72px, 4vw, 140px) 48px clamp(60px, 4vw, 112px);
  }

  .hero-image-caption {
    left: 28px;
    bottom: 28px;
  }

  .section-head,
  .filter-bar,
  .collection-grid,
  .footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  .collection-meta span:first-child {
    font-size: 1.55rem;
  }

  .hero-text {
    max-width: 32rem;
  }

  .gallery-hero {
    padding: 28px 28px 24px;
  }

  .gallery-footer {
    padding: 18px 28px;
  }

  .dashboard-hero,
  .dashboard-section {
    padding: 22px 20px;
  }

  .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 2560px) {
  .page-shell {
    width: 100%;
    padding: 32px 56px 40px;
  }

  .hero {
    grid-template-columns: 1.6fr 0.72fr;
  }

  .hero-image {
    min-height: 80vh;
  }

  .hero-content {
    padding: 56px clamp(80px, 4vw, 160px) 56px clamp(68px, 4vw, 124px);
  }

  .hero-content h2,
  .section-head h3 {
    font-size: clamp(2.8rem, 2.8vw, 5.2rem);
  }

  .section-head {
    grid-template-columns: 1fr 0.6fr;
  }

  .collection-grid {
    gap: 22px;
  }

  .collection-card {
    box-shadow: var(--shadow);
  }

  .photo-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* A header ocupa uma única faixa horizontal em qualquer resolução. */
.hero {
  grid-template-columns: 1fr;
}
