/* The look of the neutral file-transfer site (front, sign-in, invite, upload). Loaded after style.css. */
:root {
  --bg: #faf6f2; --surface: #ffffff; --text: #231c18; --muted: #6e625a; --line: #eadfd6; --field: #ffffff;
  --accent: #c2410c; --accent-text: #ffffff; --accent-soft: #fde8dc;
  --ink: #2a211c; --ink-text: #fbeee6;
  --clean: #2f6f8f; --clean-soft: #e3f0f6;
  --shadow: 0 1px 2px rgb(60 30 10 / 6%), 0 8px 24px rgb(60 30 10 / 8%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171210; --surface: #211a17; --text: #f3e9e2; --muted: #b5a59a; --line: #3a2e28; --field: #1a1412;
    --accent: #fb8c4e; --accent-text: #1d0e05; --accent-soft: #3d2216;
    --ink: #0f0b09; --ink-text: #f6e6db;
    --clean: #7cc0e0; --clean-soft: #16303c;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 35%);
  }
}

body { background: var(--bg); }

/* header: dark band with the mark */
header.top { background: var(--ink); border-bottom: 3px solid var(--accent); padding: 12px 20px; }
header.top .brand { color: var(--ink-text); display: inline-flex; align-items: center; gap: 10px; letter-spacing: .01em; }
header.top .muted { color: color-mix(in srgb, var(--ink-text) 70%, transparent); }
header.top a:not(.brand):not(.button) { color: var(--ink-text); }
header.top button.secondary, header.top .button.secondary { color: var(--ink-text); border-color: color-mix(in srgb, var(--ink-text) 45%, transparent); }
.mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, #f97316, #b91c1c); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em;
}

/* cards and controls */
section.card { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 22px; }
button, .button { border-radius: 8px; padding: 9px 18px; transition: transform .08s ease, filter .15s ease; }
button:not(:disabled):hover, .button:hover { filter: brightness(1.08); }
button:not(:disabled):active, .button:active { transform: translateY(1px); }
input[type=text], input[type=email], input[type=password], textarea { border-radius: 8px; padding: 10px 12px; }
input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; border-color: var(--accent); }
h2 { font-size: 20px; }

/* front page */
.hero { background: radial-gradient(1200px 400px at 85% -10%, #f97316 0%, transparent 60%), linear-gradient(160deg, #2a211c 0%, #4a2414 60%, #7c2d12 100%); color: #fbeee6; }
.hero .inner { max-width: 880px; margin: 0 auto; padding: 72px 20px 96px; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: #fdba74; margin: 0 0 10px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 0 0 14px; }
.hero p.lead { font-size: 18px; max-width: 560px; margin: 0; color: #f3d9c9; }
.front-card { max-width: 880px; margin: -56px auto 48px; padding: 0 20px; }
.front-card section.card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.front-card section.card h2 { margin-top: 0; }
.front-card section.card p { margin-bottom: 0; }
.points { max-width: 880px; margin: 0 auto 64px; padding: 0 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.points div { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.points strong { display: block; margin-bottom: 2px; }
@media (max-width: 640px) { .front-card section.card { grid-template-columns: 1fr; } .hero .inner { padding: 48px 16px 80px; } }

/* sign-in and invite */
.narrow { margin-top: 64px; }
.narrow section.card { border-top: 4px solid var(--accent); }

/* upload page: each box has its own colour so the two sets are never confused */
.drops { gap: 20px; }
.dropbox { --tone: var(--accent); --tone-soft: var(--accent-soft); }
.dropbox.clean { --tone: var(--clean); --tone-soft: var(--clean-soft); }
.dropbox h3 { color: var(--tone); display: flex; align-items: center; gap: 8px; }
.dropbox h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tone); }
.drop { border-color: color-mix(in srgb, var(--tone) 40%, var(--line)); background: color-mix(in srgb, var(--tone-soft) 55%, var(--field)); border-radius: 12px; min-height: 160px; transition: background .15s ease, border-color .15s ease; }
.drop::before {
  content: ""; width: 40px; height: 40px; margin-bottom: 6px; background: var(--tone);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m0 0L7 9m5-5 5 5'/%3E%3Cpath d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4m0 0L7 9m5-5 5 5'/%3E%3Cpath d='M4 15v3a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.drop strong { color: var(--tone); }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--tone); }
.drop.over { background: var(--tone-soft); border-style: solid; }
ul.files li { border-bottom-color: var(--line); }
ul.files progress { accent-color: var(--tone); }
.dropbox ul.files li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); }
.sent-ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid var(--ok); color: var(--ok); border-radius: 10px; padding: 10px 14px; font-weight: 600; }

/* earnings tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile .label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.tile strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.tile.owing { background: linear-gradient(135deg, #f97316, #b91c1c); border-color: transparent; color: #fff; }
.tile.owing .label { color: rgb(255 255 255 / 85%); }
.earnings .small { margin: 12px 0 0; }
td:last-child { font-variant-numeric: tabular-nums; }

/* the confirmation asked for every project */
.authority { margin-top: 16px; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 0; padding: 10px 14px; background: var(--bg); }
.authority p { margin: 0 0 8px; }
