/* calebladue.com — matches the Squarespace layout it replaced. */

:root {
  --bg: #fcfcfc;
  --text: #575757;
  --heading: #222;
  --nav: #999;
  --nav-active: #111;
  --tagline: #ddd;
  --title: #404040;
  --placeholder: #eee;
  --gutter: 3%;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/27px "Nunito", "Helvetica Neue", Arial, sans-serif;
}

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

/* The header, footer and plain pages sit in a 1200px column; the grid
   pages and open projects use the whole width, as Squarespace's did. */
.site { padding: 81px 75px 60px; }

.site-header,
.site-footer,
main { max-width: 1200px; margin-left: auto; margin-right: auto; }

main.wide { max-width: none; }

/* ---------- header ---------- */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 40px;
}


.logo a {
  color: var(--heading);
  font: 400 29.75px/1.2 "Oswald", "Helvetica Neue", Arial, sans-serif;
  text-transform: uppercase;
  text-decoration: none;
}

.tagline {
  margin-top: 8px;
  color: var(--tagline);
  font-size: 12px;
  line-height: 12px;
}

.site-nav ul {
  display: flex;
  gap: 30px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--nav);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .15s;
}

.site-nav a:hover,
.site-nav .active a { color: var(--nav-active); }

.menu-toggle { display: none; }

main { padding: 50px 0; }

/* ---------- grids (Gallery, Tributes, Videos) ---------- */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--gutter);
  row-gap: clamp(20px, 2.6vw, 40px);
}

.project { display: block; text-decoration: none; }

.project-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--placeholder);
  margin-bottom: 8px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s;
}

.project:hover .project-image img { opacity: .85; }

.project-title {
  color: var(--title);
  font-size: 12px;
  font-weight: 300;
  line-height: 19px;
  letter-spacing: .72px;
  text-align: center;
  text-transform: uppercase;
}

/* ---------- open projects (a gallery, tribute or video page) ---------- */

.project-open.gallery-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  column-gap: 50px;
  align-items: start;
}

.image-list { grid-column: 1; grid-row: 1; }

.image { margin-bottom: 30px; }
.image:last-child { margin-bottom: 0; }

/* Each photo shows at its own size, up to the full column, and is never stretched. */
.image img { max-width: 100%; margin: 0 auto; }

.image-meta {
  max-width: 640px;
  margin: 10px auto 0;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
}

.image-meta p { margin: 0; }

.video-frame { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.project-meta { grid-column: 2; grid-row: 1; }

.project-name {
  margin: 0 0 12px;
  color: var(--heading);
  font: 300 24px/28.8px "Nunito", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 1.44px;
  text-transform: uppercase;
}

.prose p { margin: 0 0 1.2em; }
.prose a { color: var(--heading); }

.project-nav {
  margin-top: 50px;
  text-align: right;
}

.project-nav a { text-decoration: none; }
.project-nav a:hover { color: var(--heading); }

.project-thumbs { margin-top: 50px; }

/* ---------- trip pages ---------- */

.story-caption {
  font-size: 13px;
  text-align: center;
  margin-bottom: 18px;
}

.story-caption p { margin: 0; }

.story-images { display: grid; gap: 1px; }
.story-images img { width: 100% !important; }

/* ---------- In Memory ---------- */

.memory {
  display: grid;
  grid-template-columns: 7fr 4fr;
  gap: calc(100% / 12);
  align-items: start;
}

.memory-photo { margin: 0; }
.memory-photo img { width: 100%; }

.memory-photo figcaption {
  margin-top: 12px;
  font-size: 12px;
  line-height: 18px;
}

.memory-photo figcaption p { margin: 0; }

.memory-text { font-size: 14px; line-height: 26px; }

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer a { display: block; width: 20px; height: 20px; color: #000; }
.site-footer svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- smaller screens ---------- */

@media (max-width: 900px) {
  .memory { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 767px) {
  /* On phones the words come first, then the photos. */
  .project-open.gallery-project { display: block; }
  .project-meta { margin-bottom: 30px; }
  .image { margin-bottom: 20px; }
}

@media (max-width: 640px) {
  .site { padding: 0 20px 40px; }
  main { padding: 30px 0; }

  .site-header {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
    text-align: center;
  }

  .menu-toggle {
    display: block;
    order: -1;
    width: 100%;
    padding: 18px 0;
    border: 0;
    background: none;
    color: var(--nav);
    font: 400 15px/1 "Nunito", sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
  }

  .site-nav { display: none; width: 100%; order: -1; }
  .site-header.is-open .site-nav { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    margin: 0 0 24px;
  }

  .site-nav a { display: block; padding: 8px 0; font-size: 15px; }

  .logo { margin-top: 28px; }

  .project-grid { grid-template-columns: repeat(2, 1fr); column-gap: 20px; row-gap: 20px; }
  .project-nav, .project-thumbs { margin-top: 30px; }
}
