/* Matthew Becknell - styles.css */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #07111f;
  color: #edf4ff;
  line-height: 1.6;
}

a {
  color: #48e3c2;
}

a:hover,
a:focus {
  color: #ffffff;
}

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

h1,
h2,
h3 {
  line-height: 1.2;
}

.container {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #314158;
  background-color: #07111f;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.site-title {
  color: #edf4ff;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: #aebbd0;
  font-weight: bold;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: #48e3c2;
}

.hero-section,
.page-hero {
  padding: 5rem 0;
  border-bottom: 1px solid #314158;
  background:
    linear-gradient(rgba(7, 17, 31, 0.78), rgba(7, 17, 31, 0.92)),
    url("../images/hero.png") center / cover no-repeat;
}

.page-hero {
  padding: 3.5rem 0;
}

.hero-section h1,
.page-hero h1 {
  max-width: 760px;
  margin: 0 0 1rem;
  font-size: 5rem;
}

.page-hero h1 {
  font-size: 4rem;
}

.hero-lead,
.page-hero p {
  max-width: 720px;
  color: #aebbd0;
  font-size: 1.15rem;
}

.eyebrow,
.card-kicker {
  margin-bottom: 0.5rem;
  color: #48e3c2;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topics-heading {
  letter-spacing: 0;
}

.hero-actions,
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-block;
  border: 1px solid #48e3c2;
  border-radius: 6px;
  padding: 0.7rem 1rem;
  background-color: #48e3c2;
  color: #06111f;
  font-weight: bold;
  text-decoration: none;
}

.button:hover,
.button:focus {
  background-color: #6aa8ff;
  color: #06111f;
}

.button-secondary {
  background-color: transparent;
  color: #edf4ff;
}

.section-block {
  padding: 4rem 0;
}

.section-heading {
  margin-bottom: 2rem;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

/* Flexbox is the Week 14 advanced CSS technique used for these card layouts. */
.card-row,
.contact-grid,
.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.card-row > *,
.two-column > * {
  flex: 1 1 320px;
}

.contact-grid > * {
  flex: 1 1 280px;
}

.project-card,
.content-panel,
.contact-card,
.post-card,
.journal-sidebar,
.form-panel,
.table-panel,
.video-panel {
  border: 1px solid #314158;
  border-radius: 10px;
  padding: 1.5rem;
  background-color: #111f33;
}

.wide-card {
  flex-basis: 100%;
}

.project-card p,
.content-panel p,
.contact-card p,
.post-card p,
.sidebar-note {
  color: #aebbd0;
}

.project-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.status-pill,
.tag-list span,
.skill-cloud span {
  display: inline-block;
  border: 1px solid #314158;
  border-radius: 20px;
  padding: 0.3rem 0.65rem;
  color: #aebbd0;
  font-size: 0.85rem;
}

.status-pill {
  border-color: #48e3c2;
  color: #48e3c2;
}

.tag-list,
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.project-art {
  width: 100%;
  max-height: 360px;
  margin-bottom: 1.25rem;
  border: 1px solid #314158;
  border-radius: 8px;
  object-fit: cover;
}

.project-screenshots {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.project-screenshots img {
  width: calc(50% - 0.5rem);
  border: 1px solid #314158;
  border-radius: 8px;
}

.project-details div {
  margin-top: 1rem;
  border-top: 1px solid #314158;
  padding-top: 0.75rem;
}

.project-details dt {
  font-weight: bold;
}

.project-details dd {
  margin-left: 0;
  color: #aebbd0;
}

.journal-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.journal-sidebar {
  flex: 0 1 300px;
}

.post-list {
  flex: 1;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border: 1px solid #314158;
  padding: 0.75rem;
  text-align: left;
}

th {
  background-color: #172a43;
  color: #48e3c2;
}

ol li {
  margin-bottom: 0.6rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

label,
legend {
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #64748b;
  border-radius: 5px;
  padding: 0.7rem;
  background-color: #ffffff;
  color: #111827;
  font: inherit;
}

input[type="radio"],
input[type="checkbox"] {
  width: auto;
}

.hidden-field {
  position: absolute;
  left: -10000px;
}

fieldset {
  border: 1px solid #314158;
  padding: 1rem;
}

.form-note,
.video-note {
  color: #aebbd0;
  font-size: 0.9rem;
}

.queuehouse-video {
  width: 100%;
  min-height: 260px;
  background-color: #020617;
}

.site-footer {
  border-top: 1px solid #314158;
  padding: 1.5rem 0;
  color: #aebbd0;
  text-align: center;
}

/* Mobile styles */
@media (max-width: 700px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .page-hero h1 {
    font-size: 2.2rem;
  }

  .nav-inner,
  .split-heading,
  .journal-layout {
    display: block;
  }

  .site-title {
    display: block;
    padding-top: 1rem;
  }

  .nav-links {
    gap: 0.6rem 1rem;
    padding: 1rem 0;
  }

  .hero-section,
  .page-hero,
  .section-block {
    padding: 2.5rem 0;
  }

  .hero-actions .button,
  .project-links .button {
    width: 100%;
    text-align: center;
  }

  .project-screenshots {
    display: block;
  }

  .project-screenshots img {
    width: 100%;
    margin-bottom: 1rem;
  }

  .journal-sidebar {
    margin-bottom: 1.5rem;
  }
}
