@charset "UTF-8";

:root {
  --ink: #efe6d6;
  --paper: #1f1c17;
  --sunset: #c08a5c;
  --ocean: #7aa6c2;
  --night: #12100d;
  --panel: #26211b;
  --shadow: 0 26px 46px rgba(8, 6, 4, 0.45);
  --radius: 18px;
  --border: rgba(192, 138, 92, 0.25);
}

* {
  box-sizing: border-box;
}

*:focus-visible {
  outline: 3px solid rgba(43, 108, 255, 0.6);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(192, 138, 92, 0.2), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(122, 166, 194, 0.18), transparent 55%),
    linear-gradient(160deg, #12100d 0%, #1f1c17 40%, #15120f 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.hero {
  padding: 3rem 6vw 2rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
}

.badge {
  background: rgba(122, 166, 194, 0.2);
  color: var(--ocean);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-content h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  margin: 0 0 0.6rem;
}

.hero-content p {
  max-width: 720px;
  color: rgba(239, 230, 214, 0.7);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.hero-actions .btn {
  border: 1px solid rgba(239, 230, 214, 0.25);
}

.layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr);
  gap: 2rem;
  padding: 0 6vw 4rem;
  max-width: 1300px;
  margin: 0 auto;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid var(--border);
}

.panel.wide::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(192, 138, 92, 0.25), transparent 70%);
}

.panel-title h2 {
  font-family: "Cormorant Garamond", serif;
  margin: 0 0 0.25rem;
}

.panel-title p {
  margin: 0 0 1.4rem;
  color: rgba(239, 230, 214, 0.65);
}

.drop-zone {
  position: relative;
  border: 2px dashed rgba(239, 230, 214, 0.2);
  border-radius: var(--radius);
  padding: 2.4rem;
  text-align: center;
  cursor: pointer;
  background: #1a1713;
  transition: border-color 0.2s, background-color 0.2s;
}

.drop-zone--active {
  border-color: var(--ocean);
  background: rgba(122, 166, 194, 0.1);
}

.drop-zone__prompt {
  display: grid;
  gap: 0.4rem;
  color: rgba(239, 230, 214, 0.8);
}

.drop-zone__icon {
  width: 46px;
  height: 46px;
  color: var(--ocean);
  margin: 0 auto 0.4rem;
}

.drop-zone__preview {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.drop-zone__filename {
  margin: 0;
  font-weight: 600;
}

.drop-zone__meta {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: rgba(239, 230, 214, 0.6);
}

.drop-zone__remove-btn {
  background: none;
  border: none;
  color: #d33030;
  font-weight: 600;
  cursor: pointer;
}

.preview-card {
  margin-top: 1.6rem;
  display: grid;
  gap: 1rem;
  background: #1a1713;
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid rgba(239, 230, 214, 0.12);
}

.preview-image {
  border-radius: 14px;
  background: #12100d;
  border: 1px dashed rgba(239, 230, 214, 0.2);
  min-height: 180px;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.preview-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.preview-details ul {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: rgba(239, 230, 214, 0.7);
}

.preview-details li {
  overflow-wrap: anywhere;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

.field input,
.field select {
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(239, 230, 214, 0.18);
  font: inherit;
  background: #1a1713;
  color: var(--ink);
}

.field input[type="color"] {
  height: 42px;
  padding: 0.2rem;
}

.field small {
  font-size: 0.8rem;
  color: rgba(13, 17, 23, 0.6);
}

.section {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(239, 230, 214, 0.08);
}

.section h3 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(239, 230, 214, 0.7);
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(239, 230, 214, 0.08);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
}

.toggle input {
  accent-color: var(--ocean);
}

.field.compact {
  width: 140px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  background: rgba(192, 138, 92, 0.2);
  color: #d9b089;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.chip input {
  margin-right: 0.4rem;
  accent-color: #a33e1f;
}

.export-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(239, 230, 214, 0.1);
  color: var(--ink);
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn.primary {
  background: var(--sunset);
  color: #22160d;
  box-shadow: 0 12px 20px rgba(192, 138, 92, 0.35);
}

.btn.primary:hover {
  background: #a06b3d;
  transform: translateY(-1px);
}

.btn.ghost:hover {
  background: rgba(239, 230, 214, 0.18);
}

.progress {
  margin-top: 0.8rem;
  background: rgba(239, 230, 214, 0.1);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sunset), var(--ocean));
  transition: width 0.2s ease;
}

.status-row {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: rgba(239, 230, 214, 0.6);
}

.footer-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(239, 230, 214, 0.6);
}

.footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: rgba(239, 230, 214, 0.6);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

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

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

@media (max-width: 600px) {
  .export-row {
    flex-direction: column;
  }
  .field.compact {
    width: 100%;
  }
}
