:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --ink: #1d1d1b;
  --muted: #646b73;
  --line: #dce2e8;
  --panel: #ffffff;
  --accent: #176b5b;
  --accent-strong: #0d4d41;
  --accent-soft: #e0f1ec;
  --warning: #8c4f00;
  --shadow: 0 24px 80px rgb(28 31 28 / 12%);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 70%), rgb(246 248 251 / 0%) 52%),
    var(--bg);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.shell {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 72px);
}

.workspace {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  margin: 0 auto;
  max-width: 1120px;
  width: 100%;
}

.intro {
  align-self: center;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: 5.6rem;
  line-height: 0.94;
  margin-bottom: 22px;
  max-width: 9ch;
}

.lede {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 32rem;
}

.upload-panel,
.result {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.upload-panel {
  align-self: center;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

.drop-zone {
  align-items: center;
  background: #fbfcfe;
  border: 1.5px dashed #aeb8c3;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  min-height: 220px;
  padding: 28px;
  place-items: center;
  position: relative;
  text-align: center;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.drop-zone:focus-within,
.drop-zone.is-dragging {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.drop-zone input {
  cursor: pointer;
  inset: 0;
  opacity: 0;
  position: absolute;
}

.drop-copy {
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.drop-copy strong {
  font-size: 1.45rem;
  line-height: 1.25;
}

.drop-copy span,
.status,
.file-meta,
.result-meta {
  color: var(--muted);
  line-height: 1.5;
}

.file-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.file-name {
  display: block;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.file-meta {
  display: block;
  font-size: 0.9rem;
  margin-top: 4px;
}

.actions {
  align-items: center;
  display: grid;
  gap: 12px;
}

.primary-button,
.secondary-button,
.text-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  min-height: 44px;
  padding: 0 18px;
}

.primary-button {
  background: var(--accent);
  color: white;
  font-weight: 750;
}

.primary-button:hover:not(:disabled),
.secondary-button:hover {
  background: var(--accent-strong);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.secondary-button {
  background: var(--accent);
  color: white;
  flex: 0 0 auto;
  font-weight: 700;
}

.text-button {
  background: transparent;
  color: var(--accent);
  font-weight: 700;
  padding: 0 4px;
}

.status {
  min-height: 1.5em;
}

.status.is-error {
  color: var(--warning);
  font-weight: 700;
}

.result {
  display: grid;
  gap: 22px;
  grid-column: 2;
  padding: clamp(18px, 3vw, 28px);
}

.result h2 {
  font-size: 5.7rem;
  line-height: 0.9;
  margin-bottom: 0;
}

.share-url-row {
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 10px;
}

.share-url-row a {
  align-items: center;
  color: var(--ink);
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration-color: var(--accent);
}

@media (max-width: 780px) {
  .shell {
    align-items: stretch;
    padding: 20px;
  }

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

  h1 {
    font-size: 3rem;
    max-width: 10ch;
  }

  .lede {
    font-size: 1rem;
  }

  .drop-copy strong {
    font-size: 1.18rem;
  }

  .result h2 {
    font-size: 3.4rem;
  }

  .result {
    grid-column: auto;
  }

  .share-url-row {
    display: grid;
  }
}
