:root {
  color-scheme: light;
  --ink: #17211d;
  --ink-soft: #31413a;
  --muted: #66746c;
  --subtle: #8e9a91;
  --paper: #f7f2e9;
  --paper-warm: #fff9ef;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --surface-soft: #eee9df;
  --line: #ddd2c3;
  --line-strong: #cbbcac;
  --cedar: #194f42;
  --cedar-dark: #123a32;
  --cedar-soft: #e7f0e9;
  --terracotta: #b86546;
  --terracotta-dark: #9f4b38;
  --ochre: #c99a4a;
  --blue-gray: #7895a1;
  --danger: #a7483d;
  --danger-dark: #88342d;
  --shadow-soft: 0 18px 60px rgba(42, 31, 22, 0.09);
  --shadow-product: 0 30px 90px rgba(32, 42, 35, 0.2);
  --shadow-tight: 0 12px 34px rgba(42, 31, 22, 0.1);
  --radius: 8px;
  --radius-frame: 12px;
  --shell: min(1180px, calc(100% - 40px));
  --serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --sans: "Avenir Next", "Gill Sans", "Trebuchet MS", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  position: relative;
  min-width: 320px;
  overflow-x: hidden;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.32) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(135deg, rgba(184, 101, 70, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(120, 149, 161, 0.1), transparent 42%);
}

a {
  color: inherit;
}

a:hover {
  color: var(--cedar);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(201, 154, 74, 0.58);
  outline-offset: 3px;
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(238, 233, 223, 0.72);
  color: var(--cedar-dark);
  padding: 2px 6px;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(23, 33, 29, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:not(.nav-cta) {
  padding: 8px 0;
}

.nav-cta {
  border: 1px solid rgba(18, 58, 50, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(42, 31, 22, 0.05);
  padding: 9px 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 24px;
  font-size: 78px;
  line-height: 0.96;
}

h2 {
  margin-bottom: 14px;
  font-size: 48px;
  line-height: 1.04;
}

h3 {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.22;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cedar);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.48;
}

.muted,
.card p,
.step-card p {
  color: var(--muted);
}

.marketing-page {
  overflow: hidden;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--cedar-dark);
  border-radius: var(--radius);
  background: var(--cedar);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  line-height: 1.1;
  padding: 12px 18px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(18, 58, 50, 0.15);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  border-color: var(--cedar-dark);
  background: var(--cedar-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(18, 58, 50, 0.2);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(42, 31, 22, 0.05);
}

.button.secondary:hover,
.button.ghost:hover {
  border-color: var(--line-strong);
  background: var(--paper-warm);
  color: var(--cedar-dark);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.74);
  color: var(--ink);
  box-shadow: none;
}

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
  box-shadow: 0 14px 28px rgba(167, 72, 61, 0.14);
}

.button.danger:hover {
  border-color: var(--danger-dark);
  background: var(--danger-dark);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.82fr);
  gap: 70px;
  align-items: center;
  padding: 58px 0 92px;
}

.hero-pro {
  min-height: calc(100vh - 90px);
}

.hero > div:first-child {
  animation: fadeRise 520ms ease both;
}

.hero-product {
  position: relative;
  min-height: 660px;
  animation: fadeRise 640ms 80ms ease both;
}

.hero-product::before {
  position: absolute;
  top: 46px;
  right: -16px;
  bottom: 92px;
  left: 90px;
  border: 1px solid rgba(203, 188, 172, 0.5);
  border-radius: var(--radius-frame);
  content: "";
}

.product-photo {
  background-size: cover;
  background-position: center;
}

.product-photo.main {
  position: absolute;
  inset: 20px 0 84px 72px;
  border: 1px solid rgba(255, 253, 248, 0.5);
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-product);
}

.floating-page {
  position: absolute;
  left: 0;
  bottom: 128px;
  width: min(330px, 74%);
  border: 1px solid rgba(255, 253, 248, 0.78);
  border-radius: var(--radius-frame);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 22px 70px rgba(42, 31, 22, 0.18);
  padding: 26px;
  backdrop-filter: blur(10px);
}

.floating-page p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
}

.mini-strip {
  position: absolute;
  right: 26px;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 86px);
  gap: 10px;
  border: 1px solid rgba(255, 253, 248, 0.66);
  border-radius: var(--radius-frame);
  background: rgba(255, 253, 248, 0.86);
  box-shadow: 0 18px 48px rgba(42, 31, 22, 0.16);
  padding: 10px;
  backdrop-filter: blur(10px);
}

.mini-strip span {
  height: 96px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span,
.status {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(203, 188, 172, 0.76);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
  line-height: 1;
  padding: 8px 12px;
}

.status {
  background: var(--cedar-soft);
  color: var(--cedar-dark);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.68);
}

.logo-band .shell {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.band {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 84px 0;
}

.band.soft {
  background:
    linear-gradient(180deg, rgba(247, 242, 233, 0.24), rgba(247, 242, 233, 0.74)),
    var(--surface-soft);
}

.split-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 34px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.step-card,
.metric,
.form-card,
.pricing-panel,
.table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
}

.card,
.step-card {
  padding: 26px;
}

.card {
  box-shadow: 0 10px 30px rgba(42, 31, 22, 0.04);
}

.process-grid {
  margin-top: 10px;
}

.step-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.step-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-tight);
  transform: translateY(-2px);
}

.step-card span {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--cedar);
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 800;
}

.book-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  gap: 58px;
  align-items: center;
}

.showcase-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(203, 188, 172, 0.82);
  border-radius: var(--radius-frame);
  background: var(--surface);
  box-shadow: var(--shadow-product);
}

.premium-book {
  transform: rotate(-1deg);
}

.book-page {
  padding: 38px;
}

.book-page + .book-page {
  border-left: 1px solid var(--line);
}

.image-page {
  min-height: 460px;
  background-size: cover;
  background-position: center;
}

.copy-page {
  display: grid;
  align-content: center;
}

.journal-text {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.46;
}

.page-note {
  color: var(--subtle);
  font-size: 13px;
  margin-top: 26px;
}

.pricing-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.66fr);
  gap: 34px;
  align-items: center;
  box-shadow: var(--shadow-soft);
  padding: 34px;
}

.pricing-panel p {
  color: var(--ink-soft);
}

.form-wrap {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 92px;
}

.intake-wrap {
  position: relative;
}

.intake-wrap::before {
  display: block;
  width: 74px;
  height: 4px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terracotta), var(--ochre), var(--blue-gray));
  content: "";
}

.form-card {
  box-shadow: var(--shadow-soft);
  padding: 30px;
}

label {
  display: block;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  padding: 13px 14px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--cedar);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(25, 79, 66, 0.1);
  outline: 0;
}

input::placeholder,
textarea::placeholder {
  color: rgba(49, 65, 58, 0.62);
}

input[type="file"] {
  min-height: 52px;
  padding: 9px;
}

input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  padding: 6px 10px;
}

textarea {
  min-height: 156px;
  resize: vertical;
}

.draft-textarea {
  min-height: 420px;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.56;
}

.help {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.45;
}

.notice {
  border: 1px solid rgba(25, 79, 66, 0.18);
  border-radius: var(--radius);
  background: var(--cedar-soft);
  color: var(--cedar-dark);
  padding: 15px 16px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.table th,
.table td {
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
  text-align: left;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table a {
  color: var(--ink);
  font-weight: 760;
}

.logout-form {
  margin: 8px 0 0;
}

.admin-shell {
  padding: 28px 0 92px;
}

.admin-shell h1 {
  margin-bottom: 16px;
  font-size: 56px;
}

.admin-shell h2 {
  font-size: 36px;
}

.admin-shell .lead {
  font-size: 18px;
}

.admin-shell .band {
  padding: 46px 0;
}

.admin-shell .form-card {
  box-shadow: none;
}

.order-shell .actions form {
  margin: 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 12px;
}

.gallery a {
  min-width: 0;
  text-decoration: none;
}

.gallery img {
  display: block;
  width: 100%;
  height: 164px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(42, 31, 22, 0.06);
}

.asset-file {
  display: grid;
  min-height: 164px;
  min-width: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.82);
  color: var(--muted);
  padding: 14px;
  text-align: center;
  text-decoration: none;
}

.asset-file strong {
  color: var(--cedar);
  font-size: 24px;
}

.asset-file span {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.generator-form {
  box-shadow: none;
}

.print-layout {
  background: #e8ebe4;
}

.print-layout::before {
  display: none;
}

.print-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 242, 233, 0.92);
  padding: 12px;
  backdrop-filter: blur(10px);
}

.sheet {
  position: relative;
  width: min(920px, calc(100% - 24px));
  min-height: 1180px;
  margin: 24px auto;
  page-break-after: always;
  background: var(--surface);
  box-shadow: 0 18px 58px rgba(21, 32, 29, 0.18);
  padding: 64px;
}

.sheet.cover {
  display: grid;
  align-content: end;
  min-height: 1180px;
  background:
    linear-gradient(180deg, rgba(23, 33, 29, 0.02), rgba(23, 33, 29, 0.28) 42%, rgba(23, 33, 29, 0.78)),
    var(--cover-image, url("/sample-travel.svg"));
  background-size: cover;
  background-position: center;
  color: #fff;
}

.sheet.cover h1 {
  max-width: 760px;
  color: #fff;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.34);
}

.sheet.cover p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.cover-kicker {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(23, 33, 29, 0.28);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  padding: 8px 12px;
  text-transform: uppercase;
}

.diary-sheet {
  overflow: hidden;
}

.folio {
  position: absolute;
  top: 30px;
  right: 42px;
  color: var(--subtle);
  font-family: var(--serif);
  font-size: 14px;
}

.diary-spread {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
  min-height: 980px;
}

.diary-spread.reverse {
  grid-template-columns: 0.92fr 1.08fr;
}

.diary-spread.reverse figure {
  order: 2;
}

.diary-spread figure {
  margin: 0;
}

.diary-spread img {
  display: block;
  width: 100%;
  max-height: 760px;
  border-radius: 10px;
  object-fit: cover;
}

.diary-spread figcaption {
  color: var(--subtle);
  font-size: 12px;
  margin-top: 11px;
}

.diary-copy {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.56;
}

.closing-sheet {
  display: grid;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(184, 101, 70, 0.08), transparent 36%),
    linear-gradient(315deg, rgba(120, 149, 161, 0.12), transparent 42%),
    var(--surface);
}

.footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  color: var(--muted);
  padding: 30px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 40px;
  }

  .hero,
  .grid.two,
  .grid.three,
  .metric-row,
  .split-intro,
  .book-showcase,
  .pricing-panel,
  .diary-spread,
  .diary-spread.reverse {
    grid-template-columns: 1fr;
  }

  .hero-pro {
    min-height: 0;
  }

  .hero {
    gap: 42px;
    padding: 42px 0 68px;
  }

  .hero-product {
    min-height: 540px;
  }

  .product-photo.main {
    inset: 0 0 78px 34px;
  }

  .hero-product::before {
    top: 28px;
    right: 10px;
    bottom: 98px;
    left: 54px;
  }

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

  .book-page + .book-page {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .diary-spread.reverse figure {
    order: 0;
  }
}

@media (max-width: 700px) {
  :root {
    --shell: min(1180px, calc(100% - 28px));
  }

  body {
    background-size: 34px 34px;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 0 20px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 12px;
  }

  .nav-cta {
    margin-left: auto;
    padding: 8px 12px;
  }

  h1 {
    font-size: 42px;
    line-height: 1;
  }

  h2 {
    font-size: 32px;
    line-height: 1.08;
  }

  h3 {
    font-size: 18px;
  }

  .eyebrow {
    font-size: 10px;
    line-height: 1.4;
  }

  .lead {
    font-size: 17px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
    min-height: 46px;
  }

  .hero {
    gap: 34px;
    padding: 26px 0 52px;
  }

  .hero-product {
    min-height: 500px;
  }

  .product-photo.main {
    inset: 0 0 74px 18px;
  }

  .hero-product::before {
    display: none;
  }

  .floating-page {
    bottom: 122px;
    width: min(282px, 82%);
    padding: 18px;
  }

  .floating-page p:last-child {
    font-size: 17px;
  }

  .mini-strip {
    right: 10px;
    grid-template-columns: repeat(3, 70px);
  }

  .mini-strip span {
    height: 78px;
  }

  .logo-band .shell {
    justify-content: flex-start;
    font-size: 12px;
  }

  .band {
    padding: 58px 0;
  }

  .card,
  .step-card,
  .form-card,
  .pricing-panel {
    padding: 20px;
  }

  .book-page {
    padding: 26px;
  }

  .image-page {
    min-height: 320px;
  }

  .journal-text {
    font-size: 20px;
  }

  .form-wrap {
    width: min(100% - 28px, 880px);
    padding: 34px 0 68px;
  }

  .admin-shell {
    padding-top: 20px;
  }

  .admin-shell h1 {
    font-size: 42px;
  }

  .admin-shell h2 {
    font-size: 30px;
  }

  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    flex-direction: column;
  }

  .print-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sheet {
    min-height: 720px;
    padding: 30px;
  }

  .diary-spread {
    gap: 26px;
    min-height: 640px;
  }

  .diary-copy {
    font-size: 19px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 38px;
  }

  .hero-product {
    min-height: 460px;
  }

  .floating-page {
    width: min(260px, 86%);
  }

  .mini-strip {
    grid-template-columns: repeat(3, 62px);
  }

  .mini-strip span {
    height: 70px;
  }

  .trust-row span {
    font-size: 12px;
  }
}

:root {
  --graphite: #111511;
  --graphite-2: #191812;
  --graphite-3: #242018;
  --ivory: #fff7e8;
  --ivory-soft: #f4ead9;
  --brass: #d4aa56;
  --coral: #d97856;
  --cyan: #7ec5cf;
  --moss: #183f35;
  --moss-light: #dce9dd;
  --ink-deep: #101713;
  --motion-shadow: 0 42px 130px rgba(0, 0, 0, 0.34);
}

.home-page {
  background: var(--graphite);
  color: var(--ivory);
}

.home-page::before {
  background:
    linear-gradient(125deg, rgba(217, 120, 86, 0.14), transparent 30%),
    linear-gradient(250deg, rgba(126, 197, 207, 0.12), transparent 42%);
}

.home-page .nav {
  position: absolute;
  right: 0;
  left: 0;
  color: var(--ivory);
}

.home-page .brand {
  color: var(--ivory);
}

.home-page .brand-mark {
  background: var(--ivory);
  color: var(--graphite);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

.home-page .nav-links {
  color: rgba(255, 247, 232, 0.72);
}

.home-page .nav-links a:hover {
  color: #fff;
}

.home-page .nav-cta {
  border-color: rgba(255, 247, 232, 0.18);
  background: rgba(255, 247, 232, 0.1);
  color: var(--ivory);
  backdrop-filter: blur(18px);
}

.story-site {
  overflow: hidden;
  margin-top: -1px;
  background: var(--graphite);
  color: var(--ivory);
}

.story-site * {
  min-width: 0;
}

.story-site h1,
.story-site h2,
.story-site h3 {
  color: inherit;
}

.story-site .eyebrow {
  color: var(--brass);
}

.story-site .lead {
  color: rgba(255, 247, 232, 0.72);
}

.studio-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding: 136px 0 78px;
  background:
    linear-gradient(90deg, rgba(255, 247, 232, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 247, 232, 0.042) 1px, transparent 1px),
    linear-gradient(140deg, #101310 0%, #171811 42%, #2b2118 100%);
  background-size: 56px 56px, 56px 56px, auto;
}

.studio-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 150px;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent, var(--graphite));
}

.studio-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(500px, 1fr);
  gap: 70px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: 88px;
  line-height: 0.94;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero-copy .lead {
  max-width: 670px;
  font-size: 22px;
}

.story-site .button {
  border-color: rgba(255, 247, 232, 0.16);
  background: var(--ivory);
  color: var(--ink-deep);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.story-site .button:hover {
  border-color: #fff;
  background: #fff;
  color: var(--ink-deep);
}

.story-site .button.secondary {
  border-color: rgba(255, 247, 232, 0.2);
  background: rgba(255, 247, 232, 0.08);
  color: var(--ivory);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

.story-site .button.secondary:hover {
  background: rgba(255, 247, 232, 0.16);
  color: #fff;
}

.story-site .trust-row span {
  border-color: rgba(255, 247, 232, 0.14);
  background: rgba(255, 247, 232, 0.08);
  color: rgba(255, 247, 232, 0.72);
  backdrop-filter: blur(12px);
}

.book-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  min-height: 660px;
  perspective: 1400px;
}

.stage-caption {
  position: absolute;
  top: 22px;
  right: 30px;
  z-index: 5;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-radius: 999px;
  background: rgba(17, 21, 17, 0.42);
  color: rgba(255, 247, 232, 0.78);
  font-size: 12px;
  padding: 9px 12px;
  backdrop-filter: blur(14px);
}

.stage-caption span {
  color: var(--brass);
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-object {
  position: absolute;
  inset: 82px 16px 104px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 247, 232, 0.2);
  border-radius: 14px;
  background: var(--ivory);
  box-shadow: var(--motion-shadow);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(-2deg);
  transform-style: preserve-3d;
  transition: transform 260ms ease;
}

.book-object::before {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(40, 30, 20, 0.18) 49%, rgba(255, 255, 255, 0.28) 50%, transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 34%, rgba(25, 18, 12, 0.12));
}

.book-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(50% - 8px);
  z-index: 5;
  width: 16px;
  background: linear-gradient(90deg, rgba(47, 33, 22, 0.18), rgba(255, 255, 255, 0.32), rgba(47, 33, 22, 0.2));
}

.book-leaf {
  position: relative;
  min-width: 0;
  background:
    linear-gradient(90deg, rgba(64, 48, 30, 0.05) 1px, transparent 1px),
    var(--ivory);
  background-size: 18px 18px, auto;
  color: var(--ink-deep);
  padding: 32px;
}

.book-leaf.left {
  display: grid;
  align-content: end;
  gap: 14px;
}

.book-leaf.right {
  display: grid;
  align-content: center;
  padding: 54px 44px;
}

.paper-label,
.diary-kicker {
  color: var(--moss);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.leaf-photo {
  min-height: 360px;
  border-radius: 9px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 42px rgba(24, 17, 11, 0.16);
}

.book-leaf.right p:not(.diary-kicker) {
  max-width: 330px;
  margin-bottom: 24px;
  color: var(--ink-deep);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.42;
}

.mini-photo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 320px;
}

.mini-photo-row span {
  min-height: 104px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
}

.loose-print {
  position: absolute;
  z-index: 6;
  width: 176px;
  height: 230px;
  border: 10px solid var(--ivory);
  border-bottom-width: 30px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.print-one {
  right: 0;
  bottom: 42px;
  transform: rotate(7deg);
}

.print-two {
  top: 84px;
  left: -8px;
  transform: rotate(-8deg);
}

.proof-ribbon {
  overflow: hidden;
  border-top: 1px solid rgba(255, 247, 232, 0.12);
  border-bottom: 1px solid rgba(255, 247, 232, 0.12);
  background: #f1dec0;
  color: var(--ink-deep);
}

.proof-ribbon-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  animation: ribbonDrift 24s ease-in-out infinite alternate;
}

.proof-ribbon-track span {
  white-space: nowrap;
  border-right: 1px solid rgba(16, 23, 19, 0.24);
  font-size: 14px;
  font-weight: 850;
  padding-right: 16px;
}

.atelier-section,
.showpiece-section {
  background:
    linear-gradient(90deg, rgba(17, 21, 17, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 21, 17, 0.035) 1px, transparent 1px),
    var(--ivory-soft);
  background-size: 46px 46px, 46px 46px, auto;
  color: var(--ink-deep);
  padding: 110px 0;
}

.atelier-section .lead,
.showpiece-section p {
  color: rgba(16, 23, 19, 0.68);
}

.story-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.story-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(16, 23, 19, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 252, 244, 0.78);
  padding: 24px;
  box-shadow: 0 18px 54px rgba(51, 36, 18, 0.08);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.story-card::after {
  position: absolute;
  right: 18px;
  bottom: -42px;
  color: rgba(16, 23, 19, 0.05);
  content: attr(data-step);
  font-family: var(--serif);
  font-size: 116px;
}

.story-card:hover {
  border-color: rgba(16, 23, 19, 0.2);
  box-shadow: 0 22px 64px rgba(51, 36, 18, 0.12);
  transform: translateY(-3px);
}

.story-card span {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--coral);
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
}

.story-card p {
  color: rgba(16, 23, 19, 0.66);
}

.showpiece-section {
  background:
    linear-gradient(135deg, rgba(126, 197, 207, 0.11), transparent 34%),
    linear-gradient(225deg, rgba(217, 120, 86, 0.11), transparent 42%),
    #f8efe1;
}

.showpiece-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1fr);
  gap: 62px;
  align-items: center;
}

.showpiece-copy p:not(.eyebrow) {
  max-width: 520px;
  font-size: 18px;
}

.quality-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 30px;
}

.quality-list span {
  border: 1px solid rgba(16, 23, 19, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: rgba(16, 23, 19, 0.7);
  font-size: 13px;
  font-weight: 850;
  padding: 8px 11px;
}

.showpiece-section .button {
  border-color: var(--moss);
  background: var(--moss);
  color: #fff;
}

.signature-spread {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(16, 23, 19, 0.16);
  border-radius: 14px;
  background: var(--ivory);
  box-shadow: 0 34px 120px rgba(44, 31, 18, 0.2);
  transform: rotate(-1deg);
}

.spread-page {
  min-width: 0;
}

.signature-spread .image-page {
  min-height: 560px;
  background-size: cover;
  background-position: center;
}

.signature-spread .text-page {
  display: grid;
  align-content: center;
  border-left: 1px solid rgba(16, 23, 19, 0.1);
  color: var(--ink-deep);
  padding: 44px;
}

.contrast-section {
  background:
    linear-gradient(90deg, rgba(255, 247, 232, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 247, 232, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #111511, #191812 52%, #281e16);
  background-size: 52px 52px, 52px 52px, auto;
  color: var(--ivory);
  padding: 112px 0;
}

.contrast-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 0.92fr);
  gap: 72px;
  align-items: center;
}

.before-after {
  display: grid;
  gap: 14px;
}

.before-after div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  align-items: start;
  border: 1px solid rgba(255, 247, 232, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 247, 232, 0.06);
  padding: 22px;
}

.before-after strong {
  color: var(--brass);
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
}

.before-after span,
.conversion-copy p {
  color: rgba(255, 247, 232, 0.72);
}

.conversion-copy h2 {
  max-width: 720px;
  font-size: 58px;
}

.intake-shell {
  background:
    linear-gradient(135deg, rgba(217, 120, 86, 0.1), transparent 34%),
    linear-gradient(225deg, rgba(126, 197, 207, 0.1), transparent 44%),
    var(--paper);
}

.intake-page {
  min-height: calc(100svh - 170px);
  padding: 54px 0 96px;
}

.intake-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 0.92fr);
  gap: 58px;
  align-items: start;
}

.intake-aside {
  position: sticky;
  top: 32px;
  min-width: 0;
  padding-top: 12px;
}

.intake-aside h1 {
  font-size: 64px;
}

.intake-form-column {
  min-width: 0;
}

.intake-proof {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(203, 188, 172, 0.74);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.86), rgba(244, 234, 217, 0.74)),
    var(--surface);
  box-shadow: 0 18px 52px rgba(42, 31, 22, 0.08);
  color: var(--muted);
  padding: 18px;
}

.intake-proof strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.08;
}

.intake-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 26px;
}

.intake-summary span {
  border: 1px solid rgba(203, 188, 172, 0.76);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.74);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 850;
  padding: 12px;
}

.intake-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(203, 188, 172, 0.88);
}

.intake-card::before {
  display: block;
  width: 86px;
  height: 5px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terracotta), var(--brass), var(--cyan));
  content: "";
}

.intake-card[data-photo-count]:not([data-photo-count="0"])::after {
  display: inline-flex;
  margin-top: 14px;
  border: 1px solid rgba(25, 79, 66, 0.14);
  border-radius: 999px;
  background: var(--cedar-soft);
  color: var(--cedar-dark);
  content: attr(data-photo-count) " Fotos ausgewählt";
  font-size: 12px;
  font-weight: 850;
  padding: 8px 11px;
}

.file-summary {
  display: block;
  margin-top: 9px;
  color: var(--cedar-dark);
  font-size: 13px;
  font-weight: 780;
}

.file-summary:empty,
.file-summary[hidden] {
  display: none;
}

.success-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(300px, 0.58fr);
  gap: 44px;
  align-items: center;
}

.success-preview {
  display: grid;
  grid-template-columns: 1fr 0.76fr;
  grid-template-rows: 180px 180px;
  gap: 12px;
  transform: rotate(1.5deg);
}

.success-preview span {
  min-width: 0;
  border: 9px solid var(--surface);
  border-bottom-width: 28px;
  border-radius: 7px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 68px rgba(42, 31, 22, 0.16);
}

.success-preview span:first-child {
  grid-row: span 2;
}

.admin-shell {
  color: var(--ink);
}

.admin-shell > .eyebrow,
.order-shell > .eyebrow {
  color: var(--cedar);
}

.admin-shell .metric-row {
  margin-bottom: 24px;
}

.admin-shell .metric {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(244, 234, 217, 0.72)),
    var(--surface);
  box-shadow: 0 16px 42px rgba(42, 31, 22, 0.06);
}

.admin-shell .table {
  box-shadow: 0 20px 58px rgba(42, 31, 22, 0.07);
}

.order-shell > .actions {
  margin-bottom: 18px;
}

.order-shell .card {
  background: rgba(255, 253, 248, 0.94);
}

.order-shell .gallery {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
}

.order-shell .gallery img,
.order-shell .asset-file {
  height: 190px;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}

.order-shell .gallery a:hover img,
.order-shell .asset-file:hover {
  box-shadow: 0 18px 42px rgba(42, 31, 22, 0.14);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.story-card:nth-child(2) {
  transition-delay: 70ms;
}

.story-card:nth-child(3) {
  transition-delay: 140ms;
}

.story-card:nth-child(4) {
  transition-delay: 210ms;
}

@keyframes ribbonDrift {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-74px);
  }
}

@media (max-width: 1100px) {
  .studio-hero-grid,
  .showpiece-grid,
  .contrast-grid,
  .intake-grid,
  .success-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 860px;
    font-size: 70px;
  }

  .book-stage {
    min-height: 620px;
  }

  .story-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showpiece-grid {
    gap: 44px;
  }

  .intake-aside {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .home-page .nav {
    position: relative;
    background: var(--graphite);
  }

  .home-page .nav-cta {
    margin-left: 0;
  }

  .studio-hero {
    min-height: 0;
    padding: 34px 0 58px;
  }

  .studio-hero-grid {
    gap: 34px;
  }

  .hero-copy h1 {
    max-width: 10.5ch;
    font-size: 38px;
    line-height: 0.98;
  }

  .hero-copy .lead {
    max-width: 34ch;
    font-size: 18px;
  }

  .book-stage {
    width: 100%;
    min-height: 540px;
    overflow: hidden;
  }

  .story-site .trust-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .story-site .trust-row span {
    justify-content: center;
    text-align: center;
  }

  .story-site .trust-row span:last-child {
    grid-column: 1 / -1;
  }

  .book-object {
    inset: 58px 0 118px;
    grid-template-columns: 1fr;
    transform: rotate(-1deg);
  }

  .book-spine,
  .book-object::before {
    display: none;
  }

  .book-leaf {
    padding: 20px;
  }

  .book-leaf.left {
    min-height: 250px;
  }

  .book-leaf.right {
    padding: 24px;
  }

  .leaf-photo {
    min-height: 200px;
  }

  .book-leaf.right p:not(.diary-kicker) {
    font-size: 19px;
  }

  .loose-print {
    width: 118px;
    height: 154px;
    border-width: 7px;
    border-bottom-width: 22px;
  }

  .print-two {
    top: 20px;
    left: 4px;
  }

  .print-one {
    right: 12px;
    bottom: 30px;
  }

  .atelier-section,
  .showpiece-section,
  .contrast-section {
    padding: 68px 0;
  }

  .story-cards,
  .signature-spread,
  .intake-summary,
  .success-grid {
    grid-template-columns: 1fr;
  }

  .intake-page {
    padding: 34px 0 68px;
  }

  .intake-grid {
    gap: 26px;
  }

  .intake-aside h1 {
    font-size: 42px;
  }

  .success-preview {
    grid-template-rows: 128px 128px;
  }

  .story-card {
    min-height: 210px;
  }

  .signature-spread .image-page {
    min-height: 340px;
  }

  .signature-spread .text-page {
    border-top: 1px solid rgba(16, 23, 19, 0.1);
    border-left: 0;
    padding: 28px;
  }

  .before-after div {
    grid-template-columns: 1fr;
  }

  .conversion-copy h2 {
    font-size: 40px;
  }

  .proof-ribbon-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
}

@media (max-width: 430px) {
  .hero-copy h1 {
    max-width: 10ch;
    font-size: 36px;
  }

  .book-stage {
    min-height: 510px;
  }

  .stage-caption {
    right: 10px;
  }

  .story-card {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .proof-ribbon-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  body {
    background: #fff;
  }

  body::before,
  .print-toolbar,
  .nav,
  .footer {
    display: none !important;
  }

  .sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 0;
    box-shadow: none;
    page-break-after: always;
  }
}
