
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', Verdana, sans-serif;
  background-color: #f8f6ff;
  background-image: linear-gradient(160deg, #f8f6ff 0%, #f5f5f7 40%, #f0f4fd 100%);
  margin: 0;
  padding: 0;
  color: #3a3632;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.portfolio-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 2rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.portfolio-nav .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #7a7a7a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.portfolio-nav .back-link:hover { color: #5b5ea6; }

.portfolio-nav .back-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.portfolio-nav .nav-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  background: #5b5ea6;
  color: #fff;
  text-decoration: none;
}

#skip-links {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#skip-links a { color: #5b5ea6; }

#wrapper {
  width: min(90%, 960px);
  margin: 0 auto;
  padding: 4.5rem 0 0;
}

#header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 16px 16px 0 0;
  padding: 2.5rem 2.5rem 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: none;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
}

h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.3rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 0.95rem;
  font-weight: 500;
  color: #5b5ea6;
  font-style: italic;
  margin: 0 0 1.5rem;
  letter-spacing: 0.01em;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 1.5rem 0 0.8rem;
}

h4 {
  color: #5b5ea6;
  font-size: 1rem;
  margin: 1.2rem 0 0.6rem;
}

#navigation {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding: 0.8rem 0;
  margin: 0;
  border-top: 1px solid rgba(91, 94, 166, 0.12);
  border-bottom: 1px solid rgba(91, 94, 166, 0.12);
}

.primarynav {
  display: inline-block;
}

.primarynav a {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #5b5ea6;
  text-decoration: none;
  transition: all 0.25s ease;
}

.primarynav a:hover {
  background: rgba(91, 94, 166, 0.1);
}

.primarynav a.current {
  background: #5b5ea6;
  color: #fff;
  font-weight: 600;
}

#content {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 2rem 2.5rem;
  border-left: 1px solid rgba(0, 0, 0, 0.04);
  border-right: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  gap: 2rem;
}

#main-content {
  flex: 1;
  min-width: 0;
}

#secondary-content {
  width: 220px;
  flex-shrink: 0;
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, #5b5ea6, #7b7ec6);
  color: #fff;
}

#secondary-content blockquote {
  background: none;
  margin: 0;
  padding: 0;
  border: none;
  font-style: italic;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

#secondary-content blockquote p { margin: 0; color: inherit; }

blockquote {
  background: rgba(91, 94, 166, 0.05);
  margin: 1.5em 0;
  padding: 1.2em 1.8em;
  font-style: italic;
  border-left: 3px solid rgba(91, 94, 166, 0.25);
  border-radius: 0 8px 8px 0;
}

p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

#footer {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 0 0 16px 16px;
  padding: 1.2rem 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  font-size: 0.78rem;
  color: #999;
}

#footer a {
  color: #5b5ea6;
  text-decoration: none;
}

#footer a:hover { text-decoration: underline; }

fieldset {
  border: 1px solid rgba(91, 94, 166, 0.15);
  border-radius: 12px;
  padding: 2rem;
  margin: 0;
}

label {
  display: inline-block;
  width: 200px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 0.8rem;
  vertical-align: top;
}

input[type="text"], textarea, select {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  transition: border-color 0.25s ease;
  width: 300px;
  margin-bottom: 0.8rem;
}

input[type="text"]:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #5b5ea6;
  box-shadow: 0 0 0 3px rgba(91, 94, 166, 0.1);
}

textarea {
  height: 120px;
  resize: vertical;
}

input[type="submit"] {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.8rem;
  background: #5b5ea6;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

input[type="submit"]:hover {
  background: #4a4d95;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 94, 166, 0.25);
}

.textbox, .textfield, .dropdown {
  position: static;
  left: auto;
  width: 300px;
}

@media (max-width: 700px) {
  .portfolio-nav { padding: 0.6rem 1rem; }

  #wrapper { padding-top: 3.8rem; }

  #header { padding: 1.5rem 1.2rem 0; border-radius: 0; }

  #content {
    flex-direction: column;
    padding: 1.5rem 1.2rem;
  }

  #secondary-content {
    width: 100%;
    margin-top: 0;
  }

  #footer {
    padding: 1rem 1.2rem;
    border-radius: 0;
  }

  label { width: 100%; }

  input[type="text"], textarea, select, .textbox, .textfield, .dropdown {
    width: 100%;
  }
}
