:root {
  --red: #b91920;
  --darkred: #861016;
  --green: #0d553c;
  --cream: #fff8e8;
  --ink: #17352d;
  --gold: #d9aa48;
  --blue: #082e49;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, serif;
  color: var(--ink);
  background: #e9f5f7;
  background-image: linear-gradient(#d9edf4, #f7fbfb);
}

a {
  color: inherit;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: relative;
  background:
    linear-gradient(#062a46dd, #062a46ee),
    radial-gradient(circle at 20% 0, #fff3 1px, transparent 2px);
  color: #fff;
  padding: 18px 20px 24px;
  border-bottom: 6px solid #fff;
}

.topbar {
  max-width: 720px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 22px;
  font-family: Arial, sans-serif;
}

.topbar a,
.topbar .nav-share {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  position: static !important;
  width: auto !important;
  margin: 0 !important;
  padding: 4px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
  color: #fff !important;
  font: 700 14px Arial, sans-serif !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  cursor: pointer;
}

.topbar a:hover,
.topbar a.active,
.topbar .nav-share:hover {
  text-decoration: underline !important;
  text-underline-offset: 4px;
}

.topbar a.active {
  color: #fff9d9 !important;
}

.nav-share {
  font-weight: 700;
}

.brand {
  max-width: 720px;
  margin: 4px auto 8px;
  background: linear-gradient(#d93434, #9b1016);
  border: 4px solid #f6d5a2;
  border-radius: 18px;
  box-shadow:
    0 5px 0 #671016,
    0 8px 16px #0005;
  text-align: center;
  padding: 12px 22px;
  color: #fff;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: bold;
  text-shadow: 2px 2px #681015;
  transform: rotate(-0.5deg);
}

.hero {
  text-align: center;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  margin: 14px 0 4px;
  color: #fff9d9;
}

.hero p {
  font-size: 18px;
  margin: 0;
}

.share-top {
  position: absolute;
  right: max(20px, calc((100vw - 1120px) / 2));
  top: 58px;
}


/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-block;
  border: 0;
  border-radius: 9px;
  padding: 13px 22px;
  font: 700 17px Arial, sans-serif;
  cursor: pointer;
  text-decoration: none;
}

.btn-red {
  background: linear-gradient(#e9272f, #bd1119);
  color: #fff;
  box-shadow: 0 3px 7px #0003;
}

.btn-green {
  background: #087247;
  color: #fff;
}

.btn-outline {
  background: #fff9;
  border: 2px solid var(--red);
  color: var(--red);
}


/* =========================================================
   Main content
   ========================================================= */

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
}

.paper {
  background: var(--cream);
  border: 1px solid #e6cf9e;
  border-radius: 18px;
  box-shadow: 0 4px 18px #17352d1c;
  padding: 24px;
  margin-bottom: 20px;
}

.step-title {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 0 0 6px;
  font-size: 26px;
}

.num {
  background: #df1820;
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font: 700 20px Arial;
}


/* =========================================================
   Upload
   ========================================================= */

.upload {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 20px;
  align-items: center;
}

.drop {
  border: 2px dashed #9caaa6;
  border-radius: 12px;
  min-height: 170px;
  display: grid;
  place-items: center;
  text-align: center;
  background: #fffdf8;
}

.drop input {
  display: none;
}

.drop.is-dragover {
  border-color: var(--red);
  background: #fff3e0;
}

.example {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.example img {
  width: 112px;
  height: 145px;
  object-fit: contain;
  object-position: center;
  background: #fff;
  border: 1px solid #e3d4b2;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 3px 10px #0001;
}

.example small {
  font: 13px Arial, sans-serif;
  color: #53645e;
}

.privacy-note {
  text-align: center;
  font: 14px Arial;
  margin: 10px;
  background: #eef7e9;
  border: 1px solid #c9dfbd;
  border-radius: 10px;
  padding: 12px 16px;
  line-height: 1.45;
}

#preview {
  display: none;
  max-width: 100%;
  max-height: 140px;
  margin: 10px auto;
  border-radius: 8px;
}


/* =========================================================
   Style selector
   ========================================================= */

.styles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.style-card {
  background: #fff;
  border: 2px solid #e3d4b2;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  transition: 0.15s;
}

.style-card:hover,
.style-card.selected {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px #0002;
}

.style-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
  object-position: center top;
}

.style-card b {
  display: block;
  padding: 7px 5px 1px;
}

.style-card small {
  display: block;
  font: 13px Arial;
  padding: 0 7px 9px;
}


/* =========================================================
   Generate
   ========================================================= */

.generate {
  text-align: center;
  padding: 24px 0 6px;
}

.generate .btn {
  font-size: 23px;
  padding: 17px 44px;
}

.generate button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.generation-status {
  text-align: center;
  min-height: 1.5em;
  margin: 0.75rem 0 0;
  color: #31513f;
  font-weight: 700;
}


/* Holiday animation inside Generate button */

.generate-holiday-icon {
  display: none;
  margin-right: 0.55rem;
  font-size: 1.35em;
  line-height: 1;
}

.generate button.is-generating .generate-holiday-icon {
  display: inline-block;
  animation: generateSnowflakeSpin 1.35s linear infinite;
}

@keyframes generateSnowflakeSpin {
  to {
    transform: rotate(360deg);
  }
}


/* Legacy holiday generation indicator */

.holiday-spinner {
  width: 64px;
  height: 64px;
  margin: 18px auto 6px;
  display: grid;
  place-items: center;
  font-size: 54px;
  line-height: 1;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.18));
  animation:
    holidaySpin 1.8s linear infinite,
    holidayPulse 1.1s ease-in-out infinite alternate;
}

.holiday-spinner[hidden] {
  display: none;
}

@keyframes holidaySpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes holidayPulse {
  from {
    opacity: 0.55;
  }

  to {
    opacity: 1;
  }
}


/* =========================================================
   Generated result
   ========================================================= */

.result {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 310px;
  gap: 24px;
  align-items: center;
}

.result img {
  width: 100%;
  border-radius: 12px;
}

.result-panel {
  text-align: center;
  margin-top: 1.25rem;
}

.result-panel h2 {
  color: #b51622;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.result-image {
  display: block;
  width: min(100%, 680px);
  height: auto;
  margin: 1rem auto;
  border-radius: 14px;
  border: 3px solid #d8c28e;
  box-shadow: 0 8px 30px #0002;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.result-actions .btn {
  text-align: center;
}

.result-actions .button {
  display: inline-block;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

/* Result action buttons: consistent width */

.result-actions > #download-picture,
.result-actions > #share-photo,
.result-actions > .btn[onclick*="styles"] {
  width: 340px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  justify-content: center;
}


/* =========================================================
   Supporting content
   ========================================================= */

.section-title {
  text-align: center;
  color: var(--red);
  font-size: 30px;
  margin: 5px;
}

.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.how div {
  padding: 18px;
  border-right: 1px solid #e4d4b3;
}

.how div:last-child {
  border: 0;
}

.icon {
  font-size: 42px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.tips {
  font: 15px Arial;
}

.faq details {
  padding: 9px;
  border-bottom: 1px solid #dfd4ba;
  font-family: Arial;
}


/* =========================================================
   Legal pages
   ========================================================= */

.legal {
  max-width: 860px;
  margin: 0 auto;
}

.legal h1 {
  text-align: center;
  font-size: 38px;
}

.legal h2 {
  font-size: 21px;
  margin-top: 26px;
}

.legal p,
.legal li {
  font: 16px/1.55 Arial;
}

.legal-intro {
  text-align: center;
  color: #53645e;
  font: 14px Arial, sans-serif;
  margin-top: -4px;
}

.callout {
  background: #e5f2dd;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  font: 16px Arial;
  line-height: 1.5;
}

.legal .trust-callout {
  background: #eaf5e5;
  border: 1px solid #c8dfbd;
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
  font: 16px/1.55 Arial, sans-serif;
}

.legal .trust-callout strong {
  display: block;
  font-size: 19px;
  color: #0d553c;
  margin-bottom: 5px;
}

.legal .fine-note {
  background: #fff4d8;
  border-left: 4px solid #d9aa48;
  padding: 12px 15px;
  font: 14px/1.5 Arial, sans-serif;
}


/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: #064b3c;
  color: #fff;
  text-align: center;
  padding: 20px;
  font: 14px Arial;
}

.footer a {
  margin: 0 12px;
}

.snowline {
  height: 34px;
  background:
    radial-gradient(circle at 25px -4px, #fff 28px, transparent 29px)
    0 0 / 52px 34px repeat-x;
}


/* =========================================================
   Share-site buttons
   ========================================================= */

button[data-share-site],
.share-site {
  border: 2px solid #d6b35a;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 800;
}


/* =========================================================
   Pixo Christmas house ad
   ========================================================= */

.pixo-ad-label {
  margin: 28px 0 -20px;
  text-align: center;
  font: 12px Arial, sans-serif;
  color: #7b7468;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pixo-house-ad {
  display: block;
  width: 68%;
  max-width: 760px;
  margin: 32px auto 8px;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.pixo-house-ad img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

.pixo-house-ad:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   Responsive
   ========================================================= */

@media (min-width: 761px) {
  .topbar .nav-share {
    margin-left: auto !important;
  }

  .result {
    padding: 0 28px;
  }
}

@media (max-width: 760px) {
  .share-top {
    position: static;
    display: block;
    margin: 14px auto 0;
    width: max-content;
  }

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

  .upload,
  .result,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .example {
    display: none;
  }

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

  .how div {
    border-right: 0;
    border-bottom: 1px solid #e4d4b3;
  }

  .brand {
    font-size: clamp(24px, 7.5vw, 34px);
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
  }

  .topbar {
    justify-content: center;
    gap: 13px;
    margin-bottom: 12px;
  }

  .topbar a,
  .topbar .nav-share {
    font-size: 13px !important;
  }

  .paper {
    padding: 16px;
  }

  .generate .btn {
    width: 100%;
    font-size: 19px;
  }

  .pixo-house-ad {
    width: 100%;
    margin-top: 28px;
    border-radius: 12px;
  }
}

@media (max-width: 600px) {
  .result-actions {
    flex-direction: column;
  }

  .result-actions .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .styles {
    grid-template-columns: 1fr;
  }

  .topbar {
    gap: 9px;
  }

  .topbar a,
  .topbar .nav-share {
    font-size: 11px !important;
  }

  .hero p {
    font-size: 15px;
  }
}
/* =========================================================
   Christmas Blog
   ========================================================= */

.blog-hero {
  max-width: 900px;
  margin: 0 auto;
}

.blog-intro {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.blog-intro p {
  max-width: 760px;
  margin: 12px auto;
  font: 17px/1.65 Arial, sans-serif;
  color: #40574f;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 26px 0 34px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid #e3d4b2;
  border-radius: 14px;
  box-shadow: 0 4px 16px #17352d18;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px #17352d26;
}

.blog-card-image {
  display: block;
  text-decoration: none;
}

.blog-image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(
      circle at 50% 20%,
      #174f55,
      #082e49 70%
    );
  font-size: 72px;
  border-bottom: 4px solid #d9aa48;
}

.blog-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.blog-category {
  margin-bottom: 8px;
  color: var(--red);
  font: 700 12px Arial, sans-serif;
  letter-spacing: 0.08em;
}

.blog-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.15;
}

.blog-card h2 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--red);
}

.blog-card p {
  flex: 1;
  margin: 0 0 18px;
  color: #4c5e58;
  font: 15px/1.55 Arial, sans-serif;
}

.blog-read-more {
  color: var(--red);
  font: 700 15px Arial, sans-serif;
  text-decoration: none;
}

.blog-read-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* Blog generator callout */

.blog-santa-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  max-width: 820px;
  margin: 36px auto 20px;
  text-align: left;
}

.blog-santa-cta-icon {
  flex: 0 0 auto;
  font-size: 82px;
}

.blog-santa-cta h2 {
  margin: 0 0 6px;
  color: var(--red);
  font-size: 28px;
}

.blog-santa-cta p {
  margin: 0 0 16px;
  font: 16px/1.5 Arial, sans-serif;
}


/* Blog responsive layout */

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card h2 {
    font-size: 22px;
  }

  .blog-santa-cta {
    flex-direction: column;
    text-align: center;
  }

  .blog-santa-cta-icon {
    font-size: 68px;
  }
}
.blog-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-bottom: 4px solid #d9aa48;
}
/* =========================================================
   Christmas Blog Articles
   ========================================================= */

.article-site-hero {
  max-width: 900px;
  margin: 0 auto;
}

.blog-article {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 38px 48px;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  color: #687a73;
  font: 14px Arial, sans-serif;
}

.article-breadcrumb a {
  color: var(--red);
  text-decoration: none;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-header {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.article-header .blog-category {
  margin-bottom: 10px;
}

.article-header h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
}

.article-subtitle {
  max-width: 680px;
  margin: 16px auto 8px;
  color: #52645e;
  font: 19px/1.5 Arial, sans-serif;
}

.article-date {
  margin: 12px 0 0;
  color: #7a8782;
  font: 13px Arial, sans-serif;
}

.article-hero-image {
  margin: 0 0 36px;
}

.article-hero-image img {
  display: block;
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 5px 18px #17352d26;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  color: #334942;
  font: 18px/1.75 Arial, sans-serif;
}

.article-body p {
  margin: 0 0 22px;
}

.article-lead {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.65;
}

.article-body h2 {
  margin: 44px 0 16px;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 30px;
  line-height: 1.15;
}

.article-body em {
  font-family: Georgia, serif;
}

.article-santa-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 42px 0;
  padding: 26px;
  background: #edf6ed;
  border: 1px solid #c7d8c5;
  border-radius: 14px;
}

.article-santa-cta-icon {
  flex: 0 0 120px;
}

.article-santa-cta-icon img {
  display: block;
  width: 120px;
  height: auto;
}

.article-santa-cta h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.article-santa-cta p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .article-santa-cta {
    flex-direction: column;
    text-align: center;
  }

  .article-santa-cta-icon {
    flex-basis: auto;
  }

  .article-santa-cta-icon img {
    width: 110px;
  }
}

.article-sources {
  margin-top: 48px;
  padding-top: 26px;
  border-top: 1px solid #d8cfb9;
}

.article-sources h2 {
  margin-top: 0;
  font-size: 24px;
}

.article-sources p,
.article-sources li {
  font-size: 14px;
  line-height: 1.6;
}

.article-sources a {
  color: var(--red);
}

.article-related {
  max-width: 900px;
  margin: 38px auto;
}

.article-related > h2 {
  margin-bottom: 20px;
  color: var(--red);
  text-align: center;
  font-size: 32px;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-related-card {
  overflow: hidden;
  background: var(--cream);
  border: 1px solid #e3d4b2;
  border-radius: 12px;
  box-shadow: 0 4px 14px #17352d18;
  color: var(--ink);
  text-decoration: none;
}

.article-related-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 3px solid #d9aa48;
}

.article-related-card span {
  display: block;
  padding: 15px 16px 18px;
  font: 700 18px/1.25 Georgia, serif;
}

.article-related-card:hover span {
  color: var(--red);
}


/* Article mobile */

@media (max-width: 760px) {

  .blog-article {
    padding: 28px 22px;
  }

  .article-breadcrumb {
    margin-bottom: 22px;
  }

  .article-header h1 {
    font-size: 36px;
  }

  .article-subtitle {
    font-size: 17px;
  }

  .article-body {
    font-size: 17px;
    line-height: 1.7;
  }

  .article-lead {
    font-size: 19px;
  }

  .article-body h2 {
    margin-top: 36px;
    font-size: 27px;
  }

  .article-santa-cta {
    flex-direction: column;
    text-align: center;
  }

  .article-related-grid {
    grid-template-columns: 1fr;
  }

  .article-related {
    padding: 0 20px;
  }
}
.blog-santa-cta-icon img {
  display: block;
  width: 120px;
  height: auto;
}
