/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #111111;
  background: none;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

body {
  margin: 0 auto;
  max-width: 1200px;
}

body > #body {
  display: grid;
  place-items: center; /* Centers both horizontally and vertically */
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;

  background-image: url('/img/20190527-IMG_6126-2.png');
  background-size: auto;
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: 0;
  background-attachment: fixed; /* This is the key property */
  min-height: 200vh; /* Ensure enough content to scroll */
}

.sticky-header {
  position: sticky;
  top: 0; /* Sticks to the top of the viewport */
  width: 100%; /* Spans the full width of the viewport */
  /* Add other styling like background-color, padding, z-index, etc. */
  background-color: #f8f8f8;
  padding: 5px;
  z-index: 1000; /* Ensures it stays on top of other content */
}

header {
  display: grid;
  place-items: center;
  min-height: 4rem;
  width: 80vw;
  border-bottom: 3px double black;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.cutout {
  min-height: 13vh;
  height: 50vh;
  background: none;
}

section {
  padding: 0 0 0 0;
}

.essay-subtitle {
  font-weight: 400;
  font-style: normal;
  font-size: 1.4375rem;
  line-height: 1.875rem;
  color: #363636;
  margin: 0;
}

.manufacturing-consent-regular {
  font-family: "Manufacturing Consent", system-ui;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(24px, 5vw, 48px);
  margin: 0 0 0 0;
}

.noto-serif-title {
  text-indent: 0;
  font-size: 2.5rem;
  font-family: "Noto Serif", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: italic;
  font-variation-settings: "wdth" 62.5;
  margin: 0;
}

.noto-serif-subtitle {
  text-indent: 0;
  font-family: "Noto Serif", serif;
  font-optical-sizing: auto;
  font-weight: 350;
  font-style: normal;
  font-variation-settings: "wdth" 80;
  margin: 0;
}

div.title-section {
  padding: 1vw;
}

p.author {
  font-size: 1rem;
}

p {
  font-family: "Noto Serif", serif;
  font-optical-sizing: none;
  font-size: 1.3rem;
  font-weight: 325;
  font-style: normal;
  font-variation-settings: "wdth" 95;
}

article {
  padding-top: 3vh;
  padding-left: 5vw;
  padding-right: 5vw;
  background: #f5f5f5;
}

article > p {
  text-indent: 2em;
  line-height: 1.875rem;
  margin-bottom: 1em;
}

p.indent::first-letter {
  text-indent: 2em;
  font-weight: 350;
  font-variation-settings: "wdth" 100;
}

article > .citation {
  text-indent: 0;
  font-size: .8rem;
  font-family: "Noto Serif", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "wdth" 62.5;
}

.inline-left * {
  min-width: 200px;
  width: 20vw;
  float: left;
  margin-right: 20px;
  margin-bottom: 20px;
}

figure.inline-left {
  margin-left: 0;
}

figure.inline-right {
  margin-right: 0;
}

.inline-left figcaption {
  clear: left;
  width: 15vw;
  min-width: 300px;
}

.inline-left video {
  min-width: 300px;
  width: 15vw;
}

.inline-left img {
  min-width: 300px;
  width: 20vw;
}

.inline-right * {
  float: right;
  margin-left: 20px;
  margin-bottom: 20px;
}

.inline-right figcaption {
  clear: right;
  width: 15vw;
  min-width: 300px;
}

.inline-right video {
  min-width: 300px;
  width: 15vw;
}

.inline-right img {
  min-width: 300px;
  width: 20vw;
}

.inline-center * {
  margin-left: 20px;
  margin-bottom: 20px;
  margin: 0 auto;
}

.inline-center figcaption {
  margin: 0 auto;
  display: flex;
  align-items: center; /* Centers items vertically */
  justify-content: center; /* Centers items horizontally */
}

.inline-center video {
  width: 15vw;
}

.inline-center img {
  width: 100%;
}



