:root {
  --ink: #1a1814;
  --paper: #f3efe6;
  --paper-deep: #e7e0d2;
  --line: #c9c0b0;
  --accent: #9a3412;
  --accent-ink: #fff7ed;
  --muted: #6b6458;
  --error: #8b1e1e;
  --ok: #3f5d3a;
  --shadow: 0 18px 50px rgba(26, 24, 20, 0.12);
  --radius: 2px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse at top, #faf6ee 0%, transparent 55%),
    linear-gradient(160deg, #ebe4d6 0%, var(--paper) 45%, #ddd4c4 100%);
}

.page {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
  align-items: center;
}

.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.home-hero {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.home-hero h1 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.home-hero-links {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.home-hero-links a {
  color: var(--accent);
  font-weight: 600;
}

.content-page h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.15;
}

.content-page .lede {
  max-width: 42rem;
}

.content-page .city-grid,
.content-page .theme-grid,
.content-page .example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.content-page .city-grid a,
.content-page .theme-grid a,
.content-page .example-grid a {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.content-page .city-grid a:hover,
.content-page .theme-grid a:hover,
.content-page .example-grid a:hover {
  border-color: var(--accent);
}

.content-page .theme-grid a span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.9rem;
}

.content-page .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 0.5rem;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-bottom: 0.85rem;
}

.foot-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.foot-nav a:hover {
  color: var(--ink);
}

.shell {
  background: rgba(255, 252, 246, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.steps {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  padding: 0;
  margin: 0 0 1.75rem;
  flex-wrap: wrap;
}

.step {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: default;
}

.step.is-active {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.step.is-done {
  color: var(--ok);
  cursor: pointer;
}

.step.is-done:hover {
  color: var(--ink);
}

.panel {
  display: none;
}

.panel.is-visible {
  display: block;
  animation: rise 280ms ease-out;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 38rem;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.span-2 {
  grid-column: 1 / -1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

input,
select,
button {
  font: inherit;
}

input,
select {
  appearance: none;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
  font-weight: 400;
}

input:focus,
select:focus {
  outline: 2px solid rgba(154, 52, 18, 0.35);
  outline-offset: 1px;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.result .lede {
  margin-bottom: 1rem;
}

.order-ref {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 36rem;
}

.order-ref-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.order-ref-id {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn.ghost {
  background: transparent;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.preview-actions {
  margin: 0 0 1rem;
}

.share-preview-status {
  margin: 0 0 0.75rem;
  color: var(--ok);
}

.recent {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.recent h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 500;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.recent-lede {
  margin-bottom: 1.1rem;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.9rem;
}

.recent-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0;
  border: 1px solid var(--line);
  background: #fffdf8;
  text-align: left;
  cursor: pointer;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}

.recent-card:hover,
.recent-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-1px);
  outline: none;
}

.recent-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  background: var(--paper-deep);
  display: block;
}

.recent-card .meta {
  padding: 0 0.55rem 0.65rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

.recent-card .meta strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.preview-frame {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  padding: 1.25rem;
  display: grid;
  place-items: center;
}

.preview-frame img {
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.mini-preview img {
  width: 100%;
  display: block;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mini-preview p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.place-field,
.address-field {
  position: relative;
}

.place-mode {
  display: inline-flex;
  margin: 0 0 0.55rem;
  border: 1px solid var(--line);
  background: #fffdf8;
}

.place-mode-btn {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  box-shadow: none;
}

.place-mode-btn + .place-mode-btn {
  border-left: 1px solid var(--line);
}

.place-mode-btn.is-active,
.place-mode-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.place-mode-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  z-index: 1;
}

#place-input-label {
  display: block;
  margin-bottom: 0.35rem;
}

.place-suggestions {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.2rem 0;
  position: static;
  width: 100%;
  max-height: 16rem;
  overflow: auto;
  background: #fffdf8;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 5;
}

.place-suggestions li {
  margin: 0;
}

.place-suggestions button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0.65rem 0.8rem;
  cursor: pointer;
  font-weight: 400;
  border-radius: 0;
}

.place-suggestions button:hover,
.place-suggestions button.is-active,
.place-suggestions button:focus-visible {
  background: rgba(154, 52, 18, 0.08);
}

.place-hint {
  margin-top: 0.45rem;
}

.place-selected {
  margin-top: 0.35rem;
  color: var(--ink);
}

.address-suggestions {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0.2rem 0;
  position: static;
  width: 100%;
  background: #fffdf8;
  border: 1px solid var(--line);
  max-height: 11rem;
  overflow: auto;
}

.address-suggestions li {
  margin: 0;
}

.address-suggestions button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.35;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

.address-suggestions button:hover,
.address-suggestions button.is-active,
.address-suggestions button:focus-visible {
  background: var(--paper-deep);
  outline: none;
}

.price-box {
  margin-top: 0.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: #fffdf8;
}

.price-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.price-rows {
  margin: 0;
}

.price-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.price-rows dt {
  margin: 0;
  font-weight: 500;
}

.price-rows dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

.price-total {
  margin-top: 0.35rem;
  padding-top: 0.45rem !important;
  border-top: 1px solid var(--line);
  color: var(--ink) !important;
  font-weight: 600;
}

.price-note {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.error {
  color: var(--error);
  margin-top: 1rem;
}

.notify-ready {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: #fffdf8;
  max-width: 36rem;
}

.notify-ready-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.55rem;
}

.notify-ready-form input[type="email"] {
  flex: 1 1 12rem;
  min-width: 10rem;
}

.status {
  color: var(--ok);
  margin-top: 1rem;
}

.foot {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 42rem;
}

.foot p {
  margin: 0;
  line-height: 1.45;
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.85rem;
}

.foot-legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.foot-copy {
  margin-bottom: 0.55rem;
  color: var(--ink);
}

.foot-attr {
  color: var(--muted);
}

.legal-ack a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-page {
  max-width: 42rem;
}

.legal-page h1 {
  margin-bottom: 0.75rem;
}

.legal-meta-block {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
}

.legal-meta {
  margin: 0.2rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-body h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.55rem;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
}

.legal-body h3 {
  margin-top: 1.15rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.legal-body p,
.legal-body li {
  line-height: 1.55;
}

.legal-body ul {
  padding-left: 1.2rem;
}

.legal-table-wrap {
  overflow-x: auto;
  margin: 0.85rem 0 1.1rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
}

.legal-table th {
  color: var(--muted);
  font-weight: 600;
}

.legal-back {
  margin-top: 2rem;
}

.legal-back a {
  color: var(--ink);
}

.seo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.75rem;
}

.seo-thumb {
  margin: 0;
}

.seo-thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
  background: var(--ink);
}

.seo-thumb figcaption {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: capitalize;
}

.faq {
  margin-top: 2rem;
}

.faq dl {
  margin: 0.75rem 0 0;
}

.faq dt {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--ink);
}

.faq dd {
  margin: 0.35rem 0 0;
  color: color-mix(in srgb, var(--ink) 88%, transparent);
}

.cities-browse .cities-hero {
  margin-top: 0.5rem;
}

.cities-kicker {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cities-lede {
  max-width: 36rem;
}

.cities-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: start;
}

.city-pick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.city-pick {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
  align-items: center;
  padding: 0.55rem 0.15rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.city-pick-thumb {
  width: 42px;
  height: 63px;
  object-fit: cover;
  flex: none;
  background: var(--paper-deep);
  box-shadow: var(--shadow);
}

.city-pick:hover,
.city-pick:focus-visible,
.city-pick.is-selected {
  color: var(--accent);
  outline: none;
}

.city-pick-name {
  flex: 1;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.city-pick-meta {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.cities-preview figure {
  margin: 0;
}

.cities-preview img {
  width: min(100%, 420px);
  height: auto;
  display: block;
  box-shadow: var(--shadow);
  background: var(--paper-deep);
}

.cities-preview figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .form-grid,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .cities-layout {
    grid-template-columns: 1fr;
  }

  .top {
    flex-direction: column;
    align-items: flex-start;
  }
}
