@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@600&display=swap");

/* Minimal styling to prove style.css is connected */

/* box-sizing so padding/border don't add to element width */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  margin: 0;
  padding: 0;
  background-color: #FAF8F6;
  color: #2D2928;
  line-height: 1.7;
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 1;
  max-width: calc(100% - 2rem);
  padding: 0.5rem 0.75rem;
  background-color: #F3E5E3;
  color: #A81619;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 1rem;
  outline: 2px solid #A81619;
  outline-offset: 3px;
  text-decoration: underline;
}

/* Main content stays within a centered, readable width. */
main section {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 3.25rem 1.5rem;
}

main section:not(.hero) h2 {
  color: #5A171A;
  font-size: 1.625rem;
  line-height: 1.25;
  margin: 0 0 1.125rem;
}

main section p {
  max-width: 680px;
  margin: 0;
  line-height: 1.75;
}

main section p + p {
  margin-top: 1rem;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.about-photo {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.5rem;
}

.about-copy h2 {
  margin-top: 0;
}

/* Flex row: title and nav side by side, wrapping to stacked on narrow screens */
header {
  background-color: #5A171A;
  border-bottom: 1px solid #DED6D3;
  color: white;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem max(1.5rem, calc((100% - 800px) / 2));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.125rem;
  padding: 0;
  margin: 0;
}

nav a {
  color: white;
  display: block;
  font-size: 0.9375rem;
  line-height: 1.4;
  padding: 0.4rem 0.55rem;
  text-decoration: none;
}

nav a.active {
}

nav a:hover {
  text-decoration: underline;
}

nav a:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
  text-decoration: underline;
}

/* Headings scale down from h1 to h2 to keep hierarchy clear */
h1 {
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.brand h1 {
  font-family: "DM Sans", sans-serif;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
}

/* Center and distinguish the introductory section. */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 4.75rem;
  padding-bottom: 4.75rem;
  background-color: #FAF8F6;
  border-bottom: 1px solid #DED6D3;
  text-align: center;
}

.hero h2 {
  color: #5A171A;
  font-size: 2.375rem;
  line-height: 1.15;
  margin: 0;
}

.hero p {
  max-width: 640px;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.65;
}

.hero p.hero-byline {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #A81619;
}

.hero-byline + p {
  margin-top: 0.5rem;
}

.hero p.hero-role {
  font-size: 1rem;
  font-style: italic;
}

.hero-byline + .hero-role {
  margin-top: 0;
}

/* Every section after the hero gets a divider to separate content */
main section + section {
  border-top: 1px solid #DED6D3;
}

main section.hero + section {
  border-top: 0;
}

#contact {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

#contact h2 {
  font-size: 1.75rem;
}

#contact p + p {
  margin-top: 0.875rem;
}

#contact a {
  display: inline-block;
  padding: 0.25rem 0.375rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #A81619;
}

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

a {
  color: #A81619;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid #A81619;
  outline-offset: 3px;
}

footer {
  text-align: center;
  background-color: #5A171A;
  border-top: 1px solid #DED6D3;
  color: white;
  padding: 2.5rem max(1.5rem, calc((100% - 800px) / 2));
}

footer p {
  line-height: 1.5;
  margin: 0;
}

footer p + p {
  margin-top: 0.625rem;
}

footer a {
  color: white;
  font-weight: 600;
  text-decoration: underline;
}

footer a:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

/* Basic mobile responsiveness for narrow screens */
@media (max-width: 600px) {
  nav {
    width: 100%;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  nav a {
    padding: 0.625rem 0.75rem;
  }

  .hero {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero h2 {
    font-size: 1.875rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-photo {
    width: min(100%, 240px);
    justify-self: center;
  }

  h1 {
    font-size: 1.5rem;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  h2 {
    font-size: 1.25rem;
  }
}

@media (min-width: 601px) and (max-width: 767px) {
  header {
    flex-direction: column;
    align-items: stretch;
  }

  nav {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
