/*
  Main stylesheet — PLACEHOLDER STYLES.

  Every value in this file (colors, fonts, spacing, layout choices) was
  chosen as a reasonable starting point without owner input. Nothing here
  is a design decision — it's scaffolding meant to be replaced or reshaped
  once the owner confirms a direction. Change freely.
*/

:root {
  /* Brand colors, taken from the logo. Adjust as needed. */
  --color-black: #000000;
  --color-gold: #b8892b;
  --color-white: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #666666;
  --color-bg: #ffffff;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a { color: var(--color-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Keeps full-size project photos from overflowing their container on mobile. */
img { max-width: 100%; height: auto; }

header {
  border-bottom: 1px solid #eee;
  padding: 1rem 2rem;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.logo span {
  font-weight: 700;
  color: var(--color-black);
  letter-spacing: 0.05em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav ul a { color: var(--color-text); }

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

.hero {
  text-align: center;
  padding: 4rem 0;
}

.hero h1 {
  /* Scales smoothly between phone and desktop instead of jumping at the breakpoint. */
  font-size: clamp(1.875rem, 6vw, 2.5rem);
  margin: 0 0 0.5rem;
}

.tagline {
  color: var(--color-gold);
  font-style: italic;
  letter-spacing: 0.05em;
}

.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 2px;
}
.cta:hover { background: var(--color-gold); text-decoration: none; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card { border: 1px solid #eee; padding: 1rem; }

.project-image-placeholder {
  background: #f2f2f2;
  color: var(--color-muted);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

footer {
  border-top: 1px solid #eee;
  padding: 2rem;
  text-align: center;
  color: var(--color-muted);
  margin-top: 4rem;
}

footer .social {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

/*
  Mobile. One breakpoint is enough for a layout this simple — no hamburger
  menu, the nav just stacks. Raise or lower 640px freely if the header
  starts to feel cramped at a different width.
*/
@media (max-width: 640px) {
  header { padding: 1rem 1.25rem; }

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  nav ul { gap: 1.25rem; }

  main { padding: 2rem 1.25rem; }

  .hero { padding: 2.5rem 0; }

  /*
    Without this, the 280px track minimum in the base .project-grid rule
    overflows the viewport on narrow phones and the page scrolls sideways.
  */
  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  footer {
    padding: 2rem 1.25rem;
    margin-top: 3rem;
  }
}
