@import url("/fonts/fonts.css");
/**
 * Wedding Warm Template - Styles
 * Uses local fonts: Cormorant (titles), Lato (body)
 * Color palette: Rose/Pink warm tones
 */

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

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

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

@font-face {
  font-family: "Lato";
  src: url("/fonts/Lato/Lato-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

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

@font-face {
  font-family: "Lato";
  src: url("/fonts/Lato/Lato-Italic.ttf") format("truetype");
  font-weight: 400;
  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: "Lato", 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 (Rose/Pink warm palette)
   ============================================================================= */

:root {
  /* Rose palette */
  --color-rose-50: #fff1f2;
  --color-rose-100: #ffe4e6;
  --color-rose-200: #fecdd3;
  --color-rose-300: #fda4af;
  --color-rose-400: #fb7185;
  --color-rose-500: #f43f5e;
  --color-rose-600: #e11d48;

  /* Pink palette */
  --color-pink-50: #fdf2f8;
  --color-pink-100: #fce7f3;
  --color-pink-200: #fbcfe8;
  --color-pink-300: #f9a8d4;

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

  /* 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; }

.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-rose-50 { background-color: var(--color-rose-50); }

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

.bg-gradient-rose-light {
  background: linear-gradient(to bottom, rgba(253, 242, 248, 0.3), var(--color-white));
}

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

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

.bg-gradient-rose-icon {
  background: linear-gradient(to bottom right, var(--color-rose-100), var(--color-pink-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-rose-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-rose-300 { color: var(--color-rose-300); }
.text-rose-400 { color: var(--color-rose-400); }
.text-rose-600 { color: var(--color-rose-600); }

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

.border-t { border-top: 1px solid; }
.border-rose-100 { border-color: var(--color-rose-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); }

.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-rose-400:hover { color: var(--color-rose-400); }
  .hover\:text-emerald-400:hover { color: var(--color-emerald-400); }
  .hover\:opacity-90:hover { opacity: 0.9; }
}

/* =============================================================================
   TEMPLATE-SPECIFIC STYLES
   ============================================================================= */

/* Title styling - elegant serif font */
.tpl-title,
.tpl-section-title,
.rich-text h1,
.rich-text h2,
.rich-text h3 {
  font-family: "Cormorant", Georgia, "Times New Roman", serif;
}

.tpl-title p,
.tpl-title h1,
.tpl-title h2,
.tpl-title h3 {
  margin: 0;
  padding: 0;
}

/* Message styling */
.tpl-message {
  font-family: "Cormorant", Georgia, "Times New Roman", serif;
}

/* Section titles */
.tpl-section-title {
  font-family: "Cormorant", Georgia, "Times New Roman", serif;
}

/* Venue name */
.tpl-venue-name {
  font-family: "Cormorant", Georgia, "Times New Roman", serif;
}

/* Date/time styling */
.tpl-date,
.tpl-time,
.tpl-end-date,
.tpl-end-time {
  font-family: "Lato", ui-sans-serif, system-ui, sans-serif;
}

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

.rich-text {
  font-family: "Cormorant", 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-rose-600);
  text-decoration: underline;
}

.rich-text a:hover {
  color: var(--color-rose-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-rose-400);
  outline-offset: 2px;
}

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

/* ------------------------------------------------------------
   Template defaults
   ------------------------------------------------------------ */
:root {
  --template-font-family: "Cormorant", 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: "Cormorant", serif;
  --tpl-title-font-size: 43px;
  --tpl-title-font-weight: 400;
  --tpl-title-line-height: 1.3;
  --tpl-title-color: #1e293b;

  /* Date / time */
  --tpl-date-font-family: var(--template-font-family);
  --tpl-date-font-size: 17px;
  --tpl-date-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;

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

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

  /* Message */
  --tpl-message-font-family: "Cormorant", 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;
}

