/* micheledore.com
   Rebuilt as plain static HTML/CSS. Values measured from the original site.

   TYPEFACE — the original used Acumin Pro, licensed through Adobe Fonts. It is
   not redistributable, so it is not bundled here. Libre Franklin is used
   instead: it is open licence, shares the Franklin Gothic skeleton Acumin is
   drawn from, and measures within ~2% of it, so line breaks land in the same
   places. To restore exact Acumin: publish an Acumin Pro web project in your
   own Adobe Fonts account (fonts.adobe.com > Web Projects), add the domain,
   paste its <link> into each page's <head>, and put "Acumin Pro" first in the
   --font stack below. Nothing else needs to change. */

@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("../fonts/libre-franklin-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg:        #212121;
  --bg-header: #191919;
  --bg-detail: #000000;
  --text:      #ffffff;
  --muted:     #a9a9a9;
  --title:     #eeeeee;
  --line:      #474747;
  --font: "Libre Franklin", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 20px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg-header);
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.site-header .nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1;
  min-width: 0;
}

.site-header .nav a {
  font-size: 17px;
  line-height: 30px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color .15s ease;
}
.site-header .nav a.active { font-weight: 600; color: var(--text); }
.site-header .nav a:hover  { color: var(--text); }

.site-header .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 23px;
  line-height: 30px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
}

.hamburger {
  display: none;
  margin-left: auto;
  width: 30px; height: 22px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger i { display: block; height: 2px; background: var(--text); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-header);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a { font-size: 22px; font-weight: 600; color: var(--muted); }
.mobile-nav a.active { color: var(--text); }
.mobile-close {
  position: absolute;
  top: 22px; right: 38px;
  width: 26px; height: 26px;
  background: none; border: 0; cursor: pointer;
}
.mobile-close::before, .mobile-close::after {
  content: ""; position: absolute; top: 12px; left: 0;
  width: 26px; height: 2px; background: var(--text);
}
.mobile-close::before { transform: rotate(45deg); }
.mobile-close::after  { transform: rotate(-45deg); }

main { padding-top: var(--header-h); }

/* ---------- page title ---------- */

.page-header { padding: 31px 0 0; }
.page-header--project {
  max-width: 620px;
  margin: 0 auto;
  padding: 80px 0 100px;
}

.page-title {
  margin: 0;
  padding: 0 0 20px;
  font-size: 25px;
  line-height: 27px;
  font-weight: 700;
  color: var(--title);
  text-align: center;
}

/* ---------- about ---------- */

.intro {
  display: flex;
  align-items: center;
}
.intro-photo { flex: 1; padding-top: 56px; }
.intro-photo picture { display: block; width: 97%; margin-left: auto; }
.intro-photo img { width: 100%; height: auto; background: rgba(0,0,0,.03); }

.intro-text {
  flex: 1;
  max-width: 800px;
  padding: 20px 0 40px 48px;
}
.lead {
  margin: 0 0 40px;
  font-size: 25px;
  line-height: 30px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
.body-text {
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  color: var(--muted);
  text-align: left;
}

/* ---------- contact form ---------- */

.contact { margin: 39px 0 44px; }

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
}
.hp { position: absolute; left: -9999px; }

.field { margin-bottom: 30px; }

.contact-form label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 14px;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 18px;
  padding: 0 10px;
}
.contact-form input { height: 42px; line-height: 42px; }
.contact-form textarea {
  height: 132px;
  padding: 10px;
  line-height: 24px;
  resize: vertical;
}
.contact-form ::placeholder { color: var(--muted); opacity: 1; }
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--muted); }

.submit {
  min-width: 116px;
  height: 40px;
  padding: 0 22px;
  background: var(--text);
  color: var(--bg);
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: 16px;
  line-height: 40px;
  cursor: pointer;
  transition: opacity .15s ease;
}
.submit:hover { opacity: .85; }

.contact-sent {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px 0;
  font-size: 25px;
  font-weight: 700;
  text-align: center;
}
.contact-sent[hidden] { display: none; }

/* ---------- work masthead ---------- */

.masthead {
  background: var(--bg);
  padding: var(--header-h) 24px 0;
  min-height: 405px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}
.masthead + main { padding-top: 0; }
.masthead-inner { max-width: 800px; padding-top: 58px; width: 100%; }
.masthead h1 {
  margin: 0;
  font-size: 70px;
  line-height: 70px;
  font-weight: 700;
  color: var(--text);
}
.masthead p {
  margin: 20px 0 0;
  font-size: 20px;
  line-height: 30px;
  color: var(--muted);
}
.masthead-arrow {
  display: block;
  width: 46px;
  height: 24px;
  margin: 32px auto 0;
}
.masthead-arrow::before {
  content: "";
  display: block;
  width: 32px; height: 32px;
  margin: 0 auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) skew(12deg, 12deg);
}

/* ---------- covers ---------- */

.covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 6px;
  row-gap: 32px;
  padding-bottom: 32px;   /* the original carries a trailing row gap */
}

.cover { display: block; }
.cover-image { overflow: hidden; aspect-ratio: 4 / 3; background: #000; }
.cover-image img,
.cover-image picture {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .3s ease;
}
.cover:hover .cover-image img { transform: scale(1.03); }

.cover-details {
  background: var(--bg-detail);
  text-align: center;
  padding: 34px 12px 31px;
}
.cover-title { font-size: 16px; line-height: 20px; padding-bottom: 3px; color: var(--text); }
.cover-date  { font-size: 14px; line-height: 18px; color: var(--muted); }

/* ---------- project page ---------- */

.project-blurb {
  margin: 0 auto;
  max-width: 800px;
  font-size: 16px;
  line-height: 20px;
  color: var(--muted);
  text-align: center;
}

.video {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.related { margin: 140px 0 60px; }
.related h2 {
  margin: 0 0 40px;
  font-size: 20px;
  line-height: 20px;
  font-weight: 700;
  color: var(--title);
}
.covers-small {
  grid-template-columns: repeat(4, 1fr);
  column-gap: 4px;
  row-gap: 20px;
  padding-bottom: 0;
}
.covers-small .cover-details { padding: 17px 8px; }
.covers-small .cover-title { font-size: 14px; line-height: 18px; font-weight: 500; }
.covers-small .cover-date  { font-size: 12px; line-height: 16px; }

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

.site-footer {
  padding: 130px 24px;
  text-align: center;
}
.footer-text {
  font-size: 15px;
  line-height: 30px;
  color: var(--muted);
}

/* ---------- back to top ---------- */

.back-to-top {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, background .2s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: rgba(255, 255, 255, .22); }
.back-to-top svg { width: 20px; height: 20px; fill: var(--muted); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .masthead h1 { font-size: 48px; line-height: 52px; }
  .related { margin-top: 90px; }
  .covers-small { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .site-header .nav { display: none; }
  .hamburger { display: flex; }

  .wrap { padding: 0; }

  .page-header { padding: 16px 20px 0; }
  .page-header--project { max-width: none; margin: 0; padding: 29px 20px 34px; }
  .page-title { font-size: 16px; line-height: 20px; padding-bottom: 10px; }

  .intro { display: block; }
  .intro-photo { padding: 56px 0 0 12px; }   /* bleeds to the right edge, as on the original */
  .intro-photo picture { width: 100%; }
  .intro-text { max-width: none; padding: 13px 20px 0; }
  .lead { font-size: 17px; line-height: 23px; margin-bottom: 0; padding-bottom: 14px; }
  .body-text { font-size: 14px; line-height: 21px; }

  .contact { margin: 36px 0 18px; padding: 0 20px; }
  .field { margin-bottom: 16px; }
  .contact-form textarea { height: 108px; }

  .masthead { min-height: 380px; padding: var(--header-h) 20px 0; }
  .masthead-inner { padding-top: 82px; }
  .masthead h1 { font-size: 26px; line-height: 26px; }
  .masthead p { margin-top: 13px; font-size: 14px; line-height: 20px; }
  .masthead-arrow { margin-top: 40px; transform: scale(.8); }

  .covers { grid-template-columns: 1fr; column-gap: 0; row-gap: 32px; }
  .cover-details { padding: 23px 31px 13px; }
  .cover-title { font-size: 15px; line-height: 24px; padding-bottom: 0; }
  .cover-date { font-size: 13px; line-height: 18px; }

  .video { margin: 0; }
  .related { margin: 55px 0 26px; padding: 0; }
  .related h2 { font-size: 14px; line-height: 14px; margin: 0 0 18px; padding: 0 20px; }
  .covers-small { grid-template-columns: 1fr; column-gap: 0; row-gap: 32px; }
  .covers-small .cover-details { padding: 23px 20px 21px; }
  .covers-small .cover-title { font-size: 15px; line-height: 24px; }
  .covers-small .cover-date { font-size: 13px; line-height: 18px; }

  .site-footer { padding: 36px 24px; }
  .footer-text { font-size: 15px; line-height: 30px; }

  .back-to-top { right: 18px; bottom: 18px; width: 46px; height: 46px; }
}
