/* GENERATED by tools/build-site.py: the faces and Shale's tokens from
   brand/vendor, then Site/src/site.css. Never edit by hand. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/fonts/jost-86989f50.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-400-c0879324.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/inter-600-6d25a6d1.woff2) format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/dm-mono-400-b9a881a1.woff2) format("woff2");
}
:root {
  --paper: #eef0f2;
  --paper-2: #fafbfc;
  --line: #cdd4da;
  --line-soft: #dce1e6;
  --ink: #12161a;
  --ink-2: #394149;
  --ink-3: #5c656d;
  --accent: #b0602c;
  --accent-ink: #8a4316;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111519;
    --paper-2: #171c21;
    --line: #2c3339;
    --line-soft: #222a30;
    --ink: #efe7da;
    --ink-2: #bdb6aa;
    --ink-3: #8e949a;
    --accent: #d98b5f;
    --accent-ink: #eba47a;
    color-scheme: dark;
  }
}
/* The arrangement of www.kropach.app: the sign-in, and the window drawn as
   the Mac app draws its own (App/Kropach/MainWindow.swift): the brand and
   the places at the head of the sidebar, the place's list under them, and
   the chosen item in the detail column. tools/build-site.py puts the faces
   and Shale's tokens, read from the vendored brand, above this, and writes
   the whole as one stylesheet named by a hash of its bytes. Edit this file,
   never the one in Site/public/. */

/* [hidden] stays authoritative: an author display once overrode it on the
   studio's site and shipped a control that should not have shown. */
[hidden] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }

/* The chosen row's wash, the Mac's Theme.accentWash, from the accent of
   whichever set the system shows. */
:root { --wash: color-mix(in srgb, var(--accent) 14%, transparent); }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--accent); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

button, input { font: inherit; color: inherit; }

button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  padding: 0.5rem 1rem;
}
button:hover { border-color: var(--ink-3); }
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper-2);
  font-weight: 600;
}
button.primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
button.quiet {
  border: 0;
  background: none;
  color: var(--ink-3);
  padding: 0.25rem 0.5rem;
}
button.quiet:hover { color: var(--accent-ink); }
button:disabled { opacity: 0.55; cursor: progress; }

input[type="text"] {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-2);
  font-family: "DM Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

/* ---- The sign-in, the setup and the codes: one quiet column. ---- */

.gate {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-align: center;
  width: 100%;
  max-width: 26rem;
  margin: 0 auto;
  padding: 3rem max(16px, env(safe-area-inset-left)) 2rem max(16px, env(safe-area-inset-right));
}
.gate p { margin: 0; color: var(--ink-2); }
.gate form { width: 100%; display: grid; gap: 0.75rem; text-align: left; }
.gate .primary { width: 100%; padding: 0.7rem 1rem; }

.seal { display: block; width: 5.5rem; height: 5.5rem; }

h1 {
  margin: 0;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.05;
}

/* A message the page shows by its address alone (#failed, #later), so the
   form without the script can say how it went; the script sets .shown. */
.note { display: none; margin: 0; color: var(--accent-ink); }
.note:target, .note.shown { display: block; }
.said { color: var(--accent-ink) !important; }

.opener { color: var(--ink-2); font-size: 0.875rem; }
.recovery { display: none !important; }
.recovery:target, .note:target ~ .recovery { display: grid !important; }
.note:target ~ .opener { display: none; }

.codes {
  margin: 0;
  padding: 0.75rem 1rem;
  width: 100%;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.875rem;
}

footer {
  padding: 1.25rem 16px max(1.5rem, env(safe-area-inset-bottom));
  text-align: center;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}
footer a { color: var(--ink-3); text-decoration: none; }
footer a:hover { color: var(--accent-ink); text-decoration: underline; }
body.inside footer { display: none; }

/* ---- The window. ---- */

.window {
  flex: 1;
  display: grid;
  grid-template-columns: 17rem minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0.625rem max(1rem, env(safe-area-inset-bottom)) max(0.625rem, env(safe-area-inset-left));
  background: var(--paper-3);
  border-right: 1px solid var(--line-soft);
  min-width: 0;
  max-height: 100vh;
  max-height: 100svh;
  position: sticky;
  top: 0;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.25rem 0 0.75rem;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
}
.brand .seal { width: 2.25rem; height: 2.25rem; }

.places, .items { list-style: none; margin: 0; padding: 0; }
.places {
  display: grid;
  gap: 2px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.places a, .items a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.625rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.8125rem;
}
.places a:hover, .items a:hover { background: var(--paper-2); color: var(--ink); }
.places a[aria-current="page"], .items a[aria-current="page"] {
  background: var(--wash);
  font-weight: 600;
}
.places svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1.4;
  stroke-linejoin: round;
}
.places a[aria-current="page"] svg { stroke: var(--accent-ink); }

.items { display: grid; gap: 1px; flex: 1; align-content: start; }
.items a { flex-direction: column; align-items: stretch; gap: 0; }
.items .title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.items .sub {
  color: var(--ink-3);
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.empty { margin: 0.5rem 0.625rem; color: var(--ink-3); font-size: 0.8125rem; }
.signout { align-self: flex-start; margin-top: auto; }

.detail {
  min-width: 0;
  padding: 2rem max(16px, env(safe-area-inset-right)) 3rem 2.5rem;
}
.detail .back { display: none; }
#view { max-width: 46rem; }

#view h2 {
  margin: 0 0 0.25rem;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.15;
}
#view h3 {
  margin: 2rem 0 0.5rem;
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
#view p { margin: 0 0 0.5rem; }
.meta {
  color: var(--ink-3);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.75rem;
}
.readonly { margin: 0.75rem 0 1.5rem !important; color: var(--ink-3); font-size: 0.8125rem; }

/* A chat: the person's turns on the right in a bubble, the model's on the
   left in the page, as the Mac sets them. */
.turns { display: grid; gap: 1rem; }
.turn { white-space: pre-wrap; }
.turn.user {
  justify-self: end;
  max-width: 85%;
  padding: 0.6rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.turn .meta { display: block; margin-top: 0.35rem; }

/* A project: its phase steps, Your move, and its parts. */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.rows li {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--paper-2);
}
.rows .what { font-weight: 600; }
.rows.parts { margin-top: 2rem; }
.rows .why { color: var(--ink-2); font-size: 0.875rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.steps li { display: flex; gap: 0.6rem; align-items: baseline; }
.steps .dot {
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1.5px solid var(--line);
}
.steps .done .dot { background: var(--second); border-color: var(--second); }
.steps .now .dot { background: var(--accent); border-color: var(--accent); }
.steps .now { font-weight: 600; }
.pill {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--paper-3);
  color: var(--ink-2);
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
}
.failed { color: var(--accent-ink); }

/* A phone, or any narrow window: the sidebar is the screen, and an item
   opens over it with the place's name to go back. */
@media (max-width: 760px) {
  .window { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: static;
    max-height: none;
    border-right: 0;
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
    min-height: 100vh;
    min-height: 100svh;
  }
  .detail { display: none; padding: 1rem 16px 2rem; }
  .window.open .sidebar { display: none; }
  .window.open .detail { display: block; }
  .detail .back {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-decoration: none;
  }
  .turn.user { max-width: 92%; }
}
