/* Folder Finder — screen styles */
:root {
  --paper: #161412;
  --paper-deep: #100e0c;
  --ink: #f4efe6;
  --ink-soft: #c4b9a6;
  --rule: #3a342b;
  --margin: #d4a24a;
  --stamp: #d4a24a;
  --stamp-soft: #3a2f1c;
  --card: #221f1b;
  --focus: #e8d9b0;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --danger: #e08b7a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 500px at 10% -10%, #2a2318 0%, transparent 55%),
    var(--paper);
  min-height: 100vh;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
}

header.site, footer.site {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
header.site { margin-bottom: 2.5rem; }
footer.site {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer.site p { margin: 0 0 0.4rem; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
}
.brand svg { flex: none; }
.brand-name { font-family: var(--serif); font-weight: 650; font-size: 1.05rem; }
.header-note { margin: 0; color: var(--ink-soft); font-size: 0.85rem; max-width: 16rem; text-align: right; }

.hero h1, h2, h3, h4, legend, .brand-name, .price {
  font-family: var(--serif);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.kicker {
  margin: 0 0 0.5rem;
  color: var(--margin);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 0.75rem; line-height: 1.15; }
h2 { font-size: 1.6rem; margin: 0 0 0.6rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }

.lede, .context, .privacy, .sub, .note { color: var(--ink-soft); }
.privacy, .hint, .note { font-size: 0.95rem; }

.actions, .nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.1rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--margin);
  background: var(--margin);
  color: #161412;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.btn:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-small { padding: 0.3rem 0.75rem; font-size: 0.9rem; }

.checks { margin: 2.5rem 0; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1rem 1.05rem 1.15rem;
  box-shadow: var(--shadow);
}
.num { font-family: var(--mono); color: var(--margin); font-weight: 600; margin: 0 0 0.35rem; }

.panel, .paid-box {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.4rem 1.3rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow);
}

.drop-zone {
  border: 1.5px dashed var(--rule);
  border-radius: 14px;
  padding: 1.2rem;
  background: var(--paper-deep);
  text-align: center;
}
.drop-zone.is-over {
  border-color: var(--margin);
  background: var(--stamp-soft);
}
.fallback {
  display: block;
  margin-top: 1rem;
  text-align: left;
}
.fallback input[type="file"] {
  display: block;
  margin-top: 0.35rem;
  width: 100%;
  color: var(--ink-soft);
}

label { display: block; margin: 0.8rem 0; }
.lbl { display: block; font-weight: 650; margin-bottom: 0.3rem; }
input[type="search"], input[type="text"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--paper-deep);
  color: var(--ink);
  font: inherit;
}
input:focus { outline: 2px solid var(--margin); outline-offset: 1px; }

.hint { display: block; color: var(--ink-soft); font-weight: 400; margin-top: 0.25rem; }
.err { color: var(--danger); font-weight: 600; }

.price { font-family: var(--serif); font-size: 2rem; margin: 0.4rem 0 0.8rem; color: var(--margin); }
.paid-box ul { padding-left: 1.2rem; }
.nudge { margin-top: 1rem; }
.nudge a { color: var(--margin); }

.results { margin-top: 1.5rem; }
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}
figure.result {
  margin: 0;
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  border-radius: 12px;
  overflow: hidden;
}
figure.result img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #000;
}
figure.result figcaption {
  padding: 0.5rem 0.6rem 0.65rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
figure.result .name {
  display: block;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
figure.result .score { font-family: var(--mono); font-size: 0.75rem; }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  header.site { flex-direction: column; align-items: flex-start; }
  .header-note { text-align: left; max-width: none; }
}

@media print {
  body { background: #fff; color: #111; }
  .no-print, .skip, .drop-zone, .nav-row, #paid, .nudge { display: none !important; }
}

@page { size: letter; margin: 0.55in; }
