/*
 * jt.css: the shared look for jevontane.com and its apps.
 * The original lives in jevontane/jevontane.com (site/css/jt.css); each app repo keeps an identical
 * copy at site/jt.css so it deploys on its own. Change it here first, then copy it over.
 */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --accent: #ffe347;
  --stripe: #ededed;
  --line: 4px;
  --line-thin: 3px;
  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 5px 5px 0 var(--ink);
  --font-display: 'Space Grotesk', 'Arial Black', sans-serif;
  --font-mono: 'Space Mono', ui-monospace, 'Courier New', monospace;
  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: var(--line-thin) solid var(--ink);
  outline-offset: 4px;
}

.jt-mono {
  font-family: var(--font-mono);
}

/* Buttons and button-styled links */

.jt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: var(--line-thin) solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font: 700 15px/1 var(--font-mono);
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 80ms ease, box-shadow 80ms ease;
}

.jt-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

.jt-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.jt-btn:disabled {
  cursor: default;
  opacity: 0.6;
  transform: none;
  box-shadow: var(--shadow-sm);
}

.jt-btn--accent {
  background: var(--accent);
}

.jt-btn--ink {
  background: var(--ink);
  color: var(--paper);
}

.jt-striped {
  background: repeating-linear-gradient(45deg, var(--paper) 0 10px, var(--stripe) 10px 20px);
}

/* App shell: a boxed card on wide screens, the whole screen on phones */

.jt-app-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.jt-app {
  width: 100%;
  max-width: 420px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  border: var(--line) solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.jt-app__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: var(--line) solid var(--ink);
}

.jt-app__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.jt-app__home {
  font: 700 13px/1 var(--font-mono);
  text-decoration: none;
  padding: 10px 0 10px 10px;
}

.jt-app__home:hover {
  text-decoration: underline;
}

.jt-app__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 18px;
}

.jt-app__actions {
  display: flex;
  border-top: var(--line) solid var(--ink);
}

.jt-app__action {
  flex: 1;
  min-height: 64px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: 700 18px/1 var(--font-mono);
  text-transform: uppercase;
  cursor: pointer;
}

.jt-app__action + .jt-app__action {
  border-left: var(--line) solid var(--ink);
}

.jt-app__action--accent {
  background: var(--accent);
}

.jt-app__action:hover:not(:disabled) {
  background: var(--ink);
  color: var(--paper);
}

.jt-app__action:disabled {
  cursor: default;
  opacity: 0.6;
}

.jt-app__action:focus-visible {
  outline-offset: -8px;
}

@media (max-width: 480px) {
  .jt-app-page {
    padding: 0;
    place-items: stretch;
  }

  .jt-app {
    max-width: none;
    min-height: 100vh;
    min-height: 100dvh;
    border: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
