/* ============================================================
   adamchandler.me — Homepage Styles
   Clean, fast, no JS, no trackers. System font stack.
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --bg:          #2a2a2a;
  --bg-alt:      #1e1e1e;
  --surface:     #333333;
  --border:      #505050;
  --text:        #e0e0e0;
  --text-muted:  #a0a0a0;
  --accent:      #c8a96e;        /* warm gold — a nod to King Arthur / craft */
  --accent-hover:#e0c484;
  --link:        #c8a96e;
  --link-hover:  #e0c484;

  --font-display: "Helvetica Neue", Helvetica, "Nimbus Sans L", Arial, sans-serif;
  --font-body:    Georgia, "Times New Roman", Times, serif;

  --radius:      4px;
  --max-width:   960px;
  --gap:         2rem;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--link-hover);
  text-decoration: underline;
}

/* --- Layout Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header --- */
header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  flex-wrap: wrap;
}

.site-identity h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.site-identity h1 a {
  color: var(--text);
  text-decoration: none;
}

.site-identity h1 a:hover {
  color: var(--accent);
  text-decoration: none;
}

.tagline {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* --- Navigation --- */
nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

nav a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

nav a:hover,
nav a:focus {
  color: var(--accent);
  border-color: var(--border);
  background: var(--surface);
  text-decoration: none;
}

/* --- Main Content --- */
main {
  flex: 1;
  padding: 2rem 0 2.5rem;
}

/* --- Profile Section --- */
.profile {
  display: flex;
  gap: 3rem;
  align-items: stretch;
}

/* Photo */
.profile-photo {
  flex: 0 0 auto;
  width: 300px;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  align-self: center;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;  /* show cap, face, and some dunes */
  display: block;
  filter: grayscale(10%);
}

/* Bio */
.profile-bio {
  flex: 1;
  padding-top: 0.25rem;
  border-top: 2px solid var(--accent);
}

.profile-bio p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1.15rem;
}

.profile-bio p:first-child {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}

.profile-bio p:last-child {
  margin-bottom: 0;
}

/* --- CTA Row --- */
.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.cta-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: var(--accent);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-primary:hover,
.cta-primary:focus {
  background: var(--accent-hover);
  color: #1a1a1a;
  text-decoration: none;
}

.cta-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cta-secondary:hover,
.cta-secondary:focus {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
  text-decoration: none;
}

/* --- Footer --- */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  margin-top: auto;
}

.copyright {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.03em;
}

/* --- Responsive --- */
@media (max-width: 700px) {
  header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-identity h1 {
    font-size: 1.5rem;
  }

  nav {
    gap: 0.15rem;
  }

  nav a {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }

  .profile {
    flex-direction: column;
    gap: 2rem;
  }

  .profile-photo {
    width: 100%;
    max-width: 340px;
    height: 300px;
    margin: 0 auto;
  }

  .profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 10%;
  }

  .profile-bio {
    padding-top: 0;
    border-top: none;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
  }

  .profile-bio p:first-child {
    font-size: 1.15rem;
  }

  main {
    padding: 2rem 0;
  }
}

@media (max-width: 400px) {
  nav a {
    font-size: 0.7rem;
    padding: 0.3rem 0.5rem;
  }
}
