:root {
  color-scheme: light;
  --bg: #f3efe6;
  --surface: rgba(255, 252, 246, 0.86);
  --surface-strong: #fffdf8;
  --text: #1d1b18;
  --muted: #5f584d;
  --line: rgba(29, 27, 24, 0.12);
  --accent: #0b6e4f;
  --accent-dark: #084f39;
  --shadow: 0 24px 80px rgba(34, 27, 16, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(11, 110, 79, 0.14), transparent 28%),
    radial-gradient(circle at right center, rgba(224, 140, 55, 0.12), transparent 22%),
    linear-gradient(180deg, #f8f3ea 0%, var(--bg) 100%);
}

.shell {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 2rem;
  align-items: start;
  padding: 1rem 0 2rem;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1;
}

.intro {
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.coffee-cta {
  display: grid;
  gap: 0.4rem;
  align-self: start;
  justify-self: end;
  width: 140px;
  padding: 0.5rem;
  border: 1px solid rgba(29, 27, 24, 0.14);
  border-radius: 14px;
  background: rgba(255, 247, 204, 0.38);
  box-shadow: 0 6px 18px rgba(34, 27, 16, 0.06);
  color: var(--text);
  text-decoration: none;
}

.coffee-cta:hover {
  transform: translateY(-1px);
  background: rgba(255, 247, 204, 0.68);
}

.coffee-badge {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.35;
  border: 1px solid rgba(29, 27, 24, 0.14);
  border-radius: 12px;
  background: #ffdd00;
}

.coffee-badge svg {
  width: 48%;
  height: auto;
}

.coffee-content {
  display: grid;
  gap: 0.15rem;
}

.coffee-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: #1d1b18;
}

.coffee-handle {
  font-size: 0.62rem;
  line-height: 1.3;
  color: #5f584d;
  word-break: break-word;
}

.panel {
  margin-top: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-secondary pre {
  margin: 0.5rem 0 0;
  overflow-x: auto;
}

.status-banner {
  margin-bottom: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid #bdddbf;
  border-radius: 16px;
  background: #e5f4de;
  color: #3c7444;
  line-height: 1.6;
}

.status-banner[data-tone="error"] {
  border-color: #e2c0bd;
  background: #f8e7e4;
  color: #8a413a;
}

.form {
  display: grid;
  gap: 1rem;
}

.dlp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.notes-section {
  display: grid;
  gap: 1rem;
}

.upload-section {
  display: grid;
}

.upload-section .form {
  gap: 0.75rem;
}

.upload-label {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.upload-dropzone {
  display: grid;
  gap: 0.9rem;
  min-height: 100%;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  cursor: pointer;
  transition:
    border-color 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.upload-dropzone.is-dragover {
  border-color: rgba(11, 110, 79, 0.35);
  background: rgba(232, 246, 239, 0.9);
  box-shadow: 0 0 0 3px rgba(11, 110, 79, 0.08);
}

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

.upload-copy {
  display: grid;
  gap: 0.2rem;
  text-align: center;
  justify-items: center;
  padding-top: 0.35rem;
}

.upload-title,
.upload-subtitle {
  margin: 0;
}

.upload-title {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.upload-subtitle {
  color: #7d7569;
  font-size: 0.9rem;
}

.upload-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.upload-button {
  flex: 0 0 auto;
}

.upload-submit-button {
  justify-self: start;
}

.upload-filename {
  color: #7d7569;
  font-size: 0.95rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--muted);
}

input,
textarea,
button,
pre,
code {
  font: inherit;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
}

textarea {
  resize: vertical;
}

input::file-selector-button {
  margin-right: 0.75rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ece7db;
  color: var(--text);
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #7d7569;
}

button {
  justify-self: start;
  padding: 0.9rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #f8f7f4;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: var(--accent-dark);
}

.response-box {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.response-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

pre {
  margin: 0.75rem 0 0;
  padding: 1rem;
  border-radius: 16px;
  background: #1c221f;
  color: #e8f2ec;
  overflow-x: auto;
}

.footer {
  margin-top: 1rem;
  padding: 1rem 0 0;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1rem, 960px);
    padding-top: 1.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .dlp-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .coffee-cta {
    justify-self: start;
    width: min(140px, 100%);
  }

  .panel {
    padding: 1rem;
    border-radius: 20px;
  }
}
