/* transfer.preston.studio
   Skin: preston.studio's gallery language (white ground, monospace lowercase
   labels, deep green accent from the JOSHUA PRESTON mark, EB Garamond display,
   photography matted like a print on a white wall) over the card/table anatomy
   of the Webber transfer portal. */

:root {
  --ink: #15130f;
  --ink-soft: #3d3a34;
  --ink-muted: #6b675e;
  --ink-faint: #9b958a;
  --paper: #ffffff;
  --paper-soft: #f7f9f8;
  --line: #e6e6e2;
  --accent: #3c7968;       /* deep green from the logo */
  --accent-soft: #eef5f3;  /* pale wash of the same green */
  --accent-line: #cae0db;
  --ok: #3c7968;
  --bad: #a03c3c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 3px rgba(21, 19, 15, 0.05);
  --serif: "EB Garamond", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace;
  --head-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }

/* ── Header ── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center;
  gap: clamp(18px, 3vw, 44px); height: var(--head-h);
  padding: 0 clamp(20px, 3.5vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand img { height: 34px; width: 34px; display: block; }
.brand span {
  font-family: var(--serif);
  font-size: 1.06rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.head-nav { display: flex; flex: 1; gap: clamp(14px, 2.4vw, 34px); align-items: center; }
.head-nav a, .head-nav button {
  font-family: var(--mono); font-size: 0.78rem; text-transform: lowercase;
  color: var(--ink-muted);
  background: none; border: 0; padding: 0; cursor: pointer;
  transition: color 120ms; white-space: nowrap;
}
.head-nav a:hover, .head-nav button:hover { color: var(--accent); }
.head-nav .push { margin-left: auto; }

/* ── Main ── */
.site-main { flex: 1; width: 100%; }
.wrap { max-width: 1060px; margin: 0 auto; padding: clamp(26px, 4vw, 54px) clamp(20px, 3.5vw, 48px) 80px; }
.narrow { max-width: 640px; }

h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 32px); font-weight: 400; letter-spacing: 0.005em;
  line-height: 1.2; margin: 0 0 6px;
}
.sub { color: var(--ink-muted); margin: 0 0 28px; font-size: 0.9rem; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: lowercase; color: var(--accent); margin: 0 0 14px;
}

/* ── Cards ── */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3.4vw, 30px);
}
.card + .card { margin-top: 18px; }

/* ── Gallery print: photograph matted on a white card ── */
.print {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(21, 19, 15, 0.06);
  padding: clamp(20px, 3vw, 30px);
}
.print { margin: 0; }
.print img { display: block; width: 100%; height: auto; }
.print .caption {
  font-family: var(--mono); font-size: 10.5px; text-transform: lowercase;
  color: var(--ink-faint); margin: 12px 0 0; text-align: right;
}
.print-banner img { aspect-ratio: 3 / 1.15; object-fit: cover; object-position: center 62%; }

/* ── Chips / tags ── */
.chip {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em;
  text-transform: lowercase; color: var(--ink-muted);
  border: 1px solid var(--line); background: var(--paper-soft);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.chip.warn { color: var(--bad); border-color: #e4cfcf; background: #fbf6f5; }

/* ── Buttons ── */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 0.86rem; font-weight: 600;
  padding: 10px 22px; border: 1px solid var(--accent); background: var(--accent);
  color: #fff; cursor: pointer; border-radius: 10px;
  letter-spacing: 0.01em; transition: opacity 140ms;
}
.btn:hover { opacity: 0.88; }
.btn-ghost {
  background: var(--paper); color: var(--ink-soft); border: 1px solid var(--line);
  font-family: var(--mono); font-weight: 400; text-transform: lowercase; font-size: 0.78rem;
}
.btn-ghost:hover { opacity: 1; border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 5px 12px; border-radius: 8px; }
.btn[disabled] { opacity: 0.4; cursor: default; }
.btn-block { display: block; width: 100%; text-align: center; padding: 12px 16px; }

/* ── Forms ── */
label {
  display: block; margin-bottom: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em;
  text-transform: lowercase; color: var(--ink-muted);
}
input[type="text"], input[type="email"], input[type="password"] {
  display: block; width: 100%; margin-top: 7px;
  font-family: var(--sans); font-size: 0.95rem; letter-spacing: normal; text-transform: none;
  color: var(--ink);
  padding: 9px 12px; border: 1px solid var(--line); background: var(--paper);
  outline: none; border-radius: var(--radius-sm);
  transition: border-color 120ms;
}
input:focus { border-color: var(--accent); }

.flash { padding: 11px 14px; margin: 0 0 20px; font-size: 0.86rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.flash.error { border-color: #e4cfcf; color: #7a3030; background: #fbf6f5; }
.flash.success { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }

/* ── Login ── */
.login-wrap {
  max-width: 880px; margin: 0 auto;
  padding: clamp(30px, 6vh, 70px) 24px 70px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(24px, 4vw, 54px); align-items: center;
}
.login-side h1 { margin-bottom: 2px; }
.login-side .sub { margin-bottom: 24px; }
@media (max-width: 760px) {
  .login-wrap { grid-template-columns: 1fr; max-width: 440px; }
  .login-wrap .print { max-width: 340px; margin: 0 auto; }
}

/* ── Dashboard ── */
.stat-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }

.tbl-card { padding: 6px clamp(16px, 2.6vw, 26px); overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.tbl th {
  text-align: left; font-family: var(--mono); font-weight: 400; color: var(--ink-muted);
  font-size: 11px; letter-spacing: 0.02em; text-transform: lowercase;
  padding: 16px 14px 10px 0; border-bottom: 1px solid var(--line);
}
.tbl td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; padding-right: 24px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl th.num { padding-right: 24px; }
.t-title { font-size: 0.95rem; font-weight: 500; }
.t-dead { color: var(--ink-faint); font-weight: 400; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.02em;
  text-transform: lowercase; color: var(--ink-muted);
  border: 1px solid var(--line); background: var(--paper-soft);
  border-radius: 999px; padding: 1px 8px; margin-left: 10px; vertical-align: middle;
}
.actions { white-space: nowrap; text-align: right; }
.actions form { display: inline; }
.actions .btn { margin-left: 6px; }
.empty { color: var(--ink-faint); text-align: center; padding: 70px 20px; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }

/* ── New transfer ── */
.expiry-row { display: flex; gap: 8px; margin: 8px 0 0; }
.expiry-row input { position: absolute; opacity: 0; pointer-events: none; }
.expiry-row span {
  display: inline-block; padding: 7px 16px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--paper);
  cursor: pointer; font-family: var(--mono); font-size: 0.78rem; text-transform: lowercase;
  color: var(--ink-muted); transition: all 120ms;
}
.expiry-row span:hover { border-color: var(--accent); }
.expiry-row input:checked + span { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.dropzone {
  margin: 22px 0 18px; border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 44px 24px; text-align: center; color: var(--ink-soft);
  cursor: pointer; transition: all 140ms; font-size: 0.92rem; background: var(--paper);
}
.dropzone .dz-hint {
  display: block; margin-top: 6px;
  font-family: var(--mono); font-size: 10.5px; text-transform: lowercase; color: var(--ink-faint);
}
.dropzone:hover { border-color: var(--accent-line); }
.dropzone.drag { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.upl { list-style: none; margin: 0 0 22px; padding: 0; }
.upl li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.upl li:last-child { border-bottom: 0; }
.upl .row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.upl .fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upl .size { font-family: var(--mono); color: var(--ink-faint); white-space: nowrap; font-size: 0.74rem; }
.bar { height: 3px; background: var(--line); margin-top: 6px; border-radius: 2px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width 160ms; }
.upl .done .bar i { background: var(--ok); }
.upl .done .size { color: var(--ok); }
.upl .failed .size { color: var(--bad); }

/* ── Created / link reveal ── */
.linkbox { margin: 26px 0 22px; }
.linkbox .lb-row { display: flex; gap: 10px; margin-top: 14px; }
.linkbox input.url {
  flex: 1; margin-top: 0;
  font-family: var(--mono);
  font-size: 0.8rem; color: var(--accent);
  background: var(--paper-soft);
}
.linkbox .note { font-size: 0.82rem; color: var(--ink-muted); margin: 14px 0 0; line-height: 1.6; }

.backlink {
  font-family: var(--mono); font-size: 0.78rem; text-transform: lowercase;
  color: var(--accent); border-bottom: 1px solid var(--accent-line);
}
.backlink:hover { border-color: var(--accent); }

/* ── Public recipient page ── */
.public-wrap { max-width: 620px; margin: 0 auto; padding: clamp(26px, 5vw, 60px) 20px 80px; }
.public-wrap .print-banner { margin-bottom: 18px; padding: clamp(14px, 2.4vw, 22px); }
.public-card .meta { font-family: var(--mono); font-size: 0.78rem; text-transform: lowercase; color: var(--ink-muted); margin: 0 0 20px; }

.files { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.files li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.files .thumb {
  flex: none; display: block; width: 56px; height: 56px;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  background: var(--paper-soft);
}
.files .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.files .ext-tile {
  width: 100%; height: 100%; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; text-transform: lowercase;
  color: var(--ink-faint);
}
.files .name { flex: 1; min-width: 0; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .size { font-family: var(--mono); color: var(--ink-faint); white-space: nowrap; font-size: 0.72rem; }
.files a.dl {
  font-family: var(--mono); font-size: 0.74rem; text-transform: lowercase;
  color: var(--accent);
  border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px;
  transition: border-color 120ms; white-space: nowrap;
}
.files a.dl:hover { border-color: var(--accent); }

.dl-all { margin-top: 20px; }

.avail {
  margin-top: 24px; color: var(--ink-faint);
  font-family: var(--mono); font-size: 10.5px; text-transform: lowercase;
  text-align: center; line-height: 1.8;
}
.rule-accent { height: 3px; background: var(--accent); border-radius: 2px; margin-top: 16px; opacity: 0.85; }

/* ── Gone / storage ── */
.gone-wrap { max-width: 520px; margin: 0 auto; padding: clamp(40px, 10vh, 120px) 20px 80px; }
.gone-card { text-align: center; padding: clamp(30px, 5vw, 46px) clamp(22px, 4vw, 38px); }
.gone-card h1 { margin-bottom: 10px; }
.gone-card p { color: var(--ink-muted); font-size: 0.92rem; margin: 0; line-height: 1.7; }

/* ── Footer ── */
.site-foot {
  border-top: 1px solid var(--line);
  min-height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(18px, 3vw, 40px);
  font-family: var(--mono); color: var(--ink-faint); font-size: 10.5px;
  letter-spacing: 0.02em; text-transform: lowercase;
}

@media (max-width: 720px) {
  .tbl .hide-sm { display: none; }
  .linkbox .lb-row { flex-direction: column; }
  .brand span { font-size: 0.92rem; letter-spacing: 0.12em; }
}
