:root {
  --primary: #000000;
  --primary-hover: #333333;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --text-main: #000000;
  --text-muted: #666666;
  --border: #e5e7eb;
  --accent: #000000;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  padding: 4rem 1rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.header {
  text-align: left; /* Changed to left for a cleaner, more professional look */
  margin-bottom: 5rem;
}

.header h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.header p {
  color: var(--text-muted);
  font-size: 1.25rem;
  max-width: 600px;
}

.card {
  background-color: var(--card-bg);
  border-top: 2px solid var(--primary); /* Minimalistic focus */
  padding: 0; /* Removing card padding for a more open look */
  margin-top: 3rem;
}

section {
  margin-bottom: 4rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

ul {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.last-updated {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
  color: var(--text-muted);
}

footer {
  text-align: left;
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 3rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 0.6;
}

.back-link svg {
  margin-right: 0.75rem;
}

/* Index Grid Styling */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
}

.grid-card {
  border: 1px solid var(--border);
  padding: 2.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.grid-card:hover {
  border-color: var(--text-main);
}

.grid-card h3 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.grid-card p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.grid-card svg {
  width: 32px;
  height: 32px;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.contact-form label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-main);
  padding: 0.85rem 1rem;
  font: inherit;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--text-main);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form button {
  margin-top: 0.5rem;
  border: 1px solid var(--text-main);
  background: var(--text-main);
  color: #fff;
  padding: 0.85rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-form button:hover {
  background: #fff;
  color: var(--text-main);
}

@media (max-width: 640px) {
  body {
    padding: 2rem 1rem;
  }
  .header h1 {
    font-size: 2.5rem;
  }
}
