/* Catálogos permanentes de Shalom Haverim */

:root {
  color-scheme: light;
  --ink: #302219;
  --muted: #674f3d;
  --gold: #876326;
  --paper: #faf6ec;
  --blue: #132e4e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.06rem/1.6 Georgia, serif;
}

a {
  color: inherit;
  text-underline-offset: .2em;
}

a:focus-visible {
  outline: 3px solid #ad721f;
  outline-offset: 4px;
}

header {
  background: #302219;
  color: #fff7de;
  border-bottom: 3px solid #bb965b;
}

nav, main, footer {
  width: min(1100px, 92%);
  margin-inline: auto;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-block: 14px;
  font-family: system-ui, sans-serif;
  font-size: .94rem;
}

nav a:first-child {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  font-weight: bold;
  margin-right: auto;
}

nav a[aria-current] {
  text-decoration-thickness: 3px;
}

main {
  padding-block: clamp(30px, 6vw, 70px);
}

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

h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -.035em;
}

.intro {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 62ch;
  margin-top: 16px;
}

section {
  margin-top: 38px;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 255px), 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid #d9c9a8;
  border-radius: 12px;
  background: #fffdf8;
  text-decoration: none;
}

a.tile:hover {
  border-color: var(--gold);
  background: #fff9e9;
}

.tile h3 {
  font-size: 1.48rem;
  line-height: 1.18;
}

.tile p {
  color: var(--muted);
}

.action {
  margin-top: auto;
  padding-top: 8px;
  color: #70501f;
  font: bold .96rem/1.5 system-ui, sans-serif;
}

.cover {
  align-self: flex-start;
  min-width: 84px;
  padding: 10px 14px;
  color: #f4d99b;
  background: var(--blue);
  border-inline-start: 4px solid #a48548;
  font-size: 1.5rem;
  text-align: center;
}

.pending {
  margin-top: 38px;
  border-top: 1px solid #d9c9a8;
  padding-top: 22px;
}

footer {
  border-top: 1px solid #d9c9a8;
  padding-block: 18px 30px;
  color: var(--muted);
}
