:root {
  color-scheme: light;
  --ink: #24302a;
  --coal: #3b3832;
  --paper: #f8f3ea;
  --paper-2: #fffdf7;
  --bone: #ede4d6;
  --line: #d2c4b3;
  --muted: #746e66;
  --gum: #647d68;
  --gum-dark: #3f574b;
  --clay: #9e6752;
  --gold: #b49361;
  --blue: #496d79;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(36, 48, 42, 0.1);
  --soft-shadow: 0 12px 30px rgba(36, 48, 42, 0.07);
  --line-soft: #e3d8c6;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --pill: 999px;
  --max: 1180px;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.58;
  letter-spacing: 0;
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

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

input,
select,
textarea {
  min-width: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--paper-2);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 243, 234, 0.94);
  padding: 9px clamp(16px, 4vw, 44px);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  justify-self: end;
  min-width: 62px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font-weight: 900;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: var(--pill);
  padding: 7px 13px;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 780;
  text-transform: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
  border-color: var(--line);
  background: var(--paper-2);
  outline: none;
}

.site-nav .nav-cta {
  margin-left: 6px;
  border-color: var(--line);
  background: var(--clay);
  color: var(--paper-2);
}

.home-hero {
  min-height: calc(58svh - 64px);
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(36, 48, 42, 0.82), rgba(36, 48, 42, 0.5) 43%, rgba(36, 48, 42, 0.08) 78%),
    url("assets/memorial-table.png") center / cover no-repeat;
  color: var(--paper-2);
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(24px, 4vw, 38px);
}

.home-hero-inner,
.page-hero-inner,
.page-shell,
.band-inner,
.site-footer-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.home-hero-copy {
  max-width: 980px;
}

.home-hero h1 {
  max-width: 1060px;
  font-size: clamp(2.55rem, 5vw, 4.75rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.home-hero .eyebrow,
.dark-band .eyebrow,
.page-hero .eyebrow {
  color: #f0c16e;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1,
h2,
.serif {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  max-width: 920px;
  font-size: clamp(2.45rem, 5.8vw, 5.15rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 3.35rem);
}

h3 {
  font-size: 1.02rem;
}

.hero-text,
.page-hero-text {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(255, 250, 240, 0.9);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: var(--paper-2);
  color: var(--ink);
  padding: 9px 18px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 820;
  text-transform: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--gold);
  outline: none;
  transform: translateY(-1px);
}

.button.dark {
  background: var(--ink);
  color: var(--paper-2);
}

.button.clay {
  background: var(--clay);
  color: var(--paper-2);
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(20px, 3.4vw, 34px) clamp(20px, 5vw, 64px);
}

.proof-strip div {
  flex: 1 1 150px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--soft-shadow);
  padding: 18px 20px;
}

.proof-strip dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-strip dd {
  margin: 8px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.18rem, 1.8vw, 1.85rem);
  line-height: 1;
}

.home-grid,
.routes-grid,
.feature-grid,
.price-grid,
.steps-grid,
.split {
  display: grid;
  gap: clamp(14px, 1.6vw, 20px);
}

.home-grid {
  grid-template-columns: 0.84fr 1.16fr;
  gap: 0;
}

.editorial-block {
  min-height: 330px;
  padding: clamp(26px, 4vw, 46px);
}

.editorial-block p {
  color: var(--muted);
  max-width: 620px;
  font-size: 0.98rem;
}

.callout-image {
  min-height: 330px;
  background: url("assets/memorial-table.png") center / cover no-repeat;
}

.example-showcase {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  background: var(--paper-2);
}

.example-copy {
  padding: clamp(28px, 4.6vw, 58px);
}

.example-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
}

.tribute-preview {
  display: grid;
  grid-template-columns: minmax(180px, 0.86fr) minmax(240px, 1.14fr);
  min-height: 410px;
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.tribute-preview-cover {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(36, 48, 42, 0.02), rgba(36, 48, 42, 0.18)),
    url("assets/memorial-table.png") center / cover no-repeat;
}

.tribute-preview-body {
  align-self: center;
  padding: clamp(24px, 4vw, 44px);
}

.tribute-preview h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 3.15rem);
}

.tribute-preview p {
  color: var(--muted);
}

.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.preview-tabs span {
  border: 1px solid var(--line-soft);
  border-radius: var(--pill);
  background: var(--paper-2);
  padding: 7px 13px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.routes-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 32px) clamp(20px, 5vw, 64px) clamp(34px, 5vw, 58px);
}

.route {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--soft-shadow);
  padding: clamp(22px, 3.2vw, 32px);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.route:hover,
.route:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  outline: none;
}

.route-number {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--clay);
  font-size: 2.1rem;
  line-height: 1;
}

.route p {
  color: var(--muted);
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(36, 48, 42, 0.88), rgba(36, 48, 42, 0.66)),
    url("assets/memorial-table.png") center / cover no-repeat;
  color: var(--paper-2);
  padding: clamp(54px, 8vw, 92px) clamp(20px, 5vw, 64px) clamp(34px, 5vw, 58px);
}

.page-hero.compact {
  min-height: 280px;
}

.page-shell {
  padding: clamp(28px, 5vw, 58px) clamp(20px, 5vw, 64px);
}

.band {
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(38px, 5.6vw, 70px) clamp(20px, 5vw, 64px);
}

.band.alt {
  background: var(--paper-2);
}

.dark-band {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper-2);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 26px;
}

.section-heading.compact-heading {
  margin-bottom: 16px;
}

.section-heading p {
  color: var(--muted);
  font-size: 0.98rem;
}

.dark-band .section-heading p {
  color: rgba(255, 250, 240, 0.74);
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.feature {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--soft-shadow);
  padding: 24px 22px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.feature p {
  margin: 6px 0 0;
  color: var(--muted);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background-color: #efe1d8;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px 21px;
}

.feature:nth-child(3n + 2) .feature-icon {
  background-color: #dfe7e0;
}

.feature:nth-child(3n + 3) .feature-icon {
  background-color: #ece3d2;
}

.ic-heart {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3832' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.5-7-9.5A3.5 3.5 0 0 1 12 8a3.5 3.5 0 0 1 7 2.5C19 15.5 12 20 12 20z'/%3E%3C/svg%3E");
}

.ic-book {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3832' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h11a2 2 0 0 1 2 2v14H7a2 2 0 0 1-2-2V4z'/%3E%3Cpath d='M5 16h13'/%3E%3C/svg%3E");
}

.ic-timeline {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3832' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 5v14'/%3E%3Ccircle cx='8' cy='8' r='1.6'/%3E%3Ccircle cx='8' cy='16' r='1.6'/%3E%3Cpath d='M12 8h6M12 16h6'/%3E%3C/svg%3E");
}

.ic-photo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3832' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M4 16l4-3 4 3 3-2 5 4'/%3E%3C/svg%3E");
}

.ic-message {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3832' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5h14a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1H9l-4 3V6a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.ic-qr {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3832' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6' height='6' rx='1'/%3E%3Crect x='14' y='4' width='6' height='6' rx='1'/%3E%3Crect x='4' y='14' width='6' height='6' rx='1'/%3E%3Cpath d='M14 14h2v2M18 18h2M18 14v6'/%3E%3C/svg%3E");
}

.ic-shield {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3832' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l7 2v5c0 4-3 7-7 8-4-1-7-4-7-8V6l7-2z'/%3E%3Cpath d='M9.5 12l2 2 3.5-4'/%3E%3C/svg%3E");
}

.ic-tag {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3832' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 4H5a1 1 0 0 0-1 1v6l9 9 7-7-9-9z'/%3E%3Ccircle cx='8' cy='8' r='1.3'/%3E%3C/svg%3E");
}

.ic-clock {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3832' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v4l3 2'/%3E%3C/svg%3E");
}

.ic-layout {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3832' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M4 9h16M9 9v11'/%3E%3C/svg%3E");
}

.ic-help {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3832' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 0 1 4 2c0 1.5-2 1.8-2 3'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

.price-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

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

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  box-shadow: var(--soft-shadow);
  padding: 28px 26px;
}

.price-card.featured {
  border: 2px solid var(--gold);
  background: #fbf0db;
}

.pricing-note {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--soft-shadow);
  padding: clamp(22px, 3vw, 32px);
}

.pricing-note p {
  max-width: 760px;
  color: var(--muted);
}

.price {
  margin: 16px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  line-height: 0.9;
}

.price span {
  display: block;
  color: var(--muted);
  font-family: "Segoe UI", Inter, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.plain-list {
  display: grid;
  gap: 7px;
  margin: 16px 0 22px;
  padding: 0;
  list-style: none;
}

.plain-list li {
  color: var(--muted);
}

.plain-list li::before {
  content: "/";
  margin-right: 8px;
  color: var(--clay);
  font-weight: 950;
}

.price-card .button,
.form-panel .button {
  margin-top: auto;
}

.split {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
}

.split > * {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--soft-shadow);
  padding: clamp(24px, 3.5vw, 38px);
}

.poster-panel {
  background: var(--paper-2);
  padding: clamp(18px, 2.5vw, 26px);
}

.poster-panel img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.steps-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.step {
  min-height: 190px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--soft-shadow);
  padding: 26px 24px;
}

.step strong {
  display: block;
  margin-bottom: 24px;
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(360px, 1.26fr);
  gap: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  background: var(--paper-2);
}

.form-intro,
.form-panel {
  padding: clamp(22px, 3.5vw, 36px);
}

.form-intro {
  border-right: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper-2);
}

.form-intro p {
  color: rgba(255, 250, 240, 0.76);
}

.form-panel {
  background: var(--paper-2);
}

.account-note {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 16px;
}

.account-note strong,
.account-note p {
  margin: 0;
}

.oauth-option {
  display: grid;
  gap: 14px;
}

.google-auth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid #747775;
  border-radius: 4px;
  background: #fff;
  color: #1f1f1f;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.google-auth-button:hover,
.google-auth-button:focus-visible {
  border-color: #1a73e8;
  background: #f8faff;
}

.google-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.account-note p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0;
}

body.account-signed-in .page-hero.compact {
  display: none;
}

body.account-signed-in .page-shell {
  padding-top: clamp(16px, 2vw, 24px);
}

.form-layout.is-signed-in {
  grid-template-columns: 1fr;
}

.form-layout.is-signed-in .form-intro,
.form-layout.is-signed-in > .form-panel {
  display: none;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
}

.auth-tab {
  min-height: 46px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-weight: 850;
  text-transform: none;
  cursor: pointer;
}

.auth-tab:last-child {
  border-right: 0;
}

.auth-tab.active {
  background: var(--gold);
}

.auth-view {
  display: none;
}

.auth-view.active {
  display: block;
}

.auth-form,
.tribute-form,
.guestbook-form {
  display: grid;
  gap: 14px;
}

.compact-auth-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.04em;
  text-transform: none;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  color: var(--ink);
  padding: 11px 13px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(168, 79, 57, 0.22);
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: 0;
}

.checkbox-line input {
  width: auto;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--gum-dark);
  font-weight: 900;
}

.dashboard {
  grid-column: 1 / -1;
  padding: clamp(16px, 2.6vw, 26px);
  background: var(--paper-2);
}

.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-head p {
  color: var(--muted);
}

.signout-button {
  min-height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: var(--pill);
  background: transparent;
  color: var(--muted);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
}

.signout-button:hover,
.signout-button:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.dashboard-tab {
  min-height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: var(--pill);
  background: var(--paper);
  color: var(--ink);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 850;
}

.dashboard-tab.active {
  background: var(--ink);
  color: var(--paper-2);
}

.dashboard-tab span {
  display: inline-grid;
  min-width: 1.7em;
  min-height: 1.7em;
  place-items: center;
  margin-left: 7px;
  border: 1px solid currentColor;
  border-radius: var(--pill);
  padding: 0 5px;
  font-size: 0.72rem;
}

.dashboard-panels {
  display: block;
}

.dashboard-panel {
  display: grid;
  gap: 18px;
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
  background: var(--paper);
  padding: clamp(18px, 2.6vw, 26px);
}

.dashboard-panel[hidden] {
  display: none;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 0;
}

.dashboard-stats div {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: var(--paper-2);
}

.dashboard-stats strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1;
}

.dashboard-stats span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 820;
  text-transform: none;
}

.tribute-list {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.tribute-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  background: var(--paper-2);
  padding: 20px;
}

.tribute-item h4 {
  margin: 0;
}

.tribute-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.tribute-url {
  color: var(--blue);
  font-weight: 900;
}

.visibility-pill {
  align-self: start;
  border: 1px solid var(--line-soft);
  border-radius: var(--pill);
  background: var(--gold);
  padding: 6px 13px;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tribute-item-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.button.danger {
  background: var(--paper-2);
  color: var(--clay);
  border-color: var(--clay);
}

.button.danger:hover,
.button.danger:focus-visible {
  background: var(--clay);
  color: var(--paper-2);
}

.tribute-photos {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.tribute-photos-head {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: 0.85rem;
}

.photo-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.photo-thumb {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.photo-thumb img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
}

.photo-delete {
  position: absolute;
  top: 4px;
  right: 4px;
  border: 0;
  background: rgba(36, 48, 42, 0.82);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 7px;
  cursor: pointer;
}

.photo-upload {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.photo-upload input {
  display: block;
  margin-top: 6px;
}

.moderation-panel {
  display: grid;
  gap: 16px;
}

.moderation-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #f3dfc1;
  padding: 18px 20px;
}

.moderation-banner h3,
.moderation-banner p {
  margin: 0;
}

.moderation-banner p {
  color: var(--muted);
}

.moderation-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.moderation-tab {
  min-height: 38px;
  border: 1px solid var(--line-soft);
  border-radius: var(--pill);
  background: var(--paper);
  color: var(--ink);
  padding: 7px 14px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
}

.moderation-tab.active {
  background: var(--ink);
  color: var(--paper-2);
}

.moderation-list {
  display: grid;
  gap: 12px;
}

.account-verification {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  background: var(--paper-2);
  padding: 20px;
}

.payment-panel {
  margin-top: 18px;
}

.account-verification h2,
.account-verification p {
  margin: 0;
}

.account-verification p {
  color: var(--muted);
}

.email-preview-list {
  display: grid;
  gap: 12px;
}

.moderation-card,
.audit-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  background: var(--paper);
  padding: 18px 20px;
}

.moderation-card.pending {
  background: var(--paper-2);
}

.moderation-card.target-memory {
  box-shadow: inset 0 0 0 3px rgba(180, 147, 97, 0.45);
}

.moderation-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.moderation-panel .moderation-card-head {
  align-items: stretch;
  flex-direction: column;
}

.moderation-card h3,
.moderation-card p,
.moderation-card blockquote,
.audit-item p {
  margin: 0;
}

.moderation-card p,
.audit-item p {
  color: var(--muted);
}

.moderation-card blockquote {
  margin-top: 14px;
  border-left: 3px solid var(--clay);
  padding-left: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

.status-pill,
.flag-row span {
  align-self: start;
  border: 1px solid var(--line-soft);
  border-radius: var(--pill);
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.pending {
  background: #f3dfc1;
}

.status-pill.approved {
  background: #dfeadd;
}

.status-pill.hidden,
.status-pill.deleted {
  background: var(--bone);
}

.flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.flag-row span {
  background: var(--paper-2);
  color: var(--clay);
}

.moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.approval-toast {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: 40;
  width: min(360px, calc(100vw - 28px));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper-2);
  box-shadow: var(--shadow);
  padding: 18px;
}

.approval-toast p {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 850;
}

.approval-toast div {
  display: flex;
  gap: 8px;
}

.tribute-page {
  background: var(--paper-2);
}

.tribute-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(340px, 0.94fr);
  min-height: 520px;
  border-bottom: 1px solid var(--line-soft);
}

.tribute-hero-media {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--gum);
}

.tribute-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 48, 42, 0.02), rgba(36, 48, 42, 0.16));
  pointer-events: none;
}

.tribute-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  display: block;
}

.tribute-hero-panel {
  display: grid;
  align-content: center;
  background: var(--paper);
  padding: clamp(28px, 5vw, 64px);
}

.tribute-dates {
  margin: 14px 0 0;
  color: var(--clay);
  font-size: 0.95rem;
  font-weight: 850;
}

.tribute-line {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.tribute-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.example-disclaimer {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.tribute-tabs {
  position: sticky;
  top: 64px;
  z-index: 12;
  display: flex;
  justify-content: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 247, 0.94);
  padding: 9px clamp(16px, 4vw, 44px);
  backdrop-filter: blur(12px);
}

.tribute-tabs a {
  border: 1px solid transparent;
  border-radius: var(--pill);
  padding: 7px 13px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 850;
}

.tribute-tabs a:hover,
.tribute-tabs a:focus-visible {
  border-color: var(--line);
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.tribute-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: clamp(18px, 2.5vw, 32px);
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 42px) clamp(16px, 4vw, 28px);
}

.tribute-main {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
  align-content: start;
  min-width: 0;
}

.tribute-section,
.side-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
  background: var(--paper-2);
  padding: clamp(24px, 3.5vw, 40px);
}

.tribute-section p:not(.eyebrow),
.side-panel p {
  color: var(--muted);
}

.tribute-section > p:not(.eyebrow) {
  max-width: 760px;
}

.timeline-list {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.timeline-list div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.timeline-list strong {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.timeline-list p {
  margin: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-auto-rows: 170px;
  gap: 10px;
  margin-top: 24px;
}

.photo-tile {
  position: relative;
  min-height: 140px;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gum);
}

.photo-tile.large {
  grid-row: span 2;
}

.photo-tile.wide {
  grid-column: 1 / -1;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}

.photo-tile:hover img {
  transform: scale(1.02);
}

.photo-tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  background: linear-gradient(180deg, transparent, rgba(24, 35, 30, 0.9));
  padding: 32px 14px 12px;
  color: var(--paper-2);
  font-size: 0.78rem;
  font-weight: 750;
}

.photo-tile-link {
  display: block;
  min-height: 140px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.photo-tile-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.memory-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.memory-list article {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 18px 20px;
}

.memory-list strong {
  color: var(--clay);
}

.memory-list p {
  margin: 8px 0 0;
}

.memory-list small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.guestbook-form {
  margin-top: 28px;
  border-top: 1px solid var(--line-soft);
  padding-top: 24px;
}

.tribute-side {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
  align-content: start;
  min-width: 0;
  background: transparent;
}

.side-panel h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

/* Real QR codes, rendered from assets/qrcode.js into [data-qr] panels and
   dashboard tribute cards. The white frame keeps the code scannable on any
   background; the SVG scales crisply for print. */
.qr-image {
  width: 150px;
  max-width: 100%;
  margin: 18px 0;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  box-shadow: var(--soft-shadow);
}

.qr-image svg {
  display: block;
  width: 100%;
  height: auto;
}

.qr-image.small {
  width: 116px;
  margin: 12px 0;
}

.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tribute-qr {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.tribute-share-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.soft-panel {
  background: #f3dfc1;
}

.quote-band {
  border-bottom: 1px solid var(--line);
  background: var(--clay);
  color: var(--paper-2);
  padding: clamp(28px, 5vw, 52px) clamp(20px, 5vw, 64px);
}

.quote-band blockquote {
  width: min(var(--max), 100%);
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 3.1rem);
  line-height: 1.12;
}

.site-footer {
  background: var(--ink);
  color: var(--paper-2);
  padding: 28px clamp(20px, 5vw, 64px);
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 250, 240, 0.72);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: rgba(255, 250, 240, 0.82);
  text-decoration: none;
  font-weight: 900;
}

.legal-content {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) 0;
}

.legal-content h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.legal-content p,
.legal-content li {
  line-height: 1.72;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  padding-left: 1.3rem;
}

.legal-content a {
  color: var(--clay);
  font-weight: 750;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    grid-column: 1 / -1;
    display: none;
    justify-content: stretch;
    align-items: stretch;
    flex-direction: column;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .site-header.menu-active .site-nav {
    display: flex;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }

  .home-grid,
  .example-showcase,
  .split,
  .form-layout,
  .tribute-hero,
  .tribute-layout {
    grid-template-columns: 1fr;
  }

  .home-grid > *,
  .tribute-preview,
  .tribute-hero-panel,
  .form-intro {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .tribute-preview,
  .tribute-hero-panel {
    border-left: 0;
  }

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

  .price-grid,
  .price-grid.simple-pricing,
  .proof-strip,
  .routes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .brand small {
    display: none;
  }

  .home-hero {
    min-height: calc(58svh - 64px);
  }

  h1 {
    font-size: clamp(2.25rem, 11.5vw, 3.55rem);
  }

  .button-row .button,
  .price-card .button {
    width: 100%;
  }

  .proof-strip,
  .routes-grid,
  .feature-grid,
  .price-grid,
  .price-grid.simple-pricing,
  .tribute-preview,
  .steps-grid,
  .field-pair,
  .dashboard-stats {
    grid-template-columns: 1fr;
  }

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

  .signout-button {
    width: 100%;
  }

  .dashboard-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-tab {
    width: 100%;
  }

  .account-verification {
    grid-template-columns: 1fr;
  }

  .proof-strip div,
  .route {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .callout-image {
    min-height: 240px;
  }

  .tribute-preview-cover {
    min-height: 240px;
  }

  .tribute-hero {
    min-height: auto;
  }

  .tribute-hero-media {
    min-height: 260px;
  }

  .tribute-tabs {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .moderation-banner,
  .moderation-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .moderation-banner .button {
    width: 100%;
  }

  .approval-toast div {
    flex-direction: column;
  }

  .timeline-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 150px;
  }

  .photo-tile.large {
    grid-row: span 1;
  }

  .photo-tile.wide {
    grid-column: auto;
  }

  .price-card {
    min-height: unset;
  }

  .tribute-item,
  .site-footer-inner {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
}

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