/* ============================================================
   style.css — johnmahoney.dev
   Aesthetic: clean, modern, light and airy
   Font: Outfit — geometric sans-serif, weights 200–600
   Backgrounds: three-tier (header → about → contact/footer)
     #e8e8e8  →  #f2f2f2  →  #ffffff
============================================================ */


/* ------------------------------------------------------------
   Reset & Base
------------------------------------------------------------ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: #1a1a1a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}


/* ------------------------------------------------------------
   Layout — Container
------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Narrower container for text-heavy sections */
.container--narrow {
  max-width: 640px;
}


/* ------------------------------------------------------------
   Header — darkest tier: #e8e8e8
------------------------------------------------------------ */

.site-header {
  padding: 6rem 0 5rem;
  background-color: #e8e8e8;
}

/* Name — weight 200 for slender, refined presence */
.site-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 200;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #111;
}

/* Title line below name — medium weight, subdued */
.site-title {
  margin-top: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: clamp(1rem, 2vw, 1.125rem);
  letter-spacing: 0.01em;
  color: #444;
}

/* Tagline — light weight, slightly muted */
.site-tagline {
  margin-top: 1rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.6;
  color: #666;       /* darkened slightly from #777 for contrast on #e8e8e8 */
  max-width: 520px;
}

/* Skills descriptor — quiet, sits below tagline */
.site-skills {
  margin-top: 1.25rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: #888;       /* darkened from #aaa — readable against #e8e8e8 */
}


/* ------------------------------------------------------------
   Sections — shared
------------------------------------------------------------ */

.section {
  padding: 5rem 0;
}

/* Small uppercase label above section content */
.section-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 2rem;
}


/* ------------------------------------------------------------
   Back link (success page)
------------------------------------------------------------ */

.back-link {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  text-decoration: none;
  border-bottom: 1px solid #d0d0cc;
  padding-bottom: 0.1em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.back-link:hover {
  color: #111;
  border-color: #111;
}


/* ------------------------------------------------------------
   About — middle tier: #f2f2f2
------------------------------------------------------------ */

.about {
  background-color: #f2f2f2;
}

.about-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
  line-height: 1.8;
  color: #333;
}


/* ------------------------------------------------------------
   Contact — lightest tier: #ffffff
------------------------------------------------------------ */

.contact {
  background-color: #ffffff;
}

.contact-intro {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Label + input stacked */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #999;
}

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9375rem;
  font-weight: 300;
  color: #1a1a1a;
  background: transparent;
  border: none;
  border-bottom: 1px solid #d0d0cc;
  padding: 0.6rem 0;
  outline: none;
  transition: border-color 0.2s ease;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

/* Subtle focus state — underline darkens */
.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #555;
}

/* Send button */
.btn-send {
  align-self: flex-start;
  margin-top: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #1a1a1a;
  border: none;
  padding: 0.8rem 2.25rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-send:hover {
  background-color: #444;
}

.btn-send:active {
  background-color: #000;
}


/* ------------------------------------------------------------
   Footer — continues on white (#ffffff)
------------------------------------------------------------ */

.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid #e8e8e4;
  text-align: center;
  background-color: #ffffff;
}

/* Row of links — email and LinkedIn */
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.footer-link {
  font-size: 0.8125rem;
  font-weight: 300;
  color: #999;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #1a1a1a;
}

/* Middot separator between links */
.footer-sep {
  font-size: 0.8125rem;
  color: #ccc;
  line-height: 1;
}

/* Copyright line */
.footer-copy {
  font-size: 0.75rem;
  color: #ccc;
  letter-spacing: 0.04em;
}


/* ------------------------------------------------------------
   Responsive — Mobile
------------------------------------------------------------ */

@media (max-width: 600px) {

  .site-header {
    padding: 4rem 0 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .btn-send {
    width: 100%;
    text-align: center;
  }

}
