/* Set up global colors. */
:root {
  /* colors */
  --color-red: IndianRed;
  --color-yellow: Moccasin;
  --color-pink: #FFAABB;
  --color-pink-hover: #FFBBAA;
  --color-pink-light: #FFAABB55;
  --color-orange: Coral;
  --color-purple: SlateBlue;
  --color-green: #BBFFAA;
  --color-green-hover: #AAFFBB;
  --color-green-light: #AAFFBB55;
  --color-blue: #AABBFF; --color-blue-hover: #BBAAFF;
  --color-blue: #AABBFF;
  --color-blue-hover: #BBAAFF;
  --color-blue-light: #AABBFF55;
  --color-brown: RosyBrown;
  --color-white: WhiteSmoke;
  --color-gray1: oklch(92.3% 0.003 48.717); /* tailwind: stone 200 */
  --color-gray2: oklch(70.9% 0.01 56.259); /* tailwind: stone 400 */
  --color-gray3: oklch(43.9% 0 0); /* tailwind: neutral 600 */
  --color-gray3b: oklch(86.9% 0.005 56.366); /* tailwind: stone 300 */
  --color-gray4: oklch(26.9% 0 0); /* tailwind: neutral 800 */
  --color-gray5: oklch(14.5% 0 0); /* tailwind: neutral 950 */
  --color-black: black;
  --color-border-major: white;
  --color-border-minor: white;
  --color-primary: var(--color-blue);
  --color-primary-hover: var(--color-blue-hover);
  --color-primary-light: var(--color-blue-light);
  --color-secondary: var(--color-green);
  --color-secondary-hover: var(--color-green-hover);
  --color-secondary-light: var(--color-green-light);
  --color-tertiary: var(--color-pink);
  --color-tertiary-light: var(--color-pink-light);
  --color-text-dark: var(--color-gray4);
  --color-text-light: var(--color-white);

  --color-nav-off: var(--color-gray1);
  --color-nav-on: var(--color-white);

  /* sizes */
  --size--1: clamp(0.825rem, 0.787rem + 0.203vw, 1rem);
  --size-0: clamp(1rem, 0.882rem + 0.588vw, 1.5rem);
  --size-1: clamp(1.25rem, 1.074rem + 0.882vw, 2rem);
  --size-2: clamp(1.5rem, 1.324rem + 0.882vw, 2.25rem);
  --size-3: clamp(1.75rem, 1.574rem + 0.882vw, 2.5rem);
  --size-4: clamp(2rem, 1.824rem + 0.882vw, 2.75rem);
  --size-5: clamp(2.25rem, 2.074rem + 0.882vw, 3rem);
  --size-6: clamp(2.5rem, 2.324rem + 0.882vw, 3.25rem);
  --size-7: clamp(2.75rem, 2.574rem + 0.882vw, 3.5rem);
  --size-8: clamp(3rem, 2.824rem + 0.882vw, 3.75rem);
  --size-9: clamp(3.25rem, 3.074rem + 0.882vw, 4rem);
  --size-sm: 14px;
  /* fonts */
  --font-family-serif: "Times", "Times New Roman", "Georgia", serif;
  --font-family-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-family-heavy: sans-serif;
  --font-hero-heading-size: clamp(3.000rem, calc(0.000rem + 10vw), 10.000rem);
  --font-section-heading-size: clamp(2rem, 1.059rem + 4.706vw, 6rem);
  --font-title-heading-size: clamp(1.8rem, 1.282rem + 2.588vw, 4rem);
  --font-title-heading-entries-size: calc(var(--size-2) * 0.9);
  --font-body-size: clamp(1rem, 0.882rem + 0.588vw, 1.5rem);
  --kerning-tight: -1px;
  --kerning-normal: 0;
  --kerning-loose: 1px;
  /* borders */
  --border-size-xl: 10px;
  --border-size-lg: 8px;
  --border-size-md: 4px;
  --border-size-sm: 1px;
  /* containers */
  --container-max-width: 1680px;
  --content-max-width: 75ch;

  /* Assign colors to component variables */
  --bg-body: var(--color-gray1);
  --text-body: var(--color-gray4);

  --bg-mark: var(--color-white);
  --bg-entry: var(--color-gray3b);
  --bg-callout: var(--color-white);
}

/* *****************************************
 * begin reset
 * */
/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
/*
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}
*/

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}
/* ...end reset */

/* *****************************************
 * Colors: https://htmlcolorcodes.com
 * */
.bg-red { background-color: var(--color-red); }
.bg-yellow { background-color: var(--color-yellow); }
.bg-pink { background-color: var(--color-pink); }
.bg-orange { background-color: var(--color-orange); }
.bg-purple { background-color: var(--color-purple); }
.bg-green { background-color: var(--color-green); }
.bg-blue { background-color: var(--color-blue); }
.bg-brown { background-color: var(--color-brown); }
.bg-white { background-color: var(--color-white); }
.bg-gray1 { background-color: var(--color-gray1); }
.bg-gray2 { background-color: var(--color-gray2); }
.bg-gray3 { background-color: var(--color-gray3); }
.bg-gray4 { background-color: var(--color-gray4); }
.bg-gray5 { background-color: var(--color-gray5); }
.bg-black { background-color: var(--color-black); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-tertiary { background-color: var(--color-tertiary); }

.color-swatches {
  display: flex;
  flex-direction: row;
  width: 200px;
}
.color-swatches .color {
  flex-basis: 20px;
  height: 20px;
}

body {
  background-color: var(--bg-body);
  color: var(--text-body);
}


/* *****************************************
 * Fonts
 * */

body {
  font-family: var(--font-family-sans-serif);
  font-size: var(--font-body-size);
}

/*
a {
  background-color: var(--color-primary-light);
  color: var(--text-body);
  text-decoration: none;
  padding: 0 2px;
}
a:visited { background-color: var(--color-secondary-light);}
a:hover,
a:visited:hover,
a:active {
  background-color: var(--color-tertiary-light);
  text-decoration: none;
  color: var(--text-body);
}
*/
a {
  /*background-color: var(--color-primary-light);*/
  color: var(--text-body);
  text-decoration: none;
  border-color: var(--color-primary);
  border-bottom-width: 2px;
  border-bottom-style: solid;
}
a:hover,
a:visited:hover,
a:active {
  /*background-color: var(--color-secondary-light);*/
  border-color: var(--color-secondary);
  text-decoration: none;
}
a:visited {
  color: var(--text-body);
}

figure a {
  background: none;
  padding: unset;
  border: none;
}
figure a:hover { background: none; }

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-family-serif);
  font-weight: 100;
}
h1 { font-size: var(--size-6); }
h2 { font-size: var(--size-5); }
h3 { font-size: var(--size-4); }
h4 { font-size: var(--size-3); }
h5 { font-size: var(--size-2); }
h6 { font-size: var(--size-1); }

blockquote {
  font-family: var(--font-family-serif);
  font-weight: light;
  font-style: italic;
}
cite {
  text-align: right;
  font-size: smaller;
  display: block;
  font-style: normal;
}
blockquote cite {
  padding-top: var(--size-0);
  margin-top: var(--size-0);
  border-top: var(--border-size-sm) solid var(--color-gray2)
}
.title-hero h1, .title-section h1 {
  font-family: var(--font-family-serif);
  font-style: oblique;
}
.title-hero h1 {
  font-size: var(--font-hero-heading-size);
}
.title-hero h2, .title-section h2 { font-size: var(--size-9); }
.title-hero h3, .title-section h3 { font-size: var(--size-8); }

.title-section h1 {
  font-size: var(--font-section-heading-size);
}
.title-section p {
  max-width: var(--content-max-width);
}
.title-page h1 { font-size: var(--font-title-heading-size); max-width: 30ch; line-height: 1.2; }
.title-page h2 { font-size: var(--size-8); }
.title-page h3 { font-size: var(--size-7); }
.title-page time,
.title-page mark {
  background-color: transparent;
  font-size: var(--size--1);
  color: var(--color-gray3);
}

.logo-tagline {
  font-family: var(--font-family-serif);
  width: max-content;
  max-width: 350px;
  margin-inline: auto;
}
.logo {
  font-size: var(--size-6);
  letter-spacing: var(--kerning-tight);
  font-weight: 900;
}
.logo a {
  color: var(--color-text-light);
  text-decoration: none;
  background: none;
  display: block;
  line-height: 0.75;
}
.logo a:hover { color: var(--color-text-light); }
.tagline {
  font-family: var(--font-family-sans-serif);
  font-size: var(--size--1);
  letter-spacing: var(--kerning-normal);
  color: var(--color-gray2);
  text-transform: smallcaps;
}

.content-leader {
    font-size: var(--font-hero-heading-size);
    margin: 0 0.75rem 0.75rem 0;
    background-color: var(--color-secondary);
    float: left;
}

figcaption p {
  line-height: 2;
  font-kerning: var(--kerning-loose);
}
figcaption p mark {
  background-color: var(--bg-mark);
  padding: 5px;
}

/* *****************************************
 * Utilities
 * */
:root {
  --wrapper-max-width: 1680px;
  --gutter: clamp(1rem, 1rem + 1.5vi, 1.5rem);
}

/* *****************************************
 * Layout:
 */
body {margin: 0; padding: 0;}
.wrapper {
  margin-inline: auto;
  max-width: var(--wrapper-max-width);
  padding-inline: var(--size-2);
  position: relative;
}

.masthead {
  background-color: var(--color-gray4);
  color: var(--color-text-light);
  padding-top: var(--size-0);
  padding-bottom: var(--size-0);
}

.logo-tagline {
  align-content: center;
  padding: var(--size-0) 0 0 0;
}
.logo,
.tagline {
    text-align: center;
}
.logo {
    line-height: 1;
}
.tagline {
  display: block;
}
.nav {
  grid-area: nav;
  text-align: center;
  display: flex;
  flex-direction: row;
  gap: var(--size-0);
  padding: var(--size-0);
  align-self: start;
}
.nav a {
  width: 100%;
  padding: 5px 10px;
  color: var(--color-nav-off);
  background-color: transparent;
  text-align: center;
  text-decoration: none;
  margin: 2px 0;
  border-bottom: var(--border-size-lg) solid var(--bg-body);
}
.nav a:hover,
.nav a.active {
  color: var(--color-nav-on);
  border-bottom-color: var(--color-primary);
}

main {
    grid-area: content;
}

footer.bottom {
  margin-top: var(--size-5);
  font-size: 14px;
  background-color: var(--color-gray4);
}
footer.bottom .wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--color-text-light);
  padding-top: var(--size-1);
  padding-bottom: var(--size-1);
}

footer.bottom a {
  color: var(--color-nav-off);
}
footer.bottom a:hover {
  color: var(--color-nav-on);
}

/* *****************************************
 * Layout: Nav
 * */

/* Layout: Titles and Heros */
.title-hero,
.title-section,
.title-page {
    display: block;
}

.title-hero {
  display: flex;
  flex-direction: column;
  margin-top: var(--size-2);
  margin-bottom: var(--size-4);
}
.title-hero h1 {
  margin-top: var(--size-4);
}
.title-hero p {
  text-align: left;
  margin-top: 0;
  padding: var(--size--1);
}

.title-hero figure {
  width: 100%;
  margin-top: var(--size-2);
}
.title-hero figure::before,
.title-hero figure::after {
  content: ' ';
  position: absolute;
  height: 100%;
  aspect-ratio: 1/1;
}
.title-hero figure::before {
  left: 0px;
  top: -20px;
  background-color: var(--color-tertiary);
  transform: skew(5deg, 5deg);
}
.title-hero figure::after {
  right: 0px;
  bottom: -20px;
  background-color: var(--color-primary);
  transform: skew(5deg, 5deg);
}
.title-hero img {
  width: 100%;
  height: auto;
}
.title-section {
  margin-top: var(--size-1);
}
.title-section h1 {
  margin: 0;
}

.title-page {
    margin-bottom: var(--size-2);
}

/* *****************************************
 * Layout: Callouts
 * */
.callout {
}
.callout h3 {
  font-weight: bold;
  font-family: var(--font-family-sans-serif);
  font-size: var(--size-0);
  margin: 1rem 0;
}
.frontmatter {
  margin-bottom: var(--size-2);
}
.frontmatter h2 {
  font-size: var(--size-1);
}
.frontmatter ul {
  margin: 0;
  padding: 0;
}
.frontmatter li {
  margin: 0 0 0 20px;
  padding: 5px 5px 5px 0;
}

/* *****************************************
 * Layout: Content
 * */

.content-grid {
  display: grid;
  grid-template-columns:
      [full-width-start] minmax(var(--size-0),1fr)
        [popout-start] minmax(0,var(--size-5))
            [content-start] min(var(--content-max-width),100% - var(--size-1) * 2)
            [content-end] minmax(0,var(--size-1))
        [popout-end] minmax(var(--size-5),1fr)
      [full-width-end];
}
.content-grid > * {
  grid-column: content;
}
.popout-content {
    grid-column: popout;
}
.content-grid > figure {
    grid-column: popout;
}

.archive-sections h2,
.entries-grid h2,
.entries h2,
.section-heading {
  line-height: 1;
  font-style: oblique;
  margin-bottom: var(--size-1);
}
.newswire mark { background-color: transparent; font-style: oblique; }

.section-heading {
    margin-bottom: var(--size-0);
}
.entries .entry {
  background-color: var(--bg-entry);
}
.newswire > mark,
.entry figure mark {
  position: absolute;
  right: 0;
  top: -10px;
  z-index: 5;
  color: var(--text-body);
  font-size: var(--size--1);
  font-family: var(--font-family-sans-serif);
  font-style: normal;
  padding: 5px;
}

.newswire > mark {
  background-color: var(--color-tertiary);
}

.entry .excerpt {
  font-size: var(--size--1);
}

.art-single footer,
.entry footer {
  font-size: var(--size--1);
  margin-top: var(--size-0);
  padding-bottom: var(--size-0);
}

.art-single footer {
  margin-top: var(--size-1);
}

.art-single footer div,
.entry footer div {
  padding: 5px 10px 5px 35px;
  position: relative;
}

.art-single footer div::before,
.entry footer div::before {
  content: '\2022';
  position: absolute;
  left: 25px;
  top: 6px;
}
.entry > div {
  display: block;
}
.entries img:hover { filter: brightness(115%); }
.entries h3 {
  font-family: var(--font-family-sans-serif);
  font-size: var(--font-title-heading-entries-size);
  font-weight: normal;
  margin: 0;
}
.entries h3 a {
  display: block;
  background-color: transparent;
  padding: var(--size-0);
  border-bottom: none;
  border-left-width: 5px;
  border-left-style: solid;
}
.entries h3 a:hover { font-weight: 600; }

.entries .excerpt {
  padding-left: var(--size-0);
  padding-right: var(--size-0);
  margin: 0;
}
.entries .entry > figure {
  margin-bottom: 0;
}
.entries-grid .entry img {
  width: 100%;
}

figure {
  margin: 0 0 var(--size-0) 0;
  position: relative;
}
figure img {
  position: relative;
  z-index: 1;
}

figcaption {
    max-width: 50ch;
    padding: var(--size-1) 0;
}
figcaption h2,
figcaption h3 {
    font-size: var(--size-1);
    margin-top: var(--size-0);
    margin-top: 0;
}

article {
  margin-bottom: var(--size-1);
}

.entry-text {
  display: flex;
  flex-direction: column;
}
.entry-text blockquote {
  color: var(--color-text-light);
  background: var(--color-text-dark);
  display: block;
  margin: 0;
  padding: var(--size-0);
}
.entry-text p {
  padding: 0 var(--size-0);
}


/* *****************************************
 * Layout: Image story full
 * */
.art-single figure {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}
.art-single figure img {
}

.dateline p { font-size: 16px; text-transform: uppercase; color: var(--color-gray4); }
.newswire {
  background: var(--color-white);
  color: var(--color-black);
  font-family: var(--font-family-serif);
  max-width: var(--content-max-width);
  padding: var(--size-1);
  position: relative;
}

.elsewhere-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: var(--size-1);
}
.elsewhere-nav .section-heading,
.elsewhere-nav  nav {
  flex-basis: 100%;
}
.elsewhere-nav nav a {
  display: block;
  padding: var(--size--1) 0;
  background-color: transparent;
  border: none;
}
.elsewhere-nav nav a:hover {
  font-weight: bold;
}
.elsewhere-nav a span {
  font-weight: 900;
  font-size: bigger;
  border-bottom: 3px solid var(--color-primary);
}
.elsewhere-nav a:hover span {
  border-color: var(--color-secondary);
}

/* Portfolio thumbnail grid */
.portfolio-grid h2 {
  line-height: 1;
  font-style: oblique;
  margin-bottom: var(--size-1);
}
.portfolio-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.portfolio-thumbs figure {
  margin: 0;
  overflow: hidden;
}
.portfolio-thumbs figure a {
  display: block;
  background: none;
  border: none;
  padding: 0;
}
.portfolio-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: filter 0.15s ease;
}
.portfolio-thumbs img:hover {
  filter: brightness(115%);
}

/* Media Queries */
@media (min-width: 768px) {
  .masthead .wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  .logo-tagline {
    margin-inline: unset;
  }
  .nav {
    padding-right: 0;
  }

  .title-hero {
    margin: var(--size-9) 0;
    padding: 0;
    flex-direction: row;
    flex-wrap: nowrap;
  }
  .title-hero figure {
    order: 3;
    align-self: center;
    margin-top: unset;
  }
  .title-hero h1 {
    margin-top: unset;
  }
  .title-hero p {
    padding: var(--size-1) var(--size-6);
  }

  .entries-grid .entries {
    display: grid;
    grid-template-columns: repeat(3,33%);
    gap: 10px;
  }
  .entries-grid h2,
  .archive-sections h2 {
    margin-bottom: var(--size-1);
  }
  .entries article {
    margin-bottom: 0;
  }

  .entry h3 {
    text-wrap: auto;
  }
  footer.bottom .wrapper {
    flex-direction: row;
  }

  .imagestory-grid figure {
    flex-direction: row;
  }
  .imagestory-grid figure figcaption {
    flex-basis: 33%;
    padding: 0 var(--size-1) var(--size-1) var(--size-1);
  }
  .imagestory-grid figure a {
      flex-basis: 66%;
  }
  .imagestory-grid figure img {
      max-width: 100%;
  }

  .imagestory-archive {
    margin-top: var(--size-1);
    display: grid;
    gap: var(--size-6);
    grid-template-columns: 50% auto;
    grid-template-areas:
      "frontmatter story"
      "images story"
  }
  .imagestory-archive .frontmatter {
    grid-area: frontmatter;
  }
  .imagestory-archive .figures {
    grid-area: images;
  }
  .imagestory-archive .figures figcaption {
    max-width: 40ch;
  }
  .imagestory-archive .story {
    grid-area: story;
  }
  .callout {
    padding-right: var(--size-3);
  }
  .elsewhere-nav nav {
    flex-basis: max-content;
  }
  .portfolio-thumbs {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

}

@media (min-width: 1200px) {
  figure {
    flex-wrap: nowrap;
  }
  .portfolio-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}