@import url("/fonts/fonts.css");
/**
 * Wedding Peach Template - Styles
 * Uses local fonts from /public/fonts/: Lora (titles), Open Sans (body)
 * Color palette: Peach/Orange/Rose warm tones
 */

/* =============================================================================
   FONT FACES - Local fonts from /public/fonts/
   ============================================================================= */

@font-face {
  font-family: "Lora";
  src: url("/fonts/Lora/Lora-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("/fonts/Lora/Lora-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/fonts/Open_Sans/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Open Sans";
  src: url("/fonts/Open_Sans/OpenSans-Italic-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}

/* =============================================================================
   CSS RESET & BASE STYLES
   ============================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
  font-size: 16px;
}

body {
  font-family: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: inherit;
}

/* =============================================================================
   COLOR VARIABLES (Peach/Orange/Rose warm palette)
   ============================================================================= */

:root {
  /* Orange palette */
  --color-orange-50: #fff7ed;
  --color-orange-100: #ffedd5;
  --color-orange-200: #fed7aa;
  --color-orange-300: #fdba74;
  --color-orange-400: #fb923c;
  --color-orange-500: #f97316;
  --color-orange-700: #c2410c;

  /* Rose palette */
  --color-rose-50: #fff1f2;
  --color-rose-100: #ffe4e6;
  --color-rose-200: #fecdd3;
  --color-rose-300: #fda4af;

  /* Emerald for accents */
  --color-emerald-50: #ecfdf5;
  --color-emerald-100: #d1fae5;
  --color-emerald-300: #6ee7b7;
  --color-emerald-400: #34d399;
  --color-emerald-500: #10b981;

  /* Slate for text */
  --color-slate-400: #94a3b8;
  --color-slate-500: #64748b;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-800: #1e293b;
  --color-slate-900: #0f172a;

  /* Neutrals */
  --color-white: #ffffff;
  --color-gray-100: #f3f4f6;
}

/* =============================================================================
   LAYOUT UTILITIES
   ============================================================================= */

.min-h-screen {
  min-height: 100vh;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-xs {
  max-width: 20rem;
}

.max-w-sm {
  max-width: 24rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.grid {
  display: grid;
}

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

/* =============================================================================
   SPACING UTILITIES
   ============================================================================= */

.p-6 {
  padding: 1.5rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.pt-6 {
  padding-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-8 {
  margin-top: 2rem;
}

.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-6 {
  gap: 1.5rem;
}

.space-y-4 > :not(:last-child) {
  margin-bottom: 1rem;
}
.space-y-5 > :not(:last-child) {
  margin-bottom: 1.25rem;
}
.space-y-6 > :not(:last-child) {
  margin-bottom: 1.5rem;
}
.space-y-8 > :not(:last-child) {
  margin-bottom: 2rem;
}

/* =============================================================================
   SIZING UTILITIES
   ============================================================================= */

.h-1 {
  height: 0.25rem;
}
.h-2 {
  height: 0.5rem;
}
.h-px {
  height: 1px;
}
.h-56 {
  height: 14rem;
}

.w-2 {
  width: 0.5rem;
}
.w-4 {
  width: 1rem;
}
.w-5 {
  width: 1.25rem;
}
.w-6 {
  width: 1.5rem;
}
.w-12 {
  width: 3rem;
}
.w-14 {
  width: 3.5rem;
}
.h-14 {
  height: 3.5rem;
}
.w-16 {
  width: 4rem;
}
.w-full {
  width: 100%;
}

/* =============================================================================
   TYPOGRAPHY UTILITIES
   ============================================================================= */

.text-xs {
  font-size: 0.75rem;
  line-height: 1.5;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.5;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.5;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 1.333;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 1.111;
}

.leading-tight {
  line-height: 1.25;
}
.leading-relaxed {
  line-height: 1.625;
}

.tracking-wider {
  letter-spacing: 0.05em;
}

.whitespace-pre-line {
  white-space: pre-line;
}

.break-all {
  word-break: break-all;
}

/* =============================================================================
   COLOR UTILITIES
   ============================================================================= */

.bg-white {
  background-color: var(--color-white);
}
.bg-orange-50 {
  background-color: var(--color-orange-50);
}
.bg-orange-300 {
  background-color: var(--color-orange-300);
}

.bg-gradient-peach {
  background: linear-gradient(
    to bottom right,
    var(--color-orange-50),
    var(--color-rose-50),
    var(--color-emerald-50)
  );
}

.bg-gradient-peach-light {
  background: linear-gradient(to bottom, rgba(255, 247, 237, 0.3), var(--color-white));
}

.bg-gradient-peach-button {
  background: linear-gradient(to right, var(--color-orange-200), var(--color-rose-100));
}

.bg-gradient-peach-accent {
  background: linear-gradient(
    to right,
    var(--color-orange-300),
    var(--color-rose-300),
    var(--color-orange-300)
  );
}

.bg-gradient-peach-icon {
  background: linear-gradient(to bottom right, var(--color-orange-100), var(--color-rose-50));
}

.bg-gradient-emerald-icon {
  background: linear-gradient(to bottom right, var(--color-emerald-100), var(--color-emerald-50));
}

.bg-gradient-divider {
  background: linear-gradient(to right, transparent, var(--color-orange-200), transparent);
}

.text-slate-400 {
  color: var(--color-slate-400);
}
.text-slate-500 {
  color: var(--color-slate-500);
}
.text-slate-600 {
  color: var(--color-slate-600);
}
.text-slate-700 {
  color: var(--color-slate-700);
}
.text-slate-800 {
  color: var(--color-slate-800);
}
.text-slate-900 {
  color: var(--color-slate-900);
}

.text-orange-300 {
  color: var(--color-orange-300);
}
.text-orange-400 {
  color: var(--color-orange-400);
}
.text-orange-500 {
  color: var(--color-orange-500);
}
.text-orange-700 {
  color: var(--color-orange-700);
}

.text-emerald-400 {
  color: var(--color-emerald-400);
}

.border-t {
  border-top: 1px solid;
}
.border-orange-100 {
  border-color: var(--color-orange-100);
}

.rounded-full {
  border-radius: 9999px;
}
.rounded-2xl {
  border-radius: 1rem;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
.shadow-2xl {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.opacity-60 {
  opacity: 0.6;
}

/* =============================================================================
   TRANSITION UTILITIES
   ============================================================================= */

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* =============================================================================
   HOVER STATES
   ============================================================================= */

@media (hover: hover) {
  .hover\:text-orange-500:hover {
    color: var(--color-orange-500);
  }
  .hover\:text-emerald-500:hover {
    color: var(--color-emerald-500);
  }
  .hover\:opacity-90:hover {
    opacity: 0.9;
  }
}

/* ------------------------------------------------------------
   Template defaults
   ------------------------------------------------------------ */
:root {
  --template-font-family: "Lora", serif;
}

html {
  font-family: var(--template-font-family);
}

body {
  font-family: inherit;
}

/* ------------------------------------------------------------
   Hero section styling
   ------------------------------------------------------------ */
.hero-section {
  position: relative;
  min-height: 740px;
}

/* ------------------------------------------------------------
   Thumbnail mode (/?view=thumbnail)
   ------------------------------------------------------------ */
html.is-thumbnail #root {
  min-height: 0;
}

html.is-thumbnail #root > .max-w-md > section:not(.hero-section):not(.tpl-hero),
html.is-thumbnail #root > .max-w-md > .w-20,
html.is-thumbnail #root > .max-w-md > footer {
  display: none !important;
}

/* ------------------------------------------------------------
   Per-field typography tokens
   ------------------------------------------------------------ */
:root {
  /* Title (hero) */
  --tpl-title-font-family: "Amatic SC", cursive;
  --tpl-title-font-size: 43px;
  --tpl-title-font-weight: 500;
  --tpl-title-line-height: 1.3;
  --tpl-title-color: #1e293b;

  /* Date / time */
  --tpl-date-font-family: "Open Sans", sans-serif;
  --tpl-date-font-size: 17px;
  --tpl-date-font-weight: 400;

  /* Venue name - emphasized */
  --tpl-venue-name-font-size: 17px;
  --tpl-venue-name-font-weight: 400;

  --tpl-time-font-family: "Open Sans", sans-serif;
  --tpl-time-font-size: 17px;
  --tpl-time-font-weight: 400;

  --tpl-end-date-font-family: var(--template-font-family);
  --tpl-end-date-font-size: 17px;
  --tpl-end-date-font-weight: 400;

  --tpl-end-time-font-family: var(--template-font-family);
  --tpl-end-time-font-size: 17px;
  --tpl-end-time-font-weight: 400;

  --tpl-venue-name-font-family: var(--template-font-family);
  --tpl-venue-name-font-size: 17px;
  --tpl-venue-name-font-weight: 400;

  /* Message */
  --tpl-message-font-family: "Lora", serif;
  --tpl-message-font-size: 14px;
  --tpl-message-line-height: 1.625;

  /* Section Headings */
  --tpl-section-heading-font-family: var(--template-font-family);
  --tpl-section-heading-font-size: 12px;
  --tpl-section-heading-font-weight: 600;
  --tpl-section-heading-letter-spacing: 0.15em;
}

/* Title */
.tpl-title {
  font-family: var(--tpl-title-font-family);
  font-size: var(--tpl-title-font-size);
  font-weight: var(--tpl-title-font-weight);
  line-height: var(--tpl-title-line-height);
  color: var(--tpl-title-color);
}
.tpl-title .tpl-title-text {
  font-family: inherit;
  font-size: var(--tpl-title-font-size);
  font-weight: var(--tpl-title-font-weight);
  line-height: var(--tpl-title-line-height);
}

/* Date/time */
.tpl-date {
  font-family: var(--tpl-date-font-family);
  font-size: var(--tpl-date-font-size);
  font-weight: var(--tpl-date-font-weight);
}
.tpl-time {
  font-family: var(--tpl-time-font-family);
  font-size: var(--tpl-time-font-size);
  font-weight: var(--tpl-time-font-weight);
}

.tpl-end-date {
  font-family: var(--tpl-end-date-font-family);
  font-size: var(--tpl-end-date-font-size);
  font-weight: var(--tpl-end-date-font-weight);
}
.tpl-end-time {
  font-family: var(--tpl-end-time-font-family);
  font-size: var(--tpl-end-time-font-size);
  font-weight: var(--tpl-end-time-font-weight);
}

.tpl-venue-name {
  font-family: var(--tpl-venue-name-font-family);
  font-size: var(--tpl-venue-name-font-size);
  font-weight: var(--tpl-venue-name-font-weight);
}

/* Message */
.tpl-message {
  font-family: var(--tpl-message-font-family);
  font-size: var(--tpl-message-font-size);
  line-height: var(--tpl-message-line-height);
}

/* Section headings */
.tpl-section-heading {
  font-family: var(--tpl-section-heading-font-family);
  font-size: var(--tpl-section-heading-font-size);
  font-weight: var(--tpl-section-heading-font-weight);
  letter-spacing: var(--tpl-section-heading-letter-spacing);
}

/* Rich text overrides */
*[data-html="true"] ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

*[data-html="true"] {
  white-space: pre-wrap;
}

*[data-html="true"] ol {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

*[data-html="true"] li {
  margin: 0.25rem 0;
}

*[data-html="true"].text-center ul,
*[data-html="true"].text-center ol {
  display: inline-block;
  text-align: left;
}

/* =============================================================================
   RICH TEXT EDITOR CONTENT STYLES
   ============================================================================= */

.rich-text {
  font-family: "Lora", Georgia, "Times New Roman", serif;
}

.rich-text p {
  margin-bottom: 0.75rem;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.rich-text strong {
  font-weight: bolder;
}

.rich-text em {
  font-style: italic;
}

.rich-text a {
  color: var(--color-orange-500);
  text-decoration: underline;
}

.rich-text a:hover {
  color: var(--color-orange-400);
}

/* =============================================================================
   THUMBNAIL MODE
   Fill the full width so thumbnail doesn't show side gaps.
   ============================================================================= */

html.is-thumbnail .max-w-md {
  max-width: 100%;
  width: 100%;
}

html.is-thumbnail .mx-auto {
  margin-left: 0;
  margin-right: 0;
}

/* =============================================================================
   GALLERY STYLES
   ============================================================================= */

[data-type="gallery"] img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background-color: var(--color-white);
  border-radius: 1rem;
}

/* =============================================================================
   BUTTON HOVER EFFECTS
   ============================================================================= */

button[data-action] {
  position: relative;
}

button[data-action]:focus {
  outline: 2px solid var(--color-orange-400);
  outline-offset: 2px;
}

button[data-action]:active {
  opacity: 0.8;
}

