/* ==========================================================================
   Alex Press — site styles
   White background, black text, Times New Roman 12pt throughout.
   ========================================================================== */

* {
  box-sizing: border-box;
}

/* ---- FONT ------------------------------------------------------------
   Arial is the current choice. To try another, comment out the active
   line below and uncomment one of the alternatives. Nothing else changes.
   ---------------------------------------------------------------------- */

body {
  margin: 0;
  background: #ffffff;
  color: #000000;

  /* font-family: Arial, Helvetica, sans-serif; */                     /* the original */
  /* font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; */   /* slightly softer */
  /* font-family: Georgia, "Times New Roman", serif; */                /* serif, more literary */
  font-family: "Times New Roman", Times, serif;                      /* ACTIVE: newspaper serif */

  font-size: 16px; /* 16px = 12pt */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Centered single column, like the reference site */
.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* --- Header ------------------------------------------------------------ */

.site-name {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.02em;
  margin: 0 0 22px;
}

.site-name a {
  color: #000000;
  text-decoration: none;
}

nav {
  border-bottom: 1px solid #000000;
  padding-bottom: 6px;   /* gap between the tabs and the black line */
  margin-bottom: 48px;   /* gap between the line and the page content */
}

nav a {
  color: #000000;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-right: 30px;
}

nav a:last-child {
  margin-right: 0;
}

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

/* The page you're currently on */
nav a.current {
  font-weight: bold;
}

/* --- Page content ------------------------------------------------------ */

h1 {
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 30px;
}

/* Section headings on the Work page ("Writing", "Podcasts").
   Same size as h1 so the two sections read as equals. */
h2 {
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 20px;
}

/* Space above a subhead that follows a previous section */
h2 + .work-list,
.work-list + h2 {
  margin-top: 0;
}

.work-list + h2 {
  margin-top: 44px;
}

p {
  margin: 0 0 22px;
}

/* --- Work page lists --------------------------------------------------- */

.work-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.work-list li {
  margin-bottom: 12px;
}

.work-list li:last-child {
  margin-bottom: 0;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: #000000;
}

/* --- Headshot ---------------------------------------------------------- */

.headshot {
  width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 0 36px;
}

/* Temporary grey box shown until the real photo is added */
.headshot-placeholder {
  width: 300px;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  padding: 20px;
  margin: 0 0 36px;
}

/* --- Contact page ------------------------------------------------------ */

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  margin-bottom: 16px;
}

/* --- Phones ------------------------------------------------------------ */

@media (max-width: 600px) {
  .wrap {
    padding: 40px 20px 64px;
  }

  .site-name {
    font-size: 24px;
  }

  nav a {
    margin-right: 20px;
    display: inline-block;
    margin-bottom: 6px;
  }
}
