/* ============================================
   CONFIGURATION - easy to tweak
   ============================================ */
:root {
  --bg: #ffffff;          /* pure white. change this one value to retheme. */
  --text: #000;            /* pure black */
  --text-light: #555;      /* for nav and secondary elements */
  --link: #000;            /* links same color as text, distinguished by underline */
  --link-hover: #333;
  --max-width: 660px;      /* content column width */
  --font-body: 'ET Book', Georgia, 'Times New Roman', serif;
}

/* ============================================
   ET BOOK FONT
   Free webfont from edwardtufte.github.io
   ============================================ */
@font-face {
  font-family: 'ET Book';
  src: url('/fonts/et-book-roman-line-figures.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'ET Book';
  src: url('/fonts/et-book-display-italic-old-style-figures.woff') format('woff');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'ET Book';
  src: url('/fonts/et-book-bold-line-figures.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   NAV
   ============================================ */
nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1rem;
}

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

nav a.nav-hire {
  color: var(--text-light);
}

nav a.nav-hire:hover {
  color: var(--text);
}

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

nav .nav-name {
  font-size: 1.3rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

p {
  margin-bottom: 1.2rem;
}

.location {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* ============================================
   LINKS
   ============================================ */
main a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

main a:hover {
  color: var(--link-hover);
}

/* ============================================
   HEADINGS (Hire Me page)
   ============================================ */
h2 {
  font-size: 1rem;
  font-weight: bold;
  font-style: italic;
  margin-top: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text);
}

/* ============================================
   BLOCKQUOTE (testimonials)
   ============================================ */
blockquote {
  font-style: italic;
  margin: 2rem 0;
  padding-left: 1.2rem;
  border-left: 2px solid #ccc;
}

.attribution {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ============================================
   LIST (past lives)
   ============================================ */
ul {
  margin-bottom: 1.2rem;
  padding-left: 1.2rem;
  list-style: disc;
}

li {
  margin-bottom: 0.4rem;
}

/* ============================================
   PORTRAIT PHOTO
   ============================================ */
.portrait {
  display: block;
  max-width: 100%;
  width: 320px;
  margin: 1.8rem auto;
}

/* ============================================
   GALLERY IMAGES (Woodwork, Spaces pages)
   ============================================ */
.gallery-img {
  display: block;
  max-width: 100%;
  margin: 1.5rem 0;
}

.gallery-placeholder {
  color: var(--text-light);
  font-style: italic;
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 520px) {
  html {
    font-size: 17px;
  }

  nav {
    padding-top: 1.8rem;
  }

  main {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }

  .portrait {
    width: 280px;
  }
}
