/* Juno's apps: The Logbook's look. Navy / cream / brass. */

:root {
  --navy: #1c2c4c;
  --navy-deep: #142038;
  --ink: #24304a;
  --ink-soft: #4d5568;
  --cream: #faf6ee;
  --card: #ffffff;
  --brass: #b8892d;
  --brass-soft: #e9d9b4;
  --line: #e6dfd2;
  --muted: #6b7386;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(28, 44, 76, 0.07), 0 10px 30px rgba(28, 44, 76, 0.06);
  --shadow-lift: 0 4px 14px rgba(28, 44, 76, 0.1), 0 14px 34px rgba(28, 44, 76, 0.09);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  min-height: 100vh;
}

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

/* The header */
.top {
  background: var(--navy);
  color: var(--cream);
  padding: calc(34px + env(safe-area-inset-top)) 0 38px;
}
.hello {
  margin: 0 0 4px;
  color: var(--brass-soft);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.brand {
  display: inline-block;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.1;
}
.carry { margin: 14px 0 0; font-size: 15px; color: rgba(250, 246, 238, 0.8); }
.carry a {
  color: var(--cream);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--brass);
}

/* The apps */
main { padding-top: 8px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.group h2 {
  margin: 34px 0 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--navy);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.app {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.app:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.app:active { transform: translateY(0) scale(0.99); }
.app:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 1px 3px rgba(28, 44, 76, 0.18);
}
.words { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--navy);
}
.blurb { font-size: 15px; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .app { transition: none; }
  .app:hover { transform: none; }
}
