 :root {
  --asu-maroon: #8c1d40;
  --asu-gold: #ffc627;
  --asu-black: #000000;
  --asu-gray: #747474;
  --asu-gold-hex: #ffc627;
  --asu-sand: #f5ede0;
  --background: #f2f2f5;
  --card-bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-muted: #4a4a58;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--background);
}

.app {
  width: min(900px, 90vw);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  background: var(--card-bg);
  padding: 2.5rem;
  box-shadow: 0 25px 60px -30px rgba(140, 29, 64, 0.35);
  border-radius: 20px;
  border: 1px solid rgba(140, 29, 64, 0.15);
}

.controls h1 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #000000;
  background: var(--asu-gold-hex);
  padding: 0.2rem 0.2rem;
  display: inline-block;
}

form {
  display: grid;
  gap: 0.75rem;
}

.styling-options {
  margin-top: 0.5rem;
  border: 1px solid rgba(140, 29, 64, 0.2);
  border-radius: 10px;
  background: rgba(255, 198, 39, 0.08);
  padding: 0.6rem 0.9rem;
}

.styling-options__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--asu-maroon);
}

.styling-options__content {
  display: grid;
  gap: 0.75rem;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

.domain-warning-container {
  min-height: 1.2rem;
}

.warning {
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: #c41e3a;
  display: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.warning[hidden] {
  display: none;
}

.warning:not([hidden]) {
  display: block;
}

input[type="url"],
select,
input[type="number"] {
  padding: 0.6rem 0.8rem;
  border: 1px solid rgba(140, 29, 64, 0.25);
  border-radius: 8px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

input:focus,
select:focus {
  outline: 2px solid var(--asu-gold);
  border-color: var(--asu-maroon);
}


button {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--asu-maroon);
  color: #ffffff;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 25px -15px rgba(140, 29, 64, 0.8);
}

button[disabled] {
  cursor: not-allowed;
  background: rgba(116, 116, 116, 0.5);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.7);
}

button:not([disabled]):hover {
  background: var(--asu-gold);
  color: var(--asu-maroon);
  transform: translateY(-1px);
}

.hint {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: none;
}

.privacy-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(74, 74, 88, 0.85);
  line-height: 1.4;
}

.preview {
  display: flex;
  align-items: flex-start;
  padding-top: 5.5rem;
  flex-direction: column;
}

.preview__canvas {
  width: clamp(240px, 100%, 400px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px dashed rgba(140, 29, 64, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  padding: 1rem;
}

.preview-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.25rem;
  width: 100%;
}

.preview-actions button {
  flex: 1;
  min-height: 48px;
}

@media (max-width: 720px) {
  .preview {
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
  }

  .preview-actions {
    flex-direction: column;
  }
}

.app-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: rgba(74, 74, 88, 0.8);
  text-align: center;
  padding-bottom: 1.5rem;
}

.app-footer p {
  margin: 0;
  padding: 0;
}

.app-footer a {
  color: rgba(140, 29, 64, 0.85);
  font-weight: 600;
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

.app-footer__logo {
  display: block;
  height: 60px;
  width: auto;
  border-radius: 6px;
}
