/*
 * moreutils.com hub, skinned with the 2222 theme pack (/theme/theme.css, copied from
 * apps/2222/app/static/theme), like the tools it lists: burnt-orange grain,
 * cream ink, Crimson Pro. One column of tool cards; each whole card is the link.
 */

* { box-sizing: border-box; }
body {
  margin: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

header, main, footer { width: min(640px, calc(100% - 32px)); margin: 0 auto; }
header { height: 60px; display: flex; align-items: center; border-bottom: 1px solid var(--veil-2); }
.wordmark { color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 600; letter-spacing: -.3px; font-style: italic; }
main { padding-top: 36px; }

h1 { font-size: 34px; line-height: 1.12; font-weight: 400; letter-spacing: -.7px; margin: 0 0 8px; }
.lede { margin: 0 0 28px; font-size: 18px; font-weight: 200; font-style: italic; color: var(--ink-3); }

/* Tool cards: icon, name, one line, a short how-it-works, and the address it opens. */
.tools { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tool {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start;
  padding: 18px 20px; border: 1px solid var(--veil-3); border-radius: var(--r-md);
  background: var(--veil-1); color: var(--ink); text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.tool:hover { background: var(--veil-2); border-color: var(--veil-4); }
.tool:active { background: var(--veil-3); }
.tool-icon { display: block; width: 48px; height: 48px; border-radius: 11px; box-shadow: 0 0 0 1px var(--veil-2); }
.tool-text { display: flex; flex-direction: column; min-width: 0; }
.tool-name { display: flex; align-items: baseline; gap: 10px; font-size: 22px; font-weight: 500; letter-spacing: -.3px; line-height: 1.2; }
.tool-tag { font-size: 12px; font-weight: 400; font-style: italic; color: var(--ink-3); border: 1px solid var(--veil-3); border-radius: var(--r-pill); padding: 1px 9px 2px; letter-spacing: 0; }
.tool-line { margin-top: 2px; font-size: 18px; font-weight: 400; font-style: italic; color: var(--ink-2); }
.tool-more { margin-top: 8px; font-size: 15px; font-weight: 300; line-height: 1.5; color: var(--muted); }
.tool-host { margin-top: 10px; font-size: 13px; color: var(--ink-4); overflow-wrap: anywhere; }
.tool:hover .tool-host { color: var(--accent); }

footer { padding: 36px 0 32px; }
footer p { margin: 0; font-size: 13px; font-style: italic; color: var(--ink-4); }

@media (max-width: 420px) {
  h1 { font-size: 29px; }
  .tool { grid-template-columns: 40px 1fr; gap: 14px; padding: 16px; }
  .tool-icon { width: 40px; height: 40px; border-radius: 9px; }
  .tool-name { font-size: 20px; }
}
