/* Love Your Package — shared styles for resource pages */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-attachment: fixed;
  color: #ffffff;
  line-height: 1.6;
  padding: 2rem 1.5rem 4rem;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- header nav ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.site-header a:hover {
  color: #ffffff;
}

.site-header .brand {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.site-header nav {
  display: flex;
  gap: 1.25rem;
}

/* ---------- article typography ---------- */

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #ff9a5a;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(1.85rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.5rem;
}

.article h2 {
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.85rem;
}

.article h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.75rem 0 0.6rem;
  color: rgba(255, 255, 255, 0.95);
}

.article p,
.article li {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
}

.article ul,
.article ol {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.article li {
  margin-bottom: 0.5rem;
}

.article strong {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
}

.article a {
  color: #ff9a5a;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article code {
  font-family: 'Consolas', 'SF Mono', ui-monospace, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  color: #ffd9a0;
}

/* ---------- callout ---------- */

.callout {
  background: rgba(78, 168, 222, 0.1);
  border: 1px solid rgba(78, 168, 222, 0.3);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  margin: 2rem 0;
}

.callout h3 {
  margin-top: 0;
  font-size: 0.95rem;
  color: #ffffff;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ---------- table ---------- */

.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

td {
  color: rgba(255, 255, 255, 0.72);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

/* ---------- resource index cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.card {
  display: block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.card:hover {
  border-color: rgba(255, 154, 90, 0.5);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-2px);
}

.card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.card p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* ---------- footer ---------- */

.article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.article-footer a {
  color: #ff9a5a;
  text-decoration: none;
  font-size: 0.9rem;
}

.article-footer a:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.45);
}

.disclaimer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  margin-top: 2rem;
}
