:root {
  --bg-base: #f3f0fa;
  --accent: #2e1065;
  --text: #334155;
  --bg-surface: #ffffff;
  --border-radius: 4px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 3vw;
  background-color: var(--bg-base);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.8;
  overflow-wrap: anywhere;
  hyphens: auto;
}
/* Background framing */
.page-wrapper {
  border: 1px solid var(--accent);
  background-color: var(--bg-base);
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}
/* Typography */
h1, h2, h3, h4 {
  color: var(--accent);
  margin-top: 0;
  line-height: 1.2;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
p {
  margin-bottom: 1.5rem;
}
/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  margin: 2vw;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(46, 16, 101, 0.05);
  border-radius: var(--border-radius);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
.brand-link {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent);
  text-decoration: none;
}
.brand-link:hover {
  text-decoration: none;
}
/* Navigation */
.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
/* Hero */
.hero {
  min-height: 94vh;
  background: linear-gradient(rgba(46, 16, 101, 0.7), rgba(46, 16, 101, 0.8)), url('images/hero-pasta-vector.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
}
.hero-content {
  max-width: 800px;
  color: #ffffff;
  padding-top: 5rem;
}
.hero h1 {
  color: #ffffff;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}
/* Layout Blocks */
.main-content {
  padding: 4rem 2vw;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.lead-block {
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(46, 16, 101, 0.05);
  margin-bottom: 4rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.lead-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 16, 101, 0.1);
}
.grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .grid-2col {
    grid-template-columns: 1fr 1fr;
  }
}
/* Cards */
.card {
  background: var(--bg-surface);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(46, 16, 101, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(46, 16, 101, 0.15);
}
.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.card-body {
  padding: 2rem;
  flex-grow: 1;
}
/* Components */
.btn {
  display: inline-block;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.8rem 1.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}
.btn:hover {
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}
/* Forms & Panels */
.panel {
  background: var(--bg-surface);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(46, 16, 101, 0.05);
}
.form-group {
  margin-bottom: 1.5rem;
}
label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
input, select, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--border-radius);
  font-family: inherit;
  color: var(--text);
  background: var(--bg-base);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}
.hidden {
  display: none;
}
/* Generic Header for subpages */
.page-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
  background: var(--bg-surface);
  border-bottom: 1px solid rgba(46, 16, 101, 0.1);
}
/* Article constraints */
.content-article {
  max-width: 72ch;
  margin: 0 auto;
  background: var(--bg-surface);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(46, 16, 101, 0.05);
}
.content-article img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}
/* Table wrapper */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 1rem;
  border: 1px solid rgba(46, 16, 101, 0.1);
  text-align: left;
}
th {
  background: var(--bg-base);
  color: var(--accent);
}
/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--bg-surface);
  padding: 3rem 2vw;
  border-top: 1px solid rgba(46, 16, 101, 0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid h4 {
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(46, 16, 101, 0.1);
  font-size: 0.9rem;
}
/* Mobile */
@media (max-width: 767px) {
  body {
    padding: 1rem;
  }
  .site-header {
    margin: 1rem;
    padding: 1rem;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 8px 25px rgba(46, 16, 101, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
  }
  .nav-links.active {
    display: flex;
  }
  .menu-btn {
    display: block;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .lead-block {
    padding: 1.5rem;
  }
}

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