@font-face {
    font-family: "Admirable Valentines";
    src: url("assets/fonts/AdmirableValentines.otf");
}

@font-face {
    font-family: "Brittany Signature";
    src: url("assets/fonts/BrittanySignature.otf");
}

@font-face {
    font-family: "Camila Bryan";
    src: url("assets/fonts/CamilaBryan.otf");
}

@font-face {
    font-family: "Cherrybelle";
    src: url("assets/fonts/Cerrybelle.otf");
}

@font-face {
    font-family: "Christmas";
    src: url("assets/fonts/Christmas.otf");
}

@font-face {
    font-family: "Classroom Memories Script";
    src: url("assets/fonts/ClassroomMemoriesScript.otf");
}

@font-face {
    font-family: "Daily Calm";
    src: url("assets/fonts/DailyCalm.otf");
}

@font-face {
    font-family: "Family";
    src: url("assets/fonts/Family.otf");
}

@font-face {
    font-family: "Easter Heart";
    src: url("assets/fonts/EasterHeartRegular.otf");
}

@font-face {
    font-family: "Funky Hearts";
    src: url("assets/fonts/FunkyHearts.otf");
}

@font-face {
    font-family: "Handmade";
    src: url("assets/fonts/Handmade.otf");
}

@font-face {
    font-family: "Holly Wings";
    src: url("assets/fonts/HollyWings.otf");
}

@font-face {
    font-family: "Honeymoon";
    src: url("assets/fonts/Honeymoon.otf");
}

@font-face {
    font-family: "Honey";
    src: url("assets/fonts/Honey.otf");
}

@font-face {
    font-family: "Ladybug";
    src: url("assets/fonts/Ladybug.otf");
}

@font-face {
    font-family: "Montage";
    src: url("assets/fonts/Montage.otf");
}

@font-face {
    font-family: "Point Beach";
    src: url("assets/fonts/PointBeach.otf");
}

@font-face {
    font-family: "Simple Tumbler";
    src: url("assets/fonts/SimpleTumbler.otf");
}

@font-face {
    font-family: "Star Bold";
    src: url("assets/fonts/StarBold.otf");
}

@font-face {
    font-family: "Sunlight";
    src: url("assets/fonts/Sunlight.otf");
}

@font-face {
    font-family: "Wild Cake";
    src: url("assets/fonts/WildCake.otf");
}

@font-face {
    font-family: "Kinder Bubble";
    src: url("assets/fonts/KinderBubbleRegular.otf");
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("assets/fonts/CormorantGaramond-Regular.ttf");
    font-weight: 400;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("assets/fonts/CormorantGaramond-SemiBold.ttf");
    font-weight: 600;
}

@font-face {
    font-family: "Montserrat";
    src: url("assets/fonts/Montserrat-Variable.ttf");
    font-weight: 100 900;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px;
  background: linear-gradient(180deg, #f8f5f0 0%, #eee7dd 100%);
  color: #312d2b;
  font-family: "Montserrat", Arial, sans-serif;
}

.page {
  max-width: 1150px;
  margin: auto;
}

.hero,
.selected-section,
.inspiration-section,
.order-section {
  text-align: center;
  background: #ffffff;
  padding: 38px 26px;
  border-radius: 32px;
  border: 1px solid #d6c8b8;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  margin-bottom: 28px;
}

.brand-logo {
  display: block;
  width: min(100%, 440px);
  height: auto;
  margin: 0 auto 18px;
}

.home-link {
  display: inline-block;
  margin-bottom: 18px;
  color: #4f5c53;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-link:hover,
.home-link:focus-visible {
  color: #b18d94;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.eyebrow {
  color: #b18d94;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
}

h1 {
  margin: 8px 0;
  padding: 10px 0;
  color: #b18d94;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: 54px;
  line-height: 1.2;
}

h1 span {
  display: inline-block;
  margin: 0 0.12em;
  font-family: "Brittany Signature", cursive;
  font-size: 1.08em;
  font-weight: 400;
  line-height: 1;
  vertical-align: -0.08em;
}

h2 {
  color: #6b7c71;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 400;
}

.subtitle,
p {
  color: #6b625e;
  font-size: 18px;
}

input {
  width: 100%;
  max-width: 540px;
  padding: 17px;
  font-size: 25px;
  text-align: center;
  border: 2px solid #d6c8b8;
  border-radius: 18px;
  outline: none;
  margin-top: 16px;
  font-family: "Montserrat", Arial, sans-serif;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.font-preview {
  position: relative;
  background: rgba(255,255,255,0.94);
  border: 2px solid #d6c8b8;
  border-radius: 26px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 5px 16px rgba(0,0,0,0.07);
  transition: 0.2s ease;
}

.font-preview.selected {
  border-color: #6b7c71;
  box-shadow: 0 8px 22px rgba(107,124,113,0.35);
}

.checkmark {
  position: absolute;
  top: 14px;
  right: 16px;
  background: #6b7c71;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.font-preview.selected .checkmark {
  display: flex;
}

.font-number {
  color: #b18d94;
  font-size: 14px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.preview-text {
  font-size: 68px;
  line-height: 1.2;
  padding: 12px 0;
  word-break: break-word;
}

.divider {
  height: 1px;
  background: #d6c8b8;
  margin: 14px 0;
}

.font-name {
  color: #6b625e;
  font-size: 15px;
  margin-bottom: 12px;
  font-family: "Montserrat", Arial, sans-serif;
}

.copy-button {
  border: none;
  background: #b18d94;
  color: #ffffff;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
}

.copy-button:hover {
  background: #98767d;
}

.helper-text {
  font-size: 13px;
  color: #6b7c71;
  margin-top: 10px;
  font-family: "Montserrat", Arial, sans-serif;
}

.hidden {
  display: none;
}

.order-button,
.floating-order {
  display: inline-block;
  background: #6b7c71;
  color: #ffffff;
  text-decoration: none;
  border-radius: 999px;
  font-size: 17px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
}

.order-button {
  margin-top: 14px;
  padding: 15px 28px;
}

.floating-order {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  padding: 15px 24px;
  z-index: 9999;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 8px 24px rgba(92, 76, 79, 0.3);
  font-weight: bold;
  white-space: nowrap;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-order:hover,
.floating-order:focus-visible {
  background: #4f5c53;
  transform: translateY(-3px);
}

@media (max-width: 750px) {
  body {
    padding: 14px;
    padding-bottom: 90px;
  }

  h1 {
    font-size: 38px;
    line-height: 1.35;
  }

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

  .preview-text {
    font-size: 54px;
  }

  .floating-order {
    left: 14px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    text-align: center;
    white-space: normal;
  }
}
