/* try.foldocs.com: a page of its own, in the colors of the Foldocs logo, kept quiet: the question,
   or how things stand, in a light band at the top; what follows below it, in one centered column.
   The logo's blue is for what to do: the button, the links, the progress. No scripts. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("bricolage-grotesque.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

:root {
  --blue: #1f63d6;   /* the logo's folder, deepened to carry white text */
  --ink: #16212e;    /* the logo's lettering */
  --paper: #ffffff;
  --tint: #eef4fe;   /* the logo's lightest blue, lighter still */
  --slate: #5a6472;
  --line: #d3dbe7;
  --bad: #b3261e;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: 1.25rem;
  --column: 44rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --blue: #8db4ff; --ink: #e9eef6; --paper: #16212e; --tint: #1c2a3d; --slate: #a3adbb; --line: #33445b; --bad: #ffb4ab; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.55 var(--ui); }
a { color: var(--blue); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* The top: the logo, home here; foldocs.com, for what Foldocs is. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: calc(var(--column) + 16rem); margin: 0 auto; padding: 1rem var(--pad); }
.top img { display: block; width: auto; height: 1.6rem; }
.top a { color: var(--ink); font-size: 0.95rem; }

/* The band: the page's question or its state, centered. */
.band { background: var(--tint); padding: clamp(2rem, 5vw, 3.5rem) var(--pad) clamp(2rem, 4vw, 3rem); text-align: center; }
.band > * { max-width: var(--column); margin-inline: auto; }
h1 { margin: 0 auto; font: 700 clamp(2rem, 4.5vw, 3.25rem)/1.05 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.band .status { margin: 0.75rem auto 0; font-size: 1.15rem; text-wrap: balance; }
.band .fine { margin: 1rem auto 0; font-size: 0.9rem; color: var(--slate); }
.band .address { display: inline-block; margin-top: 1rem; font: 700 clamp(1.15rem, 2.6vw, 1.6rem)/1.2 var(--display);
  overflow-wrap: anywhere; }

/* The form: one wide field, its button beside it; the optional ones folded away. */
.make { margin-top: 1.75rem; }
.make > label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.field { display: flex; flex-wrap: wrap; gap: 0.5rem; text-align: left; }
.field input { flex: 1 1 18rem; min-width: 0; }
input, select { font: inherit; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); }
input:focus-visible, select:focus-visible { outline-offset: 0; }
button { font: 600 1rem var(--ui); min-height: 3rem; padding: 0 1.25rem; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--blue); color: #fff; }
@media (prefers-color-scheme: dark) { button { color: #16212e; } }
button:hover { filter: brightness(0.92); }
button.quiet { background: none; color: var(--ink); border: 1px solid var(--line); }
button.quiet:hover { border-color: var(--ink); filter: none; }
.make details { margin-top: 0.75rem; font-size: 0.95rem; }
.make summary { cursor: pointer; width: fit-content; margin-inline: auto; color: var(--slate); }
.make .optional { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-top: 0.75rem; text-align: left; }
.make .optional label { display: grid; gap: 0.35rem; }
.band .again { margin-top: 1.25rem; }
.band .said { margin: 0 auto 1.25rem; font-weight: 600; text-wrap: balance; }
.band .said[role="alert"] { color: var(--bad); }

/* Removing asks once more: its button shows only after "Remove it now" is opened. */
.confirm summary { display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.25rem; border: 1px solid var(--line);
  border-radius: 6px; cursor: pointer; font-weight: 600; list-style: none; }
.confirm summary::-webkit-details-marker { display: none; }
.confirm summary:hover { border-color: var(--ink); }
.confirm form { margin-top: 1rem; }

/* While a site is made: one line going back and forth, the page's only motion. */
.progress { position: relative; height: 3px; margin: 1.5rem auto 0; max-width: 24rem; overflow: hidden; background: var(--line); }
.progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--blue); animation: progress 1.6s ease-in-out infinite alternate; }
@keyframes progress { to { transform: translateX(233%); } }
@media (prefers-reduced-motion: reduce) { .progress::after { animation: none; width: 100%; opacity: 0.6; } }

/* Below the band: one centered column, its text left-aligned. */
main { padding: clamp(2rem, 5vw, 3rem) var(--pad) 1rem; }
main > * { max-width: var(--column); margin-inline: auto; }
main > section + section { margin-top: 2.5rem; }
h2 { margin-block: 0 0.75rem; font: 700 1.35rem/1.2 var(--display); letter-spacing: -0.01em; }
h3 { margin-block: 0 0.25rem; font: 600 1rem/1.3 var(--ui); }
p { margin-block: 0 1rem; }  /* only top and bottom: a column centers them */
.muted { color: var(--slate); font-size: 0.95rem; }
.bad { color: var(--bad); }
main form { margin-block: 0 1.25rem; }
main form p { margin-bottom: 0.5rem; }
.inline { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.inline label { flex-basis: 100%; font-weight: 600; }

/* How it works: a real sequence, so numbered. */
ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
ol.steps li { counter-increment: step; }
ol.steps h3::before { content: counter(step) ". "; color: var(--blue); }
ol.steps p { margin: 0; color: var(--slate); font-size: 0.95rem; }

/* What becomes what: the folder on the left, the site on the right, a folder's files indented. */
.map { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.map th { text-align: left; padding: 0 1.5rem 0.5rem 0; font-weight: 600; color: var(--slate); }
.map td { padding: 0.3rem 1.5rem 0.3rem 0; vertical-align: top; border-top: 1px solid var(--line); }
.map td:first-child { font-weight: 600; white-space: nowrap; }
.map .in { padding-left: 1.25rem; }
.map code { font: inherit; color: var(--slate); }

ul.mine { margin-block: 0; padding: 0; list-style: none; }
ul.mine li { margin-bottom: 0.5rem; }

/* The foot: where to go from here. */
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; padding: 2.5rem var(--pad); font-size: 0.9rem; }
.foot a { color: var(--slate); }

@media (max-width: 40rem) {
  .map td:first-child { white-space: normal; }
  .field button { flex: 1 1 100%; }
}
