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

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  color: #1a1a18;
  background: #fafaf8;
  line-height: 1.6;
  font-size: 17px; /* increased base size for better readability */
}


.site {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

/* Header */
header {
  border-bottom: 0.5px solid #e5e3db;
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  text-align: center;
}

.name {
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  font-weight: 400;
  width: 100%;
  margin-top: 0.6rem;
  margin-bottom: 0.4rem;
}

.tagline {
  font-size: 17px;
  color: #6b6a64;
  font-weight: 300;
  line-height: 1.6;
  max-width: 700px;
}

nav {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

nav a {
  font-size: 14px;
  color: #6b6a64;
  text-decoration: none;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0.15rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: #1a1a18;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
  opacity: 0.18;
}

nav a:hover {
  color: #1a1a18;
}

nav a:hover::after {
  transform: scaleX(1);
}

nav a {
  font-size: 14px;
  color: #6b6a64;
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav a:hover { color: #1a1a18; }

/* Sections */
section { margin-bottom: 3.5rem; }

.section-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6a64;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* About */
.about p {
  font-size: 18px;
  line-height: 1.85;
  color: #4a4a46;
  max-width: 580px;
}

/* Projects */
.projects {
  border-top: 0.5px solid #d6d4cc;
}

.project {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.4rem 0;
  border-bottom: 0.5px solid #d6d4cc;
  gap: 1.5rem;
}

.project-info { flex: 1; }

.project-name {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.project-desc {
  font-size: 15px;
  color: #6b6a64;
  line-height: 1.65;
}

.project-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #185FA5;
  text-decoration: none;
  letter-spacing: 0.03em;
}

.project-link:hover { text-decoration: underline; }

.project-meta {
  text-align: right;
  flex-shrink: 0;
  padding-top: 2px;
}

.project-type {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6a64;
  white-space: nowrap;
}

.project-year {
  font-size: 12px;
  color: #9b9a94;
  margin-top: 3px;
}

/* Skills */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill {
  font-size: 12px;
  padding: 5px 13px;
  border: 0.5px solid #b4b2a9;
  border-radius: 20px;
  color: #6b6a64;
}

/* Contact */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-block {
  font-size: 16px;
  color: #4a4a46;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  background: transparent;
  border: none;
}

.contact-block span {
  font-weight: 700;
  color: #1a1a18;
  font-size: 1.05rem;
}

.contact-block a {
  color: #1a1a18;
  text-decoration: none;
  font-weight: 600;
}

.contact-block a:hover {
  text-decoration: underline;
}

.contact-form {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d6d4cc;
  border-radius: 14px;
  font-size: 15px;
  color: #1a1a18;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #8c7d68;
  box-shadow: 0 0 0 4px rgba(140, 125, 104, 0.12);
}

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

.contact-form .form-actions {
  display: block;
  width: 100%;
}

.contact-form button[type="submit"] {
  width: 100%;
  background: #1a1a18;
  color: #fff;
  border: none;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-form button[type="submit"]:hover {
  opacity: 0.96;
  transform: translateY(-1px);
}

.form-status {
  font-size: 14px;
  color: #6b6a64;
  margin-top: 0.75rem;
}

/* FAQ */
.faq-list {
  border-top: 0.5px solid #d6d4cc;
}

.faq-item {
  padding: 1.2rem 0;
  border-bottom: 0.5px solid #d6d4cc;
}

details.faq-item summary {
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a18;
  gap: 1rem;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '▾';
  color: #6b6a64;
  font-size: 14px;
  transition: transform 0.18s ease;
}

details.faq-item[open] summary::after {
  content: '▴';
}

details.faq-item p {
  font-size: 15px;
  color: #6b6a64;
  line-height: 1.75;
  margin-top: 0.4rem;
}

details.faq-item a {
  color: #185FA5;
  text-decoration: none;
}

details.faq-item a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  border-top: 0.5px solid #d6d4cc;
  margin-top: 4rem;
  padding-top: 3rem;
  padding-bottom: 2rem;
}

.footer-content {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid #d6d4cc;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-section h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6a64;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.footer-section p {
  font-size: 13px;
  color: #4a4a46;
  line-height: 1.7;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-section a {
  font-size: 13px;
  color: #185FA5;
  text-decoration: none;
  display: inline;
}

.footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-sep {
  color: #d6d4cc;
  font-size: 13px;
}

.footer-section h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b6a64;
  font-weight: 500;
  margin: 0 0 0.6rem 0;
}

.footer-section p {
  font-size: 13px;
  color: #4a4a46;
  line-height: 1.7;
  margin: 0;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  flex: 1 1 200px;
  min-width: 160px;
}

  .contact-form {
    background: #faf8f2;
    border: 1px solid #d6d4cc;
    border-radius: 20px;
    padding: 1.6rem;
    max-width: 640px;
    width: 100%;
    box-shadow: 0 14px 40px rgba(24, 20, 16, 0.06);
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d6d4cc;
    border-radius: 14px;
    font-size: 15px;
    color: #1a1a18;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
  }

  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: #8c7d68;
    box-shadow: 0 0 0 4px rgba(140, 125, 104, 0.12);
  }

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

  .contact-form .form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
  }

  .contact-form button[type="submit"] {
    background: #1a1a18;
    color: #fff;
    border: none;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .contact-form button[type="submit"]:hover {
    opacity: 0.96;
    transform: translateY(-1px);
  }

  .form-status {
    font-size: 14px;
    color: #6b6a64;
    min-height: 1.4rem;
  }

  .sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

@media (max-width: 768px) {
  .site {
    padding: 2.5rem 1.5rem 4rem;
  }

  .name {
    font-size: 36px;
  }

  .tagline {
    font-size: 14px;
  }

  nav {
    gap: 1rem;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 12px;
  }

  section {
    margin-bottom: 2.5rem;
  }

  .about p {
    font-size: 16px;
  }

  .project {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .project-meta {
    text-align: left;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
    align-items: center;
  }

  .footer-section { align-items: center; }

  .footer-contact { justify-content: center; }
}

@media (max-width: 500px) {
  .site {
    padding: 2rem 1rem 3.5rem;
  }

  header {
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
  }

  .name {
    font-size: 28px;
    margin-bottom: 0.3rem;
  }

  .tagline {
    font-size: 13px;
  }

  nav {
    margin-top: 1rem;
    gap: 0.8rem;
  }

  nav a {
    font-size: 11px;
  }

  .section-label {
    font-size: 10px;
    margin-bottom: 1rem;
  }

  section {
    margin-bottom: 2rem;
  }

  .about p {
    font-size: 14px;
    line-height: 1.7;
  }

  .project {
    padding: 0.8rem 0;
  }

  .project-name {
    font-size: 15px;
  }

  .project-desc {
    font-size: 14px;
  }

  .project-link {
    font-size: 11px;
  }

  .skill {
    font-size: 11px;
    padding: 4px 10px;
  }

  .contact-block {
    font-size: 15px;
  }

  .contact-block a {
    padding: 8px 0;
    display: block;
  }

  .contact-grid {
    display: block;
  }

  .contact-block {
    padding: 0;
  }

  .contact-form {
    padding: 0;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 12px 14px;
  }

  .contact-form button[type="submit"] {
    width: 100%;
  }

  .form-actions {
    width: 100%;
  }

  .faq-item {
    padding: 1rem 0;
  }

  .faq-item h3 {
    font-size: 15px;
    margin-bottom: 0.5rem;
  }

  .faq-item p {
    font-size: 14px;
  }

  footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 1.5rem;
  }

  .footer-content {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    gap: 1rem;
  }

  .footer-section h4 {
    font-size: 11px;
    margin-bottom: 0.6rem;
  }

  .footer-section p {
    font-size: 13px;
  }

  .footer-section a {
    font-size: 12px;
  }

  .footer-bottom {
    font-size: 12px;
  }
}
