/* ishaanharish.me — everything is in this one file */

body {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
  background: #fff;
  color: #111;
  font: 1.05rem/1.7 Georgia, 'Times New Roman', Times, serif;
}

nav {
  text-align: center;
  margin-bottom: 4rem;
}

nav a { display: inline-block; margin: 0 0.75rem 0.5rem; }

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover { background: #eee; }

p { margin: 0 0 1.15rem; }

h1, h2 {
  font-size: 1.05rem;
  font-weight: normal;
  margin: 2.5rem 0 1.15rem;
}

h1 { margin-top: 0; }

/* plain hyphen lists, like the rest of the page */
ul { list-style: none; margin: 0 0 1.15rem; padding: 0; }
li { margin-bottom: 0.6rem; }
li::before { content: "- "; }

/* timeline: date in a fixed column, text hanging beside it */
.when {
  display: inline-block;
  width: 8.5rem;
  vertical-align: top;
  text-indent: 0;   /* the li's hanging indent is inherited here otherwise */
}

.timeline li { padding-left: 8.5rem; text-indent: -8.5rem; }
.timeline li::before { content: ""; }

.photo {
  float: right;
  width: 11rem;
  margin: 0.3rem 0 1.5rem 2rem;
}

.note { color: #666; }

@media (max-width: 34rem) {
  body { padding: 2rem 1.1rem 4rem; }
  nav { margin-bottom: 2.5rem; }
  .photo { float: none; display: block; margin: 0 0 1.5rem; }
  .when { display: block; width: auto; }
  .timeline li { padding-left: 0; text-indent: 0; }
}

/* the one form on the site — match the page, don't look like a widget */
input, button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  border-bottom: 1px solid #111;
  padding: 0.15rem 0;
  margin: 0 0.9rem 0.5rem 0;
}

button { text-decoration: underline; cursor: pointer; }
input:focus, button:focus { outline: none; background: #eee; }
input::placeholder { color: #999; }
