/* =========================================================
   Stings / John Hastings — portfolio site
   1. Base            4. Hero
   2. Layout          5. Home sections
   3. Header & nav    6. Portfolio / About / Contact
                      7. Footer
   ========================================================= */

/* 1. Base ------------------------------------------------ */
:root {
  --ink: #111111;
  --paper: #f1efec;
  --white: #ffffff;
  --accent: #ee4b2b;
  --rule: rgba(17, 17, 17, 0.14);
  --muted: rgba(17, 17, 17, 0.67);
  --pad-x: clamp(20px, 4vw, 56px);
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ink);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}

h1,
h2,
p,
ul {
  margin: 0;
}

/* 2. Layout ---------------------------------------------- */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main {
  flex: 1;
  padding: clamp(32px, 6vw, 72px) var(--pad-x) clamp(48px, 7vw, 96px);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.title-xl {
  font-size: clamp(34px, 5.2vw, 68px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.title-lg {
  font-size: clamp(32px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  max-width: 70ch;
  text-wrap: pretty;
}

/* Inline vertical rule between short words */
.rule-v {
  width: 1.5px;
  height: 1.1em;
  background: rgba(17, 17, 17, 0.25);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 16px 26px;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn--solid {
  background: #0d106d;
  color: var(--paper);
}
.btn--solid:hover {
  background: #090b4c;
  color: var(--paper);
}
.btn--ghost {
  border-color: var(--accent);
  font-weight: 500;
  color: var(--accent);
}
.btn--ghost:hover {
  background: var(--accent);
  color: var(--white);
}

/* 3. Header & nav ---------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding: 22px var(--pad-x);
  background-color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand:hover {
  color: inherit;
}
.brand img {
  height: 95px;
  width: auto;
}
.brand__sub {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
}
.nav a {
  padding: 10px 16px;
  border: 1.5px solid transparent;
  border-radius: 4px;
  color: #0d106d;
}
.nav a:hover {
  border-color: #0d106d;
  color: #0d106d;
}
.nav a.is-active {
  border-color: var(--ink);
}

.header-cta {
  padding: 12px 26px;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
}
.header-cta:hover,
.header-cta.is-active {
  background: var(--accent);
  color: var(--paper);
}

/* 4. Hero ------------------------------------------------ */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 6vw, 80px) var(--pad-x) clamp(48px, 7vw, 96px);
}

.hero__skills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(20px, 3vw, 34px);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 600;
  text-transform: uppercase;
}
.hero__skills .rule-v {
  background: rgba(13, 16, 109, 0.35);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 44px);
}

.hero__portrait {
  width: min(100%, 540px);
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--white);
  overflow: hidden;
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 5. Home sections --------------------------------------- */
.intro {
  padding: clamp(40px, 6vw, 88px) var(--pad-x) clamp(48px, 7vw, 96px);
}

.intro__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 600;
  text-transform: uppercase;
}

.intro__row {
  margin-top: clamp(14px, 2vw, 22px);
}

.intro__headline {
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.intro__bio {
  font-size: clamp(19px, 2.1vw, 27px);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border: 1.5px solid var(--ink);
  margin-top: clamp(36px, 6vw, 80px);
}

.stat {
  padding: clamp(26px, 3.4vw, 44px) 20px;
  text-align: center;
}
.stat + .stat {
  border-left: 1.5px solid var(--ink);
}
.stat--invert {
  background: #0d106d;
  color: var(--paper);
}
.stat__num {
  font-size: clamp(38px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__label {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 6. Portfolio / About / Contact ------------------------- */
.work-group {
  padding: clamp(30px, 4vw, 56px) 0;
  border-top: 1.5px solid var(--rule);
}

.work-group__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: clamp(20px, 2.6vw, 32px);
}
.work-group__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.work-group__title {
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
}

.card__media {
  aspect-ratio: 4 / 3;
  background: var(--white);
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card__title {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.card__desc {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(17, 17, 17, 0.67);
  text-wrap: pretty;
}

.prose p {
  font-size: 19px;
  line-height: 1.65;
  max-width: 58ch;
}
.prose p + p {
  margin-top: 18px;
}

.about-lead {
  margin-top: 26px;
}
.about-cta {
  margin-top: 40px;
}

.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 24px);
  margin-top: clamp(20px, 3vw, 34px);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 600;
  text-transform: uppercase;
}
.tag-row .rule-v {
  background: rgba(13, 16, 109, 0.35);
}

.portrait-tall {
  aspect-ratio: 4 / 5;
  background: var(--white);
  overflow: hidden;
}
.portrait-tall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 36px;
  font-size: 18px;
  font-weight: 600;
}
.contact-details span {
  font-weight: 500;
  color: rgba(17, 17, 17, 0.67);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3vw, 36px);
  background: var(--white);
  border: 1.5px solid rgba(17, 17, 17, 0.08);
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.67);
}

.form input,
.form textarea {
  padding: 14px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid rgba(17, 17, 17, 0.12);
  border-radius: 2px;
  outline: none;
}
.form input:focus,
.form textarea:focus {
  border-color: var(--ink);
}
.form textarea {
  resize: vertical;
}
.form .btn {
  align-self: flex-start;
  margin-top: 6px;
}

/* 7. Footer ---------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(36px, 5vw, 30px) var(--pad-x);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
}

.site-footer .brand,
.site-footer a {
  color: var(--paper);
}
.site-footer .brand img {
  height: 58px;
}

.site-footer__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid rgba(241, 239, 236, 0.35);
  border-radius: 50%;
}
.social:hover {
  background: var(--paper);
  color: var(--ink);
}

.copyright {
  font-size: 13px;
  font-weight: 500;
  color: rgba(241, 239, 236, 0.6);
}

/* Small screens ------------------------------------------ */
@media (max-width: 640px) {
  .site-header {
    justify-content: center;
    text-align: center;
  }
  .stat + .stat {
    border-left: none;
    border-top: 1.5px solid var(--ink);
  }
  .site-footer__inner {
    flex-direction: column;
  }
  .site-footer__right {
    align-items: center;
  }
}
