/* coffeeisart.com — one screen, no scroll. */

:root {
  --paper: #f3f5f6;
  --ink: #16181a;
  --soft: #79818a;
  --rule: #d3d9dd;
  --blue: #3C83F6;
  --err: #b3402c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131517;
    --ink: #e9edf0;
    --soft: #7c848c;
    --rule: #2b3035;
    --blue: #5C9BFF;
    --err: #e08a74;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2rem, 7vh, 4rem);
  padding: clamp(1.75rem, 5vw, 5rem);
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

main { max-width: 46rem; }

/* The wordmark is drawn, not set: a geometric monoline alphabet built from
   exact circles, arcs and strokes. Steel for the name, blue for the tld. */
.mark {
  margin: 0;
  max-width: min(100%, 52rem);
}

/* <use> clones into a shadow tree, so descendant selectors never reach the
   glyphs. Only inherited properties get in, which is why every paint rule
   lives on the svg or the group, never on `.mark path`. */
.mark svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.steel { color: #5c646c; stroke: url(#steel); }
.blue  { color: var(--blue); stroke: var(--blue); }

/* Brushed steel needs two ramps. On light stock the metal has to read DARK
   with bright highlights; on dark stock it inverts, or the mark disappears.
   The 52% band is a cool blue cast, the way real steel picks up its room. */
.s1 { stop-color: #8e969e; }
.s2 { stop-color: #565e66; }
.s3 { stop-color: #b9c1c8; }
.s4 { stop-color: #434b53; }
.s5 { stop-color: #6f89ad; }
.s6 { stop-color: #a5adb4; }
.s7 { stop-color: #383f46; }
.s8 { stop-color: #8b939a; }
.s9 { stop-color: #525a62; }

@media (prefers-color-scheme: dark) {
  .steel { color: #c6ccd1; }
  .s1 { stop-color: #eef1f3; }
  .s2 { stop-color: #98a0a8; }
  .s3 { stop-color: #f6f8f9; }
  .s4 { stop-color: #7b838b; }
  .s5 { stop-color: #aebccd; }
  .s6 { stop-color: #e4e8eb; }
  .s7 { stop-color: #6d757d; }
  .s8 { stop-color: #c6ccd1; }
  .s9 { stop-color: #848c94; }
}

.line {
  margin: clamp(1rem, 3vh, 1.75rem) 0 clamp(2rem, 5vh, 3rem);
  max-width: 34rem;
  color: var(--soft);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

/* ── Form ──────────────────────────────────────────────── */

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem 1.75rem;
}

.f { flex: 1 1 15rem; min-width: 0; }
.f--amt { flex: 0 1 9rem; }

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
}

input {
  width: 100%;
  padding: 0.45rem 0 0.5rem;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

input:hover { border-bottom-color: var(--soft); }

input:focus {
  outline: none;
  border-bottom-color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--ink);
}

.amt { display: flex; align-items: baseline; gap: 0.35rem; }
.amt span { color: var(--soft); font-size: 1.05rem; }

button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0.6rem 1.75rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

button:hover { background: none; color: var(--ink); }
button:disabled { opacity: 0.4; cursor: default; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.invalid input { border-bottom-color: var(--err); }

.msg {
  margin: 1.25rem 0 0;
  min-height: 1.4rem;
  font-size: 0.88rem;
  color: var(--err);
}

.msg.wait { color: var(--soft); }

.done {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

/* Honeypot. Off screen, out of the tab order, never announced. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Short viewports: shed the vertical air before anything clips. */
@media (max-height: 560px) {
  body { justify-content: flex-start; gap: 1.5rem; }
  .line { margin-bottom: 1.5rem; }
}
