/* Page styles for the alecmoore.dev Internal Tools landing page.
   Built on the Organic design system (styles.css). Values are transcribed
   from the design source; the design tool's style-hover / style-focus
   attributes are expressed here as real :hover / :focus-visible rules. */

/* The decorative circle is meant to bleed past the top-right page edge;
   clip on the root guarantees that bleed never creates horizontal scroll. */
html { overflow-x: clip; }
body { text-wrap: pretty; overflow-x: clip; }

/* Plain in-content links (footer, running text). Component links below
   set their own colour and keep it through hover. */
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent-800); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ── nav ─────────────────────────────────────────────────────────────── */
.nav {
  padding-inline: max(clamp(20px, 5vw, 72px), calc((100% - 1100px) / 2 + clamp(20px, 5vw, 72px)));
}
.nav-link { font-weight: 600; }

/* ── centred content column + bleeding decorative circle ─────────────── */
.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 72px);
  position: relative;
}
.wrap-blob {
  position: absolute;
  right: -140px;
  top: -180px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--color-accent-2-200);
  pointer-events: none;
  z-index: -1;
}

/* ── hero ────────────────────────────────────────────────────────────── */
.hero { padding: clamp(64px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.hero-title {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
}
.hero-lede {
  font-size: 17px;
  line-height: 1.65;
  max-width: 58ch;
  margin: 28px 0 0;
}

/* ── tools grid ──────────────────────────────────────────────────────── */
.tools { padding: 14px 0 56px; }
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

/* tool card (whole card is a link) */
.tool-card {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-neutral-100);
  border-radius: 32px;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tool-card:hover {
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.tool-card:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.tool-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.tool-icon {
  display: grid;
  place-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent-100);
  color: var(--color-accent-700);
}
.tool-title { font-size: 26px; line-height: 1.2; margin: 0; }
.tool-desc {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 12px 0 0;
  color: var(--color-neutral-700);
}
.tool-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent-700);
}
.tool-owner-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}
.tool-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent-2-700);
}

/* "more tools" placeholder card */
.tool-placeholder {
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  min-height: 220px;
  padding: 36px 32px;
  border: 2px dashed var(--color-neutral-300);
  border-radius: 32px;
}
.tool-placeholder-icon {
  display: grid;
  place-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--color-accent-2-100);
  color: var(--color-accent-2-700);
}
.tool-placeholder-text {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0;
  max-width: 26ch;
  color: var(--color-neutral-700);
}

/* ── feedback panel ──────────────────────────────────────────────────── */
.feedback { padding: 0 0 72px; }
.feedback-panel {
  background: var(--color-accent-2-100);
  border-radius: 32px;
  padding: 56px clamp(24px, 4vw, 64px);
}
.feedback-title { font-size: 26px; line-height: 1.2; margin: 0; }
.feedback-text {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 12px 0 0;
  max-width: 58ch;
  color: var(--color-neutral-800);
}
.feedback-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ── footer ──────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 0 0 56px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--color-neutral-700);
}

/* ── issue-picker dialog (built on .dialog-backdrop / .dialog) ───────── */
.picker-backdrop { display: none; z-index: 50; }
.picker-backdrop.is-open { display: grid; place-items: center; }
.picker-dialog { max-width: 420px; width: calc(100% - 48px); }
.picker-title { margin: 0; }
.picker-body {
  font-size: 15.5px;
  line-height: 1.65;
  margin: 12px 0 0;
  color: var(--color-neutral-700);
}
.picker-list { display: grid; gap: 12px; margin-top: 24px; }
.picker-tool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-neutral-100);
  border-radius: 999px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
}
.picker-tool svg { flex: none; }
.picker-tool:hover { color: var(--color-text); background: var(--color-accent-100); }
.picker-tool:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.picker-actions { margin-top: 24px; }

/* ── 404 page ────────────────────────────────────────────────────────── */
.notfound {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(80px, 16vh, 180px) clamp(20px, 5vw, 72px);
  text-align: center;
}
.notfound-code {
  font-family: var(--font-heading);
  font-size: clamp(64px, 14vw, 120px);
  line-height: 1;
  margin: 0;
  color: var(--color-accent);
}
.notfound-title { font-size: clamp(28px, 5vw, 42px); line-height: 1.1; margin: 12px 0 0; }
.notfound-text {
  font-size: 17px;
  line-height: 1.65;
  margin: 16px 0 28px;
  color: var(--color-neutral-700);
}

/* ── lock screen (private, password + Turnstile) ─────────────────────── */
.gate-icon {
  display: grid;
  place-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: var(--color-accent-100);
  color: var(--color-accent-700);
}
.lock {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: clamp(24px, 6vw, 64px) clamp(20px, 5vw, 72px);
}
.lock-card {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: var(--space-2);
  padding: clamp(28px, 5vw, 40px);
  border-radius: 32px;
  background: var(--color-neutral-100);
  box-shadow: var(--shadow-md);
}
.lock-title { font-size: 26px; line-height: 1.2; margin: 4px 0 0; }
.lock-text { font-size: 15.5px; line-height: 1.65; margin: 0 0 8px; color: var(--color-neutral-700); }
.lock-form { display: flex; flex-direction: column; gap: var(--space-3); text-align: left; }
.lock-error { margin: 0; font-size: 13px; text-align: center; color: var(--color-accent-700); }
