@font-face {
  font-family: 'Work Sans';
  src: url('/public/fonts/WorkSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('/public/fonts/WorkSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Work Sans';
  src: url('/public/fonts/WorkSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}


/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Work Sans", system-ui, sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  line-height: 1.6;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #334058;
  font-family: "Sanchez", serif;
  font-weight: 700;
  margin: 1.5rem 0 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 3rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Links */
a {
  color: #39c;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 96, 160, .15);
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: #b03000;
  border-bottom-color: rgba(176, 48, 0, .15);
}

/* Code & Blockquotes */
code {
  font-family: monospace;
  color: #fff;
  background: #334058;
  border-radius: 4px;
  padding: 0.2em 0.4em;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
}

blockquote {
  border-left: 4px solid #dfe2e5;
  color: #6a737d;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  font-style: italic;
}

/* Layout Wrappers */
.whole-page {
  max-width: 1000px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
  text-align: left;
}

.containter-1000 {
  max-width: 1000px;
  margin: 2rem auto 4rem;
  padding: 0 1rem;
  text-align: left;
}

/* Responsive Grid */
.two-column {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.project1, .project2, .project3, .project4 {
  min-height: 250px;
  padding: 1rem;
  color: #fff;
  border-radius: 8px;
}

.project1, .project4 {
  background: #334058;
}
.project2, .project3 {
  background: #3399cc;
}

/* Articles */
.site-articles {
  max-width: 652px;
  margin: 2.5rem auto;
  font-size: 1.25rem;
  line-height: 1.6;
  padding: 0 1rem;
}

.site-articles > article {
  margin-bottom: 2rem;
  font-size: 1.125rem;
  color: rgba(0, 0, 0, .85);
}

.site-articles > article:not(:last-child)::after {
  content: "···";
  display: block;
  text-align: center;
  color: #666;
  margin-top: 1.5rem;
  font-size: 1.5rem;
}

/* Article Body */
.article-body {
  margin-top: 3rem;
}

.article-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #39c;
}

.article-body h4 {
  text-decoration: underline;
  margin-top: 1.5rem;
  color: #39c;
}

.article-body ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}

.article-body li {
  margin-bottom: 0.75rem;
}

.article-body li::marker {
  color: #39c;
  font-weight: bold;
}

/* Images & Media */
.article-body img,
.article-body video,
.article-body iframe {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

/* Logo link: remove underline/border */
.top-nav a.logo {
  display: inline-block;
  border: none !important;
  text-decoration: none !important;
}

/* Center the logo */
.top-nav {
  text-align: center; /* centers the logo <a> */
  margin-bottom: 1rem;
  margin-top: 30px;
}

.top-nav a.logo img {
  max-width: 200px;
  height: auto;
  display: inline-block;
}


/* Header Navigation */
.siteHeader {
  font-family: serif;
  font-weight: bold;
  margin-bottom: 2rem;
  text-align: center;
}

.siteHeader nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.siteHeader a.logo,
.siteHeader a.logo:visited,
.siteHeader a.logo:hover {
  border: none !important;
  text-decoration: none !important;
  display: inline-block;
}

.siteHeader nav ul li {
  font-size: 1.2rem;
}

.siteHeader nav ul li a {
  color: #334058;
  font-weight: 400;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.siteHeader nav ul li a:hover {
  color: #3399cc;
  border-bottom-color: #3399cc;
}

.siteHeader nav ul li.selected a {
  font-weight: 700;
  border-bottom: none;
}

/* Tags */
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  background: #f0f0f0;
  color: #212121;
  transition: transform 0.2s ease;
}

.tag:hover {
  transform: scale(1.05);
}

/* Utility */
.spacer50 {
  margin-top: 3rem;
}

/* Responsiveness */
@media (max-width: 600px) {
  body {
    font-size: 95%;
  }

  h1 {
    margin-top: 2rem;
  }

  .image {
    width: 100%;
    height: auto;
  }
}

form {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  max-width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

/* === Labels === */
form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
}

/* === Inputs, Selects, Textareas === */
form input[type=text],
form input[type=password],
form input[type=number],
form select,
form textarea {
  display: block;
  width: 100%;
  font-size: 1rem;
  padding: 10px 14px;
  margin-bottom: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #111827;
}

form input:focus,
form select:focus,
form textarea:focus {
  border-color: #3b82f6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); /* blue-500 */
}

/* === Error Inputs === */
form input.error,
form textarea.error,
form select.error {
  border-color: #dc2626;
  background-color: #fef2f2;
}

form span.error {
  font-size: 0.875rem;
  color: #dc2626;
  margin-top: -12px;
  margin-bottom: 12px;
  display: block;
}

/* === Alert (centered error message) === */
form span.alert {
  display: block;
  text-align: center;
  color: #dc2626;
  font-weight: 500;
  margin: 16px 0;
}

/* === Readonly Inputs === */
form input[readonly] {
  color: #6b7280;
  background-color: #f3f4f6;
}

/* === Buttons === */
form button {
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 16px;
  margin: 6px 8px 6px 0;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

form button[type=submit] {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

form button[type=submit]:hover {
  background-color: #2563eb;
  border-color: #2563eb;
}

form button[type=button] {
  background-color: #f9fafb;
  color: #374151;
}

form button[type=button]:hover {
  background-color: #f3f4f6;
}

form button[disabled] {
  background-color: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

/* === Hidden Inline Form === */
form.hidden {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background-color: transparent;
}

form.hidden button {
  display: inline;
  padding: 0 10px 0 0;
  margin: 0;
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.95rem;
  cursor: pointer;
}

/* === Horizontal Layout === */
form.horizontal {
  display: flex;
  align-items: center; /* Aligns all items vertically */
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  margin-top: 20px;
}

form.horizontal label {
  margin: 0;
  font-weight: 500;
  color: #374151;
  font-size: 0.95rem;
}

/* Select gets consistent styling */
form.horizontal select {
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #f9fafb;
  color: #111827;
  min-width: 200px;
}

/* Button should also be vertically aligned */
form.horizontal button {
  padding: 10px 16px;
  font-size: 1rem;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid #3b82f6;
  background-color: #3b82f6;
  color: white;
  cursor: pointer;
  transition: background-color 0.2s;
}

form.horizontal button:disabled {
  background-color: #e5e7eb;
  border-color: #cbd5e1;
  color: #9ca3af;
  cursor: not-allowed;
}

hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1); /* faded line */
  margin: 3rem 0; /* lots of vertical spacing */

